1 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3 Introduce a new comment style "c" flag.
4 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
7 (syntax_prefix_flag_p): New function.
8 (Fstring_to_syntax): Understand new "c" flag.
9 (Finternal_describe_syntax_value): Recognize new flag; use the
10 SYNTAX_FLAGS_* macros.
11 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
12 comment style to accomodate the new styles.
13 (back_comment, forw_comment, Fforward_comment, scan_lists)
14 (scan_sexps_forward): Update code to obey the new comment style flag.
16 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
18 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
20 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
22 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
24 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
26 * gtkutil.h (xg_check_special_colors): Declare.
28 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
29 (xg_create_frame_widgets): Connect theme name changes to
32 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
33 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
34 (x_term_init): Use char[] display_opt and name_opt instead of
35 string literal. file is const char*.
37 * xsmfns.c (NOSPLASH_OPT): Change to char[].
38 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
39 props. Free them at the end.
41 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
43 * xrdb.c (get_system_app): Make path const and use char *p for
46 * xmenu.c (Fx_popup_dialog): error_name is const char*.
47 (xmenu_show): error parameter is const char **. pane_string is const
49 (button_names): Is const char *.
50 (xdialog_show): error_name and pane_string is const.
52 * process.h (synch_process_death): Is const char*.
54 * w32menu.c (w32_menu_show):
55 * nsmenu.m (ns_menu_show): error parameter is const char **.
57 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
60 * menu.c (Fx_popup_menu): error_name is const.
62 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
63 with unsigned char and XtPointer with void *.
65 * gtkutil.h: Replace widget_value with struct _widget_value.
66 (enum button_type, struct _widget_value): Remove and use the one from
69 * gtkutil.c (get_utf8_string): Always return an allocated string.
71 (create_dialog, xg_create_one_menuitem, create_menus)
72 (xg_item_label_same_p, xg_update_menu_item): Free result from
74 (xg_separator_p, xg_item_label_same_p): label is const.
76 * font.h (font_open_by_name): Make name const.
78 * font.c (font_open_by_name): Make name const.
80 * floatfns.c (matherr): Use a const char* variable for x->name.
82 * emacs.c (main): Pass char[] to putenv instead of literal.
84 * callproc.c (synch_process_death): Make const.
85 (Fcall_process): Make signame const.
87 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
88 (addDisplayItemWithImage): Use const char*.
90 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
91 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
93 * nsfont.m (ns_descriptor_to_entity): Use const char*.
95 * keyboard.h (_widget_value): name, value and key are const char*.
97 * unexmacosx.c (unexec_error): Use const char *.
99 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
101 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
102 (font_parse_name, font_open_by_name):
103 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
104 (font_parse_name, font_open_by_name): Remove const.
106 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
108 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
111 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
112 * m/amdx86-64.h: Likewise.
114 * m/hp800.h: Likewise.
115 * m/ia64.h: Likewise.
116 * m/ibmrs6000.h: Likewise.
117 * m/ibms390.h: Likewise.
118 * m/intel386.h: Likewise.
119 * m/iris4d.h: Likewise.
120 * m/m68k.h: Likewise.
121 * m/macppc.h: Likewise.
122 * m/mips.h: Likewise.
124 * m/sparc.h: Likewise.
125 * m/template.h: Likewise.
127 * m/xtensa.h: Likewise.
128 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
132 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
134 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
136 Use const char* instead of char*.
137 Reduce the number of warnings with -Wwrite-strings.
138 * xrdb.c (get_environ_db, get_system_name):
139 * unexelf.c (find_section):
140 * term.c (string_cost, string_cost_one_line, per_line_cost)
141 (get_named_tty, init_tty):
142 * sysdep.c (sys_subshell):
143 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
144 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
145 * search.c (Freplace_match):
146 * process.c (Fmake_network_process, send_process, init_process):
147 * lread.c (Fload, init_lread):
148 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
149 * keyboard.c (parse_tool_bar_item, struct event_head):
150 * gtkutil.h (xg_get_font_name):
151 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
152 (make_widget_for_menu_item, make_menu_item, create_menus)
154 * font.c (parse_matrix, font_parse_name):
155 * floatfns.c (rounding_driver, float_error_fn_name):
156 * filelock.c (get_boot_time_1, lock_file_1):
157 * fileio.c (barf_or_query_if_file_exists, check_writable):
158 * editfns.c (get_system_name, get_operating_system_release)
159 (Fencode_time, Fset_time_zone_rule):
160 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
161 * buffer.c (defvar_per_buffer): Use const.
163 2010-08-08 Kenichi Handa <handa@m17n.org>
165 * charset.c: Include <stdlib.h>
166 (struct charset_sort_data): New struct.
167 (charset_compare): New function.
168 (Fsort_charsets): New funciton.
169 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
171 * coding.c (decode_coding_iso_2022): Fix checking of dimension
172 number in CTEXT extended segment.
174 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
176 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
177 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
179 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
181 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
182 (Fhash_table_size): Fix typos in docstrings.
183 (Fmake_hash_table): Doc fix.
185 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
187 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
190 2010-08-08 Ken Brown <kbrown@cornell.edu>
192 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
193 the MSDOS definition.
195 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
197 Use const char* instead of char*.
198 * xterm.c (x_create_toolkit_scroll_bar):
199 * xfont.c (xfont_list_pattern):
200 * xfns.c (x_default_scroll_bar_color_parameter)
201 (xic_create_fontsetname, x_default_font_parameter)
203 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
204 (store_mode_line_string, decode_mode_spec, display_string):
205 * menu.c (digest_single_submenu):
206 * keymap.h (initial_define_key, initial_define_lispy_key):
207 * keymap.c (initial_define_key, initial_define_lispy_key):
208 * image.c (image_error, image_keyword):
209 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
210 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
211 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
212 (ftfont_list, ftfont_match):
213 * frame.c (frame_parm_table):
214 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
215 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
216 (font_add_log, font_deferred_log):
217 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
218 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
219 (font_add_log, font_deferred_log):
220 * emacs.c (argmatch):
221 * dispextern.h (struct it):
222 * coding.c (ENCODE_DESIGNATION):
223 * charset.c (define_charset_internal): Use const.
225 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
227 * xrdb.c: Remove include guard.
228 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
229 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
230 realloc->xrealloc instead of using #defines.
232 2010-08-08 Eli Zaretskii <eliz@gnu.org>
234 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
235 * editfns.c (Fline_beginning_position, Fline_end_position):
236 State in the doc strings that start and end of line are in the
239 * xdisp.c (display_line): Move the handling of overlay arrow after
240 the call to find_row_edges. (Bug#6699)
242 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
244 * keyboard.c (command_loop_1):
245 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
247 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
249 * insdel.c (prepare_to_modify_buffer): Save active region text to
250 Vsaved_region_selection.
252 * xselect.c (QPRIMARY): Move to keyboard.c.
254 * keyboard.c (Vselect_active_regions): Move from simple.el.
255 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
256 (command_loop_1): Set window selection prior to deactivating the mark.
258 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
260 * alloc.c (lisp_malloc):
261 * buffer.c (set_buffer_internal, set_buffer_internal_1):
262 * charset.h (emacs_mule_charset):
263 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
264 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
266 * lisp.h (Fcheck_coding_system, Fget_text_property)
267 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
268 Remove duplicate declarations.
270 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
272 * process.c: Simplify include logic.
274 * keyboard.h (quit_char): Add declaration.
275 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
276 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
279 * w32.c: Remove the above declarations.
281 Remove extern declarations in .c files, .h files have them.
288 * eval.c: Remove declarations.
290 * frame.c (frame_params): Make const.
292 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
294 * emacs.c (emacs_copyright, emacs_version): Make static.
295 (Vinitial_window_system, Vauto_save_list_file_name)
296 (Vinhibit_redisplay): Remove declarations.
297 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
300 Use const for some arrays and functions.
301 * xterm.h (xg_set_icon_from_xpm_data):
302 * xfns.c (xg_set_icon_from_xpm_data):
304 * keyboard.c (lispy_accent_keys, lispy_function_keys)
305 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
306 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
307 (frame.c frame_parms):
308 * emacs-icon.h (gnu_xpm_bits):
309 * callint.c (callint_argfuns): Use const.
311 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
313 * sysdep.c: Move include term.h last of includes (Bug#6812).
315 2010-08-06 Eli Zaretskii <eliz@gnu.org>
317 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
319 * msdos.c (IT_display_cursor): Log cursor position on termscript.
321 * .gdbinit (pgx): Display the avoid_cursor_p flag.
323 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
325 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
327 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
329 * xterm.h (x_get_focus_frame): Declare.
331 * keyboard.h (poll_for_input_1): Unconditionally declare.
333 * nsterm.h (x_set_menu_bar_lines): Declare.
335 * window.c: Don't include menu.h, it depends on lots of other .h-files.
337 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
339 * window.c: Include menu.h.
341 * unexmacosx.c (print_region_list, print_regions)
342 (build_region_list, find_emacs_zone_regions)
343 (unexec_regions_merge, read_load_commands, dump_it)
344 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
346 * term.c: Check HAVE_SYS_IOCTL_H.
348 * sysdep.c: Check HAVE_TERM_H.
350 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
352 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
353 (ns_ring_bell, ns_defined_color, hide_hourglass)
354 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
355 Convert to ANSI C prototypes.
356 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
359 * nsterm.h : Include sysselect.h.
360 (x_sync, x_get_focus_frame, x_set_mouse_position)
361 (x_set_mouse_pixel_position, x_make_frame_visible)
362 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
363 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
364 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
365 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
368 * nsmenu.m (popup_activated, name_is_separator)
369 (syms_of_nsmenu): Convert to ANSI C prototypes.
370 (runMenuAt): Prototypes and move declarations before code.
372 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
374 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
377 * nsfns.m (have_menus_p, ns_display_info_for_name)
378 (x_set_cursor_type, ns_appkit_version_str)
379 (ns_appkit_version_int, ns_do_applescript)
380 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
381 (syms_of_nsfns): Convert to ANSI C prototypes.
383 * menu.h (x_set_menu_bar_line): Declare.
384 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
386 * lisp.h (fmod_float): Declare.
388 * image.c (xpm_scan, xpm_make_color_table_v)
389 (xpm_put_color_table_v, xpm_get_color_table_v)
390 (xpm_make_color_table_h, xpm_put_color_table_h)
391 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
392 (xpm_load): Convert to ANSI C prototypes.
394 * emacs.c: Include nsterm.h if HAVE_NS.
396 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
398 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
400 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
401 subprocesses, only MSDOS does not define HAVE_SOCKETS.
402 (socket_options): Use const char* for name.
404 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
406 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
408 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
409 Don't declare xmalloc_widget_value and digest_single_submenu.
411 * w32font.c (Qlatin): Remove declaration.
413 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
415 * dired.c (compile_pattern): Restore declaration.
417 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
419 Remove extern declarations in .c files, .h files have them.
446 * xterm.c: Remove declarations.
449 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
450 (main_thread): Move down to remove #ifdef.
451 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
452 Remove conditional definition following unconditional ones.
454 * lisp.h: Remove HAVE_SHM code, unused.
455 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
456 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
457 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
458 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
459 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
460 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
461 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
462 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
463 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
464 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
465 (Qwindow_scroll_functions, Vafter_load_alist)
466 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
467 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
468 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
469 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
470 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
471 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
472 (initial_argv, last_nonmenu_event, load_in_progress)
473 (noninteractive_need_newline, scroll_margin): Add declarations.
475 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
476 declarations, menu.h has them.
477 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
478 (Vinput_method_function, Qinput_method_function)
479 (Qevent_symbol_element_mask, last_event_timestamp):
480 * dispextern.h (Voverflow_newline_into_fringe):
481 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
482 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
483 (syms_of_w32font, syms_of_nsfont):
484 * fontset.h (find_font_encoding, Qlatin):
485 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
486 (Vtool_bar_mode, set_frame_menubar):
487 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
488 * xterm.h (Qx_gtk_map_stock):
489 * keymap.h (meta_prefix_char): Add declarations.
491 * term.c: Remove dead code.
493 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
494 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
495 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
496 which is what was there before BSD_PGRPS was removed.
498 2010-08-05 Eli Zaretskii <eliz@gnu.org>
500 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
502 * unexcoff.c: Renamed from unexec.c.
504 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
506 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
508 2010-08-03 Johan Bockgård <bojohan@gnu.org>
510 * data.c (Flocal_variable_p): Handle variable aliases correctly.
513 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
515 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
516 to TRUE if depth of screen is < 16.
518 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
520 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
521 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
522 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
524 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
526 * xterm.h (USE_GTK_TOOLTIP): New define.
527 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
529 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
530 to Control-D (Bug#6771).
532 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
534 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
535 Wording by Drew Adams <drew.adams@oracle.com>.
537 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
539 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
542 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
543 calling gtk_widget_queue_draw.
544 (x_free_frame_resources): Call xg_free_frame_widgets.
546 * xfns.c (x_gtk_use_system_tooltips): New variable.
547 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
548 new gtkutil tooltip functions to show the tooltip.
549 (Fx_hide_tip): Call xg_hide_tooltip.
550 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
552 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
553 (xg_show_tooltip, xg_hide_tooltip): Declare.
555 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
556 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
558 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
559 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
560 Remove code that is commented out.
562 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
564 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
566 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
568 * xselect.c (x_own_selection): Use list4.
570 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
572 * buffer.c (Qwindow): Do not define, already defined in data.c.
573 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
575 2010-07-29 Chad Brown <yandros@mit.edu>
577 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
578 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
579 * config.in: Undef HAVE_DIRENT_H.
580 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
581 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
583 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
585 Rename s/usg5-4.h -> s/usg5-4-common.h.
586 * s/usg5-4.h: Rename file to ...
587 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
590 * s/irix6-5.h: Update includes accordingly.
592 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
594 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
596 * xterm.h (struct x_output): Add toolbar_top_height,
597 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
598 Remove toolbar_height.
599 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
600 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
601 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
602 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
604 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
606 * xfns.c (x_set_tool_bar_position): New function.
607 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
608 (x_frame_parm_handlers): Add x_set_tool_bar_position.
609 (syms_of_xfns): If USE_GTK, provide move-toolbar.
611 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
612 and FRAME_TOOLBAR_LEFT_WIDTH.
614 * gtkutil.h (xg_change_toolbar_position): Declare.
616 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
617 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
618 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
619 (xg_create_frame_widgets): Create a hobox for placing widgets
620 vertically. Use gtk_box_pack_start.
621 (xg_height_or_width_changed): Renamed from xg_height_changed.
622 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
623 (xg_update_frame_menubar, free_frame_menubar): Change to
624 xg_height_or_width_changed.
625 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
626 size correctly. Remove hardcoded 4, instead use handlebox size -
628 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
629 size correctly. Use handlebox size + toolbar size as additional size.
630 (xg_pack_tool_bar): POS is a new parameter.
631 Set orientation of tool bar based on pos.
632 Only make handlebox_widget if NULL.
633 Check if tool bar goes to vbox or hbox depending on pos.
634 (xg_update_tool_bar_sizes): New function.
635 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
636 height, call xg_update_tool_bar_sizes instead.
637 (free_frame_tool_bar): Remove from hbox or vbox depending on
638 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
639 (xg_change_toolbar_position): New function.
641 * frame.h (struct frame): Add tool_bar_position.
644 * frame.c (Qtool_bar_position): New variable.
645 (make_frame): Set tool_bar_position to Qtop.
646 (frame_parms): Add tool-bar-position.
647 (x_report_frame_params): Store tool_bar_position.
648 (x_set_fringe_width): Reset wm size hint after fringe changes.
650 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
652 Make lisp_time_argument declaration work on all systems.
653 * lisp.h (lisp_time_argument): Move declaration ...
654 * systime.h (lisp_time_argument): ... here
655 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
657 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
659 * vm-limit.c (POINTER): Add typedef for it.
660 (start_of_data): Change return type from POINTER to char *.
662 * frame.h (Qtty_color_mode): Move declaration out of ifdef
665 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
667 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
668 Remove reference to __osf__, unused.
670 * mem-limits.h: Remove duplicated includes.
671 (NULL): Remove definition, unused.
672 (POINTER): Remove definition.
673 (start_of_data): Use char* in prototype, as the function
676 Remove extern declarations from .c files, and them to .h files.
677 * keyboard.h (Qhelp_echo, waiting_for_input)
678 (input_available_clear_time, ignore_mouse_drag_p)
679 (Vdouble_click_time, real_this_command, Vthis_original_command):
680 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
681 (Voverriding_local_map_menu_flag):
682 * lisp.h (Qinteractive_form, use_file_dialog)
683 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
684 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
685 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
686 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
687 (Qfunction, debug_on_next_call, Qfield)
688 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
689 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
690 (Qfile_directory_p, Qinsert_file_contents)
691 (Qcompletion_ignore_case, Qcompletion_ignore_case)
692 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
693 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
694 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
696 (Vtemporary_file_directory,char_ins_del_vector, Qface):
697 * xterm.h (gray_bitmap_width, gray_bitmap_height)
698 (gray_bitmap_bits, xic_create_fontsetname):
699 * coding.h (Vtranslation_table_for_input): Add extern declarations.
701 * xsmfns.c (Vuser_login_name):
702 * xrdb.c (Vdouble_click_time):
703 * xfaces.c (xic_create_fontsetname):
704 * w32select.c (waiting_for_input):
705 * print.c (minibuffer_auto_raise):
706 * msdos.c (Qhelp_echo):
707 * macros.c (real_this_command):
708 * keymap.c (Voverriding_local_map):
709 * xterm.c (poll_for_input_1, gray_bitmap_width)
710 (gray_bitmap_height, gray_bitmap_bits;
711 * xmenu.c ( Voverriding_local_map)
712 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
713 (use_file_dialog, Xt_app_con):
714 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
715 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
716 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
717 (Qtool_bar_lines, ignore_mouse_drag_p):
718 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
719 (Qrear_nonsticky, nconc2):
720 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
721 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
722 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
723 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
724 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
725 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
727 * doc.c (Voverriding_local_map, Qremap):
728 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
729 (Vcompletion_regexp_list):
730 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
731 (Qcompletion_ignore_case):
732 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
733 (Vhistory_length, Vthis_original_command, real_this_command)
734 (Qface, Qminibuffer_prompt, history_delete_duplicates):
735 * image.c (Qrisky_local_variable):
736 * fontset.c (QCname):
737 * fns.c (minibuffer_auto_raise, QCname):
738 * dispnew.c (char_ins_del_cost):
739 * composite.c (font_fill_lglyph_metrics):
740 * cmds.c (Qface, Vtranslation_table_for_input):
741 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
742 * ccl.c (charset_unicode):
743 * callproc.c (Vtemporary_file_directory):
744 * buffer.c (emacs_strerror): Remove extern declarations.
746 * data.c (Qwindow): Make non-static, used from other files too.
747 * frame.c (validate_x_resource_name): Remove shadow definition for i.
749 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
750 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
753 * s/msdos.h (COFF, NO_REMAP):
754 * s/ms-w32.h (NO_REMAP):
755 * s/hpux10-20.h (NO_REMAP):
756 * m/sparc.h (SEGMENT_MASK):
757 * m/m68k.h (NO_REMAP):
758 * m/intel386.h (SEGMENT_MASK):
759 * m/arm.h (NO_REMAP):
761 * m/template.h: Remove references to unused defines.
763 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
765 * xsettings.c (Ftool_bar_get_system_style): Also check for
768 * xdisp.c (Qtext_image_horiz): Define.
769 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
770 to documentation of tool-bar-style.
772 * lisp.h (Qtext_image_horiz): Declare.
774 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
775 style text_image_horiz.
777 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
779 * emacs.c (Fkill_emacs): Remove return statement.
781 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
782 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
783 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
784 local extern declarations.
786 * xmenu.c: Do not included lwlib.h, not needed.
788 * m/iris4d.h (XUINT, XSET): Remove, not needed.
790 * process.c: Move definitions earlier to minimize #ifdefs.
792 * xterm.h (x_get_customization_string, x_load_resources)
793 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
794 (x_check_errors, x_property_data_to_lisp, defined_color)
795 (xic_set_xfontset, x_defined_color): Use const.
797 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
798 (x_text_icon, x_check_errors, x_connection_closed): Use const.
800 * xselect.c (selection_data_to_lisp_data)
801 (x_property_data_to_lisp):
802 * xrdb.c (x_get_string_resource, file_p)
803 (x_get_customization_string, magic_file_p, search_magic_path)
804 (get_system_app, get_user_app, x_load_resources, x_get_resource)
805 (x_get_string_resource): Use const.
807 * xfns.c: Include xlwmenu.h when USE_LUCID.
808 (x_defined_color, xic_set_xfontset): Use const.
809 (Fx_hide_tip): Remove local extern declaration.
811 * xfaces.c (Qmouse_face): Remove declaration.
812 (face_color_gray_p, tty_defined_color, defined_color)
813 (face_color_gray_p, face_color_supported_p): Add const.
815 * xdisp.c (do_mouse_tracking): Remove declaration.
816 (add_to_log): Use const.
818 * minibuf.c (Qmouse_face): Remove declaration.
820 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
822 * keyboard.h (do_mouse_tracking): Add declaration.
824 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
825 (QCdata, QCtype, Qcenter): Remove declarations.
827 * frame.c (x_get_resource_string, x_get_string_resource)
828 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
829 (x_default_parameter): Use const.
831 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
832 (QCheight, QCsize, QCname): Remove declarations.
834 * emacs.c (main): Remove local extern declaration.
836 * editfns.c (region_limit, syms_of_editfns): Remove local extern
839 * dispnew.c: Remove duplicate #include <unistd.h>.
840 (update_window, update_frame_1, init_display): Remove local extern
843 * dispextern.h (add_to_log): Remove declaration.
844 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
845 (x_frame_get_and_record_arg, x_default_parameter): Add const.
847 * dired.c (scmp): Add const.
848 (directory_files_internal): Remove local extern declaration.
850 * data.c (Finteractive_form): Use const.
852 * composite.c (syms_of_composite): Remove local extern declarations.
854 * charset.c (add_to_log): Remove declaration.
856 * character.c (strwidth, parse_str_to_multibyte): Add const.
858 * character.h (strwidth, parse_str_to_multibyte): Likewise.
860 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
862 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
863 (Lisp_Subr): Make doc and intspec constant.
864 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
865 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
866 (QCheight, QCsize, QCname, QCwidth, QCforeground)
867 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
868 (display_arg): Add declarations.
870 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
872 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
874 * window.c (Fwindow_height): Doc fix (bug#6518).
876 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
878 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
880 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
882 * keyboard.c (Ftop_level, Fexit_recursive_edit)
883 (Fabort_recursive_edit): Remove return statements in NO_RETURN
886 * frame.h (Qtty_color_mode): Add declaration.
888 * lisp.h (Ftop_level, Fexit_recursive_edit)
889 (Fabort_recursive_edit): Mark as NO_RETURN.
891 2010-07-26 Kenichi Handa <handa@m17n.org>
893 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
894 number of glyphs gets smaller than the original length. (Bug#6621)
896 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
898 * lread.c (unreadpure, mapatoms_1): Make static.
900 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
902 * terminfo.c (tparam): Fix prototype of tparm.
904 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
906 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
907 find start of text segment.
908 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
911 * callproc.c (set_initial_environment): Avoid unbalanced braces.
913 2010-07-25 Ken Brown <kbrown@cornell.edu>
915 * vm-limit.c (check_memory_limits): Fix previous change;
916 accidentally reverted an earlier change.
918 2010-07-25 Ken Brown <kbrown@cornell.edu>
920 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
921 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
923 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
925 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
926 * dired.c (opendir, readdir): Fix prototypes.
927 * editfns.c (w32_get_internal_run_time): Fix prototypes.
928 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
929 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
930 (telldir): Remove declaration.
931 * ralloc.c (real_morecore, __morecore): Fix prototypes.
932 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
933 * syssignal.h (strsignal): Fix prototype.
934 * term.c (tparam): Fix prototype.
935 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
936 (term_get_fkeys): Set inside "#ifndef DOS_NT".
937 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
939 * w32gui.h (XParseGeometry): Fix prototype.
940 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
941 * w32term.c (my_set_focus): Declare inside #if 0.
942 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
943 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
944 (drain_message_queue, get_next_msg, post_msg, parse_button)
945 (ClipboardSequence_Proc): Fix prototypes.
946 (wait_for_sync): Remove declaration.
948 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
950 * w32fns.c (w32_to_x_color): Remove, unused.
952 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
954 * lisp.h: Remove leftover P_.
956 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
958 * ecrt0.c, unexalpha.c: Remove files, unused.
960 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
962 * cmds.c (internal_self_insert): Make static.
963 * lisp.h (internal_self_insert): Remove declaration.
965 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
967 * alloc.c (free_float):
968 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
969 * frame.c (delete_frame_handler):
970 * ralloc.c (reorder_bloc):
971 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
972 Remove unused static functions.
974 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
975 it is called only from NS code.
977 * w32term.c (my_set_focus): #ifdef away; it is called only from
980 * w32fns.c (x_edge_detection):
981 * xfaces.c (may_use_scalable_font_p):
982 Remove obsolete static declarations.
984 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
986 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
987 (emacs_blocked_realloc, uninterrupt_malloc):
988 * fringe.c (w32_reset_fringes):
989 * image.c (convert_mono_to_color_image, lookup_rgb_color)
990 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
991 * sound.c (be2hs, do_play_sound):
992 * vm-limit.c (get_lim_data, ret_lim_data):
993 * w32term.c (x_free_frame_resources):
994 * xfaces.c (x_create_gc, x_free_gc):
995 Convert definitions to standard C.
997 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
999 * eval.c (Feval, Ffuncall): Use the new names.
1001 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1002 (DEFUN): Add braces around the union initialisation and use ## to
1003 specify the right union alternative and avoid a cast.
1005 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
1007 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1009 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
1011 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1013 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1015 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1016 is related to the menu bar (Bug#6499).
1017 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1019 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1021 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1023 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1025 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1026 i.e. don't put back ButtonRelease (Bug#6608).
1028 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1029 instead of Window. Call xg_event_is_for_menubar when
1032 * gtkutil.h (xg_event_is_for_menubar): Declare.
1034 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1036 2010-07-16 Eli Zaretskii <eliz@gnu.org>
1038 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1039 when it's the same as the old foreground. (Bug#6609)
1041 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1043 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1044 widget is non-null (Bug#6645).
1046 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1048 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1049 Convert old-style definition.
1051 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1054 2010-07-15 Eli Zaretskii <eliz@gnu.org>
1056 * fringe.c (update_window_fringes): Restore mistakenly reverted
1057 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1059 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1061 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1062 (SET_SAVED_KEY_EVENT): Remove (not used).
1063 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1064 remove size parameter.
1065 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1066 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1067 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1069 (x_set_window_size_1): scroll_bar_actual_width is always
1070 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1072 * xdisp.c (pending_menu_activation): Remove extern declaration.
1073 (prepare_menu_bars): Remove setting of pending_menu_activation.
1075 * xmenu.c (pending_menu_activation): Remove.
1076 (x_activate_menubar): Set popup_activated_flag for Xt also.
1077 Remove setting of pending_menu_activation.
1078 (set_frame_menubar): Remove check of pending_menu_activation.
1079 Declare menubar_size before code. Correct spelling in comment.
1081 2010-07-14 Kenichi Handa <handa@m17n.org>
1083 * font.c (font_open_entity): Cancel previous change.
1084 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1086 2010-07-13 Eli Zaretskii <eliz@gnu.org>
1088 Remove subprocesses #ifdefs.
1089 * process.c <inhibit_sentinels>: Move to the common part.
1090 (Fwaiting_for_user_input_p): Move to the common part; return nil
1091 if async subprocesses aren't supported.
1092 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1093 MS-DOS. Remove "#ifdef subprocesses".
1094 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1095 (gettimeofday): Remove "#ifdef subprocesses".
1096 (wait_without_blocking): Remove function.
1097 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1098 Remove "#ifdef subprocesses".
1099 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1101 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1102 wait_for_termination on MS-DOS.
1103 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1104 initialization of inhibit_sentinels.
1105 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1106 subprocesses" conditional.
1107 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1108 wait_for_termination, since `buffer' cannot be an integer when
1109 async subprocesses are not supported
1110 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1111 for ifdefing away the call to Fprocess_status.
1113 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1114 away the entire body of the function.
1116 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1118 Remove subprocesses #ifdefs from term.c.
1119 * process.c (add_keyboard_wait_descriptor)
1120 (delete_keyboard_wait_descriptor): Move to common section, do
1121 nothing when subprocesses is not defined.
1122 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1123 Remove subprocesses #ifdefs.
1125 Convert maybe_fatal to standard C.
1126 * lisp.h (verror): Declare.
1127 * eval.c (verror): New function containing the code from ...
1128 (error): ... this. Call verror.
1129 * term.c (vfatal): New function containing the code from ...
1130 (fatal): ... this. Call vfatal.
1131 (maybe_fatal): Convert to standard C, use variable number of
1132 arguments. Declare as non-return.
1133 (init_tty): Fix maybe_fatal call.
1135 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1137 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1138 (_scroll_bar_note_movement): Convert definitions to standard C.
1139 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1140 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1142 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1144 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1145 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1146 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1147 (xaw_jump_callback, xaw_scroll_callback)
1148 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1149 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1150 definitions to standard C.
1151 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1152 (popup_activate_callback, popup_deactivate_callback)
1153 (menu_highlight_callback, menubar_selection_callback)
1154 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1155 (free_frame_menubar, popup_selection_callback, as)
1156 (create_and_show_popup_menu, dialog_selection_callback)
1157 (create_and_show_dialog):
1158 * xfns.c (hack_wm_protocols, x_window):
1159 * xfaces.c (x_update_menu_appearance):
1160 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1161 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1162 (set_frame_size, update_wm_hints, setup_frame_gcs)
1163 (update_various_frame_slots, update_from_various_frame_slots)
1164 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1165 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1166 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1168 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1170 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
1172 2010-07-12 Eli Zaretskii <eliz@gnu.org>
1174 * process.c (setup_process_coding_systems): Move to the part
1175 shared by non-subprocesses systems, and make its body empty when
1176 subprocesses is not defined.
1177 (close_process_descs): Move to the part shared by non-subprocesses
1179 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1182 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1184 * editfns.c (transpose_markers): Convert old-style definition.
1185 * emacs.c (abort, shut_down_emacs, fixup_locale)
1186 (synchronize_system_time_locale)
1187 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1188 * floatfns.c (extract_float, matherr, init_floatfns)
1189 (syms_of_floatfns): Likewise.
1190 * fns.c (make_hash_table): Likewise.
1191 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1192 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1193 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1194 (ftfont_variation_glyphs): Likewise.
1195 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1196 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1197 * lread.c (read_filtered_event): Likewise.
1198 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1199 * process.c (wait_reading_process_output): Likewise.
1200 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1201 * search.c (search_buffer, boyer_moore): Likewise.
1202 * syntax.c (scan_sexps_forward): Likewise.
1203 * xdisp.c (try_scrolling): Likewise.
1204 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1205 (face_at_string_position): Likewise.
1206 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1207 * xselect.c (x_get_window_property, receive_incremental_selection)
1208 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1210 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1212 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1214 * callproc.c (child_setup): Remove subprocesses conditional.
1215 Remove code dealing with SET_EMACS_PRIORITY, unused.
1217 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
1218 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1220 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1221 (__do_global_dtors, __main): Use void in definition.
1222 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1223 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1224 the only users from ...
1225 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1226 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1227 (HAVE_VOLATILE): Remove, unused.
1229 Convert more function definitions to standard C.
1230 * xdisp.c (window_box_edges, handle_single_display_spec)
1231 (display_string): Convert definition to standard C.
1232 * scroll.c (do_direct_scrolling, scrolling_1):
1233 * dispnew.c (allocate_matrices_for_frame_redisplay)
1234 (mirrored_line_dance):
1235 * coding.c (code_convert_string):
1236 * charset.c (map_charset_chars):
1237 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1238 (Fregister_ccl_program, Fregister_code_conversion_map):
1239 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1240 (head_table): Make static and const.
1242 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1244 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1245 (PROFILING_LDFLAGS): Set from substitution.
1246 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1249 2010-07-12 Kenichi Handa <handa@m17n.org>
1251 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1252 (shortlisp): Likewise.
1254 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1256 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1257 of FONT_ENTITY_INDEX.
1258 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1259 property, get the property value dynamically.
1260 (Ffont_put): Accept font-entity and font-object too.
1261 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1262 return value changed.
1263 (syms_of_font): Adjusted for the above change.
1265 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1267 * blockinput.h: Remove obsolete comment.
1269 * lisp.h: Include <stddef.h>.
1270 (OFFSETOF): Don't define.
1271 (VECSIZE): Use offsetof instead of OFFSETOF.
1272 (PSEUDOVECSIZE): Likewise.
1273 * process.c (conv_sockaddr_to_lisp): Likewise.
1274 * alloc.c: Don't include <stddef.h>.
1275 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1277 * process.c: Remove obsolete comment.
1279 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
1281 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1283 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1285 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1287 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1288 * editfns.c (Fuser_full_name, Fformat): Likewise.
1289 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1290 * fileio.c (Ffile_symlink_p): Likewise.
1291 * filelock.c (current_lock_owner): Likewise.
1292 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1293 * fontset.c (fontset_pattern_regexp): Likewise.
1294 * lread.c (read1): Likewise.
1295 * sysdep.c (init_system_name): Likewise.
1296 * xfns.c (select_visual): Likewise.
1297 * s/hpux10-20.h (index, rindex): Don't define.
1298 * s/ms-w32.h (index): Likewise.
1299 * s/usg5-4.h: Likewise.
1301 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1303 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1304 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1305 (egetenv): Likewise.
1306 * doprnt.c (doprnt): Likewise.
1307 * editfns.c (set_time_zone_rule, format2): Likewise.
1308 * emacs.c (decode_env_path): Likewise.
1309 * eval.c (signal_error, error): Likewise.
1310 * insdel.c (replace_range_2): Likewise.
1311 * keyboard.c (cmd_error_internal): Likewise.
1312 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1313 * print.c (write_string, write_string_1, print_error_message):
1315 * vm-limit.c (warn_function, memory_warnings): Likewise.
1316 * xdisp.c (message1, message1_nolog, message_with_string)
1317 (vmessage, message, message_nolog): Likewise.
1318 * emacs.c: Remove duplicate declaration.
1319 * keyboard.h: Likewise.
1320 * lisp.h: Update prototypes.
1322 * eval.c: Fix indentation problem.
1324 * keyboard.c: Include "process.h"
1326 * eval.c: Remove obsolete noinline declaration.
1329 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
1331 * doprnt.c (doprnt): Take a va_list argument instead of count and
1333 * eval.c (error): Change to a standard-C variadic function.
1334 * xdisp.c (vmessage): Renamed from message, made static, and
1335 changed to take a va_list argument.
1336 (message): New variadic wrapper.
1337 (message_nolog): Now a variadic function, calling vmessage.
1338 * lisp.h: Include stdarg.h for va_list.
1339 (doprnt, error, message, message_nolog): Decls updated.
1341 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1343 * process.c (syms_of_process) <delete-exited-processes>: Define
1344 even if !subprocesses.
1345 (delete_exited_processes): Ditto.
1347 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1348 (delete_exited_processes): Don't define.
1350 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1352 * frame.c (make_frame): Initialize menu_bar_lines and
1353 tool_bar_lines members.
1354 (make_initial_frame, make_terminal_frame): Initialize
1355 menu_bar_lines using value of menu-bar-mode.
1357 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1359 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1361 * process.c: Reshuffle #include's. Condition some of the global
1362 and static variables on `subprocesses'.
1363 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1364 Leave only one implementation.
1365 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1366 (kill_buffer_processes, Flist_system_processes)
1367 (Fprocess_attributes, init_process, syms_of_process): Unify the
1368 implementations for with subprocesses and without them.
1370 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1372 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1373 correct size for Motif.
1374 (free_frame_menubar): Call x_set_window_size to update frame size.
1376 * xfns.c (x_window): Set borderWidth to 0 for pane and
1377 EmacsFrame. Frame size calculation is wrong otherwise.
1379 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
1381 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1382 allows to suppress errors when polling in Emacs' main loop.
1383 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1384 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1385 (Fdbus_method_error_internal, Fdbus_send_signal)
1386 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1387 (Fdbus_register_method): Use it. (Bug#6579)
1389 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1391 * alloc.c: Convert DEFUNs to standard C.
1459 * xsmfns.c: Likewise.
1461 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1463 * process.c (kbd_is_on_hold, hold_keyboard_input)
1464 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1466 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1468 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1469 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1472 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1474 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1477 Clean up include guards.
1478 * tparam.c: Remove include guards for config.h, string.h and code
1479 that assumes #ifndef emacs.
1487 Remove prefix-args.c
1488 * prefix-args.c: Remove file.
1489 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1490 * Makefile.in (temacs${EXEEXT}): Remove references to
1491 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1492 (mostlyclean): Remove reference to prefix-args.
1493 (prefix-args): Remove.
1495 Simplify cstart_of_data, start_of_code and related code.
1496 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1497 (start_of_data): Merge into start_of_data function.
1498 * sysdep.c (start_of_text): Remove. Move simplified versions of
1499 it in the only users: unexaix.c and unexec.c.
1500 (read_input_waiting): Remove local declaration of quit_char.
1501 (start, etext): Remove declarations.
1502 (start_of_data): Merge with the version in mem-limits.h and move
1504 * vm-limit.c (start_of_data): Merged and simplified version of the
1505 code formerly in mem-limits.h and sysdep.c.
1506 * unexec.c (start): New declaration, moved from sysdep.c.
1507 (start_of_text): Simplified version of the code formerly in sysdep.c.
1508 * unexaix.c (start_of_text): Simplified version of the code
1509 formerly in sysdep.c.
1510 * m/alpha.h (HAVE_TEXT_START): Remove.
1511 (TEXT_START): Move ...
1512 * unexalpha.c (TEXT_START): ... here.
1513 * s/hpux10-20.h (TEXT_START): Remove.
1514 * s/darwin.h (TEXT_START):
1515 * m/mips.h (TEXT_START):
1516 * m/macppc.h (HAVE_TEXT_START):
1517 * m/m68k.h (TEXT_START):
1518 * m/iris4d.h (TEXT_START):
1519 * m/intel386.h (TEXT_START):
1520 * m/ibmrs6000.h (TEXT_START):
1521 * m/ia64.h (HAVE_TEXT_START):
1522 * s/msdos.h (TEXT_START): Likewise.
1524 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1526 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1527 (overrun_check_free, xstrdup, allocate_string)
1528 (allocate_string_data, compact_small_strings, Fmake_string)
1529 (make_unibyte_string, make_multibyte_string)
1530 (make_string_from_bytes, make_specified_string, make_float)
1531 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1532 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1533 memcpy, memmove, memset, memcmp.
1534 * atimer.c (start_atimer, set_alarm): Likewise.
1535 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1536 (mmap_realloc, init_buffer_once): Likewise.
1537 * callint.c (Fcall_interactively): Likewise.
1538 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1539 (getenv_internal_1): Likewise.
1540 * casefiddle.c (casify_object): Likewise.
1541 * ccl.c (ccl_driver): Likewise.
1542 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1543 * charset.c (load_charset_map_from_file)
1544 (load_charset_map_from_file, load_charset_map_from_vector)
1545 (Fdefine_charset_internal): Likewise.
1546 * cm.c (Wcm_clear): Likewise.
1547 * coding.c (decode_eol, decode_coding_object)
1548 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1549 * data.c (Faset): Likewise.
1550 * dired.c (directory_files_internal, file_name_completion_stat):
1552 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1553 (clear_glyph_row, copy_row_except_pointers)
1554 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1555 (save_current_matrix, restore_current_matrix)
1556 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1557 (mirror_line_dance, scrolling_window): Likewise.
1558 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1560 * doprnt.c (doprnt): Likewise.
1561 * editfns.c (Fuser_full_name, make_buffer_string_both)
1562 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1563 * emacs.c (sort_args): Likewise.
1564 * eval.c (Fapply, Ffuncall): Likewise.
1565 * fileio.c (Ffile_name_directory, make_temp_name)
1566 (Fexpand_file_name, search_embedded_absfilename)
1567 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1568 (auto_save_error): Likewise.
1569 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1570 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1571 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1572 (Fmake_hash_table): Likewise.
1573 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1574 * ftfont.c (ftfont_text_extents): Likewise.
1575 * getloadavg.c (getloadavg): Likewise.
1576 * image.c (define_image_type, make_image, make_image_cache)
1577 (x_create_x_image_and_pixmap, xbm_image_p)
1578 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1579 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1580 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1581 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1582 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1583 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1585 * indent.c (scan_for_column, compute_motion): Likewise.
1586 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1587 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1588 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1589 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1590 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1591 (store_user_signal_events, menu_bar_items, tool_bar_items)
1592 (process_tool_bar_item, append_tool_bar_item)
1593 (read_char_minibuf_menu_prompt, read_key_sequence)
1594 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1596 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1598 * lisp.h (STRING_COPYIN): Likewise.
1599 * lread.c (Fload, read1, oblookup): Likewise.
1600 * msdos.c (Frecent_doskeys): Likewise.
1601 * nsfns.m (Fx_create_frame): Likewise.
1602 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1604 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1605 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1607 * nsmenu.m (ns_update_menubar): Likewise.
1608 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1609 * print.c (print_unwind, printchar, strout, print_string)
1610 (print_error_message): Likewise.
1611 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1612 (Fmake_network_process, Fnetwork_interface_list)
1613 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1614 (init_process): Likewise.
1615 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1616 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1618 * scroll.c (do_scrolling, do_direct_scrolling)
1619 (scrolling_max_lines_saved): Likewise.
1620 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1621 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1622 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1623 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1624 (emacs_set_tty): Likewise.
1625 * term.c (encode_terminal_code, calculate_costs)
1626 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1628 * termcap.c (tgetst1, gobble_line): Likewise.
1629 * termhooks.h (EVENT_INIT): Likewise.
1630 * tparam.c (tparam1): Likewise.
1631 * unexalpha.c (unexec): Likewise.
1632 * unexec.c (write_segment): Likewise.
1633 * unexmacosx.c (unexec_write_zero): Likewise.
1634 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1635 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1636 * w32font.c (w32font_list_family, w32font_text_extents)
1637 (w32font_list_internal, w32font_match_internal)
1638 (w32font_open_internal, compute_metrics, Fx_select_font):
1640 * w32menu.c (set_frame_menubar, add_menu_item)
1641 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1642 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1643 * w32uniscribe.c (uniscribe_list_family): Likewise.
1644 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1645 * window.c (make_window, replace_window, set_window_buffer)
1646 (Fsplit_window): Likewise.
1647 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1648 (add_to_log, message3, x_consider_frame_title)
1649 (append_space_for_newline, extend_face_to_end_of_line)
1650 (decode_mode_spec_coding, init_glyph_string): Likewise.
1651 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1652 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1653 (face_attr_equal_p, make_realized_face, make_face_cache)
1654 (free_realized_faces, lookup_named_face, smaller_face)
1655 (face_with_height, lookup_derived_face)
1656 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1657 (Finternal_set_font_selection_order, realize_default_face)
1658 (compute_char_face, face_at_buffer_position)
1659 (face_for_overlay_string, face_at_string_position, merge_faces):
1661 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1662 (Fx_window_property, x_create_tip_frame)
1663 (Fx_backspace_delete_keys_p): Likewise.
1664 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1665 (xfont_text_extents): Likewise.
1666 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1667 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1668 * xselect.c (x_queue_event, x_get_window_property)
1669 (receive_incremental_selection): Likewise.
1670 * xsmfns.c (x_session_check_input): Likewise.
1671 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1672 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1674 * character.h (BCOPY_SHORT): Removed.
1675 * config.in: Regenerate.
1676 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1677 * emacs.c (main) [PROFILING]: Don't declare
1678 dump_opcode_frequencies.
1679 * lisp.h (safe_bcopy): Remove declaration.
1680 (memset) [!HAVE_MEMSET]: Declare.
1681 (memcpy) [!HAVE_MEMCPY]: Likewise.
1682 (memmove) [!HAVE_MEMMOVE]: Likewise.
1683 (memcmp) [!HAVE_MEMCMP]: Likewise.
1684 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1685 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1687 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1688 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1689 (BCOPY_DOWNWARD_SAFE): Don't define.
1690 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1691 (memcpy) [!HAVE_MEMCPY]: Define.
1692 (memmove) [!HAVE_MEMMOVE]: Define.
1693 (memcmp) [!HAVE_MEMCMP]: Define.
1695 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1697 * process.c (kbd_is_on_hold): New variable.
1698 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1700 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1701 select on empty input mask.
1702 (init_process): Initialize kbd_is_on_hold to 0.
1704 * process.h (hold_keyboard_input, unhold_keyboard_input)
1705 (kbd_on_hold_p): Declare.
1707 * keyboard.c (input_available_signal): Declare.
1708 (kbd_buffer_nr_stored): New function.
1709 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1710 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1711 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1712 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1713 (tty_read_avail_input): If input is on hold, return.
1714 Don't read more that free slots in kbd_buffer (Bug#6571).
1716 2010-07-07 Eli Zaretskii <eliz@gnu.org>
1721 * w16select.c: Convert function definitions to ANSI C.
1723 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1724 Remove unused prototypes.
1726 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1728 * coding.c, sysdep.c: Convert some more functions to standard C.
1730 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1732 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1733 (encode_coding_object): Use SPECPDL_INDEX.
1734 (syms_of_coding): Use DOS_NT.
1736 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1738 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1740 Make the function member of Lisp_Subr use standard C prototypes.
1741 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1742 (DECL_ALIGN): Add a cast for the function.
1743 * eval.c (Feval, Ffuncall): Use the proper type for each type
1746 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
1748 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1749 fringe face id, so face-remapping-alist works (Bug#6091).
1751 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
1753 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1754 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1755 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1757 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1759 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1760 * lisp.h: Declare x_get_keysym_name.
1761 * keyboard.c (modify_event_symbol): Don't declare
1762 x_get_keysym_name here.
1764 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1766 * ecrt0.c: Revert conversion to standard C.
1768 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1770 * vm-limit.c (memory_warnings):
1771 * keyboard.c (modify_event_symbol):
1772 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1773 (round2, emacs_rint):
1774 * process.c (send_process, old_sigpipe): Convert function
1775 definitions and declarations to standard C.
1777 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
1779 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1780 * xdisp.c: Convert function definitions to standard C.
1782 * cm.c (cmputc): Arg C is now int, not char.
1783 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1785 2010-07-05 James Cloos <cloos@jhcloos.com>
1787 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1789 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1790 _NET_WM_ICON_NAME atoms.
1792 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1793 and _NET_WM_ICON_NAME properties, too, matching what is
1794 done in the Gtk+ case.
1796 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1798 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1800 * xsmfns.c (SSDATA): New macro.
1801 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1802 passed to strlen/strcpy/strcat.
1803 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1804 7:th arg to XChangeProperty to (unsigned char *)
1806 * xsettings.c (something_changedCB, parse_settings)
1807 (apply_xft_settings): Reformat prototype.
1808 (something_changedCB, init_gconf): Remove unused variable i.
1809 (read_settings): Remove unused variable long_len.
1811 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1812 (xg_get_image_for_pixmap, create_dialog)
1813 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1814 (menuitem_highlight_callback, make_menu_item)
1815 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1816 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1817 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1818 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1819 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1820 (xg_tool_bar_item_expose_callback): Reformat prototype.
1821 (xg_update_menubar): GList *group => GSList *group.
1822 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1824 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1825 to GTK_IMAGE (wimage).
1827 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1829 * atimer.c: Use "" instead of <> for local includes for
1830 consistency with the rest of the code.
1832 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1833 * xrdb.c (get_system_name):
1834 * window.c (shrink_windows):
1835 * syntax.c (forw_comment):
1836 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1838 * mem-limits.h (start_of_data):
1839 * lread.c (readevalloop):
1840 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1841 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1842 * frame.c (x_get_focus_frame):
1843 * floatfns.c (fmod_float):
1844 * fileio.c (choose_write_coding_system):
1845 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1846 (malloc_initialize_hook, sort_args, synchronize_locale):
1847 * doprnt.c (doprnt):
1848 * dired.c (compile_pattern):
1849 * data.c (fmod_float):
1850 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1851 (map_char_table_for_charset):
1852 * charset.c (define_charset_internal):
1853 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1856 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1857 Stefan Monnier <monnier@iro.umontreal.ca>
1859 * lread.c (read1): Fix up last change to not mess up `c'.
1861 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1863 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1865 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1869 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
1870 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
1871 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1872 arg, as required by internal_condition_case_1.
1873 * print.c (strout): Use const char* for arg PTR.
1874 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1875 (analyse_first): Fix "const const".
1876 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
1877 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
1878 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
1880 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1882 * alloc.c: Convert function definitions to standard C.
1956 * xterm.c: Likewise.
1958 2010-07-03 Eli Zaretskii <eliz@gnu.org>
1960 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1961 frames other than the initial one. Fix reversal of colors when
1962 `reverse' is specified in the frame parameters. Call
1963 update_face_from_frame_parameter instead of
1964 internal-set-lisp-face-attribute. Initialize screen colors from
1965 initial_screen_colors[] when f->default_face_done_p is zero,
1966 instead of depending on being called with default-frame-alist as
1969 * xfaces.c (update_face_from_frame_parameter): Move out of
1970 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1971 with HAVE_WINDOW_SYSTEM.
1973 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1974 to menu-bar-mode, if not set in the frame parameters or in
1975 default-frame-alist.
1977 * w32console.c (sys_tputs): Adjust argument list to prototype in
1980 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
1982 * lisp.h (memory_warnings): Fix prototype.
1984 * cm.h (evalcost): Fix prototype.
1986 * cm.c (evalcost): Fix arg type.
1988 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1990 * term.c (term_clear_mouse_face, Fidentity):
1991 * syssignal.h (signal_handler_t):
1992 * lisp.h (memory_warnings):
1993 * coding.h (preferred_coding_system):
1995 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1997 2010-07-02 Eli Zaretskii <eliz@gnu.org>
1999 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2002 * msdos.h (load_pixmap): Don't define away.
2004 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2007 * atimer.h: Remove define for P_.
2009 * alloc.c: Remove __P and P_ from .c and .m files.
2071 * xterm.c: Likewise.
2073 Remove P_ and __P macros.
2074 * atimer.h: Remove P_ and __P macros.
2112 * xterm.h: Likewise.
2114 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2116 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2119 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2120 * syssignal.h: Remove code for Lynx, not supported anymore.
2121 * vm-limit.c: Remove unused code the depends on emacs not being
2122 defined and NO_LIM_DATA being defined.
2123 * mem-limits.h: Remove dead code.
2125 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2127 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2129 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2130 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2132 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2133 parameters, they are already absolute.
2135 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2136 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2138 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2140 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2141 Update FRAME_TOOLBAR_HEIGHT.
2143 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2144 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
2146 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
2148 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2149 check default-frame-alist.
2151 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2153 * process.c (create_process): Avoid using invalid file descriptors.
2155 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2157 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2159 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2160 Improve documentation. Return font regardless of use_system_font.
2161 (syms_of_xsettings): Improve documentation for font-use-system-font.
2163 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2165 * xfaces.c (realize_face): Garbage the frame if a face is removed
2168 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2170 * keyboard.c: Remove duplicate <setjmp.h>.
2171 (read_key_sequence): Remove volatile qualifiers.
2173 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2175 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2176 (struct glyph_row): New members left_fringe_offset and
2177 right_fringe_offset.
2179 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2181 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2182 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2184 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
2185 Take account of bitmap offset.
2186 (draw_window_fringes): Take account of window vscroll.
2187 (update_window_fringes): Likewise. Extend top-aligned top indicator
2188 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2189 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2190 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2192 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2194 * w32fns.c (Qtooltip): Declare.
2195 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2197 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2199 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2200 grab on just Press (Bug#6499).
2202 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
2204 * frame.c (Qtooltip): New var.
2205 (delete_frame): Use it. Fix faulty if statement. Don't update
2206 mode line for tooltip frames. Suggested by Martin Rudalics.
2208 * xfns.c (x_create_tip_frame):
2209 * w32fns.c (x_create_tip_frame): Use it.
2211 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
2213 * xftfont.c (xftfont_open): Check font width one by one also when
2216 * ftfont.c (ftfont_open): Ditto.
2218 2010-06-30 Glenn Morris <rgm@gnu.org>
2220 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2222 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2224 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2225 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2226 * s/darwin.h (SYSTEM_MALLOC):
2227 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2229 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2231 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2232 (ns_get_screen): Don't assign integer to f.
2233 (Fx_display_color_cells): Declarations before statements.
2235 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2237 * xfns.c (x_default_font_parameter): Remove got_from_system
2240 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2241 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2242 defines based on what configure finds.
2244 * xterm.c (XTflash): Use gtk_widget_get_window.
2245 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2246 gtk_adjustment_get_page_size.
2247 (handle_one_xevent): Use gtk_widget_get_mapped.
2248 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2251 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2253 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2254 HAVE_GTK_FILE_SELECTION_NEW.
2256 * gtkutil.c (xg_display_open, xg_display_close): Remove
2257 HAVE_GTK_MULTIDISPLAY, it is always defined.
2258 (xg_display_open): Return type is void.
2259 (gtk_widget_set_has_window)
2260 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2261 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2262 (gtk_adjustment_set_page_increment)
2263 (gtk_adjustment_get_step_increment): #define these if not found
2265 (remove_submenu): New define based on Gtk+ version.
2266 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2267 gtk_widget_get_window.
2268 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2269 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2270 (create_dialog): Use gtk_dialog_get_action_area and
2271 gtk_dialog_get_content_area.
2272 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2273 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2274 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2275 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2276 g_object_ref and g_object_unref.
2277 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2278 gtk_widget_get_sensitive.
2279 (xg_update_submenu): Use remove_submenu.
2280 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2281 properties instead to get old x and y position.
2282 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2283 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2284 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2285 (xg_get_tool_bar_widgets): New function.
2286 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2287 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2288 (toolbar_set_orientation): New #define based on if configure
2289 finds gtk_orientable_set_orientation.
2290 (xg_create_tool_bar): Call toolbar_set_orientation.
2291 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2292 instead of gtk_box_pack_start_defaults.
2294 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
2296 * cmds.c (Fdelete_backward_char): Move into Lisp.
2298 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2300 * s/freebsd.h (BSD4_2): Remove redundant definition.
2301 bsd-common.h defines it already.
2303 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
2305 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2306 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2307 tool-bar-mode, which are now set using these X resources at
2308 startup, to determine the defaults (Bug#2249).
2310 * w32fns.c (Fx_create_frame):
2311 * nsfns.m (Fx_create_frame): Likewise.
2313 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2315 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2317 * gtkutil.c (xg_update_scrollbar_pos):
2318 Avoid C99 mid-block variable declaration.
2320 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2322 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2324 * gtkutil.h (xg_show_scroll_bar): Remove.
2326 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2327 if height is less than scroll bar min size.
2328 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2330 * xfns.c (x_default_font_parameter): Try to open font from system
2331 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2333 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
2335 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2337 2010-06-20 Eli Zaretskii <eliz@gnu.org>
2339 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2340 most-positive-fixnum, be extra accurate when scrolling window
2341 start, to avoid missing the cursor line.
2343 2010-06-19 Eli Zaretskii <eliz@gnu.org>
2345 * xdisp.c (try_scrolling): Compute the limit for searching point
2346 in forward scroll from scroll_max, instead of an arbitrary limit
2347 of 10 screen lines. See
2348 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2350 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2353 2010-06-16 Glenn Morris <rgm@gnu.org>
2355 * editfns.c (Fbyte_to_string): Pacify compiler.
2357 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2359 * lread.c (read1): Phase out old-style backquotes a bit more.
2361 2010-06-12 Eli Zaretskii <eliz@gnu.org>
2363 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2366 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2368 * bidi.c (bidi_initialize): Remove explicit initialization of
2369 bidi_type_table; include biditype.h instead. Don't support
2370 entries whose second codepoint is zero. Initialize bidi_mirror_table.
2371 (bidi_mirror_char): Use bidi_mirror_table.
2373 * biditype.h: New file.
2375 * bidimirror.h: New file.
2377 * window.c (syms_of_window): Doc fix (bug#6409).
2379 2010-06-12 Romain Francoise <romain@orebokech.com>
2381 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2384 2010-06-10 Glenn Morris <rgm@gnu.org>
2386 * editfns.c (Fbyte_to_string): Pacify compiler.
2388 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2390 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2392 * alloc.c (Fmake_byte_code): Don't access undefined argument
2395 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2397 * xdisp.c (next_element_from_image): Ensure that after-strings are
2398 read the next time we hit handle_stop (Bug#1336).
2400 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2402 * lread.c (read1): Signal error if #s is not followed by paren.
2404 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2406 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2408 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2410 2010-06-15 Glenn Morris <rgm@gnu.org>
2412 * editfns.c (Fbyte_to_string): Pacify compiler.
2414 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2416 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2417 Check `object's type before accessing its guts.
2419 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2421 * s/usg5-4.h: Fix previous change.
2422 Suggested by Lawrence Mitchell <wence@gmx.li>
2424 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2426 * minibuf.c (Fall_completions): Add more checks.
2428 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2430 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2432 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2434 * lread.c (X_OK): Remove, unused.
2436 * dispnew.c: Remove obsolete comment.
2438 Remove INCLUDED_FCNTL.
2439 * xterm.c (INCLUDED_FCNTL):
2440 * callproc.c (INCLUDED_FCNTL):
2441 * alloc.c (INCLUDED_FCNTL):
2442 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2443 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2445 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2447 * window.c (Fselect_window): Move `record_buffer' up to the
2448 beginning of this function, so the buffer gets recorded
2449 even if the selected window does not change.
2450 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2452 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2454 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2455 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2457 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2459 Remove BSTRING related code, all platforms define it.
2460 * s/usg5-4.h (BSTRING): Remove definition.
2461 * s/template.h (BSTRING):
2462 * s/msdos.h (BSTRING):
2463 * s/ms-w32.h (BSTRING):
2464 * s/hpux10-20.h (BSTRING):
2465 * s/gnu-linux.h (BSTRING):
2466 * s/darwin.h (BSTRING):
2467 * s/cygwin.h (BSTRING):
2468 * s/bsd-common.h (BSTRING):
2469 * s/aix4-2.h (BSTRING): Likewise.
2470 * sysdep.c: Remove code depending on BSTRING not being defined.
2472 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2474 Remove obsolete macro BASE_LEADING_CODE_P.
2475 * character.h (BASE_LEADING_CODE_P): Remove.
2476 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2477 * buffer.c (Fset_buffer_multibyte):
2478 * indent.c (scan_for_column, compute_motion):
2479 * insdel.c (count_combining_before, count_combining_after):
2480 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2482 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2484 Turn `directory-sep-char' into a noop.
2486 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2487 (DIRECTORY_SEP): Define unconditionally.
2489 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2491 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2492 call dostounix_filename directly.
2494 * fileio.c (CORRECT_DIR_SEPS): Remove.
2495 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2496 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2497 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2498 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2500 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2501 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2503 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2505 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2508 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2510 * ccl.c (Fccl_program_p): Fix typo in docstring.
2512 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2514 Move UNEXEC definition to autoconf.
2515 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2516 * s/sol2-10.h (UNEXEC):
2517 * s/irix6-5.h (UNEXEC):
2518 * s/hpux10-20.h (UNEXEC):
2519 * s/gnu-linux.h (UNEXEC):
2520 * s/darwin.h (UNEXEC):
2521 * s/cygwin.h (UNEXEC):
2522 * s/bsd-common.h (UNEXEC):
2523 * s/aix4-2.h (UNEXEC):
2524 * m/alpha.h (UNEXEC): Likewise.
2525 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2527 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2529 Remove obsolete pre-unicode2 macros.
2530 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2531 * composite.c (composition_reseat_it):
2533 * fns.c (Ffillarray):
2534 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2535 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2537 2010-06-03 Juri Linkov <juri@jurta.org>
2539 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2540 (Fswitch_to_buffer): Remove unused variable `err'.
2542 2010-06-03 Glenn Morris <rgm@gnu.org>
2544 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2546 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2547 now that AH_BOTTOM does it.
2549 * m/hp800.h (HAVE_ALLOCA):
2550 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2552 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2553 Remove NOT_C_CODE tests, it is always true now.
2555 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2557 Fix config.h includes.
2565 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2568 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2570 * s/sol2-6.h: Remove obsolete comments.
2572 Remove unnecessary alloca.h includes.
2573 * keymap.c: Do not include alloca.h, config.h does that.
2574 * sysdep.c: Likewise. Do not define fwrite, not used.
2576 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2578 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2579 the HAVE_TERMIO where it belongs (bug#6149).
2581 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2583 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2586 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2588 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2589 state is always cached (bug#6306).
2591 2010-05-29 Eli Zaretskii <eliz@gnu.org>
2593 Fix cursor motion in bidi-reordered continued lines.
2594 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2595 only after finding point's row. Fix the logic. Rewrite the loop
2596 over continuation lines in bidi-reordered buffers. Return
2597 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2598 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2600 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
2602 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2604 2010-05-28 Kenichi Handa <handa@m17n.org>
2606 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2607 Don't sheck SPEC if it is nil.
2608 (font_list_entities): Call font_delete_unmatched if
2609 Vface_ignored_fonts is non-nil. (Bug#6287)
2611 2010-05-28 Glenn Morris <rgm@gnu.org>
2613 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2615 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2617 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2619 (internal_delete_file, Frename_file): Callers changed.
2620 (delete_by_moving_to_trash): Doc fix.
2621 (Fdelete_directory_internal): Don't move to trash.
2623 * callproc.c (delete_temp_file):
2624 * buffer.c (Fkill_buffer): Callers changed.
2626 * lisp.h: Update prototype.
2628 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2630 * xdisp.c (redisplay_window): After redisplay, check if point is
2631 still valid before setting it (Bug#6177).
2633 2010-05-27 Glenn Morris <rgm@gnu.org>
2635 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2636 Convert comments to Makefile format.
2638 * Makefile.in (bootstrap-clean): No more Makefile.c.
2640 2010-05-26 Glenn Morris <rgm@gnu.org>
2642 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2643 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2645 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2647 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2649 2010-05-26 Kenichi Handa <handa@m17n.org>
2651 * composite.c (composition_compute_stop_pos): Fix condition for
2654 2010-05-25 Glenn Morris <rgm@gnu.org>
2656 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2657 Move before TEMACS_LDFLAGS.
2658 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2659 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2661 * Makefile.in (NOT_C_CODE): No longer define.
2662 (config.h): No longer include.
2664 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2665 variables it may reference.
2667 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2668 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2670 2010-05-25 Kenichi Handa <handa@m17n.org>
2672 * dispextern.h (struct composition_it): New members rule_idx and
2675 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2676 that the character positions of IT point the last character of the
2677 current grapheme cluster.
2678 (next_element_from_composition): Don't change character positions
2680 (append_composite_glyph): Set glyph->charpos to
2683 * composite.c (autocmp_chars): Change the first argument to RULE,
2684 and try composition with RULE only.
2685 (composition_compute_stop_pos): Record the index number of the
2686 composition rule in CMP_IT->rule_idx.
2687 (composition_reseat_it): Call autocmp_chars repeatedly until the
2688 correct rule of the composition is found.
2689 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2690 is at the last character of the current grapheme cluster when
2691 CMP_IT->reversed_p is nonzero.
2693 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2695 * editfns.c (Fbyte_to_string): New function.
2697 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2699 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2700 Suggested by Masatake YAMATO <yamato@redhat.com>.
2702 2010-05-23 Eli Zaretskii <eliz@gnu.org>
2704 * dispextern.h (init_iterator): Sync prototype with changed definition.
2706 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2708 * s/netbsd.h: If terminfo is found, use it in preference to
2709 termcap. (Bug#6190) [Backport from trunk]
2711 2010-05-19 Eli Zaretskii <eliz@gnu.org>
2713 Redesign and reimplement bidi-aware edge positions of glyph rows.
2715 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2716 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2717 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2718 and maxpos members instead of start.pos and end.pos, respectively.
2720 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2721 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2722 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2723 (try_window_reusing_current_matrix, try_window_id):
2724 Use ROW->minpos rather than ROW->start.pos.
2725 (init_from_display_pos, init_iterator): Use EMACS_INT for
2726 character and byte positions.
2727 (find_row_edges): Rename from find_row_end. Accept additional
2728 arguments for minimum and maximum buffer positions seen by
2729 display_line for this row. Don't use iterator to find the
2730 position following the maximum one; instead, increment the
2731 position found by display_line directly. Fix logic; eol_pos
2732 should be tested before the rest. Handle the case of characters
2733 delivered from display vector (bug#6036). Fix tests related to
2734 it->method. Handle the truncated_on_right_p rows.
2735 (RECORD_MAX_MIN_POS): New macro.
2736 (display_line): Use it to record the minimum and maximum buffer
2737 positions for glyphs in the row being assembled. Record the
2738 position of the newline that terminates the line. If word wrap is
2739 in effect, restore minimum and maximum positions seen up to the
2740 wrap point, when iterator returns to it.
2741 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2742 row and cursor not already at point. Restore original pre-bidi
2743 code for unidirectional buffers.
2745 * dispnew.c (increment_row_positions, check_matrix_invariants):
2746 Increment and check row->start.pos and row->end.pos, in addition
2747 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2749 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2750 Display truncated_on_left_p and truncated_on_right_p flags.
2752 (pmtxrows): Display the ordinal number of each row. Don't display
2753 rows beyond the last one.
2755 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2756 it is not copied by bidi_copy_it.
2758 2010-05-22 Eli Zaretskii <eliz@gnu.org>
2760 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2763 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
2765 * image.c (Fimage_flush): Rename from image-refresh.
2767 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
2769 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2772 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2773 (clear_image_cache): If the number of cached images is unusually
2774 large, decrease the cache eviction delay (Bug#6230).
2776 2010-05-21 Glenn Morris <rgm@gnu.org>
2778 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2779 Move these rules to ns.mk.
2782 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2784 * Makefile.in (CANNOT_DUMP): New, set by configure.
2785 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2787 2010-05-20 Juri Linkov <juri@jurta.org>
2789 * fileio.c (Fdelete_file): Change interative spec to use
2790 `read-file-name' like in `find-file-read-args' where the default
2791 value is `default-directory' instead of `buffer-file-name'.
2792 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2794 2010-05-20 Kevin Ryde <user42@zip.com.au>
2796 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2797 (Voverriding_terminal_local_map, Vsystem_key_alist)
2798 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2800 2010-05-20 Glenn Morris <rgm@gnu.org>
2802 * Makefile.in (DEPDIR): New constant.
2803 (DEPFLAGS): Set with configure, not cpp.
2804 (MKDEPDIR): New, set by configure.
2805 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2806 (clean): Use $DEPDIR.
2807 (deps_frag): Include from configure.
2808 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2809 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2811 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2812 reallocation of the cache. (Bug#6210)
2814 2010-05-19 Glenn Morris <rgm@gnu.org>
2816 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2818 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2819 (GNULIB_VAR): Remove.
2820 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2822 * m/ibms390x.h (LINKER):
2823 * m/macppc.h (LINKER) [GNU_LINUX]:
2824 * s/aix4-2.h (ORDINARY_LINK):
2825 * s/cygwin.h (LINKER):
2826 * s/darwin.h (ORDINARY_LINK):
2827 * s/gnu.h (ORDINARY_LINK):
2828 * s/netbsd.h (LINKER):
2829 * s/usg5-4.h (ORDINARY_LINK):
2832 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2834 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
2836 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2837 prevent stack overflow if number of arguments is too large
2840 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
2842 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2844 2010-05-18 Glenn Morris <rgm@gnu.org>
2846 * s/gnu-linux.h: Combine two conditionals.
2848 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
2851 * Makefile.in (RALLOC_OBJ): New, set by configure.
2852 (rallocobj): Replace with the previous variable.
2853 (otherobj): Use $RALLOC_OBJ.
2855 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2856 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2858 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2859 (gmallocobj, vmlimitobj): Replace with previous two variables.
2860 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2862 2010-05-17 Glenn Morris <rgm@gnu.org>
2864 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2865 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2867 2010-05-16 Glenn Morris <rgm@gnu.org>
2869 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2871 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2873 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2876 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2877 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2879 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2880 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2881 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2882 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2883 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2885 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2886 Remove ${STARTFLAGS}, nothing ever sets it.
2888 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2890 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2892 2010-05-16 Glenn Morris <rgm@gnu.org>
2894 * Makefile.in (LIBX_BASE): Always define.
2896 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2898 * Makefile.in (LIBXT): Always define.
2900 2010-05-15 Glenn Morris <rgm@gnu.org>
2902 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
2904 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2905 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2907 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
2909 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
2910 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2912 * emacs.c (main): Initialize initial-environment and
2913 process-environment before generating from env, not after.
2915 Handle --version reasonably in CANNOT_DUMP configuration.
2916 * emacs.c (emacs_version, emacs_copyright): New string variables.
2917 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2918 (syms_of_emacs): Defvar them, and initialize them from the C
2920 (main): If initialization hasn't been done, print initial version
2921 info from the C strings, instead of starting an interactive session.
2923 2010-05-15 Eli Zaretskii <eliz@gnu.org>
2925 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2926 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2927 (bidi_paragraph_init): Remove redundant assertion that we are at
2928 the beginning of a line after call to bidi_find_paragraph_start.
2930 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2931 (syms_of_xdisp): Defsubr it.
2933 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2935 * Makefile.in: Fix MSDOS-related comments.
2937 2010-05-15 Glenn Morris <rgm@gnu.org>
2939 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2940 (really-lwlib, really-oldXMenu): Always define.
2941 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2943 * Makefile.in: Simplify cpp conditional.
2945 * Makefile.in (${ns_appdir}): Simplify using umask.
2947 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2949 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2951 * eval.c (specbind): Remove left-over duplicate test.
2952 Disallow let-binding frame-local vars. Add comment.
2954 2010-05-14 Eli Zaretskii <eliz@gnu.org>
2956 Make the cache of bidi iterator states dynamically allocated.
2957 * bidi.c (bidi_cache_shrink): New function.
2958 (bidi_init_it): Call it.
2959 (bidi_cache_iterator_state): Enlarge the cache if needed.
2961 * bidi.c (bidi_move_to_visually_next): Rename from
2962 bidi_get_next_char_visually. All callers changed.
2964 2010-05-14 Kenichi Handa <handa@m17n.org>
2966 * dispextern.h (struct composition_it): New member reversed_p.
2968 * composite.c (composition_compute_stop_pos): Search backward if
2970 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2971 Set CMP_IT->reversed_p.
2972 (composition_update_it): Pay attention to CMP_IT->reversed_p.
2974 * xdisp.c (set_iterator_to_next):
2975 Call composition_compute_stop_pos with negative ENDPOS if we are
2976 scanning backward. Call composition_compute_stop_pos if scan
2977 direction is changed.
2978 (next_element_from_buffer): Call composition_compute_stop_pos with
2979 negative ENDPOS if we are scanning backward.
2980 (next_element_from_composition): Pay attention to
2981 IT->cmp_it.reversed_p.
2983 2010-05-14 Kenichi Handa <handa@m17n.org>
2985 * font.c (font_range): Return the range for the font found at first.
2987 2010-05-14 Glenn Morris <rgm@gnu.org>
2989 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2991 * Makefile.in (mktime, X11, register): Move undefs to configure.
2993 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2994 (MSDOS_X_OBJ): New variable.
2995 (MSDOS_SUPPORT_REAL): New constant.
2996 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2997 (obj): Use MSDOS_X_OBJ.
2998 (lisp): Use MSDOS_SUPPORT as a variable.
3000 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3001 (GPM_MOUSE_SUPPORT): Now it's a constant.
3002 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3005 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
3006 (ns_appresdir): Remove, unused.
3008 * Makefile.in (SHELL): Move outside cpp section.
3010 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3012 2010-05-13 Glenn Morris <rgm@gnu.org>
3014 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3015 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3017 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3018 HAVE_WINDOW_SYSTEM must be too.
3020 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3021 (lisp): Remove WINNT_SUPPORT.
3023 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3024 Let configure set these variables (to empty) in this case as well.
3026 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3027 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3029 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3030 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3031 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3032 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3033 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
3034 the values output by configure.
3035 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3037 2010-05-12 Glenn Morris <rgm@gnu.org>
3039 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3040 (LINKER_WAS_SPECIFIED): Remove.
3042 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3043 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3044 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3045 * s/cygwin.h (LIB_GCC):
3046 * s/freebsd.h (LIB_GCC):
3047 * s/gnu-linux.h (LIB_GCC):
3048 * s/msdos.h (LIB_GCC):
3049 * s/netbsd.h (LIB_GCC):
3052 2010-05-11 Karel Klic <kklic@redhat.com>
3054 * ftfont.c: Fix incorrect parentheses of #if condition for
3055 definining M17N_FLT_USE_NEW_FEATURE.
3057 2010-05-11 Glenn Morris <rgm@gnu.org>
3059 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3060 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3062 2010-05-10 Eli Zaretskii <eliz@gnu.org>
3064 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3065 unibyte buffers. See
3066 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3068 2010-05-10 Glenn Morris <rgm@gnu.org>
3070 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3071 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3072 (LIBES): Use LIBS_SYSTEM as a variable.
3073 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3074 * s/aix4-2.h (LIBS_SYSTEM):
3075 * s/freebsd.h (LIBS_SYSTEM):
3076 * s/hpux10-20.h (LIBS_SYSTEM):
3077 * s/sol2-6.h (LIBS_SYSTEM):
3078 * s/unixware.h (LIBS_SYSTEM):
3081 * s/aix4-2.h (MAIL_USE_LOCKF):
3082 * s/bsd-common.h (MAIL_USE_FLOCK):
3083 * s/darwin.h (MAIL_USE_FLOCK):
3084 * s/gnu-linux.h (MAIL_USE_FLOCK):
3085 * s/irix6-5.h (MAIL_USE_FLOCK):
3086 * s/template.h (MAIL_USE_FLOCK):
3089 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
3091 * Version 23.2 released.
3093 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
3095 * composite.c (autocmp_chars): Save point as marker before calling
3096 auto-composition-function (Bug#5984).
3098 * lisp.h (restore_point_unwind): Add prototype.
3100 * fileio.c (restore_point_unwind): Remove static attribute.
3102 2010-05-08 Kenichi Handa <handa@m17n.org>
3104 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3105 new feature of libotf and m17n-flt.
3106 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3107 Call OTF_check_features even if no specific feature is given.
3108 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3109 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3110 that OUT is NULL. Use OTF_drive_gsub_with_log and
3111 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3113 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
3114 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3115 Setup mflt_enable_new_feature and mflt_try_otf.
3117 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3119 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3121 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3122 box and toolbar (Bug #6139).
3123 (xg_create_tool_bar): Remove comment (Bug #6139).
3124 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3125 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3127 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
3129 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3130 Update dependencies.
3132 2010-05-08 Eli Zaretskii <eliz@gnu.org>
3134 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3137 2010-05-08 Glenn Morris <rgm@gnu.org>
3139 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3141 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3142 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3143 (termcapobj): Replace with TERMCAP_OBJ.
3144 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3145 (LIBES): Use LIBS_TERMCAP as a variable.
3147 * s/freebsd.h (osreldate.h): No longer include, since this file
3148 does not use __FreeBSD_version any more.
3150 * s/aix4-2.h (TERMINFO):
3151 * s/cygwin.h (TERMINFO):
3152 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3153 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3154 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3155 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3156 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3157 * s/irix6-5.h (TERMINFO):
3158 * s/netbsd.h (LIBS_TERMCAP):
3159 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3160 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3161 * s/usg5-4.h (TERMINFO):
3164 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3166 * eval.c (unbind_to): Don't unbind a local binding into the global
3167 binding when the local binding disappeared. Inversely, don't unbind
3168 a global binding into a newly created local binding.
3169 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3170 can specify the frame to use, when applicable. Adjust callers.
3172 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
3173 Stefan Monnier <monnier@iro.umontreal.ca>
3175 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3177 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3179 * w32fns.c: Include w32.h.
3180 (Fw32_shell_execute): Decode the error message before passing it
3181 to `error'. (Bug#6126)
3183 * msdos.c (dos_set_window_size):
3184 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3185 instead of `XSYMBOL (foo)->value'.
3187 2010-05-07 Eli Zaretskii <eliz@gnu.org>
3189 Fix the MS-DOS build, broken by autoconfiscation.
3191 * Makefile.in: Don't use Make-style comments past the "start of
3193 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3195 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3196 edited directly by msdos/sed1v2.inp).
3198 2010-05-07 Glenn Morris <rgm@gnu.org>
3200 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3201 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3202 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3203 move out of cpp section.
3204 * s/freebsd.h (LD_SWITCH_SYSTEM):
3205 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3206 * s/netbsd.h (LD_SWITCH_SYSTEM):
3207 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3209 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3211 Define LIB_STANDARD and START_FILES using autoconf.
3212 * s/usg5-4.h (LIB_STANDARD):
3213 * s/netbsd.h (START_FILES):
3214 * s/irix6-5.h (LIB_STANDARD):
3215 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3216 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3217 * s/freebsd.h (START_FILES):
3218 * s/darwin.h (START_FILES):
3219 * s/cygwin.h (START_FILES):
3220 * s/aix4-2.h (LIB_STANDARD):
3221 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3222 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3225 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3227 Remove NEED_BSDTTY and NEED_UNISTD_H.
3228 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3229 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3230 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3231 <sys/ptyio.h> and <unistd.h>.
3233 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3235 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3236 * s/gnu.h (START_FILES): Remove empty definition.
3238 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3240 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3242 2010-05-06 Glenn Morris <rgm@gnu.org>
3244 * Makefile.in (CPP, LN_S): Remove unused variables.
3246 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3248 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3250 2010-05-05 Lawrence Mitchell <wence@gmx.li>
3252 * m/sparc.h: Fix typo in earlier change.
3254 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3257 * eval.c (Fdefvaralias): Remove unintended nested if.
3258 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3260 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
3262 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3264 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3267 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3268 * s/gnu-linux.h (BSD_PGRPS): Remove.
3269 * term.c (dissociate_if_controlling_tty):
3270 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3271 (init_sys_modes, reset_sys_modes):
3273 * callproc.c (Fcall_process, child_setup): Remove code depending
3276 Remove POSIX_SIGNALS.
3277 * s/usg5-4.h (POSIX_SIGNALS):
3278 * s/netbsd.h (POSIX_SIGNALS):
3279 * s/msdos.h (POSIX_SIGNALS):
3280 * s/ms-w32.h (POSIX_SIGNALS):
3281 * s/hpux11.h (POSIX_SIGNALS):
3282 * s/gnu.h (POSIX_SIGNALS):
3283 * s/gnu-linux.h (POSIX_SIGNALS):
3284 * s/freebsd.h (POSIX_SIGNALS):
3285 * s/darwin.h (POSIX_SIGNALS):
3286 * s/cygwin.h (POSIX_SIGNALS):
3287 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3289 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3290 * process.c (create_process):
3292 * sysdep.c (wait_for_termination, init_signals):
3293 * process.c (create_process):
3294 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3295 remove all code that assumes the contrary.
3297 2010-05-04 Glenn Morris <rgm@gnu.org>
3299 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3301 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3302 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3303 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3304 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3305 LD_SWITCH_SYSTEM_tmp.
3306 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3307 New variables, set by configure.
3309 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3310 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3311 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3312 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3313 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3315 * s/aix4-2.h (C_SWITCH_SYSTEM):
3316 * m/alpha.h (C_SWITCH_MACHINE):
3317 Move to configure.in.
3318 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3319 New variables, set by configure.
3320 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3321 $c_switch_machine and $c_switch_system.
3323 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3325 * s/hpux10-20.h (LIB_STANDARD): New definition.
3326 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3327 on it, not used anymore.
3329 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
3331 * eval.c (internal_condition_case_n): Rename from
3332 internal_condition_case_2.
3333 (internal_condition_case_2): New function.
3335 * xdisp.c (safe_call): Use internal_condition_case_n.
3337 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3338 (internal_delete_file, Frename_file): Callers changed.
3340 * buffer.c (Fkill_buffer):
3341 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3343 * lisp.h: Update prototypes.
3345 2010-05-03 Glenn Morris <rgm@gnu.org>
3347 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3348 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3349 (LIBXT): Set with configure, not cpp.
3351 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3353 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3355 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3356 The FreeBSD is not needed, the default works, Solaris version is
3357 not needed, and the remaining case is not supported by configure.
3359 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3361 * xsmfns.c (CHDIR_OPT): New define.
3362 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3365 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3368 * emacs.c (USAGE1): Mention --chdir.
3369 (main): Handle --chdir.
3370 (standard_args): Add --chdir.
3371 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3374 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3376 Remove LD_SWITCH_MACHINE.
3377 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3378 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3381 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3382 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3385 * m/ibmrs6000.inp: Remove file, unused.
3386 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3387 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3389 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3391 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3394 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3396 Emulate POSIX_SIGNALS on MS-Windows.
3398 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3399 (SIG_SETMASK, SIG_UNBLOCK): Define.
3401 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3402 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3403 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3405 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3408 Miscellaneous fixes of bidi display.
3410 * xdisp.c (find_row_end): New function, refactored from display_line.
3411 (display_line): Use it.
3412 (extend_face_to_end_of_line): In almost-filled rows, extend only
3413 if the row is R2L and not continued.
3414 (display_line): Fix prepending of truncation glyphs to R2L rows.
3415 Preserve overlay and string info in row->end.
3416 (insert_left_trunc_glyphs): Support addition of left truncation
3418 (set_cursor_from_row): Don't place cursor on the vertical border
3419 glyph between adjacent windows. Fix a crash when a display string
3420 is continued to the next line. Don't return zero if cursor was
3421 found by `cursor' property of a display string.
3422 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3423 test for that explicitly.
3425 2010-05-01 Glenn Morris <rgm@gnu.org>
3427 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3429 (OTHER_OBJ): Remove.
3430 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3431 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3433 2010-05-01 Karel Klíč <kklic@redhat.com>
3435 * fileio.c (Ffile_selinux_context): Context functions may return null.
3437 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3439 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3441 2010-04-30 Glenn Morris <rgm@gnu.org>
3443 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3444 (OTHER_OBJ): Define as a separate variable, for clarity.
3446 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3448 * xsettings.c: include limits.h and update file comment.
3450 2010-04-30 Glenn Morris <rgm@gnu.org>
3452 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3453 Set with configure, not cpp.
3454 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3456 * Makefile.in (mallocobj): Remove.
3457 (otherobj): Simplify using @OTHER_OBJ@.
3459 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3460 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3461 Don't bother making nsgui.h dependency platform-specific.
3463 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3465 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3467 * process.c (read_process_output, exec_sentinel): Don't burp if the
3468 sentinel/filter kills the current buffer (bug#6060).
3470 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3471 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3472 Remove unused var `args'.
3473 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3474 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3475 * doc.c (store_function_docstring): Use XSETCAR.
3477 2010-04-28 Glenn Morris <rgm@gnu.org>
3479 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3480 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3482 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3484 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3485 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3487 * Makefile.in (FONT_OBJ): New, set by configure.
3488 (FONT_DRIVERS): Use $FONT_OBJ.
3490 * Makefile.in (LIBXMU): Set with configure, not cpp.
3491 * s/aix4-2.h (LIBXMU):
3492 * s/hpux10-20.h (LIBXMU):
3493 Remove definition, now set in configure.
3495 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3497 * m/amdx86-64.h [i386]: Move this test to configure.in.
3499 2010-04-27 Glenn Morris <rgm@gnu.org>
3501 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3502 * s/unixware.h (NEED_LIBW): Remove definition.
3504 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3505 (TOOLKIT_LIBW): New, set by configure.
3506 (@X_TOOLKIT_TYPE@): No longer define it.
3508 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3509 (MOTIF_LIBW): Set with configure, not cpp.
3510 * s/aix4-2.h (LIB_MOTIF):
3511 * s/gnu-linux.h (LIB_MOTIF):
3512 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3514 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3517 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3518 (obj): Use autoconf for unexec instead of cpp.
3519 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3520 definitions and undefs. Inline definitions in the only user.
3521 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3523 2010-04-27 Glenn Morris <rgm@gnu.org>
3525 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3526 since the defaults (set by the system file) are fine in most cases.
3527 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3528 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3529 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3530 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3531 Remove definitions, since they are set correctly in s/gnu-linux.h.
3532 * s/freebsd.h (START_FILES, LIB_STANDARD):
3533 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3534 * s/hpux10-20.h (START_FILES):
3535 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3536 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3538 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3539 (MOTIF_LIBW): Use $LIBXP.
3540 (otherobj): Use $WIDGET_OBJ.
3542 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3544 * Makefile.in (LIBS_MACHINE): Remove, unused.
3546 Use autoconf instead of cpp for LIB_MATH.
3547 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3548 * s/cygwin.h (LIB_MATH): Likewise.
3549 * Makefile.in (LIB_MATH): Do not define with cpp.
3550 (LIBES): Use autoconf for LIB_MATH.
3552 2010-04-26 Kenichi Handa <handa@m17n.org>
3554 * composite.c (Ffind_composition_internal): Fix the return value
3555 for an automatic composition.
3557 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3559 Remove all NO_ARG_ARRAY uses.
3560 * fns.c (concat2, concat3, nconc2):
3561 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3562 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3563 * m/xtensa.h (NO_ARG_ARRAY):
3564 * m/template.h (NO_ARG_ARRAY):
3565 * m/sparc.h (NO_ARG_ARRAY):
3566 * m/sh3.h (NO_ARG_ARRAY):
3567 * m/mips.h (NO_ARG_ARRAY):
3568 * m/macppc.h (NO_ARG_ARRAY):
3569 * m/iris4d.h (NO_ARG_ARRAY):
3570 * m/intel386.h (NO_ARG_ARRAY):
3571 * m/ibms390x.h (NO_ARG_ARRAY):
3572 * m/ibms390.h (NO_ARG_ARRAY):
3573 * m/ibmrs6000.h (NO_ARG_ARRAY):
3574 * m/ia64.h (NO_ARG_ARRAY):
3575 * m/hp800.h (NO_ARG_ARRAY):
3576 * m/arm.h (NO_ARG_ARRAY):
3577 * m/amdx86-64.h (NO_ARG_ARRAY):
3578 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3580 2010-04-25 Eli Zaretskii <eliz@gnu.org>
3582 * xdisp.c (display_line): Don't assume 2nd call to
3583 get_next_display_element cannot return zero. (Bug#6030)
3584 (iterate_out_of_display_property): New function, body from pop_it.
3587 2010-04-24 Glenn Morris <rgm@gnu.org>
3589 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3590 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3591 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3592 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3594 2010-04-24 Eli Zaretskii <eliz@gnu.org>
3596 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3597 use `get_next_display_element' and `set_iterator_to_next' to
3598 advance to the next character, when looking for the character that
3599 begins the next row.
3601 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3602 definition of "struct Lisp_Symbol".
3604 2010-04-24 Glenn Morris <rgm@gnu.org>
3606 * Makefile.in (CRT_DIR): New variable, set by configure.
3607 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3608 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3610 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3612 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3614 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3616 Remove redundant flags.
3617 * s/freebsd.h (C_SWITCH_SYSTEM):
3618 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3619 * s/netbsd.h (C_SWITCH_SYSTEM):
3620 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3623 Simplify m/intel386.h.
3624 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3626 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3627 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3628 the only user: s/unixware.h.
3629 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3631 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3632 moved here from m/intel386.h.
3634 * m/mips.h: Remove #if 0 code.
3636 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3638 Fix display of composed characters from L2R scripts in bidi buffers.
3639 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3640 After advancing IT past the composition, resync the bidi iterator
3641 with IT's position. (Bug#5977)
3643 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3645 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3646 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3648 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3650 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3652 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3654 Support `display' text properties and overlay strings in bidi buffers.
3655 * xdisp.c (pop_it): When the stack is popped after displaying
3656 from a string, bidi-iterate to exit from the text portion covered
3657 by the `display' property or overlay. (Bug#5988, bug#5920)
3659 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3661 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3662 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3664 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3665 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3667 Simplify STARTFILES definition.
3668 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3669 relying on Makefile.in to define it.
3670 * s/cygwin.h (START_FILES): Likewise.
3671 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3673 Clean up Solaris code.
3674 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3675 (LIB_MOTIF): Remove, configure takes care of this.
3676 (NOT_USING_MOTIF): Remove, unused.
3677 * xrdb.c: Remove #if 0-ed #include.
3678 (SYSV): Remove conditional for old SysV.
3679 * sysdep.c (closedir): Remove conditional code for Solaris,
3680 Solaris has closedir.
3682 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3684 * xsettings.c (read_and_apply_settings): Check if current_font is
3685 NULL before strcmp (Bug#6001).
3687 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3689 Clean up HP-UX files.
3690 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3691 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3692 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3693 * s/hpux10-20.h: ... to the only user, here.
3695 2010-04-21 Eli Zaretskii <eliz@gnu.org>
3697 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3698 use buffer-local values of paragraph-start and paragraph-separate.
3699 <paragraph_start_re, paragraph_separate_re>: Rename from
3700 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3703 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3705 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3706 current_tool_bar_style are new.
3707 (store_config_changed_event): Rename from store_font_changed_event.
3708 (XSETTINGS_TOOL_BAR_STYLE): New define.
3709 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3710 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3712 (something_changedCB): store_font_changed_event is now
3713 store_config_changed_event.
3714 (parse_settings): Rename from parse_xft_settings. Read
3715 non-xft xsettings outside #ifdef HAVE_XFT.
3716 (read_settings): Renamed from read_xft_settings.
3717 (apply_xft_settings): Take current settings as parameter. Do not
3718 call read_(xft)_settings.
3719 (read_and_apply_settings): New function.
3720 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3721 read_and_apply_settings if there are settings to be read.
3722 (init_xsettings): Renamed from init_xfd_settings.
3723 Call read_and_apply_settings unconditionally.
3724 (xsettings_initialize): Call init_xsettings.
3725 (Ftool_bar_get_system_style): New function.
3726 (syms_of_xsettings): Define Qmonospace_font_name and
3727 Qtool_bar_style. Initialize current_tool_bar_style to nil.
3728 defsubr Stool_bar_get_system_style. Fprovide on
3730 Move misplaced HAVE_GCONF
3732 * xsettings.h (Ftool_bar_get_system_style): Declare.
3734 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3735 Qtext, Qboth, Qboth_horiz are new.
3736 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3737 Vtool_bar_style, tool_bar_max_label_size.
3739 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3741 * keyboard.c: QClabel is new.
3742 (parse_tool_bar_item): Take out QClabel from tool bar items.
3743 Try to construct a label if ther is no QClabel.
3744 (syms_of_keyboard): Intern :label as QClabel.
3746 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3747 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3750 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3753 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3754 (xg_make_tool_item, xg_show_toolbar_item): New function.
3755 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3756 Call xg_make_tool_item to make a tool bar item.
3757 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3759 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3760 into account for toolbars.
3762 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3764 * data.c (make_blv): Declarations before code (Bug#5993).
3766 2010-04-21 Glenn Morris <rgm@gnu.org>
3768 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3769 Define using autoconf, not cpp.
3770 (LIBXSM): New variable, set by autoconf.
3771 (LIBXT): Use $LIBXSM.
3773 2010-04-21 Dan Nicolaescu <local_user@dannlt>
3775 Remove NOMULTIPLEJOBS, unused.
3776 * s/template.h (NOMULTIPLEJOBS):
3777 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3779 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3780 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3781 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3782 detects -znocombreloc and passes it to the linker
3783 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3785 2010-04-21 Glenn Morris <rgm@gnu.org>
3787 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3789 2010-04-21 Karel Klíč <kklic@redhat.com>
3791 * Makefile.in (LIBSELINUX_LIBS): New.
3792 (LIBES): Add $LIBSELINUX_LIBS.
3793 * eval.c, lisp.h (call7): New function.
3794 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3795 (Ffile_selinux_context, Fset_file_selinux_context):
3797 (Fcopy_file): New parameter preserve-selinux-context.
3798 (Frename_file): Preserve selinux context when renaming by copy-file.
3800 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
3801 Eli Zaretskii <eliz@gnu.org>
3803 Don't depend on cm.c or termcap.c on Windows, use stubs.
3804 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3805 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3806 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3807 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3808 (sys_tputs, sys_tgetstr): New stubs.
3809 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3810 (tputs, tgetstr): New; define to sys_*.
3812 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
3814 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3816 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3818 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3819 Just signal a warning rather than an error when inside a let.
3820 (Fmake_variable_frame_local): Add the same test.
3822 * font.c (syms_of_font): Make the style table vars read-only.
3824 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3825 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3827 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3829 2010-04-20 Eli Zaretskii <eliz@gnu.org>
3831 Fix R2L paragraph display on TTY.
3833 * xdisp.c (unproduce_glyphs): New function.
3834 (display_line): Use it when produced glyphs are discarded from R2L
3836 (append_composite_glyph): In R2L rows, prepend the glyph rather
3839 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3840 rather than append it. Set up the resolved_level and bidi_type
3841 attributes of the appended glyph.
3842 (produce_special_glyphs): Mirror the backslash continuation
3843 character in R2L lines.
3845 Implement display of R2L paragraphs in GUI sessions.
3847 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3848 append_stretch_glyph.
3849 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3850 off-by-one error in computing x at end of text in the row.
3851 (append_stretch_glyph): In reversed row, prepend the glyph rather
3852 than append it. Set resolved_level and bidi_type of the glyph.
3853 (extend_face_to_end_of_line): If the row is reversed, prepend a
3854 stretch glyph whose width is such that the rightmost glyph will be
3855 drawn at the right margin of the window. Fix off-by-one error on
3856 TTY frames in testing whether a line needs face extension. Fix
3857 face extension at ZV. If this is the last glyph row, use
3858 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3860 (set_cursor_from_row, display_line): Use
3861 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3862 row->continuation_lines_width.
3863 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3864 are at ZV. Fixes a crash when reseated to ZV by
3865 try_window_reusing_current_matrix.
3866 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3867 which happens with R2L glyph rows. Fixes a crash when inserting a
3868 character at end of an R2L line.
3869 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3870 treat them as having zero-width characters. Improve comments.
3871 Don't reverse pos_before and pos_after for reversed glyph rows.
3872 Set cursor.x to negative value when the cursor might be on the
3874 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3875 left fringe, not the right one.
3876 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3877 (erase_phys_cursor): For reversed cursor_row, support cursor on
3880 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3881 of continuation indicators on the fringes.
3882 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3885 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3886 draw cursor on the left fringe.
3888 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3889 cursor on the left fringe.
3891 * dispnew.c (update_text_area): Handle reversed desired rows when
3892 the cursor is on the left fringe.
3893 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3894 below, not by 0, for when the cursor is on the left fringe.
3896 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3898 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3899 widget is a scrollbar.
3901 2010-04-20 Kenichi Handa <handa@m17n.org>
3903 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3904 only when the arg CHARSET_LIST is nil.
3906 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3908 Make variable forwarding explicit rather the using special values.
3909 Basically, this makes the structure of buffer-local values and object
3910 forwarding explicit in the type of Lisp_Symbols rather than use
3911 special Lisp_Objects for that. This tends to lead to slightly more
3912 verbose code, but is more C-like, simpler, and makes it easier to make
3913 sure we handled all cases, among other things by letting the compiler
3915 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3916 Removing forwarding objects.
3917 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3918 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3919 explicit rather than hiding them inside Lisp_Object "values".
3920 (XFWDTYPE): New macro.
3921 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3922 (XBUFFER_LOCAL_VALUE): Remove.
3923 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3924 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3925 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3926 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3927 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3928 Remove the Lisp_Misc_* header.
3929 (struct Lisp_Buffer_Local_Value): Redefine.
3930 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3931 (struct Lisp_Misc_Any): Add filler to get the right size.
3932 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3934 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3935 (DEFVAR_KBOARD): Allocate a forwarding object.
3936 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3937 (let_shadows_global_binding_p): New function.
3938 (union Lisp_Val_Fwd): New type.
3939 (make_blv): New function.
3940 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3941 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3942 (swap_in_symval_forwarding, find_symbol_value, Fset)
3943 (let_shadows_buffer_binding_p, set_internal, default_value)
3944 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3945 (Fkill_local_variable, Fmake_variable_frame_local)
3946 (Flocal_variable_p, Flocal_variable_if_set_p)
3947 (Fvariable_binding_locus):
3948 * xdisp.c (select_frame_for_redisplay):
3949 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3950 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3951 * frame.c (store_frame_param):
3952 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3953 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3955 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3956 (clone_per_buffer_values): Only adjust markers into the current buffer.
3957 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3958 (Fbuffer_local_value, set_buffer_internal_1)
3959 (swap_out_buffer_local_variables):
3960 Adapt to the new symbol value structure.
3961 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3962 (defvar_per_buffer): Take a new arg for the fwd object.
3963 (buffer_lisp_local_variables): Return a proper alist (different fix
3965 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3966 (Fgarbage_collect): Don't handle buffer_defaults specially.
3967 (mark_object): Handle new symbol value structure rather than the old
3968 special Lisp_Misc_* objects.
3969 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3970 * term.c (set_tty_color_mode):
3971 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3972 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3973 a buffer_local_flags.
3974 * print.c (print_object): Get rid of impossible forwarding objects.
3976 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3978 * bidi.c (bidi_get_type, bidi_get_category)
3979 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
3980 (bidi_type_of_next_char, bidi_level_of_next_char):
3981 Declare static. Use `INLINE' rather than `inline'.
3983 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
3985 * dired.c (Ffile_attributes): Fix typo in docstring.
3987 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3989 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3990 NSInteger (Bug#5811).
3992 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3994 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3995 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3997 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3999 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4001 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
4003 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4004 terminal frames (Bug#5837).
4006 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4008 * .gdbinit (xsubchartable): New command.
4010 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4012 * xdisp.c (display_line): Don't write beyond the last glyph row in
4013 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
4014 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4016 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4018 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4020 * alloc.c (Fpurecopy): Hash-cons if requested.
4021 (syms_of_alloc): Update purify-flag docstring.
4023 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4025 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4026 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4028 2010-04-17 Eli Zaretskii <eliz@gnu.org>
4030 Fix a crash when an NSM character is inserted at BEGV.
4032 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4033 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4034 NEUTRAL_B or UNKNOWN_BT.
4036 2010-04-16 Eli Zaretskii <eliz@gnu.org>
4038 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4039 other rows with cursor unless they are different from this row and
4040 this row is part of a continued line. (Bug#5943)
4042 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4044 * s/freebsd.h: Restore osreldate.h include.
4045 Suggested by Naohiro Aota.
4047 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4049 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4051 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4053 * s/cygwin.h: Avoid linking against static libgcc.
4055 2010-04-15 Juri Linkov <juri@jurta.org>
4057 * window.c: Add Qscroll_command.
4058 Remove Vscroll_preserve_screen_position_commands.
4059 (window_scroll_pixel_based, window_scroll_line_based): Check the
4060 `scroll-command' property on the last command instead of searching
4061 the last command in Vscroll_preserve_screen_position_commands.
4062 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4063 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4064 (scroll-preserve-screen-position): Doc fix.
4065 (Vscroll_preserve_screen_position_commands): Remove variable.
4067 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4069 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4071 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4073 Reduce cpp use in Makefile.in.
4074 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4075 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4076 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4077 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4078 (CRT0_COMPILE): Remove, inline it in the only user.
4080 2010-04-14 Juri Linkov <juri@jurta.org>
4082 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4083 `scroll-up-command' and `M-v' from `scroll-down' to
4084 `scroll-down-command'.
4086 2010-04-14 Juri Linkov <juri@jurta.org>
4088 * window.c (Vscroll_preserve_screen_position_commands): New variable
4089 with the default value as the list of Qscroll_down and Qscroll_up.
4090 (window_scroll_pixel_based, window_scroll_line_based): Search the
4091 last command in the list Vscroll_preserve_screen_position_commands
4092 instead of comparing with Qscroll_up and Qscroll_down.
4094 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4096 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4097 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4100 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4103 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4105 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4107 Try to solve the problem of spurious EOF chars in long lines of text
4108 sent to interactive subprocesses.
4109 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4110 (system_process_attributes): Remove unused var `ttotal'.
4111 * process.c (send_process): Don't bother breaking long line with EOF
4112 chars when talking to ttys any more.
4113 (wait_reading_process_output): Output a warning when called in such
4114 a way that it could block without being interruptible.
4116 Try to detect file modification within the same second.
4117 * buffer.h (struct buffer): New field modtime_size.
4118 * buffer.c (reset_buffer): Initialize it.
4119 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4120 (Fverify_visited_file_modtime): Check it.
4121 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4122 (Fset_visited_file_modtime): Set (or clear) it.
4124 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4126 * process.c (status_notify): Remove unused var `ro'.
4128 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4130 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4131 more than one visual (Bug#5938).
4133 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4135 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4138 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4140 Remove C_SWITCH_SYSTEM_TEMACS.
4141 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4142 (malloc, realloc, free): Use emacs, not temacs for conditional
4145 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4146 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4148 Use autoconf, not cpp for some variables.
4149 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4150 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4151 (ALL_CFLAGS): Use them as make variables.
4152 (really-lwlib, really-oldXMenu): Do not pass them.
4154 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4156 * xmenu.c (apply_systemfont_to_dialog): New.
4157 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4159 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4161 * process.c (exec_sentinel): Preserve current-buffer.
4163 * process.c (read_process_output): Move the save-current-buffer to
4164 apply to both the filter and the non-filter branches.
4166 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4168 * s/msdos.h (UNEXEC): New definition.
4170 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4172 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4173 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4175 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4176 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4177 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4178 TRY_WINDOW_CHECK_MARGINS.
4180 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
4181 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4182 width only when it is for padding.
4184 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4186 * xfns.c (Fx_show_tip): Call try_window in a loop until
4187 fonts_changed_p is zero (Bug#2423).
4189 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4191 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4192 the end of TEXT_AREA. (Bug#5856)
4194 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4196 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4199 2010-04-08 Eli Zaretskii <eliz@gnu.org>
4201 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4202 prev.orig_type, for resolving type of NSM. (Bug#5858)
4204 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4206 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4207 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4209 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
4210 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4212 (syms_of_xsettings): Initialize current_font.
4213 defsubr Sfont_get_system_normal_font.
4215 * xsettings.h (Ffont_get_system_normal_font)
4216 (xsettings_get_system_normal_font): Declare.
4218 * xfns.c (extern xlwmenu_default_font): Remove.
4219 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4222 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4223 menu items in UTF-8.
4225 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4226 (apply_systemfont_to_menu): New function.
4227 (set_frame_menubar, create_and_show_popup_menu): Call
4228 apply_systemfont_to_menu.
4230 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4232 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4233 FRAME_LINE_TO_PIXEL_Y.
4235 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4238 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4240 Simplify code for HP machines.
4241 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4242 for GNU_LINUX, not needed.
4243 (UNEXEC, NEED_BSDTTY): Move definitions...
4244 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4246 * m/iris4d.h (UNEXEC): Move definition ...
4247 * s/irix6-5.h (UNEXEC): ... here.
4249 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4251 * xfns.c (set_machine_and_pid_properties): New function.
4252 (Fx_create_frame): Call set_machine_and_pid_properties.
4254 2010-04-03 Eli Zaretskii <eliz@gnu.org>
4256 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4257 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4258 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4260 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4261 in this function. (Bug#5703)
4263 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
4265 * nsterm.h: Fix last change.
4267 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4269 * m/intel386.h (NO_REMAP): Move definition ...
4270 * s/msdos.h (NO_REMAP): ... here.
4272 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4274 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4275 used on those platforms.
4277 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4279 Remove extern errno declarations.
4296 * buffer.c: Remove errno extern declarations.
4297 * s/netbsd.h (NEED_ERRNO): Remove.
4299 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4301 Remove all uses of LIBX11_SYSTEM.
4302 * Makefile.in (LIBX11_SYSTEM): Remove.
4303 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4306 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4308 Remove support for DJGPP v1.x (bug#5813).
4310 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
4312 * unexec.c (make_hdr, copy_text_and_data):
4313 * sysdep.c (wait_for_termination, sys_subshell):
4314 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
4315 (IT_set_terminal_modes, __write, _rename, gethostname)
4316 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4317 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4318 the value of __DJGPP__.
4319 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4322 * gmalloc.c (memalign):
4323 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4325 * dosfns.c (init_dosfns):
4326 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4328 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4330 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4331 string with `cursor' property comes from an `after-string'
4334 2010-04-01 Glenn Morris <rgm@gnu.org>
4336 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4337 Define as Makefile variables.
4338 (LIBX): Use above variables rather than directly using autoconf.
4340 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4342 Clean up BSD_SYSTEM use.
4345 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4346 for including <sys/ioctl.h>.
4347 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4348 code is only used for MSDOS.
4350 2010-03-31 Juri Linkov <juri@jurta.org>
4352 * image.c: Add `Qextension_data'.
4353 (syms_of_image): Initialize and staticpro `Qextension_data'.
4354 (Fimage_metadata): Rename from `Fimage_extension_data'.
4355 (gif_load): Put GIF extension data to the property
4358 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4360 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4361 * nsterm.h: Fix prototype.
4363 2010-03-31 Eli Zaretskii <eliz@gnu.org>
4365 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4366 trailing whitespace in right-to-left rows.
4368 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4370 Get rid of the direct_output optimizations.
4371 * keyboard.c (nonundocount): Remove extern declaration.
4372 (command_loop_1): Remove brittle optimisation for cheap and
4374 * xdisp.c (redisplay_internal): Don't bother checking
4375 redisplay_performed_directly_p any more.
4376 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4378 * dispnew.c (redisplay_performed_directly_p)
4379 (direct_output_for_insert, direct_output_forward_char):
4380 * dispextern.h (redisplay_performed_directly_p)
4381 (direct_output_for_insert, direct_output_forward_char): Remove.
4382 * cmds.c (nonundocount): Make it static.
4384 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
4386 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4388 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4390 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4391 invisible (Bug#5766).
4393 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4395 * xdisp.c (x_consider_frame_title, update_window_cursor):
4396 Remove HAVE_NS conditionals.
4397 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4399 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4400 filename for the title.
4401 (ns_set_doc_edited): Do nothing if the selected window is a
4404 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4407 * nsterm.m: Remove unneeded prototype.
4409 2010-03-31 Glenn Morris <rgm@gnu.org>
4411 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4412 in the DOC file. (Bug#5336)
4414 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4416 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4418 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4420 * window.c (keys_of_window): Remove redundant/overridden bindings.
4422 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4424 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4425 Restore original behavior when the iterator is not bidi_p.
4427 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4429 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4431 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4433 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4434 are outside the range of cached character positions.
4436 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4438 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4440 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4442 Initial support for bidirectional editing.
4444 * Makefile.in (obj): Include bidi.o.
4445 (bidi.o): New target.
4447 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4448 ($(BLD)/bidi.$(O)): New target.
4452 * buffer.h (struct buffer): New members bidi_display_reordering
4453 and bidi_paragraph_direction.
4455 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4456 and bidi_paragraph_direction.
4457 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4458 and bidi-paragraph-direction.
4459 (Fbuffer_swap_text): Swap the values of
4460 bidi_display_reordering and bidi_paragraph_direction.
4462 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4463 (bidi_type_t, bidi_dir_t): New types.
4464 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4465 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4466 prev_stop, base_level_stop, and eol_pos.
4467 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4468 (IT_STACK_SIZE): Enlarge to 5.
4469 (struct glyph_row): New member reversed_p.
4470 <string_buffer_position>: Update prototype.
4471 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4472 glyph_row if bidi_it.paragraph_dir == R2L.
4473 (struct glyph): New members resolved_level and bidi_type.
4475 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4476 processing or buffer's direction is right-to-left.
4477 (prepare_desired_row): Preserve the reversed_p flag.
4478 (row_equal_p): Compare the reversed_p attributes as well.
4480 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4481 bidi_init_it and set it->paragraph_embedding from the current
4482 buffer's value of bidi_paragraph_direction.
4483 (reseat_1): Initialize bidi_it.first_elt.
4484 (set_iterator_to_next, next_element_from_buffer): Use the value of
4485 paragraph_embedding to determine the paragraph direction.
4486 (set_iterator_to_next): Under bidi reordering, call
4487 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4488 new_paragraph flag is set in the bidi iterator.
4489 (next_element_from_buffer): If bidi_it.first_elt is set,
4490 initialize paragraph direction and find the first character to
4491 display in the visual order. If reseated to a middle of a line,
4492 prime the bidi iterator starting at the line's beginning. Handle
4493 the situation where we overstepped stop_charpos due to
4494 non-linearity of the bidi iteration. Likewise for when we back up
4495 beyond the previous stop_charpos. When moving across stop_charpos,
4496 record it in prev_stop.
4497 (display_line): Set row->end and it->start for the next row to the
4498 next character in logical order. Always extend reversed_p rows to
4499 the end of line, even if they end at ZV. Copy the reversed_p flag
4500 to the next glyph row. Keep calling set_cursor_from_row for
4501 bidi-reordered rows even if we already have a possible candidate
4502 for cursor position. Set row_end after all the row's glyphs have
4503 been produced, by looping over the glyphs. Record the position
4504 after EOL in it->eol_pos, and use it to set end_pos of the last
4505 row produced for a continued line.
4506 <Qright_to_left, Qleft_to_right>: New variables.
4507 (syms_of_xdisp): Initialize and staticpro them.
4508 (string_buffer_position_lim): New function.
4509 (string_buffer_position): Most of code moved to
4510 string_buffer_position_lim. Last argument and return value are
4511 now EMACS_INT; all callers changed.
4512 (set_cursor_from_row): Rewritten to support bidirectional text and
4513 reversed glyph rows.
4514 (text_outside_line_unchanged_p, try_window_id): Disable
4515 optimizations if we are reordering bidirectional text and the
4516 paragraph direction can be affected by the change.
4517 (append_glyph, append_composite_glyph)
4518 (produce_image_glyph, append_stretch_glyph): Set the
4519 resolved_level and bidi_type members of each glyph.
4520 (append_glyph): If the glyph row is reversed, prepend the glyph
4521 rather than appending it.
4522 (handle_stop_backwards): New function.
4523 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4524 (reseat): call handle_stop_backwards to recompute prev_stop and
4525 base_level_stop for the new position.
4526 (handle_invisible_prop): Under bidi iteration, skip invisible text
4527 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4528 paragraph direction. Update IT->prev_stop after skipping
4530 (move_it_in_display_line_to): New variables prev_method
4531 and prev_pos. Compare for strict equality in
4532 BUFFER_POS_REACHED_P.
4533 (try_cursor_movement): Examine all the candidate rows that occlude
4534 point, to return the best match. If rows are bidi-reordered
4535 and point moved backwards, back up to the row that is not a
4536 continuation line, and start looking for a suitable row from
4539 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4540 rather than appending, if the glyph_row's reversed_p flag is set.
4541 Set the resolved_level and bidi_type members of each glyph.
4543 * .gdbinit (pbiditype): New command.
4544 (pgx): Use it to display bidi level and type of the glyph.
4545 (pitx): Display some bidi information about the iterator.
4546 (prowlims, pmtxrows): New commands.
4548 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4550 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4551 * s/usg5-4.h (LIBS_DEBUG):
4552 * s/irix6-5.h (C_DEBUG_SWITCH):
4553 * s/gnu-linux.h (LIBS_DEBUG):
4554 * s/darwin.h (LIBS_DEBUG):
4555 * s/bsd-common.h (LIBS_DEBUG):
4556 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4557 * m/iris4d.h (LIBS_DEBUG):
4558 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4560 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4561 (LIBS_DEBUG): Remove definition.
4563 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4565 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4568 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4570 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4571 `connect' (Bug#5723).
4573 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4575 * process.c (Fmake_network_process): Call `select' for interrupted
4576 `connect' rather than creating new socket (Bug#5173).
4578 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
4580 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4582 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4584 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4586 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4588 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4591 2010-03-24 Kenichi Handa <handa@m17n.org>
4593 * coding.c (decode_coding_ccl): Fix previous change for the
4595 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4596 case that the output buffer is fullfilled.
4597 (encode_coding): Setup ccl program here.
4599 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4601 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4603 Simplify LIBS_MACHINE definitions.
4604 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4605 * m/iris4d.h (LIBS_MACHINE): Likewise.
4606 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4607 * s/aix4-2.h (LIBS_SYSTEM): ... here.
4608 * s/netbsd.h: Remove commented out code.
4610 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4612 Remove dead code dealing with POSIX_SIGNALS.
4613 * atimer.c (set_alarm): Remove dead code, all USG systems define
4615 * data.c (arith_error): Likewise.
4616 * keyboard.c (input_available_signal, handle_user_signal)
4617 (interrupt_signal): Likewise.
4618 * process.c (sigchld_handler): Likewise.
4619 (create_process): Remove if 0 code. Remove HPUX conditional when
4620 !defined (POSIX_SIGNALS), it cannot be true.
4621 * syssignal.h: Remove USG5_4 and USG conditionals when
4622 !POSIX_SIGNALS, they cannot be true.
4624 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4625 NO_SOCK_SIGIO, not used anymore.
4627 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4629 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4630 support vax on BSDs.
4632 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4633 * s/aix4-2.h (ORDINARY_LINK): ... here.
4635 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4637 * Makefile.in (abs_builddir): Define.
4638 (bootstrap_exe): Use it.
4639 (VPATH): Use $(srcdir) instead of @srcdir@.
4641 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4643 * Makefile.in (bootstrap_exe): Use an absolute name.
4645 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4647 Remove support for old GNU/Linux using libc version 5.
4648 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4649 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4651 Consolidate redundant definitions in s/bsd-common.h.
4652 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4653 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4654 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4655 doing it in all files that include this one.
4656 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4657 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4658 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4659 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4660 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4661 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4662 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4663 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4664 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4666 Consolidate redundant definitions.
4667 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4668 it's undefined in all files that include this one.
4669 (POSIX_SIGNALS): Define here instead of doing it in all files that
4671 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4672 (POSIX_SIGNALS): Do not define.
4673 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4674 (POSIX_SIGNALS): Do not define.
4675 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4676 (POSIX_SIGNALS): Do not define.
4678 Remove support for old UNIX System V systems.
4679 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4680 * s/usg-5-4-2.h: Remove.
4682 Remove support for Solaris on PPC and for old versions.
4683 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4684 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4685 that cancel each other.
4688 * s/sol2-5.h: Remove.
4689 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4690 (NO_REMAP): Remove, unused.
4691 (UNEXEC): Move definition ...
4692 * s/aix4-2.h (UNEXEC): ... here.
4694 * s/openbsd.h: Remove support for non-ELF and for systems that do
4695 not support shared libraries.
4697 * s/freebsd.h: Likewise.
4699 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4701 Remove non-working support for lynxos 3.0.
4702 * s/lynxos.h: Remove file.
4704 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4705 COFF_BSD_SYMBOLS, nothing defines it anymore.
4707 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4709 Remove obsolete uses of HAVE_SHM.
4710 * emacs.c (standard_args):
4712 (syms_of_emacs): Remove code depending on HAVE_SHM.
4714 * alloc.c: Remove HAVE_SHM dependent definition.
4716 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4718 2010-03-18 Glenn Morris <rgm@gnu.org>
4720 * emacs.c (USAGE4): Hard-code bug address.
4721 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4722 (bug_reporting_address): Remove.
4723 (main): Don't call bug_reporting_address.
4725 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4726 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4728 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
4730 * xfns.c (Fx_create_frame):
4731 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4734 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4736 * editfns.c (Fformat): Account for string precision when computing
4737 field width (Bug#5710).
4739 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
4741 * xfns.c (Fx_create_frame): Set default to Qright.
4743 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4746 2010-03-12 Eli Zaretskii <eliz@gnu.org>
4748 These changes remove termcap.c from the build on Posix platforms.
4749 * Makefile.in (termcapobj): Move termcap.o from here...
4750 (MSDOS_OBJ): ...to here.
4751 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4752 now identical to when LIBS_TERMCAP is defined.
4754 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4756 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4758 * config.in: Regenerated. (See top-level ChangeLog.)
4760 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
4764 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4766 Cleanup setup of gl_state in various parts of the code.
4767 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4768 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4769 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4771 * regex.c (regex_compile): Use it.
4772 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4773 it's now set in regex_compile when/if we need it.
4775 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4777 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4778 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4779 (QUIT): Use it to consolidate code and remove redundancy.
4780 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4782 * regex.c (regex_compile): Setup gl_state as well.
4784 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4785 (in_classes): Use CONSP before XCAR/XCDR.
4787 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
4789 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4790 definitions, so that keyboard macros are correctly handled
4793 2010-03-02 Eli Zaretskii <eliz@gnu.org>
4795 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4796 text that could be relocated inside the call to emacs_mule_char.
4797 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4798 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4800 2010-03-02 Kenichi Handa <handa@m17n.org>
4802 * character.c (parse_str_as_multibyte): Fix handling of the
4803 multibyte form of raw-bytes.
4804 (str_as_multibyte): Likewise.
4806 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4809 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
4811 * charset.c (load_charset_map_from_file)
4812 (load_charset_map_from_vector): Zero out allocated
4813 charset_map_entries before using them.
4815 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4817 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4819 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
4821 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4822 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
4824 2010-02-26 Kenichi Handa <handa@m17n.org>
4826 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4828 * xdisp.c (reseat_to_string): Fix previous change.
4830 2010-02-26 David Reitter <david.reitter@gmail.com>
4832 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4833 Lisp_Object (Bug#4736).
4835 2010-02-25 Kenichi Handa <handa@m17n.org>
4837 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4839 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4841 * xterm.c (XTflash): Move declarations before statements.
4843 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4844 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4845 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4846 (xg_create_tool_bar): Remove unused variables.
4847 (x_wm_set_size_hint): Move declarations before statements.
4848 (xg_create_frame_widgets): Remove variable grav.
4850 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
4852 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4854 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4856 * term.c (fatal): Add a final \n if needed (bug#5596).
4858 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
4860 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4862 2010-02-18 Glenn Morris <rgm@gnu.org>
4864 * callint.c (Finteractive): Doc fix.
4866 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4868 * coding.c (record_conversion_result):
4869 Handle CODING_RESULT_INSUFFICIENT_DST.
4870 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4871 memory allocation error.
4873 2010-02-17 Kenichi Handa <handa@m17n.org>
4875 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4876 Fix for the case that the output buffer is fullfilled.
4877 (decode_coding): Setup ccl program here. Keep looping when the
4878 decoder stopped because the output buffer is
4879 fullfilled (bug#5534).
4881 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4883 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4885 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
4887 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
4890 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4892 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4893 doing_interact here.
4894 (ice_connection_closed): New function.
4895 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4896 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4897 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4899 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4902 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
4904 * nsfont.m (nsfont_open): The system's value for the font descent
4905 is negative, so round it down to avoid clipping.
4907 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
4909 * charset.c (load_charset_map_from_file)
4910 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
4911 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
4913 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
4915 * charset.c (load_charset_map_from_file): Allocate large
4916 charset_map_entries structure on the heap rather than the stack.
4919 2010-01-31 Kenichi Handa <handa@m17n.org>
4921 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
4922 size in NAME is invalid, return -1 (Bug#5396).
4924 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
4926 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4927 <deactivated@gmail.com> (Bug#3605).
4929 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
4931 * fileio.c (Frename_file): Correctly rename symlinks to
4932 directories (Bug#5496).
4934 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4936 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4938 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4940 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4942 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
4944 * frame.c (DEFAULT_ROWS): Change default to 35.
4946 * xfns.c (x_default_font_parameter): Change default XFT font to
4947 monospace-10 (Bug#3643).
4949 2010-01-29 Eli Zaretskii <eliz@gnu.org>
4951 * w32inevt.c (key_event): Remove unnecessary comparison of
4952 event->uChar.AsciiChar with 128.
4954 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
4956 * fileio.c (Frename_file): Fix last change (Bug#5487).
4958 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4960 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4962 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4964 * xfns.c (Fx_create_frame): Remove window size matching code from
4966 (x_get_current_desktop, x_get_desktop_workarea): Remove.
4968 2010-01-27 Jason Rumney <jasonr@gnu.org>
4970 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
4971 (key_event): Use unicode for characters 128 and higher (Bug#4567).
4973 2010-01-27 Kenichi Handa <handa@m17n.org>
4975 * regex.c (analyse_first): Fix setting of fastmap for unibyte
4976 pattern string (Bug#4209).
4978 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
4980 * fileio.c (Frename_file): Call copy-directory and
4981 delete-directory for directories, in order to handle cross-device
4982 renaming (Bug#3353).
4984 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4986 * xfns.c (Fx_create_frame): If frame height is too big, try
4987 sizes 24 and 10. Bug #3643.
4989 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4991 Try and fix bug#788, hopefully for real this time.
4992 * keymap.c (shadow_lookup): Add `remap' arg.
4993 (describe_map, describe_vector): Update calls to shadow_lookup.
4994 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4995 `remapped' so this flag is applicable to `sequence'. Be careful to
4996 perform remapping during shadow_lookup check of remapped_sequences.
4998 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5000 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5001 png_check_sig, which has been removed in libpng 1.4.
5003 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5005 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5006 lacks this header file).
5008 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5010 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5013 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5015 * lisp.h (make_pure_string): String pointer arg now points to const.
5017 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5018 args now point to const.
5020 2010-01-22 Eli Zaretskii <eliz@gnu.org>
5022 * lread.c (Fload): Don't treat files without .elc extension as
5023 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5026 2010-01-20 Kenichi Handa <handa@m17n.org>
5028 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5029 treat the source as actual byte sequence.
5031 2010-01-19 Alan Mackenzie <acm@muc.de>
5033 Fix spurious before-change-functions invocation from (insert ?\n).
5034 * textprop.c (set_text_properties): Rename parameter
5035 `signal_after_change_p' to `coherent_change_p', and make the
5036 invocation of `modify_region' conditional on it.
5038 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5040 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5042 (syms_of_xsettings): Declare xft-settings.
5044 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
5046 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5048 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5050 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5052 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
5054 * emacs.c (standard_args): Adjust arg priorities to reflect how
5055 they are processed in startup.el.
5057 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5059 * Makefile.in (lisp, shortlisp): Update.
5061 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5063 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5064 code, link the new kboard into all_kboard before running Lisp code,
5065 and protect the new terminal with GCPRO (Bug#5365).
5066 (x_term_init): Remove unused var `atom'.
5067 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5069 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5071 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5072 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5073 to find out usable size of the desktop. Don't make frames larger than
5076 2010-01-15 Kenichi Handa <handa@m17n.org>
5078 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5080 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
5082 * nsterm.m (Qnone): Define.
5084 * nsfns.m (Qnone): Move definition to nsterm.m.
5086 2010-01-14 Kenichi Handa <handa@m17n.org>
5088 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5091 2010-01-14 Kenichi Handa <handa@m17n.org>
5093 Make auto-composition work on all buffers even if they are
5096 * composite.c (Vauto_composition_mode): New variable.
5097 (composition_compute_stop_pos): Check Vauto_composition_mode
5098 instead of Vauto_composition_function.
5099 (composition_adjust_point, Ffind_composition_internal): Likewise.
5100 (syms_of_composite): Declare Lisp variable
5101 "auto-composition-mode" here.
5103 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5105 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5106 during call to vendor-specific-keysyms (Bug#5365).
5108 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5110 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5111 Call SIGNAL_THREAD_CHECK (Bug#5333).
5113 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5114 Call SIGNAL_THREAD_CHECK.
5116 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5118 Try to fix bug#5314. This is probably not the final word, tho.
5119 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5120 recent-auto-save-p as a side-effect.
5121 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5122 * buffer.c (Fkill_buffer, reset_buffer):
5123 * editfns.c (Fsubst_char_in_region):
5124 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5125 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5127 2010-01-13 Kenichi Handa <handa@m17n.org>
5129 Display buffer name, etc. in mode line by composing correctly.
5131 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5133 (display_mode_element): Adjust for the change of
5134 decode_mode_spec and display_line.
5135 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5136 (display_string): Handle the case that STRING is non-null and
5137 LISP_STRING is not nil.
5139 * xterm.c (x_draw_composite_glyph_string_foreground):
5140 Pay attention to s->face->overstrike.
5142 * composite.c (composition_reseat_it): Don't check PT if STRING is
5145 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5147 * keyboard.c (read_char): Don't apply previous change when current
5148 buffer is unchanged by command execution.
5150 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5152 * keyboard.c (read_char): Return after executing from special map.
5154 2010-01-12 Glenn Morris <rgm@gnu.org>
5156 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5157 bug-gnu-emacs rather than emacs-pretest-bug.
5159 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
5161 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5162 initializing the Lisp variables that depend on them.
5164 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5166 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5167 Clear areas that will not be updated after change of menu bar lines.
5168 Clear the menu bar window's current matrix when the window gets empty.
5170 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
5172 * intervals.h, textprop.c (extend_property_ranges): Return value
5173 and args changed. Discard properties that begin at or after the
5176 * editfns.c (Fformat): Caller changed.
5178 * nsterm.m (ns_set_default_prefs): Delete function.
5179 (syms_of_nsterm): Initialize ns_command_modifier,
5180 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5181 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5183 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5184 position (Bug#4040).
5186 2010-01-09 Eli Zaretskii <eliz@gnu.org>
5188 * editfns.c (Ffloat_time): Doc fix.
5190 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5192 * xfns.c (Fx_create_frame): Don't create frame larger than display
5193 by default bug#3643.
5195 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5197 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5198 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5199 windows above internal border.
5201 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5202 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5203 windows above internal border.
5205 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5206 tool bar windows specially.
5208 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5210 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5212 (XTflash): Take account of menu bar height.
5214 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5217 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5219 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5220 also be true before we can return early (bug #5339).
5222 2010-01-06 David Reitter <david.reitter@gmail.com>
5224 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5225 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5228 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5230 * font.c (font_open_entity): Enable chache and call cached_font_ok
5231 for the driver if defined.
5232 (QCuser_spec): New symbol.
5233 (font_spec_from_name): Save name as user-spec.
5234 (font_load_for_lface): Keep user-spec instead of name.
5235 (font_open_by_name): Save name as user-spec.
5236 (syms_of_font): Initialize QCuser_spec.
5237 (font_clear_prop): Clear name if it exists in font (bug#5157).
5239 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5240 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5241 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5243 * font.h (struct font_driver): Add cached_font_ok.
5245 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5247 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5249 * xterm.c (x_new_font): Move code for setting rows/cols before
5251 (x_set_window_size): ... to here. Bug #2568.
5253 * gtkutil.c (xg_clear_under_internal_border): New function.
5254 (xg_frame_resized, xg_frame_set_char_size):
5255 Call xg_clear_under_internal_border.
5256 (xg_update_scrollbar_pos): Clear under old scroll bar position.
5258 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
5260 * keyboard.c (read_key_sequence): Catch keyboard switch after
5261 making a new tty frame (Bug#5095).
5263 2010-01-05 Kenichi Handa <handa@m17n.org>
5265 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5267 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5269 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5270 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5271 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5273 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
5275 * dbusbind.c (xd_add_watch): Improve debug message.
5276 (xd_remove_watch): Improve debug message. If DATA is the session
5277 bus, unset D-Bus session environment.
5278 (Fdbus_init_bus): Pass the bus as argument to
5279 dbus_connection_set_watch_functions. (Bug#5283)
5281 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
5283 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5285 * lread.c (syms_of_lread): Make it clearer that these are the
5286 names of loaded files (Bug#5068).
5288 * eval.c (run_hook_with_args): Handle the case where the global
5289 value has the obsolete single-function form (Bug#5026).
5291 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
5293 * minibuf.c (Fall_completions): Minor optimization.
5295 2009-12-26 Eli Zaretskii <eliz@gnu.org>
5297 * .gdbinit (pgx): Fix display of composite glyphs.
5298 Display cmp.from and cmp.to as well.
5299 (pitx): Fix last change.
5301 2009-12-25 Kenichi Handa <handa@m17n.org>
5303 * composite.h (composition_adjust_point): Update prototype.
5305 * composite.c (composition_reseat_it): Don't make a composition
5306 spanning over point.
5307 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5308 composable characters.
5309 (composition_adjust_point): New arg NEW_PT. Callers changed.
5311 * keyboard.c (command_loop_1): Force redisplay if the last point
5312 was within a composition.
5313 (adjust_point_for_property): Don't adjust point for automatic
5314 composition when called after buffer modification.
5316 2009-12-19 Eli Zaretskii <eliz@gnu.org>
5318 * .gdbinit (pitx): Don't use enum names, use their values.
5319 Remove reference to non-existing value GET_FROM_COMPOSITION.
5320 (pgx): Don't use enum names, use their values.
5321 (pitmethod): New helper command.
5322 (pitx): Use it to display iteration method.
5323 (pgrowit): New command.
5325 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5327 Update dependencies in Makefile.in.
5329 * Makefile.in (alloc.o): Depend on termhooks.h.
5330 (atimer.o): Depend on blockinput.h.
5331 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5333 (callint.o): Depend on systime.h, coding.h, and composite.h.
5334 (callproc.o): Depend on buffer.h.
5335 (casefiddle.o): Don't depend on charset.h.
5336 (casetab.o): Depend on character.h.
5337 (ccl.o): Depend on composite.h.
5338 (chartab.o): Depend on ccl.h.
5339 (cm.o): Depend on dispextern.h.
5340 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5341 (coding.o): Don't depend on $(INTERVALS_H).
5342 (composite.o): Don't depend on dispextern.h explicitly (it's in
5343 $(INTERVALS_H)). Depend on ccl.h.
5344 (data.o): Depend on systime.h, coding.h, composite.h,
5345 dispextern.h, font.h, and ccl.h.
5346 (dired.o): Depend on composite.h.
5347 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5348 composite.h (it's in $(INTERVALS_H)).
5349 (doc.o): Depend on systime.h, coding.h, and composite.h.
5350 (editfns.o): Don't depend explicitly on dispextern.h.
5351 (emacs.o): Depend on frame.h and coding.h.
5352 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5353 (fileio.o): Depend on frame.h and commands.h. Don't depend
5354 explicitly on dispextern.h.
5355 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5357 (fns.o): Don't depend on termhooks.h.
5358 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5359 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5360 coding.h, $(INTERVALS_H), window.h, xterm.h.
5361 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5362 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5363 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5364 fontset.h, ccl.h, and ftfont.h.
5365 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5366 (gtkutil.o): Depend on dispextern.h and composite.h.
5367 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5368 termhooks.h, and ccl.h.
5369 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5370 (intervals.o): Depend on systime.h and coding.h.
5371 (keyboard.o): Depend on composite.h and coding.h.
5372 (keymap.o): Depend on coding.h and frame.h.
5373 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5374 (macros.o): Depend on systime.h, coding.h, and composite.h.
5375 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5377 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5378 dispextern.h explicitly.
5379 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5380 Don't depend explicitly on dispextern.h and composite.h.
5381 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5382 (regex.o): Don't depend on charset.h.
5383 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5384 (search.o): Don't depend explicitly on composite.h.
5385 (sound.o): Depend on atimer.h and systime.h.
5386 (syntax.o): Don't depend explicitly on composite.h.
5387 (sysdep.o): Depend on coding.h and composite.h.
5388 (term.o): Depend on xterm.h and buffer.h.
5389 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5390 (textprop.o): Don't depend on dispextern.h explicitly.
5391 (undo.o): Depend on dispextern.h.
5392 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5393 dispextern.h and composite.h explicitly.
5394 (xdisp.o): Depend on ccl.h.
5395 (xfaces.o): Depend on coding.h and ccl.h.
5396 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5397 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5398 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5400 (xgselect.o): New dependency.
5401 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5402 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5403 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5404 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5405 (xsmfns.o): Depend on frame.h and dispextern.h.
5406 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5409 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5411 * font.c (Fclear_font_cache): Pass correct cache argument to
5414 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5416 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5419 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5421 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5422 calling file-remote-p. Reported by Jim Meyering.
5424 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5426 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5427 avoid compiler warnings. (Bug #5217)
5429 2009-12-14 Kenichi Handa <handa@m17n.org>
5431 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5434 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5436 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5439 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5441 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5442 Xatom_net_window_type.
5444 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5445 Xatom_net_window_type.
5447 * xterm.c (my_log_handler): New function.
5448 (x_term_init): Set my_log_handler as log handler during gtk_init
5449 so we can filter out buggy messages. (Bug #5120).
5451 * xterm.c (xg_scroll_callback): Parameter list changed,
5452 use parameter GtkScrollType to determine scroll/line/page.
5453 Only allow dragging if a button < 4 is grabbed (bug #5177).
5454 (xg_end_scroll_callback): New function.
5455 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5456 xg_create_scroll_bar.
5458 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5459 (scroll_end_callback): Remove.
5460 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5461 button-release-event. Replace value-changed event with change-value,
5463 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5466 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5467 (xg_create_scroll_bar): Add GCallback end_callback.
5469 * xftfont.c (QClcdfilter): New variable.
5470 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5471 (syms_of_xftfont): Initialize QClcdfilter.
5473 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5475 * xsettings.c (struct xsettings): Add member seen.
5476 (parse_xft_settings): Update member seen with what we have read.
5477 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5478 (apply_xft_settings): Only update Xft settings with what member seen
5481 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5483 * dispextern.h (struct text_pos): Use EMACS_INT.
5484 (struct glyph): Use EMACS_INT for charpos.
5485 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5486 region_beg_charpos, region_end_charpos,
5487 redisplay_end_trigger_charpos, and also for
5488 iterator_stack_entry.end_charpos and
5489 iterator_stack_entry.stop_charpos.
5491 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5493 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5494 (xg_create_scroll_bar): Call scroll_end_callback on button release
5496 (xg_event_is_for_scrollbar): != replaced with ==.
5498 2009-12-12 Kenichi Handa <handa@m17n.org>
5500 * ftfont.c (struct ftfont_info): New member matrix.
5501 (ftfont_open): Setup xftfont_info->matrix.
5502 (MFLTFontFT): New member matrix.
5503 (FLOOR, CEIL, ROUND): New macros.
5504 (ftfont_get_metrics): Handle matrix transformation.
5505 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5507 * xftfont.c (struct xftfont_info): New member matrix.
5508 (xftfont_open): Setup xftfont_info->matrix.
5510 2009-12-10 Kenichi Handa <handa@m17n.org>
5512 * xdisp.c (append_space_for_newline): Consider face-remapping.
5514 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5516 * xsettings.c: Include "keyboard.h".
5518 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5520 Fix implicit function declarations.
5521 * cmds.c: Include "frame.h".
5522 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5523 * frame.h: Move declaration of delete_frame outside of
5526 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5528 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5530 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5533 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5535 * unexelf.c (unexec): Don't search for .data twice.
5537 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5539 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5541 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5542 of push_display_prop (Bug#5000).
5544 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5545 value of font_list_entities (Bug#5085).
5547 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5549 Fix `string-to-number' to deal consistently with integers and floats.
5550 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5551 trailing characters, not just whitespace.
5552 (read1): Pass new arg 0 to keep old behavior.
5553 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5554 trailing chars, as it is already done for integers. Doc fixes.
5555 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5557 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5559 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5560 Delete unused enumeration value.
5562 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5564 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5566 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5568 * process.c (Fmake_network_process): Fix up the tests for
5569 "connectionless socket", so they DTRT for seqpacket sockets as well.
5571 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5573 * process.c (Qseqpacket): New symbol.
5574 (HAVE_SEQPACKET): New macro.
5575 (Fmake_network_process): Accept new :type `seqpacket'.
5576 (init_process): Add `seqpacket' feature when applicable.
5577 (syms_of_process): Initialize Qseqpacket.
5579 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5581 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5584 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5586 * print.c (print_preprocess): Preprocess the key_and_value table of
5587 hashtables, even tho they're "hidden" (bug#5082).
5589 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5591 * frame.c (frame_make_pointer_invisible)
5592 (frame_make_pointer_visible): Declare f before statements.
5594 2009-11-28 Eli Zaretskii <eliz@gnu.org>
5596 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5597 omitted dependencies on lisp.h.
5599 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5601 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5604 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5606 * frame.c (frame_make_pointer_invisible)
5607 (frame_make_pointer_visible): Just return if there isn't any selected
5610 * search.c (simple_search): Remove warning by making *p const.
5612 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5614 * xdisp.c (power_letter): Remove duplicate const.
5616 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5618 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5620 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
5621 defaults (bug #5025).
5623 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5625 * insdel.c (adjust_markers_for_delete): Move it in the
5626 right direction! (bug#4803)
5628 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5630 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5632 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5634 2009-11-24 Glenn Morris <rgm@gnu.org>
5636 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5638 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5640 * Makefile.in: Must create deps for ecrt0.o in its rule.
5642 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5643 because that is what Gtk+ font dialog understands.
5645 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5647 (font_open_by_name): Put name given into QCname for font-object returned.
5649 * frame.c (x_set_font): Save original font name as frame parameter
5652 * xsettings.c (set_default_xft_settings): New function.
5653 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5656 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5658 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5659 searching backwards through multibyte buffer.
5661 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5663 * xterm.c: #include xgselect.h.
5664 (x_initialize): Call xgselect_initialize.
5666 * xsettings.c (something_changedCB): C++ comments => C comments.
5667 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5670 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5671 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5672 (scroll_bar_button_cb): Remove.
5673 (create_menus): C++ comments => C comments. Don't bind grab-notify
5675 (xg_create_scroll_bar): Don't bind button-press-event and
5676 button-release-event.
5678 * process.c: Include xgselect.h if defined (USE_GTK) ||
5679 defined (HAVE_GCONF).
5680 (wait_reading_process_output): Call xg_select for the same condition.
5682 * xgselect.c (xg_select): New function to better integrate with
5683 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5685 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5687 * Makefile.in (XOBJ): Add xgselect.o.
5689 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5691 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5692 Remove ignored second argument. All callers changed.
5693 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5694 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5695 * xdisp.c (string_char_and_length): Likewise.
5697 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5699 * xterm.c (x_new_font):
5700 * print.c (print_object):
5701 * cmds.c (Fself_insert_command): Move declarations before statements.
5703 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5705 * s/cygwin.h: Remove unneeded linker flags.
5707 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5709 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5711 * xsettings.h: Declare xsettings_get_system_font.
5713 * xsettings.c (xsettings_get_system_font): New function.
5714 (init_gconf): No use initiating gconf unless we have Xft also.
5715 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5718 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5719 add a blank entry so it doesn't collapse into nothing.
5721 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5723 * lread.c (Funintern): Comment out last change.
5725 2009-11-19 Richard Stallman <rms@gnu.org>
5727 * lread.c (Funintern): Error if symbol is t or nil.
5729 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5731 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5732 representation of Lisp integers.
5733 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5735 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5737 * lisp.h: Remove declaration of Ffont_get_system_font.
5738 * xfns.c: Move include of "xsettings.h".
5739 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5741 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5743 * xsettings.c (something_changedCB, Ffont_get_system_font):
5744 Check use_system_font.
5745 (syms_of_xsettings): DEFVAR font-use-system-font.
5747 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5749 * xfns.c (x_default_font_parameter): Remove dead assignment.
5751 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5753 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5755 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5756 not have FC_LCD_*. #define them if not there.
5758 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5760 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5762 * xterm.c (handle_one_xevent): Call xft_settings_event for
5763 ClientMessage, PropertyNotify and DestroyNotify.
5764 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5765 Call xsettings_initialize.
5767 * xftfont.c (xftfont_fix_match): New function.
5768 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5769 Call xftfont_fix_match after XftFontMatch.
5771 * xfont.c (xfont_driver): Initialize all members.
5773 * xfns.c (x_default_font_parameter):
5774 Try font from Ffont_get_system_font.
5775 Do not get font from x_default_parameter if we got one from
5776 Ffont_get_system_font.
5777 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5779 * w32font.c (w32font_driver): Initialize all members.
5781 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5783 * lisp.h: Declare syms_of_xsettings.
5785 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5786 Handle CONFIG_CHANGED_EVENT.
5788 * ftfont.c (ftfont_filter_properties): New function.
5790 * frame.c (x_set_font): Remove unused variable lval.
5792 * font.h (struct font_driver): Add filter_properties.
5794 * font.c (font_put_extra): Don't return if val is nil, it means
5795 boolean option is off.
5796 (font_parse_fcname): Collect all extra properties in extra_props
5797 and call filter_properties for all drivers with extra_props and
5799 (font_open_entity): Do not use cache, it does not pick up new
5800 fontconfig settings like hinting.
5801 (font_load_for_lface): If spec had a name in it, store it in entity.
5803 * emacs.c (main): Call syms_of_xsettings.
5805 * config.in: HAVE_GCONF is new.
5807 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5810 2009-11-17 Kenichi Handa <handa@m17n.org>
5812 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5813 back to the default font in case that no suitable font is found.
5815 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5817 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5818 Suggested by Chad Brown <yandros@mit.edu>.
5819 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5821 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5823 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5825 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5827 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5829 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5831 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5834 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5835 dependency files in deps/. Include those files into Makefile.
5837 * config.in: Generated (AUTO_DEPEND).
5839 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
5841 * dbusbind.c (Vdbus_registered_objects_table): Rename from
5842 Vdbus_registered_functions_table, because it contains also
5843 properties. Fix docstring.
5844 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
5846 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5848 * alloc.c (mark_object): Don't reprocess marked strings.
5849 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5850 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5852 2009-11-13 Kenichi Handa <handa@m17n.org>
5854 * category.c (word_boundary_p): Adjust for the change of the
5855 semantics of Vword_combining_categories.
5856 (Vword_combining_categories): Describe the slight change of the
5859 2009-11-13 Eli Zaretskii <eliz@gnu.org>
5861 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5863 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5865 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5867 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5869 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
5871 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5873 2009-11-11 David Reitter <david.reitter@gmail.com>
5875 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5876 variables to fix 2009-11-09 change.
5878 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5880 * process.c (ifflag_def): Make flag_sym constant.
5881 (Fnetwork_interface_info): Use a constant pointer.
5883 * xfns.c (cursor_bits):
5884 * xdisp.c (power_letter):
5885 * termcap.c (speeds, esctab):
5886 * sysdep.c (baud_convert):
5887 * keyboard.c (lispy_accent_codes, modifier_names):
5888 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5889 (jpeg_format, tiff_format, gif_format, svg_format)
5890 (interlace_start, interlace_increment, gs_format):
5891 * gtkutil.c (separator_names):
5892 * fringe.c (swap_nibble):
5893 * fns.c (base64_value_to_char, base64_char_to_value):
5894 * fileio.c (make_temp_name_tbl):
5895 * coding.c (suffixes): Make constant.
5897 * frame.c (make_initial_frame):
5898 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5900 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5903 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5905 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5906 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5908 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5909 * xterm.c (syms_of_xterm):
5910 * xfaces.c (syms_of_xfaces):
5911 * xdisp.c (syms_of_xdisp):
5912 * lread.c (syms_of_lread):
5913 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5916 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5918 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5920 * fns.c (Fplist_get): Merge the active and the commented out code.
5922 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5924 * keyboard.h: Declare timer_check.
5926 * keyboard.c (timer_check_2): New function that does what the old
5928 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5929 returned, i.e. don't return -1 with timers pending.
5931 * process.c: Remove extern declaration of timer_check.
5933 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5934 even if timer_check returned -1.
5936 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5938 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5940 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5941 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5942 Destroy the dialog after xg_dialog_run.
5944 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5946 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5948 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5950 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5952 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
5954 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5956 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5958 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5959 w32menu.c, and nsmenu.m.
5960 Simplify the obsolete case where position is nil.
5961 (cleanup_popup_menu): New function, moved from nsmenu.m.
5962 (struct skp): Remove slot `notreal'.
5963 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5965 (single_menu_item): Adjust call to parse_menu_item.
5966 (syms_of_menu): Defsubr x-popup-menu.
5967 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5968 (keymap_panes): Don't export any more.
5969 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5970 (xmenu_show): Declare.
5971 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5972 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5973 * keyboard.h (parse_menu_item): Update declaration.
5974 * xmenu.c (Fx_popup_menu): Remove.
5975 (syms_of_xmenu): Don't defsubr x-popup-menu.
5976 * w32menu.c (Fx_popup_menu): Remove.
5977 (syms_of_w32menu): Don't defsubr x-popup-menu.
5978 * nsmenu.m (cleanup_popup_menu): Remove.
5979 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5980 moved to menu.c's Fx_popup_menu.
5981 (Fx_popup_menu): Remove.
5982 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5983 menu_items (it's done in menu.c already).
5985 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5987 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5988 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5990 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
5992 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
5993 xmenu_show. Hide any tooltip before opening a menu.
5994 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5995 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5997 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5999 Let integers use up 2 tags to give them one extra bit and thus double
6001 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6002 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6004 (enum Lisp_Type): Use them. Give explicit values.
6005 (Lisp_Type_Limit): Remove.
6006 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6007 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6008 Pay attention to USE_2_TAGS_FOR_INTS.
6009 (INTEGERP): Use LISP_INT_TAG_P.
6010 * fns.c (internal_equal): Simplify the default case.
6011 (sxhash): Use case_Lisp_Int.
6012 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6014 (Ftype_of): Use case_Lisp_Int.
6015 (store_symval_forwarding): Take into account the fact that Ints can
6016 now have more than one tag.
6017 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
6018 (buffer_slot_type_mismatch):
6019 * xfaces.c (face_attr_equal_p):
6020 * print.c (print_object):
6021 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6024 2009-11-06 Eli Zaretskii <eliz@gnu.org>
6026 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6028 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6031 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6033 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6035 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6037 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6038 ButtonPressRelease and MotionNotify (bug#4870).
6040 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6042 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6044 * xterm.c (syms_of_xterm):
6045 * xselect.c (syms_of_xselect):
6046 * xmenu.c (syms_of_xmenu):
6047 * xfns.c (syms_of_xfns):
6048 * xfaces.c (syms_of_xfaces):
6049 * xdisp.c (syms_of_xdisp):
6050 * window.c (syms_of_window):
6051 * w32fns.c (syms_of_w32fns):
6052 * undo.c (syms_of_undo):
6053 * textprop.c (syms_of_textprop):
6054 * terminal.c (syms_of_terminal):
6055 * syntax.c (syms_of_syntax):
6056 * sound.c (syms_of_sound):
6057 * search.c (syms_of_search):
6058 * print.c (syms_of_print):
6059 * minibuf.c (syms_of_minibuf):
6060 * macros.c (syms_of_macros):
6061 * keymap.c (syms_of_keymap, initial_define_key)
6062 (initial_define_lispy_key):
6063 * keyboard.c (syms_of_keyboard):
6064 * insdel.c (syms_of_insdel):
6065 * image.c (syms_of_image):
6066 * fringe.c (syms_of_fringe):
6067 * frame.c (syms_of_frame):
6068 * fontset.c (syms_of_fontset):
6069 * fns.c (syms_of_fns):
6070 * fns.c (syms_of_fns):
6071 * fileio.c (syms_of_fileio):
6072 * fileio.c (syms_of_fileio):
6073 * eval.c (syms_of_eval):
6074 * doc.c (syms_of_doc):
6075 * dispnew.c (syms_of_display):
6076 * dired.c (syms_of_dired):
6077 * dbusbind.c (syms_of_dbusbind):
6078 * data.c (syms_of_data):
6079 * composite.c (syms_of_composite):
6080 * coding.c (syms_of_coding):
6081 * cmds.c (syms_of_cmds):
6082 * charset.c (define_charset_internal, syms_of_character):
6083 * ccl.c (syms_of_ccl):
6084 * category.c (syms_of_category, init_category_once):
6085 * casetab.c (syms_of_casetab):
6086 * casefiddle.c (syms_of_casefiddle):
6087 * callint.c (syms_of_callint):
6088 * bytecode.c (syms_of_bytecode):
6089 * buffer.c (keys_of_buffer, syms_of_buffer):
6090 * alloc.c (syms_of_alloc):
6091 * process.c (syms_of_process, init_process):
6092 * lread.c (syms_of_lread, init_obarray):
6093 * font.c (build_style_table):
6094 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6095 intern_c_string, calls to make_pure_string with
6096 make_pure_c_string. Use pure_cons instead of Fcons.
6098 * process.c (socket_options): Make it const.
6099 (set_socket_option, init_process): Use a const pointer.
6101 * lread.c (intern_c_string): New function.
6102 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6103 (defvar_int): Uset it. Make the name const char*.
6105 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6106 (defvar_int): Update prototypes.
6107 (DEFUN, EXFUN): Support for prototypes is now required.
6108 (intern_c_string): New prototype.
6109 (struct Lisp_Subr): Make symbol_name constant.
6111 * font.c (struct table_entry): Remove unused member. Make NAMES
6113 (weight_table, slant_table, width_table): Make constant.
6115 * emacs.c (struct standard_args): Make name and longname constant.
6117 * character.h (DEFSYM): Use intern_c_string.
6119 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6121 * alloc.c (make_pure_c_string): New function.
6123 * eval.c (Fautoload): Purecopy all arguments.
6125 2009-11-05 Kenichi Handa <handa@m17n.org>
6127 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6128 the buffer in case of replace.
6130 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6132 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6134 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6136 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6137 when applicable (bug#4851).
6139 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6140 (P_): Support for prototypes is now required.
6142 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
6144 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6147 2009-10-30 Eli Zaretskii <eliz@gnu.org>
6149 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
6151 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6153 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6155 * lread.c (Fload): Purecopy the file name when building
6156 Vpreloaded_file_list.
6158 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6160 * w32fns.c (syms_of_w32fns): Change default value of
6161 w32-scroll-lock-modifier to nil. (Bug#2827)
6163 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6165 * minibuf.c (Fall_completions): Fix typos in docstring.
6167 2009-10-26 Andreas Schwab <schwab@redhat.com>
6169 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6171 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
6173 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6174 For delta < 0, skip check that only makes sense when the mini-window
6175 is going to be enlarged. (Bug#4534)
6177 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
6179 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6180 string in menu maps (Bug#4471).
6182 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
6184 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6185 FRAME_NS_VIEW on terminal frames (Bug#4765).
6187 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6189 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6190 DBUS_TYPE_UINTnn separately to get proper sign extension.
6192 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6193 can properly handle unsigned types.
6194 (make_uid, make_gid): Remove.
6196 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6199 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
6200 (system_process_attributes): Likewise.
6202 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6204 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6206 * eval.c (Fautoload): Purecopy the filename. Simplify.
6208 * category.c (Fdefine_category): Purecopy docstring.
6210 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6212 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6214 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6216 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
6218 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6219 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6222 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6224 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6226 * lisp.h (init_fileio_once): Remove.
6227 * emacs.c (main): Don't call init_fileio_once.
6229 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6231 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6233 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6235 * doprnt.c (doprnt): Fix overflow check.
6237 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6239 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6241 * xterm.h (x_wait_for_event): Declare it.
6243 * xterm.c (pending_event_wait): New variable.
6244 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6245 see pending_event_wait.eventtype.
6246 (handle_one_xevent): Don't change gravity when parent changes.
6247 (x_new_font): Call change_frame_size with new rows/columns before we
6248 try to resize the frame.
6249 (x_wait_for_event): New function.
6250 (x_set_window_size_1): Don't change gravity unless change_gravity
6252 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6253 don't change frame size, instead wait for the ConfigureNotify.
6254 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6255 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6256 (x_initialize): Initialize pending_event_wait.
6258 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6261 * widget.c (EmacsFrameSetValues): Add comment.
6262 (EmacsFrameSetCharSize): Just call x_set_window_size.
6264 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6266 (flush_and_sync): Remove again.
6267 (xg_get_font_name): Suggest monospace if no previous font is known.
6269 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6271 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
6272 8th bit, since that only made sense in the ASCII world (bug#4751).
6274 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6276 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6277 processing pending events when event is filtered for input method.
6280 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
6282 * fns.c: Add #endif accidentally removed in previous change.
6284 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6286 * fns.c: Remove code for unsupported system: MAC_OS.
6287 * image.c: Likewise. Include setjmp.h.
6289 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6291 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6292 pixel -1 (bug #4742).
6294 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6296 * process.c (create_pty): Remove conditionals for no longer
6297 supported systems: UNIPLUS and RTU.
6300 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6302 * alloc.c: Do not define struct catchtag.
6303 * eval.c: Move struct catchtag definition ...
6306 * image.c: Move png.h #include earlier to avoid warnings.
6407 * atimer.c: Include setjmp.h. (Bug#4643)
6409 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6411 Remove leftover table unibyte_to_multibyte_table.
6412 * character.c (unibyte_to_multibyte_table): Remove.
6413 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6414 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6415 * character.h (UNIBYTE_TO_CHAR): New macro.
6416 (MAKE_CHAR_MULTIBYTE): Use it.
6417 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6418 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6419 (message_dolog, set_message_1):
6420 * search.c (Freplace_match):
6421 * editfns.c (Fcompare_buffer_substrings):
6422 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6424 * insdel.c (copy_text, count_size_as_multibyte):
6425 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6426 * term.c (produce_glyphs):
6427 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6428 * regex.c (RE_CHAR_TO_MULTIBYTE):
6429 * cmds.c (internal_self_insert):
6430 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6432 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6434 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6436 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6438 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6440 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6442 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6444 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6445 still needed under Tiger.
6447 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6449 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6452 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6454 2009-10-15 Kenichi Handa <handa@m17n.org>
6456 * print.c (print_object): Escape a symbol like "2E10" too.
6458 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6460 Cleanups and changes for 64-bit compile under Snow Leopard.
6461 Based on suggestions by Erik Charlebois.
6463 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6465 * nsfont.m (ns_char_width): Replace deprecated call.
6466 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6468 (nsfont_open): Use ns_char_width() everywhere.
6469 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6471 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6473 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6476 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6478 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6479 Use stringWithUTF8String.
6480 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6482 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6483 Add formal protocol mention to inheritance.
6484 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6486 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6488 (ns_query_color): Use CGFloat where appropriate.
6489 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6490 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6493 * config.in (NS_HAVE_NSINTEGER): Drop.
6495 * dbusbind.c (dbus-method-return-internal)
6496 (dbus-method-error-internal): Use long format in printf, and cast
6499 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6500 in printf, and cast argument.
6502 * process.c (list_processes_1): Use long format in printf, and
6505 2009-10-11 Glenn Morris <rgm@gnu.org>
6507 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6509 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6511 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6512 menu bar with a small width so it doesn't enlarge the frame.
6514 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6516 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6518 2009-10-06 Glenn Morris <rgm@gnu.org>
6520 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6521 SOME_MACHINE_LISP (this enters indirectly via DOC).
6523 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6525 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6527 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6529 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6532 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6534 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6536 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6538 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6539 used anymore outside fileio.c.
6541 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6543 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6545 * lisp.h (Qdelete_directory_internal):
6546 Declare, instead of Qdelete_directory.
6548 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6550 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6552 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6554 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6556 * fileio.c (Fdelete_directory_internal): Rename from
6557 Fdelete_directory. It is not a command anymore. It has no file
6560 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6562 * xdisp.c (get_next_display_element): Use an enum in last change.
6564 2009-09-28 Kenichi Handa <handa@m17n.org>
6566 * xdisp.c (get_next_display_element): Pay attention to
6567 unibyte_display_via_language_environment in handling
6568 Vnobreak_char_display.
6570 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6572 * nsterm.h (ns_app_name): New extern variable.
6574 * nsterm.m (ns_app_name): New variable.
6575 (ns_term_init): Set and use it.
6576 (ns_term_shutdown): Use it.
6578 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6579 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6581 * nsfns.m (ns_set_name_iconic, ns_set_name)
6582 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6583 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6585 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6586 Remove double-casting in client_data comparison.
6588 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6590 * keyboard.c (make_lispy_event): Remember last wheel direction.
6591 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6593 2009-09-26 Glenn Morris <rgm@gnu.org>
6595 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6596 internal.elc. Add term/pc-win.elc.
6597 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6599 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6602 (lisp): Add NS_SUPPORT.
6603 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6605 2009-09-25 David Reitter <david.reitter@gmail.com>
6607 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6608 on Mac OS X 10.6+ (bug#4513).
6610 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6612 * frame.c (xrdb_get_resource): Return nil for empty string resources;
6613 some parts of Emacs code (like font selection) don't grok them.
6614 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6616 2009-09-24 Andreas Schwab <schwab@redhat.com>
6618 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6620 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6622 * dired.c (Fdirectory_files): Fix typo in docstring.
6624 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6626 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6627 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6628 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6630 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6632 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6635 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6637 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6638 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6640 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6641 deleted (bug #4492).
6643 * nsfont.m (Vns_reg_to_script): New lisp variable.
6644 (syms_of_nsfont): Declare it.
6645 (ns_registry_to_script): New function.
6646 (ns_get_req_script): Call it.
6647 (ns_findfonts): Don't give up on non-unicode registry.
6649 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6651 2009-09-20 Tom Tromey <tromey@redhat.com>
6653 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6654 batch mode (bug#4228).
6656 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
6658 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6659 carefully. (Bug #4339)
6661 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
6663 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6665 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6667 * emacs.c (inhibit_x_resources): Update doc string for NS.
6668 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
6669 legacy code for -NXHost. Fix error printf in daemon case.
6671 * nsterm.h (ns_no_defaults): Remove.
6673 * nsterm.m (ns_no_defaults): Remove.
6674 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6675 (ns_use_qd_smoothing): Remove legacy variable.
6676 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6677 don't update the NSWindow itself.
6678 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6679 state detection and store user rect ourselves. (Bug #3581)
6681 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6682 ns_use_qd_smoothing.
6684 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6685 platform versions. Drop support for emacs-20-style face specs.
6686 (x-close-connection): Drop PSFlush() under OS X.
6687 (x-focus-frame): Activate the app first. (Bug #4180)
6689 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
6691 * emacs.c (inhibit_x_resources): New variable.
6692 (main) [HAVE_NS]: Don't process --quick command line option.
6693 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6695 * lisp.h (inhibit_x_resources): Declare it extern.
6697 * w32reg.c (x_get_string_resource):
6698 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6700 2009-09-17 Eli Zaretskii <eliz@gnu.org>
6702 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6703 Add lisp/term/internal.elc.
6705 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6707 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6710 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6712 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6714 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6715 (OBJECTS_MACHINE): Remove, unused.
6717 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6719 * frame.c (x_get_resource_string): Remove unused.
6721 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6723 * xterm.c (x_new_font): Call change_frame_size before calling
6724 x_set_window_size, in case frame size won't change.
6726 * frame.c (x_set_font): Remove dead code.
6728 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6730 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6732 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6734 * lread.c (Fload): Don't output a message after loading an obsolete
6735 package any more (done in Lisp now).
6737 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
6739 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6741 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6743 * keymap.c (Fwhere_is_internal): Use nconc2.
6745 2009-09-11 Alan Mackenzie <acm@muc.de>
6747 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6750 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6752 * xdisp.c (display_mode_element): Detect cycles.
6754 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6756 * keymap.c (where_is_internal): Don't erroneously return nil right after
6758 (where_is_internal_1): Fix up typo.
6760 2009-09-11 Glenn Morris <rgm@gnu.org>
6762 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6763 share a common doc-string.
6765 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6767 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6768 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6770 * keymap.c (QCadvertised_binding): New constant.
6771 (syms_of_keymap): Initialize it.
6772 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6775 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6777 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6778 (parse_menu_item): Streamline since bindings are recomputed all the
6779 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6780 more and don't support lmenu's menu-alias any more either.
6782 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6783 (where_is_internal): Strip it down to only traverse the keymaps.
6784 Move the cache handling from Fwhere_is_internal to here.
6785 (Fwhere_is_internal): Move the handling of remapping and the choice of
6786 the best binding from where_is_internal to here.
6787 Unify the cached/noncached paths, so remapping is also handled
6788 correctly when the cache is used, and so the cache can be used to
6789 speed up remap-handling when applicable.
6790 Give preference to non-remapped bindings.
6791 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6792 non-remapped bindings.
6793 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6796 * xdisp.c (display_mode_element): Move list length limit from 50 to
6797 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6799 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
6801 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6803 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6805 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6808 * keymap.c (where_is_internal): Filter out shadowed remappings.
6809 Assume that where_is_internal returns unshadowed bindings to simplify
6810 the code and get rid of the gotos. Use ASIZE.
6812 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6814 * xterm.c (x_focus_changed): If we get a focusout and pointer
6815 is invisible, make it visible.
6817 * xterm.h: Remove condition for declaration of
6818 x_*_window_to_frame.
6820 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6822 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6823 initial terminal as well.
6825 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6827 * xterm.h: Rename x_non_menubar_window_to_frame to
6828 x_menubar_window_to_frame.
6830 * xterm.c: Remove declarations also in xterm.h.
6831 (XTmouse_position): Do not return valid positions
6832 for clicks in the menubar and the toolbar for Gtk+.
6834 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6835 if the widget for the event has the same top level as a frame,
6837 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6838 internal windows, bug #4122.
6839 (x_non_menubar_window_to_frame): Remove.
6841 2009-09-02 Glenn Morris <rgm@gnu.org>
6843 * buffer.c (default-major-mode): Move most of the doc from here...
6844 (major-mode): ... to here.
6846 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
6848 * process.c (wait_reading_process_output): Keep the descriptor
6849 when pty is used by a non-child process, e.g., in I/O buffer of
6850 GDB this allows inferior to be restarted.
6852 2009-08-29 Eli Zaretskii <eliz@gnu.org>
6854 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6855 both branches into one.
6857 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6859 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6860 (main): Use enable-multibyte-characters rather than
6861 default-enable-multibyte-characters. Output a warning message when
6862 running a unibyte session.
6864 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6866 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6867 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6868 (copy_data_segment): Also copy __program_vars section.
6869 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6870 (dump_it) [LC_DYLD_INFO]: Use it.
6872 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6874 2009-08-28 Eli Zaretskii <eliz@gnu.org>
6876 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6878 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6879 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6881 (clean): Add buildobj.h.
6883 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6885 * print.c (print_object): Set escapeflag to 1 when printing
6886 hashtable keys and values.
6888 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6890 * lread.c (read_integer): Use doubles (and potentially return a float
6891 number) as we do in string-to-number.
6892 (read1): Use strtol to read integers, signal errors on strtol's
6893 overflow and use floats if strtol's output is too large for
6896 2009-08-27 Eli Zaretskii <eliz@gnu.org>
6898 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6899 (make-buildobj-SH): Fix last change.
6900 (SRC): Move to before where it's first used.
6902 2009-08-27 Kenichi Handa <handa@m17n.org>
6904 * process.c (send_process): Use encode_coding_object instead of
6905 encode_coding_string to perform eol-conversion even if the string
6908 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6911 * cmds.c (Fself_insert_command): Avoid unnecessay
6912 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
6914 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6916 * callproc.c (Fcall_process): Remove always true #if.
6918 * lisp.h: Replace #if 0 code for checking with text pointing to
6919 the --enable-checking configure flag.
6921 * emacs.c (main): Mention the --enable-profiling configure flag
6922 instead of using CFLAGS.
6924 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
6926 * Makefile.in (buildobj.h): New target.
6927 (doc.o): Depend on it.
6928 (temacs${EXEEXT}): Don't generate buildobj.lst.
6929 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6930 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6931 ($(BLD)/doc.$(O)): Depend on it.
6932 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6933 provided by Eli Zaretskii.)
6934 ($(TEMACS)): Don't generate buildobj.lst.
6935 * doc.c: Include buildobj.h.
6936 (buildobj): New static variable.
6937 (Fsnarf_documentation): Use it, instead of opening and reading
6940 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
6942 * dbusbind.c (Fdbus_call_method)
6943 (Fdbus_call_method_asynchronously): Use English numeric format for
6944 timeout values in doc string.
6946 2009-08-25 Kenichi Handa <handa@m17n.org>
6948 * alloc.c (mark_char_table): New function.
6949 (mark_object): Use mark_char_table for a char-table.
6951 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6952 (CHAR_TABLE_REF): Use it.
6954 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
6956 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6957 before invoking the newly build emacs to check for load-path
6960 2009-08-22 Glenn Morris <rgm@gnu.org>
6962 * Makefile.in (bootstrap_exe): New variable.
6963 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6964 Use ${bootstrap_exe}.
6966 2009-08-22 Eli Zaretskii <eliz@gnu.org>
6968 * coding.h (encode_coding_string): Don't encode unibyte strings.
6971 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
6973 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6975 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6976 intended as hotfix only.
6977 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6979 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6981 * nsterm.m (ns_get_color): Update documentation properly for last
6982 change, and clean up loose ends in the code left by it. Fix
6983 longstanding bug with 16-bit hex parsing, and add support for
6984 yet another X11 format (rgb:r/g/b) for compatibility.
6985 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6986 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6988 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6990 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6992 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
6994 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6995 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6996 (xd_initialize, xd_pending_messages): Check, whether
6997 $DBUS_SESSION_BUS_ADDRESS is set.
6999 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7001 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7003 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7005 2009-08-20 Glenn Morris <rgm@gnu.org>
7007 * emacs.c (system-type): Doc fix.
7009 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7011 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7012 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7014 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
7016 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7018 (xd_initialize): Revert change from 2009-08-16.
7020 2009-08-18 Kenichi Handa <handa@m17n.org>
7022 * fontset.c (Ffontset_font): If a nil element is found in a
7023 font-group vector, return nil.
7025 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
7027 * process.c (status_notify): Don't perform redisplay.
7028 (Fdelete_process, list_processes_1, process_send_signal):
7029 Expliticly perform redisplay.
7030 (wait_reading_process_output): Always check process status, but
7031 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7033 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
7035 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
7036 (XFLOAT_INIT): New macro for storing a float value.
7037 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7038 * fns.c (sxhash): Copy out the value of a float in order to
7040 * dbusbind.c (xd_append_arg): Likewise.
7042 * emacs.c (main): Don't call syms_of_data twice.
7044 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
7046 * dbusbind.c (xd_initialize): Add connection file descriptor to
7047 input_wait_mask, in order to let select() detect, whether a new
7048 message has been arrived.
7049 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
7051 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
7053 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7056 * lisp.h (xd_pending_messages): Declare.
7058 * keyboard.c (readable_events): Call xd_pending_messages.
7060 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
7062 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
7064 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7066 * buffer.c (set_buffer_internal_1)
7067 (swap_out_buffer_local_variables): Check for unbound local
7068 variables (Bug#4138).
7070 2009-08-14 Eli Zaretskii <eliz@gnu.org>
7072 * process.c (create_pty): Fix last change.
7074 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
7076 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7077 (xbm_load_image): Caller changed.
7078 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
7080 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
7082 * process.c (create_pty): New function.
7083 (Fstart_process): Use it to allow Emacs to just associate a pty
7084 with the buffer. See associated change in gdb-mi.el.
7085 (list_processes_1): Deal with no program name.
7086 (start_process_unwind): Use pid == -2 to mean no process.
7088 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7090 * cmds.c (nonundocount): New global variable.
7091 (keys_of_cmds): Initialize it.
7092 (Fself_insert_command): Use it to combine upto 20 sequential chars
7093 into a single undo entry, just like the Qself_insert_command code in
7095 Call frame_make_pointer_invisible, also like the Qself_insert_command
7096 code in keyboard.c does.
7097 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7098 than its own local replacement for it.
7100 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7102 * fns.c (concat): Don't re-set string length to its current value.
7104 * coding.h (decode_coding_string, encode_coding_string):
7107 * doprnt.c (doprnt_lisp): Delete unused function.
7108 (doprnt): Merge with doprnt1, discarding lispstrings code.
7109 * lisp.h (doprnt_lisp): Don't declare.
7111 2009-08-07 Juri Linkov <juri@jurta.org>
7113 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7115 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7117 * print.c (syms_of_print): Undo previous change.
7119 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7121 * lread.c (read1, syms_of_lread): Read hashtables back from the
7124 * print.c (print_preprocess, print_object): Print hashtables fully
7126 (syms_of_print): Provide 'hashtable-print-readable.
7128 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7130 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7132 (nsfont_open): Handle case when entity has no family.
7134 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7136 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7137 element, not a list, for match case.
7139 2009-07-28 Kenichi Handa <handa@m17n.org>
7141 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7144 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7145 font_parse_xlfd. Check font properties more rigidly.
7147 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7149 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7152 2009-07-27 Kenichi Handa <handa@m17n.org>
7154 * xfaces.c (face_with_height): Call font_clear_prop.
7156 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
7158 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7160 * xterm.c (x_term_init): Use Qx.
7162 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7164 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
7165 (ns_get_color): Revert 2009-07-16 change.
7167 2009-07-25 Eli Zaretskii <eliz@gnu.org>
7169 * lread.c (syms_of_lread) <force_load_messages>: New variable.
7170 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
7172 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
7174 * coding.h (decode_coding_string, encode_coding_string):
7177 * lread.c: Rewrite 2009-07-21 changes.
7178 (load_depth): Delete.
7179 (Qload_in_progress): New variable.
7180 (load_unwind): Don't reference load_depth or load_in_progress.
7181 (Fload): Likewise; specbind Qload_in_progress instead.
7182 (init_lread): Don't initialize load_depth.
7183 (syms_of_lread): Initialize and protect Qload_in_progress.
7185 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7187 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7189 2009-07-23 Yavor Doganov <yavor@gnu.org>
7191 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7193 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7195 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7196 Bugs 3792, 3720, 2402.
7197 (ns_lookup_indexed_color): Check for bad index.
7198 (ns_index_color): Init unused slot to 0.
7199 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7200 Bug 3714, possibly 3082.
7202 2009-07-22 Jason Rumney <jasonr@gnu.org>
7204 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7205 Position IME window at cursor (Bug#2570).
7206 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7207 (globals_of_w32fns): Dynamically load functions required above.
7209 * w32term.c (w32_draw_window_cursor): Send message to reposition
7212 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7214 * fileio.c: Revert 2009-07-16 changes.
7215 (Vauto_save_include_big_deletions): New variable.
7216 (Fdo_auto_save): Disable auto-save only if
7217 auto-save-include-big-deletions is nil.
7219 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7221 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7222 the overflowed pixels into account (Bug#3879).
7224 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
7226 * lread.c (load_depth): New variable.
7227 (Fload, load_unwind, init_lread): Set it to the load recursion
7228 depth; set load_in_progress as a simple boolean based on the
7229 current load_depth. (Bug#3892)
7231 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7233 * nsfont.m (ns_has_attribute): Remove.
7234 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7236 2009-07-18 Juri Linkov <juri@jurta.org>
7238 * process.c (Fset_process_query_on_exit_flag): Mention killing
7239 a buffer in docstring.
7241 2009-07-17 Kenichi Handa <handa@m17n.org>
7243 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7245 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7247 * nsfns.m (Fns_set_alpha): Remove function.
7248 (syms_of_nsfns): Don't defsubr it.
7250 * nsterm.m (ns_get_color): Remove incompatible color formats.
7251 (ns_color_to_lisp): Generate #rrggbb color format string.
7253 2009-07-16 Richard Stallman <rms@gnu.org>
7255 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7256 (Fset_buffer_auto_saved): Handle save_length = -2.
7258 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
7260 * xterm.c (Qx_gtk_map_stock): New var.
7262 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7263 of calling intern each time.
7265 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7267 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7270 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7272 2009-07-14 Kenichi Handa <handa@m17n.org>
7274 * font.c (font_vconcat_entity_vectors): New function.
7275 (struct font_sort_data): New member font_driver_preference.
7276 (font_compare): Check font_driver_preference.
7277 (font_sort_entities): The format of the first argument changed.
7278 (font_delete_unmatched): Likewise.
7279 (font_list_entities): The return type changed.
7280 (font_select_entity): The format of the second argument changed.
7281 (font_find_for_lface): Adjuste for the above changes.
7282 Don't suppress the checking of C even if the repertory supports it.
7283 (Flist_fonts): Adjust for the above changes.
7285 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7286 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
7287 Reject a font who has adstyle property that is different from a
7288 langname derived from registry property.
7289 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
7291 2009-07-13 Eli Zaretskii <eliz@gnu.org>
7293 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7294 local copy of dirfilename.
7296 2009-07-13 Kenichi Handa <handa@m17n.org>
7298 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7301 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7302 calling XSYMBOL (sym).
7304 2009-07-11 Eli Zaretskii <eliz@gnu.org>
7306 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7308 (directory_files_internal) [WINDOWSNT]:
7309 Bind w32-get-true-file-attributes to either t or nil, depending whether
7310 the filesystem of the directory is fast or slow.
7312 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7314 (is_slow_fs): New function.
7315 (stat): Use it to determine whether to issue more system calls to
7316 get accurate file attributes, when w32-get-true-file-attributes is
7319 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7321 * xfns.c (Fx_select_font): Remember last font selected in
7322 x_last_font_name and use that the next time. Also try the frame
7323 parameter font-parameter as default to the font dialog.
7325 2009-07-10 Kenichi Handa <handa@m17n.org>
7327 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7329 2009-07-09 Eli Zaretskii <eliz@gnu.org>
7331 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7333 * w32.c (stat): Treat UNC file names as residing on remote
7336 2009-07-09 Kenichi Handa <handa@m17n.org>
7338 * fontset.c (fontset_find_font): Fix previous change.
7340 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
7342 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7343 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7346 2009-07-08 Kenichi Handa <handa@m17n.org>
7348 * fontset.c (fontset_find_font): Fix the logic of handling
7350 (font_for_char): Delete unused var.
7351 (generate_ascii_font_name): Delete it.
7353 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7355 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7356 (encode_coding_sjis): Fix the code range check.
7358 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
7360 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7361 (Fexpand_file_name): Copy string data properly (Bug#3772).
7363 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7365 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7368 2009-07-07 Kenichi Handa <handa@m17n.org>
7370 * character.h (unibyte_has_multibyte_table): Delete extern.
7371 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7373 * charset.c (Fset_charset_priority): Update charset_unibyte.
7374 (syms_of_charset): Initialize charset_unibyte.
7376 * character.c (unibyte_has_multibyte_table): Delete it.
7377 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7379 (multibyte_char_to_unibyte_safe): Likewise.
7380 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7382 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
7383 (x_produce_glyphs): Likewise.
7385 * .gdbinit (xcharset): Fix the treating $arg0.
7387 2009-07-04 Eli Zaretskii <eliz@gnu.org>
7389 Emulation of `getloadavg' on MS-Windows.
7390 * w32.c: Include float.h.
7391 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7392 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7393 (get_native_system_info, get_system_times): New functions.
7394 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7395 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7396 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7397 g_b_init_get_system_times, and num_of_processors.
7399 2009-07-03 Jason Rumney <jasonr@gnu.org>
7401 * w32term.c (w32_initialize): Use standard types.
7403 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7405 * dired.c (Ffile_attributes): Decode user and group names by the
7406 locale's encoding. (Bug#3443)
7408 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7410 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7411 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7413 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7415 * term.c (init_tty): Remove spurious #ifdef.
7417 * m/mips.h: Mention this file is also used for netbsd.
7418 * m/pmax.h: Remove file.
7420 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7422 * xterm.h (struct x_display_info): Add invisible_cursor.
7423 (struct x_output): Add current_cursor.
7425 * xterm.c (XTtoggle_invisible_pointer): New function.
7426 (x_define_frame_cursor): Don't define cursor if invisible or the
7427 same as before. Set current_cursor.
7428 (x_create_terminal): Set toggle_invisible_pointer_hook.
7430 * xfns.c (make_invisible_cursor): New function.
7431 (x_set_mouse_color): Call make_invisible_cursor.
7433 (x_window): Set current_cursor.
7435 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7437 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7438 inserting a character.
7439 (read_avail_input): Call frame_make_pointer_visible.
7441 * frame.c (Vmake_pointer_invisible): New variable.
7442 (frame_make_pointer_invisible, frame_make_pointer_visible):
7444 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7446 * frame.h: Declare frame_make_pointer_invisible and
7447 frame_make_pointer_visible.
7448 (struct frame): Add pointer_invisible.
7450 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7452 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7453 frame isn't visible.
7454 (xg_frame_resized): If width/height is -1, get size of window
7457 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7460 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7461 here or call change_frame_size. Just call flush_and_sync.
7462 (flush_and_sync): Reintroduce.
7464 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7466 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7468 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7469 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7471 * frame.h: Declare Qsticky.
7473 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7475 * nsfns.m (ns_frame_parm_handlers): Ditto.
7477 * frame.c: Declare Qsticky.
7478 (frame_parms): Add sticky.
7480 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7482 * xterm.h: Declare x_set_sticky.
7484 * xterm.c (x_set_sticky): New function.
7486 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7487 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7488 xg_tool_bar_proxy_help_callback.
7490 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7492 * frame.c: Qmaximized is new.
7493 (x_set_frame_parameters): Do not handle fullscreen specially.
7494 Only set width and height if explicitly set.
7495 (x_set_fullscreen): Handle Qmaximized.
7496 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7497 (syms_of_frame): Initialize Qmaximized.
7499 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7500 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7502 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7503 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7504 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7505 set gravity to NorthWestGravity when USE_GTK.
7506 (set_wm_state): New function.
7507 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7508 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7509 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7510 or the case when no window manager is running. That means remove calls
7511 to x_real_positions and x_fullscreen_adjust.
7513 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7514 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7516 (xg_height_changed): New function.
7517 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7518 and gtk_window_set_policy. Set frame gravity after parsing the
7520 (xg_update_frame_menubar, free_frame_menubar)
7521 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7522 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7523 Remove calls to xg_frame_set_char_size.
7525 2009-07-01 Kenichi Handa <handa@m17n.org>
7527 * keyboard.c (decode_keyboard_code): New function.
7528 (tty_read_avail_input): Decode the input bytes if necessary.
7530 * coding.c (setup_coding_system):
7531 Initialize coding->carryover_bytes to 0.
7532 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7535 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7537 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7539 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7541 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7543 2009-06-30 Jason Rumney <jasonr@gnu.org>
7545 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7547 Set user model ID if supported (bug#1849).
7549 2009-06-29 Jim Meyering <meyering@redhat.com>
7551 Remove useless if-before-xfree test.
7552 * nsfont.m (nsfont_close): Remove useless test.
7553 * term.c (delete_tty): Likewise.
7554 * w32.c (system_process_attributes): Likewise.
7555 * w32font.c (w32font_close): Likewise.
7556 * xfaces.c (x_free_gc): Likewise.
7557 * xselect.c (buffer): Likewise.
7559 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7561 * process.c (send_process): Keep decoded string in a local
7562 variable and protect it from GC. (Bug#3521)
7564 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7566 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7567 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7569 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7571 * xdisp.c (start_display, handle_face_prop)
7572 (move_it_vertically_backward, cursor_row_fully_visible_p)
7573 (redisplay_window, try_window_id, produce_image_glyph):
7574 Delete some #ifdef-ed out code chunks that are now obsolete.
7576 * xterm.c (x_update_window_begin, x_new_focus_frame)
7577 (x_scroll_bar_handle_click, handle_one_xevent)
7578 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7579 (x_make_frame_visible, x_make_frame_invisible)
7580 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7581 code chunks that are now obsolete.
7583 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
7585 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7586 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7587 for hours, when optimzation is enabled.
7588 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7589 (xd_read_message): Make them static.
7591 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7593 * term.c (turn_on_face): Allow simultaneously bold and dim
7594 terminal faces (Bug#3530).
7596 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
7598 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7600 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7601 truncation glyphs (Bug#3686).
7603 2009-06-27 Glenn Morris <rgm@gnu.org>
7605 * m/pmax.h: Restore file, with only netbsd portions.
7607 2009-06-26 David Reitter <david.reitter@gmail.com>
7609 * nsterm.m (keydown): Avoid infinite loop.
7611 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7613 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7614 the arg FORCE_SYMBOL.
7616 2009-06-25 Kenichi Handa <handa@m17n.org>
7618 * fontset.c (fontset_find_font): When a usable rfont_def is found
7619 in a fallback font-group, make it the first element of the group.
7621 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
7623 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7625 2009-06-24 Kenichi Handa <handa@m17n.org>
7627 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7629 (fontset_font): Record the availability of a font for C both in
7630 the realized fontsets of the current one and the default one.
7632 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7634 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7635 conditional, it is always defined on AIX.
7637 2009-06-23 Miles Bader <miles@gnu.org>
7639 * window.c (Vrecenter_redisplay): New variable.
7640 (syms_of_window): Initialize it.
7641 (Qtty): New extern declaration.
7642 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7644 2009-06-23 Jim Meyering <meyering@redhat.com>
7646 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7647 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7648 pointer dereferences are guaranteed to be valid.
7650 2009-06-23 Kenichi Handa <handa@m17n.org>
7652 * emacs.c (main): Call init_font ().
7654 * font.h (Vfont_log): Extern it.
7655 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7657 * font.c (font_sort_entities, font_list_entities)
7658 (font_matching_entity, font_open_entity)
7659 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7660 (Vfont_log): Delete static.
7661 (font_log_env_checked): Delete this variable.
7662 (font_add_log): Don't check font_log_env_checked.
7663 (font_deferred_log): Check Vfont_log.
7664 (init_font): New function.
7666 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7668 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7670 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7672 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7674 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7675 (face_for_char): Don't call font_deferred_log here.
7676 (font_for_char): Likewise.
7678 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
7680 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7681 rather than its background_width for drawing the overline and
7682 underline (Bug#489).
7684 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7685 rather than its background_width for drawing the overline and
7686 underline (Bug#489).
7687 (xg_default_icon_file): New variable.
7688 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7689 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7691 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7692 (load_overlay_strings): Remove externs.
7693 (fast_find_position): Function deleted.
7694 (mouse_face_from_buffer_pos): New function, based on
7695 fast_find_position. Correctly handle before-strings,
7696 display-strings, and after-strings (Bug#1220).
7697 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7699 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7701 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7702 (move_it_in_display_line_to, move_it_in_display_line_to)
7703 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7705 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7709 2009-06-21 Jason Rumney <jasonr@gnu.org>
7711 * w32term.c (keyboard_codepage): New static variable.
7712 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7713 (w32_read_socket) [WM_CHAR]: Use it to decode character
7715 (w32_initialize): Initialize it.
7716 (codepage_for_locale): New function.
7718 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
7720 * process.c (status_message): Pass Faset index argument as a lisp
7721 object, so as to work with USE_LISP_UNION_TYPE.
7723 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7725 * coding.c (Ffind_coding_systems_region_internal):
7726 Cache checked characters.
7728 2009-06-18 Kenichi Handa <handa@m17n.org>
7730 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7732 2009-06-18 Andreas Schwab <aschwab@redhat.com>
7734 * xdisp.c (redisplay_internal): Check that the frame is still
7735 live after redisplay of its windows.
7736 (redisplay_windows): Check that the window is still live.
7738 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7740 * coding.c (detect_coding_utf_16): Fix previous change.
7742 2009-06-16 Kenichi Handa <handa@m17n.org>
7744 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7745 UTF-16 by checking the dispersion of Eth and Oth bytes.
7747 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7749 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7751 2009-06-15 Kenichi Handa <handa@m17n.org>
7753 * process.c (status_message): Fix previous change. Be sure to
7754 decode a localized string.
7756 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7758 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7759 add comment explaining why.
7761 2009-06-14 Sidney Markowitz <sidney@sidney.com>
7763 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7765 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7767 * nsfont.m (ns_attribute_value): Remove.
7768 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7769 (ns_has_attribute): Shrink the normal range.
7770 (ns_findfonts): Don't worry about requested spec in determining
7772 (ns_get_covering_families): Retain scriptToFamilies.
7774 2009-06-14 Seiji Zenitani <zenitani@mac.com>
7776 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7778 2009-06-11 Kenichi Handa <handa@m17n.org>
7780 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7781 overhang for the static composition case.
7783 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7785 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7786 overhang for the automatic composition case.
7788 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7791 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
7793 * xdisp.c (get_next_display_element): When handling wrap-prefix
7794 and line-prefix, treat \n as a control character (bug#3502).
7796 2009-06-10 Kenichi Handa <handa@m17n.org>
7798 * font.c (font_parse_family_registry): Fix for one-char foundry.
7799 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7801 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7803 * process.c (status_message): Fix handling of multibyte signal
7806 2009-06-09 Jim Meyering <meyering@redhat.com>
7808 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7809 color name is missing.
7811 2009-06-09 Kenichi Handa <handa@m17n.org>
7813 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7814 FROM-CODE and TO-CODE are codepoints of CHARSET.
7816 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7818 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7820 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7822 Changes to support :script/:lang/:otf in NS font driver.
7823 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7824 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7825 indicate not part of font driver interface, and change callers.
7826 (ns_get_family): Remove pointless null check.
7827 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7828 ns_spec_to_descriptor, ns_descriptor_to_entity.
7829 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7830 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7831 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7832 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7833 (ns_get_req_script, ns_accumulate_script_ranges)
7834 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7836 (nsfont_list, nsfont_match): Use ns_findfonts.
7837 (nsfont_open): Use font descriptor instead of traits.
7838 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7839 (dump_glyphstring): Rename to ns_dump_glyphstring.
7841 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7843 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7845 * fontset.c (fontset_from_font): Remove NS-specific code.
7847 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
7849 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7852 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
7854 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
7856 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7858 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7860 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
7862 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7863 account for the overflowing of newlines into the last glyph on the
7864 display line (Bug#3482).
7866 2009-06-05 David Reitter <david.reitter@gmail.com>
7868 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7869 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
7870 Fns_selection_exists_p, Fns_selection_owner_p.
7872 2009-06-03 Jason Rumney <jasonr@gnu.org>
7874 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7875 available. (Bug#3379)
7877 2009-05-29 Kenichi Handa <handa@m17n.org>
7879 * coding.c (get_translation_table):
7880 Check Venable_character_translation.
7882 2009-05-26 David Reitter <david.reitter@gmail.com>
7884 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7885 (x_make_frame_visible): Move frame to front rather than calling
7887 (keyDown:): Do not swallow events that aren't re-sent if frame
7889 (drawRect:): Do not set visibility/iconified flags because
7890 drawRect may be called by NSView even if the frame is hidden.
7892 * nsfns.m (Fx_create_frame): Follow other ports in
7893 determining visibility; default to t. Ensure async_visible is set.
7895 2009-05-23 Eli Zaretskii <eliz@gnu.org>
7897 * dired.c (Ffile_attributes): Doc fix.
7899 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
7901 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7903 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7905 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7906 and xfont_scratch_props.
7907 (syms_of_xfont): Do it here instead.
7908 (xfont_find_ccl_program): Delete, unused.
7909 (xfont_open): Delete unused var `i'.
7911 2009-05-21 Kenichi Handa <handa@m17n.org>
7913 * fontset.c (Qlatin): Don't make it static.
7915 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7917 (xfont_scripts_cache, xfont_scratch_props): New variables.
7918 (Qlatin, Vscalable_fonts_allowed): Extern it.
7919 (xfont_list_pattern): Argument changed. Callers changed.
7920 Check Vscalable_fonts_allowed. Check the support of a script.
7921 (xfont_list): Don't reject a font spec with :script property.
7922 (xfont_has_char): Fix setting of encoding.
7923 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7924 xfont_scratch_props.
7926 2009-05-19 Kenichi Handa <handa@m17n.org>
7928 * font.c (font_sort_entities): Rename from font_sort_entites.
7931 2009-05-18 Kenichi Handa <handa@m17n.org>
7933 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7935 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7937 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7938 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7940 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7942 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7943 (x_delete_terminal): Dissociate resource database from display and
7944 then call XrmDestroyDatabase before closing display.
7946 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7948 * nsterm.m (ns_read_socket): Remove unused variable.
7949 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7950 whether selected frame is viable before raising it (based on patch
7951 by David Reitter), and improve commentary.
7952 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
7954 2009-05-15 Kenichi Handa <handa@m17n.org>
7956 * font.c (Ffont_spec): Check arguments.
7958 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
7960 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7961 weight when testing attributes (Bug#3282).
7963 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7965 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7966 what we expect to get in the next ConfigureNotify event.
7968 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7969 before Xft one (Bug#1696).
7971 2009-05-07 David Reitter <david.reitter@gmail.com>
7973 * nsfns.m (Fx_display_planes): Compute bitplanes using
7974 NSBitsPerPixelFromDepth (Bug#3207).
7976 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
7978 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7980 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
7982 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7984 2009-05-07 David Reitter <david.reitter@gmail.com>
7986 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7987 Respect mouse face background.
7989 2009-05-07 David Reitter <david.reitter@gmail.com>
7991 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7992 Mouse movement/highlight: bracket drawing operations
7993 in ns_update_begin and ns_update_end.
7995 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7997 * nsfns.m (ns_get_screen): Rewrite.
7998 Don't presume selected-frame is of type `ns'.
8000 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8003 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8005 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8007 * keyboard.h (add_user_signal): Fix typo in extern.
8009 * lisp.h (add_user_signal): Remove extern.
8011 * unexelf.c (unexec): Consider a section to precede the .bss section
8012 if its addresses overlap that of .bss.
8013 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8014 instead of dumping process.
8016 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8018 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8020 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8022 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8024 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8026 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8029 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8031 * process.c (read_process_output): Make sure the current buffer is
8034 * coding.c (record_conversion_result): Don't modify
8035 Vlast_code_conversion_error for successful result.
8036 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8038 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8040 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
8041 (load_charset_map): Remove unnecessary code.
8043 2009-04-30 David Reitter <david.reitter@gmail.com>
8045 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
8048 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
8050 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8052 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8053 face_at_buffer_position.
8054 (face_before_or_after_it_pos, get_next_display_element)
8055 (note_mouse_highlight): Update face_at_buffer_position call.
8057 * term.c (term_mouse_highlight):
8058 * msdos.c (IT_note_mouse_highlight):
8059 * fontset.c (Finternal_char_font):
8060 * font.c (font_at, font_range): Update face_at_buffer_position call.
8062 * dispextern.h (face_at_buffer_position): Update prototype.
8064 2009-04-30 Kenichi Handa <handa@m17n.org>
8066 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
8068 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8070 * callproc.c (Fcall_process): Fix GC protection. Make sure
8071 current buffer is always restored.
8073 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8075 * atimer.c (init_atimer): Also clear stopped_atimers.
8077 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8079 * process.c (create_process): Clean up merger residues of
8082 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
8084 * lread.c (Vread_circle): New variable.
8085 (read1): Disable recursive read if Vread_circle is nil.
8087 2009-04-29 Kenichi Handa <handa@m17n.org>
8089 * fontset.h (set_default_ascii_font): Delete extern.
8091 * fontset.c (set_default_ascii_font): Delete this unused function.
8093 * frame.c (x_set_font): When ARG is a font-object, check if the
8094 font-object matches with the ASCII font-spec of the frame's
8095 fontset. If not, create a new fontset for the frame. (Bug #3075)
8097 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8099 * fns.c (Flocale_info): Protect vector from GC during decoding.
8101 * process.c (Fstart_process): Protect argv strings from GC during
8104 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8106 * sysdep.c: Include <ctype.h>.
8108 2009-04-27 David Reitter <david.reitter@gmail.com>
8110 * nsfont.m (nsfont_open): Remove unused variable shrink.
8111 Remove commented-out code.
8113 2009-04-26 Johan Bockgård <bojohan@gnu.org>
8115 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8117 2009-04-25 Jason Rumney <jasonr@gnu.org>
8119 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8121 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8123 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8124 Swap bytes in short integer if fringe bitmap width > 8.
8126 2009-04-23 Kenichi Handa <handa@m17n.org>
8128 * xfaces.c (Fx_list_fonts): If a font size is specified in
8129 PATTERN, set it in returned scalable fonts.
8131 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
8133 * keyboard.c (Fset_input_meta_mode): Doc fix.
8135 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8137 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
8139 * coding.c (Fterminal_coding_system): Doc fix.
8141 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8142 (Fx_display_pixel_height, Fx_display_planes)
8143 (Fx_display_color_cells, Fx_server_max_request_size)
8144 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8145 (Fx_display_mm_height, Fx_display_mm_width)
8146 (Fx_display_backing_store, Fx_display_visual_class)
8147 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8148 Doc fixes, replacing "terminal id" with "terminal object".
8149 (check_x_display_info): Handle terminal objects instead of
8152 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8153 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
8154 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8155 Doc fixes, replacing "terminal id" with "terminal object".
8157 2009-04-21 Kenichi Handa <handa@m17n.org>
8159 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
8160 (font_score): Check AVGWIDTH too.
8162 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8164 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8165 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
8167 2009-04-19 Jason Rumney <jasonr@gnu.org>
8169 The following changes fix Bug#3005 for wide glyphs on each platform,
8170 without reintroducing Bug#1258 for stretch glyphs.
8172 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8173 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8174 get_phys_cursor_geometry.
8176 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
8177 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8178 using get_phys_cursor_geometry.
8180 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8181 correctly calculated.
8183 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8185 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8186 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
8187 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8190 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8192 * font.c (font_put_frame_data): Use xfree instead of free.
8194 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
8196 * w32font.c (Qja, Qko): Remove declarations.
8197 (syms_of_w32font): Don't DEFSYM them.
8199 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
8201 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8203 * font.h (Qja, Qko): Extern them.
8205 * ftfont.c (Qja, Qko): Remove declarations.
8207 * xfont.c (Qja, Qko): Remove declarations.
8209 2009-04-17 Kenichi Handa <handa@m17n.org>
8211 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8212 string from a vector to handle Latin-1 characters correctly.
8214 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8215 entity even if the cache hits.
8217 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8219 * search.c (boyer_moore): Use zero as marker value for a possible
8220 match instead of depending on overflow behavior. (Bug#2844)
8222 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8223 * lisp.h: Adjust prototypes.
8225 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
8227 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8230 2009-04-16 Kenichi Handa <handa@m17n.org>
8232 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
8234 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8237 * ftfont.c (Qja, Qko): Don't make them static.
8238 (enum ftfont_cache_for): New enum.
8239 (fc_charset_table): Undo the previous change.
8240 (ftfont_get_latin1_charset): Delete it.
8241 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8242 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
8243 non-scarable font, try to get AVERAGE_WIDTH.
8244 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8245 Change ft_face_cache from a list of a hash-table. Don't check
8246 `ja' and `ko' adstyle here.
8247 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8248 FTFONT_CACHE_FOR_CHARET.
8249 (ftfont_get_charset): Undo the previous change.
8250 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
8251 (ftfont_close): Likewise.
8252 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8254 * font.c (font_sort_entites): Change the meaning of the arg
8255 BEST-ONLY. Don't optimize for VEC of lenght 1.
8256 (font_select_entity): Just return the value of font_sort_entites.
8258 * xfaces.c (merge_face_vectors): Reflect font properties in
8259 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8260 font_clear_prop if a face attribute doesn't change.
8262 * charset.h (charset_ksc5601): Extern it.
8264 * charset.c (charset_ksc5601): New variable.
8265 (Fdefine_charset_internal): Set charset_ksc5601.
8266 (init_charset_once): Initialize charset_ksc5601 to -1.
8268 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8270 * fileio.c (history_delete_duplicates): Remove unused declaration.
8272 * callint.c (history_delete_duplicates): New declaration.
8273 (Fcall_interactively): Remove command history duplicates when
8274 history_delete_duplicates is true.
8276 2009-04-14 Eli Zaretskii <eliz@gnu.org>
8278 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8280 2009-04-14 Kenichi Handa <handa@m17n.org>
8282 * font.c (Ffont_info): Fix docstring. Fix the second element of
8283 the returned value (bug#2949).
8285 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
8287 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8289 2009-04-14 Kenichi Handa <handa@m17n.org>
8291 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8292 encoding charset is ascii_compatible.
8294 * charset.c (Fdefine_charset_internal): Make charset
8295 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8296 code_offset is 0, and covers all ASCII characters.
8298 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8300 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8301 (ns_string_to_pasteboard_internal):
8302 * nsmenu.m (process_dialog):
8303 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8304 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8305 * lisp.h (Fx_load_color_file): Declare.
8307 2009-04-13 Kenichi Handa <handa@m17n.org>
8309 * font.c (font_delete_unmatched): Preserve the order of list elements.
8310 (font_select_entity): Suppress the code to optimize for the same
8312 (font_load_for_lface): Get a font that supports at least ASCII
8315 * ftfont.c (Qja, Qko): New variables.
8316 (fc_charset_table): Delete uniquifier data for iso8859-1.
8317 (ftfont_get_latin1_charset): New function.
8318 (get_adstyle_property): New function.
8319 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8321 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8322 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8324 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
8325 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
8326 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8328 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8329 (syms_of_ftfont): DEFSYM Qja and Qko.
8331 2009-04-09 Kenichi Handa <handa@m17n.org>
8333 * charset.c (map_charset_chars): For a charset of `superset'
8334 method, fix calculation of code range.
8336 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8337 from the list of extra properties.
8338 (font_clear_prop): Be sure to delete `:name' font property.
8340 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8342 * dispnew.c (redraw_overlapping_rows): Fix detection of
8343 overlapping for topmost and bottommost rows.
8345 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
8347 2009-04-06 Jason Rumney <jasonr@gnu.org>
8349 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8351 2009-04-06 Kenichi Handa <handa@m17n.org>
8353 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8355 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8357 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8359 * ftfont.c (ftfont_open): Fix checking of the return value of
8360 FT_Load_Char. Fix setting font->underline_thickness.
8362 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
8364 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8365 (Fterminal_parameters, Fterminal_parameter)
8366 (Fset_terminal_parameter): In doc string, refer to terminal
8367 objects rather than terminal ids.
8369 2009-04-04 Eli Zaretskii <eliz@gnu.org>
8371 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8372 ret_lim_data. (Bug#2867)
8374 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
8376 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8377 so they don't get wider than the window, matching 2006-01-23
8378 change to the partner function in xdisp.c (Bug#2800).
8380 2009-04-03 Kenichi Handa <handa@m17n.org>
8382 * print.c (print_object): Make each lowest sub_char_table start a
8383 new line (Bug#2866).
8385 2009-04-02 Kenichi Handa <handa@m17n.org>
8387 * fontset.c (fontset_font): Record no-font when a fontset
8388 explicitly tells not to try another font-specs.
8390 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8392 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8394 2009-03-30 Kenichi Handa <handa@m17n.org>
8396 * fontset.c (fontset_from_font): Specify only registry in a
8397 font-spec for all characters supported by that registry.
8399 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8400 even if HAVE_M17N_FLT is not defined.
8402 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8404 * ftfont.c: Conditionalize prototyping and use of
8405 ftfont_variation_glyphs.
8407 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8409 * frame.c (delete_frame): Work around compiler bug.
8411 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8412 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8413 Some more EMACS_INT.
8414 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8416 * xdisp.c (dump_glyph): Fix typo.
8418 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8419 (adjust_markers_gap_motion, adjust_markers_for_delete)
8420 (adjust_markers_for_insert, adjust_point)
8421 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8422 (make_gap, copy_text, count_size_as_multibyte, insert)
8423 (insert_and_inherit, insert_before_markers)
8424 (insert_before_markers_and_inherit, insert_1)
8425 (count_combining_before, count_combining_after, insert_1_both)
8426 (insert_from_string, insert_from_string_before_markers)
8427 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8428 (insert_from_buffer_1, adjust_after_replace)
8429 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8430 (replace_range_2, del_range, del_range_1, del_range_byte)
8431 (del_range_both, del_range_2, modify_region)
8432 (prepare_to_modify_buffer, signal_before_change)
8433 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8434 for buffer positions and sizes.
8435 * lisp.h: Adjust prototypes accordingly.
8437 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8438 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8439 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8441 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8443 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8445 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8446 lines and columns so we keep the same pixel height and width.
8448 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8449 the property _NET_WM_STATE has changed.
8450 (x_handle_net_wm_state): New function to update frame parameter
8452 (x_term_init): Initialize atoms for _NET_WM_STATE.
8454 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8456 2009-03-27 Kevin Ryde <user42@zip.com.au>
8458 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8459 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8460 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8461 (Fgpm_mouse_stop): Pass that new parameter.
8462 * termhooks.h (close_gpm): Adjust prototype.
8464 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8466 * lisp.h (Fx_focus_frame): Declare.
8468 * callint.c (Fcall_interactively): For '^' just delegate the work to
8469 handle-shift-selection.
8470 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8472 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8474 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8476 * data.c (Qinteractive_form): New variable.
8477 (Finteractive_form): Use it.
8479 * eval.c (Fcommandp): Use Qinteractive_form.
8481 2009-03-24 Jason Rumney <jasonr@gnu.org>
8483 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8484 Calculate total size precisely. Decode environment variables
8485 before substituting. (Bug#38)
8487 2009-03-24 Kenichi Handa <handa@m17n.org>
8489 * font.c (find_font_encoding): Return Qnil for unsupported
8490 encoding (Bug#2722).
8492 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8494 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8497 2009-03-22 Alan Mackenzie <acm@muc.de>
8499 * callint.c (Finteractive): Clarify the doc string - even
8500 promptless elements need \n separators.
8502 2009-03-22 Jason Rumney <jasonr@gnu.org>
8504 * w32term.c (syms_of_w32term): Doc fix for
8505 x-use-underline-position-properties.
8507 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8509 * w32.c (getpwuid): Change argument type to unsigned.
8510 (struct w32_id): Change type of `rid' member to unsigned.
8511 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8512 argument ID to unsigned. All callers changed.
8513 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8515 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8517 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8518 negative, produce a float value.
8520 * dired.c (make_uid, make_gid): New functions.
8521 (Ffile_attributes): Use them to avoid negative UID and GID.
8523 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8525 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8526 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8527 Fix typos in docstrings.
8529 2009-03-19 Kenichi Handa <handa@m17n.org>
8531 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8532 changed, use font_load_for_lface to get a new font object.
8533 Call free_realized_fontset after handling ASCII font change.
8535 * frame.c (x_set_font): Handle the case that ARG is a cons.
8537 2009-03-19 Glenn Morris <rgm@gnu.org>
8539 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8541 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8543 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8545 2009-03-19 Kenichi Handa <handa@m17n.org>
8547 * charset.c (load_charset_map_from_file): When a mapfile can't be
8548 loaded, signal an error.
8550 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8552 * dired.c (Ffile_attributes): Make sure UID and GID are always
8553 positive, even if the value is too large for a positive EMACS_INT.
8556 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8558 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8560 * xmenu.c (xdialog_show): Move Fredisplay call ...
8561 (Fx_popup_dialog): ... here.
8563 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8565 * dired.c (file_name_completion): Disable the first optimization just
8566 installed, since it is not implemented correctly.
8568 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8570 * dired.c (file_name_completion): Check completion-ignored-extensions
8571 only if the entry can affect bestmatch.
8572 Stop the search early, as Ftry_completion already does.
8574 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
8576 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8578 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
8580 * keyboard.c (parse_menu_item): Don't display remappings as menu
8581 equivalent bindings (Bug#788).
8583 2009-03-15 Jason Rumney <jasonr@gnu.org>
8585 * w32term.h (WM_EMACS_PAINT): New message.
8586 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8587 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8588 before passing to lisp thread. (Bug#950)
8590 2009-03-14 David Reitter <david.reitter@gmail.com>
8592 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8593 variable as it was never reset.
8594 (ns_term_init): Remove initialization of Lisp-settable defaults
8595 and ns_expand_space.
8596 (-setPanelFromDefaultValues): Remove ns_expand_space.
8597 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8598 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8599 i.e. no additional spacing, similar to Carbon port.
8601 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8602 * nsfns.m (ns-popup-prefs-panel): Remove.
8604 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8606 * sound.c (alsa_configure): Remove call to deprecated
8607 snd_pcm_sw_params_set_xfer_align.
8609 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
8611 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8612 after clicking in a detached tool bar.
8613 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8615 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8617 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8618 int/Lisp_Object mixup).
8620 2009-03-13 Kenichi Handa <handa@m17n.org>
8622 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8623 Handle NAME nil and t correctly. Callers changed.
8624 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8625 (set_fontset_font): Change ARG to a vector. Handle range_list in
8627 (Fset_fontset_font): Fix the case that TARGET is both a script
8628 name and charset name. Adjust the arg to set_fontset_font for
8630 (fontset_from_font): Fix previous change.
8631 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8632 entry. If FONTSET is the default fontset, don't set the extra
8633 slot of the returning char-table.
8635 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
8637 * nsfns.m (Fx_close_connection): Doc fix.
8638 (Fns_do_applescript): Reflow docstring.
8639 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8640 (Fx_display_pixel_width, Fx_display_pixel_height)
8641 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8642 Fix typos in docstrings.
8643 (Fns_set_alpha): Fix typos in error messages.
8645 2009-03-12 David Reitter <david.reitter@gmail.com>
8647 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8648 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8649 were used for such events.
8651 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8652 (toggleToolbar, performDragOperation, runHelp): Use it.
8654 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8655 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8657 2009-03-11 Kenichi Handa <handa@m17n.org>
8659 * font.h (font_open_by_spec): Extern it.
8661 * font.c (font_open_by_spec): New function.
8662 (font_open_by_name): Use font_open_by_spec.
8664 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8665 fontset of the frame.
8667 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8668 modify the default font of frames that use this fontset.
8669 (num_auto_fontsets): New variable.
8670 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8671 name. Be sure to set FONTSET_ASCII to the correct font name.
8672 (update_auto_fontset_alist): New function.
8674 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
8676 * makefile.w32-in: Update dependencies.
8678 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8680 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8682 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8684 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8686 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
8688 * lread.c (Feval_buffer): Doc fix.
8690 2009-03-09 Kenichi Handa <handa@m17n.org>
8692 * charset.c (Qfile_name_handler_alist): Extern it.
8693 (load_charset_map_from_file): Temporarily bind
8694 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8696 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8698 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8699 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
8701 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8703 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8704 (x_set_window_size): Change back to calculated method of setting
8705 toolbar height under Cocoa. (Bug#2546)
8706 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8707 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8709 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8711 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8712 accelerator in parens under GNUstep.
8714 2009-03-06 Kenichi Handa <handa@m17n.org>
8716 These changes are to detect incorrect composition sequence without
8717 looking ahead the source. (Bug#2370)
8719 * coding.h: Include "composite.h".
8720 (enum compisition_state): New enum.
8721 (struct compisition_status): New struct.
8722 (struct iso_2022_spec): New member cmp_status.
8723 (struct emacs_mule_spec): New struct.
8724 (struct coding_system): New members ctext_extended_segment_len and
8725 embedded_utf_8. Change the union member
8726 spec.emacs_mule_full_support to spec.emacs_mule.
8728 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8729 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8730 (MAX_ANNOTATION_LENGTH): Define to 5.
8731 (ADD_COMPOSITION_DATA): New arg nbytes.
8732 (emacs_mule_char): New arg cmp_status.
8733 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8734 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8735 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8736 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8737 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8738 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8739 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8740 (EMACS_MULE_COMPOSITION_END): New macro.
8741 (emacs_mule_finish_composition): New function.
8742 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8743 (decode_coding_emacs_mule): Avoid long looking ahead while
8744 handling composition.
8745 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8746 (ENCODE_COMPOSITION_RULE): New macro.
8747 (finish_composition): New function.
8748 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8749 (DECODE_COMPOSITION_START): New implementation.
8750 (DECODE_COMPOSITION_END): Likewise.
8751 (STORE_COMPOSITION_RULE): New macro.
8752 (decode_coding_iso_2022): Avoid long looking ahead while handling
8753 composition, CTEXT extended segment, and embedded UTF-8.
8754 (setup_coding_system): For a coding of type iso-2022, reset
8755 CODING_ISO_EXTSEGMENT_LEN (coding) and
8756 CODING_ISO_EMBEDDED_UTF_8 (coding).
8757 (get_translation): Delete arguments last_block, from_nchars,
8758 to_nchars. Callers changed.
8759 (produce_chars): Don't modify charbuf. Adjusted for the change of
8761 (produce_composition): Adjust for the new annotation sequence.
8762 (handle_composition_annotation): Likewise.
8763 (consume_chars): Adjust for the change of get_translation.
8765 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8767 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
8769 2009-03-05 Kenichi Handa <handa@m17n.org>
8771 * font.c (font_select_entity): New function.
8772 (font_find_for_lface): Use font_select_entity to select a font.
8774 * fontset.c (fontset_find_font): If a font found without
8775 restricting to the characters C doesn't support C, try to find a
8776 font with C restriction.
8778 2009-03-04 Nikolaj Schumacher <me@nschum.de>
8780 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8782 2009-03-04 Jason Rumney <jasonr@gnu.org>
8784 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8785 characters that have already been read. (Bug#2569)
8787 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8788 Log an error message if check_image_size failed.
8789 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8790 (gs_load): Mention max-image-size in size error message. (Bug#2560)
8792 2009-03-02 Eli Zaretskii <eliz@gnu.org>
8794 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8795 when decoding process output.
8797 2009-03-01 Richard M Stallman <rms@gnu.org>
8799 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8801 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8803 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8805 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8806 (decode_coding_emacs_mule, decode_coding_iso_2022)
8807 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8808 (decode_coding_raw_text, decode_coding_charset)
8809 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8810 Honor inhibit-eol-conversion. (Bug #2186)
8812 2009-02-28 Jason Rumney <jasonr@gnu.org>
8814 * coding.c (detect_coding_charset): If not checking latin extra,
8815 fail on characters between 0x80 and 0xA0. (Bug#2354)
8817 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8819 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
8820 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
8822 2009-02-27 Glenn Morris <rgm@gnu.org>
8824 * callint.c (Finteractive): Doc fix.
8826 2009-02-27 Kenichi Handa <handa@m17n.org>
8828 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8830 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
8832 * font.c (font_style_to_value): Set value for unknown symbols to
8834 (weight_table, slant_table, width_table): Treat "unspecified" as
8837 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
8839 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8841 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
8843 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8844 error as soon as a recursive load is detected.
8846 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8848 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8851 2009-02-24 Kenichi Handa <handa@m17n.org>
8853 * fontset.c (fontset_find_font): Fix the condition for checking
8856 2009-02-24 Glenn Morris <rgm@gnu.org>
8858 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8859 whitespace that confuses documentation.
8861 2009-02-23 Miles Bader <miles@gnu.org>
8863 * process.c (Flist_system_processes, Fprocess_attributes)
8864 (syms_of_process): Rename `system-process-attributes' to
8865 `process-attributes'.
8867 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8869 * coding.h (struct coding_system): Make safe_charsets a pointer to
8871 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8873 (SAFE_CHARSET_P): Likewise.
8874 (setup_iso_safe_charsets): Properly setup safe_charsets.
8875 (Fdefine_coding_system_internal): Likewise.
8876 (setup_coding_system): Likewise. Remove unneeded casts.
8877 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8878 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8881 * insdel.c (del_range_2): Don't modify gap contents when called
8882 from decode_coding_object. (Bug#1809)
8884 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
8886 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8888 (Ftype_of): Recognize font objects.
8890 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8892 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8895 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8897 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8898 async_iconified. Based on a patch by Christian Lynbech
8899 <christian.lynbech@tieto.com>.
8900 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8902 2009-02-20 Glenn Morris <rgm@gnu.org>
8904 * syntax.c (Fskip_chars_forward): Fix doc typo.
8906 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
8908 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8910 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
8912 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8914 2009-02-19 Kenichi Handa <handa@m17n.org>
8916 * coding.c (detect_coding): Preserve coding->mode.
8917 Don't overflow coding->carryover. (Bug#2370)
8919 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8921 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8923 2009-02-18 Kenichi Handa <handa@m17n.org>
8925 * font.c (font_check_otf_features): Fix handling of `nil' element.
8926 (Ffont_spec): Describe :lang and :otf in the docstring.
8928 2009-02-16 Andreas Schwab <schwab@suse.de>
8930 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8933 2009-02-16 Kenichi Handa <handa@m17n.org>
8935 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
8938 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
8940 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8942 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8943 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8945 2009-02-14 Eli Zaretskii <eliz@gnu.org>
8947 * msdos.c (MAX_SCREEN_BUF): New macro.
8948 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8949 Encode the entire run of glyphs sharing the same face, instead of
8950 doing that one glyph at a time (fixes a bug with displaying
8951 double-size characters).
8953 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8955 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8957 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8958 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
8959 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
8961 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
8962 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
8964 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8966 * keyboard.c (adjust_point_for_property): Allow stopping between two
8969 2009-02-12 Jason Rumney <jasonr@gnu.org>
8971 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8972 (add_font_entity_to_list): Call check_face_name even when family
8975 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8976 Release DC when finished. Use NULL window to refer to desktop.
8977 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
8979 * w32font.c (add_font_entity_to_list): Fix check for substituted
8980 raster fonts. (Bug#2219)
8982 2009-02-12 Kenichi Handa <handa@m17n.org>
8984 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8985 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8986 (autocmp_chars): Use fast_looking_at. Don't compose more
8987 characters than MAX_COMPOSITION_COMPONENTS.
8988 (find_automatic_composition): While looking forward and backward,
8989 check static composition. Fix where to stop looking forward.
8990 (composition_adjust_point): Fix checking of static composition.
8991 (Fcomposition_get_gstring): Pay attention to
8992 MAX_COMPOSITION_COMPONENTS.
8994 * lisp.h (fast_looking_at): Extern it.
8996 * search.c (fast_looking_at): New function.
8998 * term.c (encode_terminal_code): Adjust for the change of
8999 <struct glyph>.u.cmp.to.
9000 (append_composite_glyph): Likewise.
9002 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
9003 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9005 (append_composite_glyph): Adjust for the change of
9006 <strcut glyph>.u.cmp.to.
9008 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
9010 * casetab.c (init_casetab_once):
9011 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9012 * font.c (font_update_lface):
9013 * fontset.c (Fnew_fontset):
9014 * ftfont.c (ftfont_drive_otf):
9015 * xfont.c (xfont_open):
9016 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9018 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9020 * fileio.c (Fwrite_region): !NILP -> CONSP.
9022 2009-02-10 Andreas Schwab <schwab@suse.de>
9024 * process.c (send_process): Properly relocate pointer into data
9025 when using encoded data. (Bug#2272)
9027 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9029 * coding.c (detect_coding_charset): Fix previous change.
9031 2009-02-08 Jason Rumney <jasonr@gnu.org>
9033 * w32fns.c (w32_hide_hourglass): Handle case where frame
9034 disappeared while hourglass was displayed. (Bug #2193)
9036 2009-02-07 Andreas Schwab <schwab@suse.de>
9038 * unexelf.c (unexec): Fix error message.
9040 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9042 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
9043 when modal window is active. (Bug #2152)
9044 (applicationShouldTerminate:): Remove now-unneeded while loop
9045 around NSRunAlertPanel.
9047 * nsmenu.m (popupSession): New file-global variable.
9048 (pop_down_menu): End the popupSession before closing dialog.
9049 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9050 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9051 don't query NSApp for events (just sleep instead).
9053 2009-02-07 Eli Zaretskii <eliz@gnu.org>
9055 * coding.c (syms_of_coding) <translation-table-for-input>:
9056 Modify doc string to discourage use for character code unification.
9058 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9060 * atimer.c (run_timers): Update pending_atimers.
9062 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
9064 * image.c (svg_load_image): Fix last change.
9066 * xfns.c (Fx_create_frame): Signal an error if no font is
9069 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
9071 * character.c (syms_of_character) <script-representative-chars>:
9072 Fix typo in docstring.
9074 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9076 * nsmenu.m (pop_down_menu): New function.
9077 (ns_popup_dialog): Call it on unwind.
9078 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9079 call timer_check() (Bug#2154).
9080 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9081 handling_signal is set.
9082 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9084 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
9086 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9088 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9090 * keyboard.c (poll_for_input_1, handle_async_input):
9091 Set handling_signal under HAVE_NS.
9093 2009-02-04 Glenn Morris <rgm@gnu.org>
9095 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9097 2009-02-04 Kenichi Handa <handa@m17n.org>
9099 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9101 * charset.c (Fchar_charset): New optional arg restriction.
9103 * coding.h (coding_system_charset_list): Extern it.
9105 * coding.c (coding_system_charset_list): New function.
9107 * composite.c: Include coding.h and termhooks.h.
9108 (composition_gstring_p): Fix for the terminal case.
9109 (composition_gstring_width): Likewise.
9110 (fill_gstring_body): Likewise.
9111 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9113 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9114 is within a composition.
9115 (Fcomposition_get_gstring): Fix the terminal case.
9117 * term.c (encode_terminal_code): Fix handling of composition.
9118 (produce_composite_glyph): For static composition, get pixel_width
9119 from struct composition.
9121 2009-02-02 Andreas Schwab <schwab@suse.de>
9123 * unexelf.c (unexec): Handle unaligned bss offset.
9125 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9127 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9128 XT,w32read_socket changes to ns_read_socket.
9130 * keyboard.c (handle_interrupt): Don't call
9131 quit_throw_to_read_char() under NS.
9133 * blockinput.h: Remove NS-specific code.
9135 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9137 * dispnew.c (window_change_signal): Don't try to get the size of a
9138 suspended tty frame.
9139 * term.c (Fresume_tty): Resize if the size has changed while the
9142 * alloc.c (mark_stack): Properly conditionalize previous change.
9144 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9146 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9147 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9148 Remove; this code is not used on Windows.
9150 2009-01-30 Eli Zaretskii <eliz@gnu.org>
9152 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9153 EOLs that also has stray ^M characters.
9155 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9157 * atimer.c (run_timers, alarm_signal_handler):
9158 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9159 * w32inevt.c (w32_console_read_socket):
9160 * w32term.c (w32_read_socket):
9161 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9163 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
9165 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9166 Initialize it as a relative filename pattern.
9167 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9168 (Fcall_process_region): Simplify temp file creation using
9169 temporary-file-directory.
9171 2009-01-29 Eli Zaretskii <eliz@gnu.org>
9173 * msdos.c: Rename pending_signals to msdos_pending_signals.
9174 (sig_suspender, sigprocmask): Adjust.
9176 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
9178 * keyboard.c (pending_signals): New var.
9179 (poll_for_input, input_available_signal, init_keyboard): Set it.
9180 (process_pending_signals): New function.
9182 * lisp.h (QUIT): Check pending_signals instead of
9183 interrupt_input_pending. Use process_pending_signals.
9185 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
9187 * process.c (wait_reading_process_output): Use process_pending_signals.
9189 * sysdep.c (emacs_write): Use process_pending_signals.
9191 * xterm.c (XTread_socket): Update pending_signals.
9193 * w32term.c (w32_read_socket): Update pending_signals.
9195 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9197 2009-01-29 Kenichi Handa <handa@m17n.org>
9199 * xftfont.c (xftfont_has_char): New function.
9200 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9202 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9204 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9206 (ns_query_color): New declaration.
9208 * nsterm.m (ns_confirm_quit): New variable.
9209 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9210 (EmacsApp-applicationShouldTerminate:): Use it.
9211 (EmacsPrefsController): Let user set it.
9212 (ns_query_color): New function.
9213 (ns_defined_color): Use it.
9214 (ns_initialize): Drop.
9215 (ns_term_init): Add two lines from ns_initialize(), and set
9216 input_interrupt_mode to nil.
9218 * image.c (svg_load_image): Don't right-shift background RGB when
9219 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
9221 2009-01-28 Kenichi Handa <handa@m17n.org>
9223 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9224 (fontset_get_font_group): Remember that no font-group is specified
9227 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
9229 * fns.c (concat): Check for string overflow (bug#1787).
9231 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9232 Quadruple undo limits (bug#1501).
9234 2009-01-27 Kenichi Handa <handa@m17n.org>
9236 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9237 directly use GT_Get_Char_index.
9239 * xftfont.c (struct xftfont_info): New member `index'.
9241 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9242 (Ffontset_font): Adjust for the change of fontset entry.
9244 2009-01-26 Kenichi Handa <handa@m17n.org>
9246 * fontset.c (fontset_find_font): Fix handling of non-cons return
9247 value of fontset_get_font_group.
9248 (fontset_font): Revert last change.
9250 2009-01-26 Jason Rumney <jasonr@gnu.org>
9252 * w32font.c (w32font_list_internal): Return quickly if registry is
9253 unknown. Simplify final return.
9254 (add_font_entity_to_list): Break complex logic down into more
9255 manageable chunks. Move unknown registry check to
9256 w32font_list_internal.
9258 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9260 Changes to remove Feval calls from GUI under NS.
9262 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9263 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
9264 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9266 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9267 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9268 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9269 instead of NON_ASCII_KEYSTROKE_EVENT.
9270 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9271 (EmacsApp-applicationShouldTerminate:): Query user.
9272 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9275 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9277 * keyboard.c (kbd_buffer_get_event): Check for it.
9278 (keys_of_keyboard): Define lispy keys for
9279 ns-put/unput-working-text.
9281 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9283 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9285 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
9287 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
9288 setting current_buffer directly. (Bug#2044)
9290 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
9292 * fontset.c (fontset_font): If we know there is no font, don't do
9293 any work. (Bug#1952, bug#1990).
9295 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
9297 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9299 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
9300 (ns_no_defaults): New declaration.
9303 * nsterm.h (ns_no_defaults): New declaration.
9305 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
9307 * nsterm.m (ns_no_defaults): New variable.
9308 (ns_initialize): Don't read defaults when ns_no_defaults.
9309 (EmacsView-readSelectionFromPasteboard:)
9310 (writeSelectionToPasteboard:types:): New stubbed-out methods for
9311 NSServicesRequests protocol. (Bug#1435)
9312 (ns_dumpglyphs_stretch): New function.
9313 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
9314 of 2008-11-15 to other terms. (Bug#615)
9316 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9318 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9320 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9323 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9330 * nsterm.m: Remove '23' comments that indicated code added during
9331 update from emacs-20 -> emacs-23.
9333 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9335 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
9336 ns_alternate_modifier. (Bug#1217)
9338 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9339 Display all shortcuts, including those w/o super modifier.
9341 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9343 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
9345 * fileio.c (Vwrite_region_post_annotation_function)
9346 (Vwrite_region_annotation_buffers): New vars.
9347 (build_annotations_unwind): Just reset
9348 Vwrite_region_annotation_buffers.
9349 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9350 Call write-region-post-annotation-function.
9351 (build_annotations): Add to Vwrite_region_annotation_buffers if
9354 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9356 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9358 * nsfns.m (ns_do_applescript):
9359 Conditionalize typeUTF16ExternalRepresentation on Tiger.
9361 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9363 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9365 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9367 * nsmenu.m (NSMENUPROFILE): Change #if style.
9369 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9371 * nsterm.m (x_set_frame_alpha): Add prototype.
9372 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9373 handle Ctrl-tab. (Bug#1841)
9374 (ns_get_color): Use unsigned long long for scanned hex string value.
9375 (ns_term_shutdown): Abort on non SIGTERM signals.
9376 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
9377 (EmacsPrefsController-setPanelFromDefaultValues): New function.
9378 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
9379 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
9380 (ns_defined_color): Fix settings of the XColor variable fields:
9381 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
9383 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
9385 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9386 values in onTiger section.
9388 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9390 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9391 Check return value of font_spec_from_name.
9392 (Fx_list_fonts): Doc fix. (Bug#1951)
9394 * font.c (font_spec_from_name): Return Qnil if font name could not
9396 (font_parse_name): Treat a `?' character as part of an XLFD.
9398 * fns.c (Fsubstring): Doc fix.
9400 2009-01-19 Kenichi Handa <handa@m17n.org>
9402 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9403 (ftfont_list): Likewise.
9405 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9407 * dbusbind.c (Fdbus_register_signal):
9408 * process.c (conv_sockaddr_to_lisp):
9409 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9411 * callproc.c (Fgetenv_internal): Doc fix.
9413 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9415 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9416 it is not even used.
9418 2009-01-16 Glenn Morris <rgm@gnu.org>
9420 * font.c (Ffont_variation_glyphs): Silence compiler.
9422 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9424 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9425 Reported by David Robinow <drobinow@gmail.com>.
9427 2009-01-15 Kenichi Handa <handa@m17n.org>
9429 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9431 2009-01-14 Jason Rumney <jasonr@gnu.org>
9433 * frame.c (x_set_font): Always store a font to the font parameter,
9434 never a fontset. (Bug#1562)
9436 2009-01-14 Kenichi Handa <handa@m17n.org>
9438 * coding.c (TWO_MORE_BYTES): New macro.
9439 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9441 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9443 * font.c (font_clear_prop): If clearing the family, clear the font
9446 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9448 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9450 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9451 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9452 functions, use sizeof.
9454 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9456 * keyboard.c (read_char): Fix case where last_nonmenu_event
9457 returned a bad value with submenus. (Bug#447)
9459 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9461 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9462 family, clear the font width index too.
9464 2009-01-11 Jason Rumney <jasonr@gnu.org>
9466 * keyboard.c (cmd_error_internal): Exit when errors occur before
9467 frame creation and not in daemon mode. (Bug#1836)
9469 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9471 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9472 of a display vector, backtrack.
9473 (try_window_reusing_current_matrix): Check glyph type before
9474 referencing charpos member.
9476 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9480 * coding.c (inhibit_null_byte_detection): New variable.
9481 (detect_coding, detect_coding_system): Don't pay attention to null
9482 bytes if inhibit_null_byte_detection is non-zero.
9483 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9484 <inhibit-iso-escape-detection>: Doc fix.
9486 2009-01-09 Jason Rumney <jasonr@gnu.org>
9488 * w32font.c (add_font_entity_to_list): Don't report unknown
9489 Windows charset as any unrecognized registry. (Bug#1548)
9490 Only report Unicode Plane 2 fonts as unicode-sip.
9492 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9494 * xfaces.c (Fx_font_family_list): Delete function.
9495 Move compatibility version to faces.el.
9497 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9499 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9501 * frame.c (x_set_frame_parameters): Remember requested value for
9502 fullscreen before it's reset by the parameter handler.
9504 2009-01-09 Glenn Morris <rgm@gnu.org>
9506 * keyboard.c (last_command_char): For clarity, rename to...
9507 (last_command_event): ... and update all users.
9508 (last_input_char): For clarity, rename to...
9509 (last_input_event): ... and update all users.
9510 (last-command-char, last-input-char): Move to subr.el as aliases.
9511 * cmds.c, commands.h: Update for last_command_char rename.
9513 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9515 * font.c (font_open_for_lface): Handle unspecified height attribute.
9517 2009-01-08 Jason Rumney <jasonr@gnu.org>
9519 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9520 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9521 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9523 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9524 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9526 2009-01-07 Kenichi Handa <handa@m17n.org>
9528 * fileio.c (Finsert_file_contents): In the case of replace,
9529 remember the coding system used for decoding in
9530 coding_system (Bug#1039).
9532 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9533 breaking the loop. (Bug#870)
9534 (decode_coding_utf_16, decode_coding_emacs_mule)
9535 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9536 (decode_coding_charset): Likewise.
9538 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9540 * frame.c (x_set_frame_parameters): Make sure height (width) get
9541 applied when fullwidth (fullheight) is set. (Bug#1522)
9543 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9545 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9546 (utc_base): Declare as ULONGLONG, not long double.
9547 (convert_time_raw): Delete.
9548 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9549 (initialize_utc_base): New function.
9550 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9551 (convert_from_time_t): Use initialize_utc_base; compute result with
9553 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9555 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9557 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9558 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9559 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9560 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9561 [!subprocesses]: Define.
9562 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9563 (Flist_system_processes, Fsystem_process_attributes)
9564 [!subprocesses]: Call list_system_processes and
9565 system_process_attributes instead of returning Qnil.
9567 * dosfns.c (system_process_attributes, list_system_processes):
9570 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9572 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9573 Don't use the default (no-op) implementation.
9575 2009-01-03 Jason Rumney <jasonr@gnu.org>
9577 * keyboard.c (parse_modifiers_uncached): Wheel events are
9580 * w32term.c (x_query_colors, x_query_color): New functions.
9582 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9583 (svg_load_image): Cast returned pointers from dynamically loaded
9584 functions. Eliminate W32 specific code.
9586 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9588 * nsfns.m (x_set_foreground_color, x_set_background_color)
9589 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9590 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9591 x_ prefix instead of ns_. Update references.
9592 (syms_of_nsfns): Add a FIXME comment.
9594 * nsterm.m (x_set_cursor_type): New prototype.
9595 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9597 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9598 for Solaris instead of incorrectly providing Qutime and Qcutime.
9600 2009-01-02 Eli Zaretskii <eliz@gnu.org>
9602 * w32.c (process_times): Compute sum of utime and stime.
9603 (system_process_attributes): Add Qtime to the alist.
9605 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9606 and add them to the alist.
9608 * process.c (top level) <Qtime, Qctime>: New variables.
9609 (syms_of_process): staticpro them.
9610 (Fsystem_process_attributes): Add their documentation to the doc
9613 * process.h: Declare Qtime and Qctime.
9615 2009-01-02 Jason Rumney <jasonr@gnu.org>
9617 * image.c (Qgobject): New symbol.
9618 (syms_of_image): Initialize it.
9619 (init_svg_functions): Load some functions from gobject library.
9621 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9623 * frame.c (make_terminal_frame): Remove redundant code and useless
9626 2009-01-01 Andreas Schwab <schwab@suse.de>
9628 * process.c (conv_sockaddr_to_lisp): Add workaround for
9629 getsockname bug on BSD.
9631 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
9633 * xfns.c (x_create_tip_frame): Set border width of the X window.
9635 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9637 2009-01-01 Jason Rumney <jasonr@gnu.org>
9639 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
9640 Don't block input, as per earlier xterm.c changes.
9642 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9644 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9645 (ns_appkit_version_int): New function.
9646 (x-server-version): Use ns_appkit_version_int and follow 21+
9647 convention of returning 3 integers.
9649 2008-12-30 Kenichi Handa <handa@m17n.org>
9651 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9652 (CHAR_SURROGATE_PAIR_P): New macro.
9654 * font.h (struct font_driver): New member get_variation_glyphs.
9656 * font.c (font_range): Don't require a font for a variation selector.
9657 (Ffont_variation_glyphs): New function.
9658 (syms_of_font): Defsubr it.
9660 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9661 ftfont_variation_glyphs.
9662 (setup_otf_gstring): New function.
9663 (ftfont_drive_otf): Use it.
9664 (ftfont_shape_by_flt): Handle variation selector.
9665 (ftfont_variation_glyphs): New function.
9667 2008-12-30 Martin Rudalics <rudalics@gmx.at>
9669 * frame.c (Vemacs_iconified): Remove.
9671 2008-12-30 Jason Rumney <jasonr@gnu.org>
9673 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9674 WINDOWSNT too, as related changes have already been synced. (Bug#117)
9676 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
9678 * indent.c (Fvertical_motion): Don't advance iterator if we have
9679 reseated to the desired position.
9681 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9682 checking for pos match.
9684 2008-12-30 Kenichi Handa <handa@m17n.org>
9686 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9687 just get the low 8-bit of the code.
9689 * font.c (font_intern_prop): Validate str as multibyte.
9691 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9693 * dispextern.h (struct face): Move lface and hash from the middle
9696 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9698 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9700 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9701 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9702 instead of intervals.h.
9704 2008-12-26 Andreas Schwab <schwab@suse.de>
9706 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9709 2008-12-26 Martin Rudalics <rudalics@gmx.at>
9711 * textprop.c (Qminibuffer_prompt): New variable.
9712 (syms_of_textprop): Initialize it.
9713 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9714 in minibuffer-prompt face. (Bug#1662)
9716 2008-12-25 Jason Rumney <jasonr@gnu.org>
9718 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9720 2008-12-24 Jason Rumney <jasonr@gnu.org>
9722 * ralloc.c (r_alloc_reset_variable): New function.
9724 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9725 record of what points where. (Bug#716)
9727 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9729 * minibuf.c (read_minibuf): Follow the non-interactive case when
9730 running as a daemon, before detaching.
9732 2008-12-22 Andreas Schwab <schwab@suse.de>
9734 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9735 * gtkutil.c (free_widget_value): Use xfree instead of free.
9737 2008-12-22 Martin Rudalics <rudalics@gmx.at>
9739 * frame.c (delete_frame): New function derived from
9740 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9741 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9742 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9743 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9744 * frame.h: Extern delete_frame.
9745 * window.c (window_loop):
9746 * terminal.c (delete_terminal):
9747 * xterm.c (x_connection_closed):
9748 * xfns.c (Fx_hide_tip):
9749 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9751 2008-12-21 Jason Rumney <jasonr@gnu.org>
9753 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9754 when character maps to .notdef character.
9756 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9758 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9760 2008-12-20 Jason Rumney <jasonr@gnu.org>
9762 * frame.c (Fmake_terminal_frame): Raise an error when called from
9763 a graphical frame on Windows. (Bug#1325)
9765 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9767 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9769 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
9771 * minibuf.c (Fread_buffer): Doc fix.
9773 2008-12-20 Jason Rumney <jasonr@gnu.org>
9775 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9776 server name in UNC paths. (Bug#719)
9778 * coding.c (decode_coding): Clear chars_at_source flag when using
9781 2008-12-19 Daniel Engeler <engeler@gmail.com>
9783 * sysdep.c (serial_configure): Fix typo.
9785 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9787 * sysdep.c: Include alloca.h.
9788 (system_process_attributes): Add implementation for Solaris.
9790 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9792 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9794 Reorganize implementation of Flist_system_processes and
9795 Fsystem_process_attributes. No functional changes.
9796 * process.c: Don't #include pwd.h, grp.h and limits.h.
9797 (Flist_system_processes): Just call list_system_processes.
9798 (Fsystem_process_attributes): Just call system_process_attributes.
9799 (procfs_list_system_processes, time_from_jiffies)
9800 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9801 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9803 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9804 (list_system_processes): Rename from
9805 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9806 Provide a do nothing implementation.
9807 (system_process_attributes): Rename from
9808 procfs_list_system_processes.
9809 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9810 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9812 * w32.c (list_system_processes): Rename from
9813 w32_list_system_processes.
9814 (system_process_attributes): Rename from
9815 w32_system_process_attributes.
9817 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9819 * process.h (w32_list_system_processes)
9820 (w32_system_process_attributes): Remove.
9821 (list_system_processes, system_process_attributes):
9824 2008-12-19 Kenichi Handa <handa@m17n.org>
9826 * xfont.c (xfont_decode_coding_xlfd): New function.
9827 (xfont_encode_coding_xlfd): New function.
9828 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9829 (xfont_list): Decode and encode XLFD by iso-8859-1.
9830 (xfont_match): Likewise.
9831 (xfont_list_family): Likewise.
9832 (xfont_open): Likewise.
9834 * ftfont.c (ftfont_open): Generate a multibyte string if given
9837 * xftfont.c (xftfont_open): Generate a multibyte string if given
9840 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9842 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9844 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9845 clicked on a detached tool bar button.
9847 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9849 * emacs.c (main): Print and error and exit when no data is read
9852 2008-12-17 Jason Rumney <jasonr@gnu.org>
9854 * w32font.c (w32font_has_char): Always return -1.
9856 2008-12-16 Kenichi Handa <handa@m17n.org>
9858 * font.c (font_open_entity): Fix previous change.
9860 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9862 * process.c: Include <limits.h>.
9864 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
9866 * font.c (font_update_drivers): Fix mistake in reconstructing the
9869 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
9871 * font.c (font_clear_cache): Fix format of font cache data.
9873 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
9875 * xftfont.c (xftfont_open): Free Xft font pattern if
9876 XftFontOpenPattern fails.
9878 * xterm.c (x_free_frame_resources): Remove extraneous call to
9881 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9883 * xterm.c (x_delete_display): Move xim_close_dpy call to
9885 (x_delete_terminal): Call xim_close_dpy.
9887 2008-12-13 Jason Rumney <jasonr@gnu.org>
9889 * w32font.c (intern_font_name): New function.
9890 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9891 (w32font_open_internal, Fx_select_font): Decode font name.
9892 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9894 * w32font.h (intern_font_name): Declare new function.
9896 * w32uniscribe.c (add_opentype_font_name_to_list):
9897 Use intern_font_name.
9899 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9901 * frame.c (Fdelete_frame): Call free_font_driver_list.
9903 * font.c (free_font_driver_list): Implement missing function.
9905 * w32term.c (w32_term_init): Don't initialize the image cache
9906 here; it will be done in init_frame_faces.
9908 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9909 (struct x_display_info): Remove unused member null_pixel. New
9910 member xim_callback_data.
9912 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9913 (xim_initialize): Save pointer to callback function data.
9914 (xim_close_dpy): Free callback function data. Call XCloseIM,
9915 reverting 2008-11-04 change by David Smith.
9916 (x_term_init): Don't initialize the image cache here; it will be
9917 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9918 (x_delete_display): Free x_dnd_atoms member.
9920 2008-12-13 Kenichi Handa <handa@m17n.org>
9922 * font.c (font_rescale_ratio): Moved from xfaces.c.
9923 Argument type changed. Handle a font-spec too.
9924 (font_score): Check Vface_font_rescale_alist.
9925 (font_open_entity): Likewise. (Bug#1547)
9927 * xfaces.c (font_rescale_ratio): Moved to font.c.
9929 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9931 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9933 2008-12-12 Jason Rumney <jasonr@gnu.org>
9935 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9936 Vwindow_system_version to the real w32 major version.
9938 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9940 * term.c (init_tty): Move setting the terminal name before the
9941 potential user: maybe_fatal.
9943 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
9945 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9946 all callers changed. Call free_frame_faces to free the face cache.
9948 2008-12-11 Jason Rumney <jasonr@gnu.org>
9950 * w32font.c (fill_in_logfont): Don't assume symbol script means
9951 SYMBOL_CHARSET. (Bug#547)
9953 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9954 size for surrogates. (Bug#1096, bug#872)
9956 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9958 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9960 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9962 * process.c (Fsystem_process_attributes, syms_of_process):
9963 Fix typo in name of Ssystem_process_attributes.
9964 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9966 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9968 * syntax.c (Fmodify_syntax_entry): Doc fix.
9970 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9972 * font.c (Ffont_spec): Move usage to end of docstring.
9974 2008-12-10 Jason Rumney <jasonr@gnu.org>
9976 * w32font.c (Qcham): New symbol.
9977 (font_supported_scripts): Add cham, and comments for other new
9978 scripts in bitfield from OpenType spec.
9979 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9980 contain characters beyond the bmp.
9982 2008-12-10 Kenichi Handa <handa@m17n.org>
9984 * ftfont.c (fc_charset_table): Add "unicode-sip".
9985 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
9988 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9990 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9991 (Fcoding_system_put): Use QCdefault_char.
9992 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9994 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
9996 * xftfont.c (syms_of_xftfont): Fix typo.
9998 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
10000 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10002 * emacs.c (main): Close daemon_pipe on exec.
10004 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
10006 * termchar.h (struct tty): New members termcap_term_buffer and
10007 termcap_strings_buffer.
10009 * term.c (encode_terminal_code): Free any previous memory blocks
10010 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
10011 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10012 All callers changed.
10013 (init_tty): Store termcap data and string buffers in new struct
10014 tty members termcap_term_buffer and termcap_strings_buffer.
10015 (delete_tty): Free them.
10016 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
10018 2008-12-07 Seiji Zenitani <zenitani@mac.com>
10020 * nsfns.m (ns_set_background_color): Remove code duplication.
10021 It was a substitute for face-transparency on OS X 10.3.
10023 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
10025 * coding.c (make_conversion_work_buffer): Disable buffer
10026 modification hooks in the work buffer.
10028 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10030 * process.c (procfs_system_process_attributes): If `nread' has a
10031 negative value, assign zero to it.
10033 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
10035 * eval.c (Vdebug_on_error): Doc fix.
10037 2008-12-05 Kenichi Handa <handa@m17n.org>
10039 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10040 second character is a combining character.
10042 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10044 * process.c (procfs_system_process_attributes): Don't use cmd,
10045 cmdsize, and q without initializing them first.
10047 2008-12-04 Jason Rumney <jasonr@gnu.org>
10049 * w32font.c (w32font_draw): Initialize orig_clip before getting
10050 it, and delete it when finished.
10052 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10054 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10055 case when running as a daemon before detaching.
10057 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
10059 * w32.c (init_environment): Don't unload library shell32.dll.
10061 2008-12-03 Kenichi Handa <handa@m17n.org>
10063 * font.c (font_at): Set `multibyte' at first.
10065 * coding.c (decode_coding_charset): Check type of an element of
10067 (encode_coding_emacs_mule): Be sure to set `code'.
10069 * fontset.c (face_for_char): Handle invalid charset property correctly.
10070 (font_for_char): Likewise.
10072 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
10074 * font.c (Fopen_font): Compute pixel size correctly.
10075 (font_update_lface): Handle fonts with corrupted size specs,
10076 i.e. non-int and non-float.
10078 * ftfont.c (ftfont_match): Initialize entity variable.
10079 (ftfont_resolve_generic_family): Avoid using uninitialized var.
10080 (ftfont_list_family): Initialize list var earlier.
10082 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10084 * xterm.c (x_draw_glyph_string): Fall back on
10085 underline_minimum_offset for underline position.
10087 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10089 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10091 * character.c (c_string_width): Specify the type for LEN.
10093 2008-12-03 Kenichi Handa <handa@m17n.org>
10095 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
10096 (decode_coding_utf_8): Likewise.
10097 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10098 (produce_chars): Initialize consumed_chars to 0.
10100 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10102 * keyboard.c (make_lispy_position): Only use PT if the selected
10105 2008-12-02 Andreas Schwab <schwab@suse.de>
10107 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10109 * doprnt.c (doprnt1): Fix size of charbuf.
10111 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10113 * keyboard.c (timer_check): Revert last change.
10115 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
10117 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10119 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
10121 * makefile.w32-in: Update dependencies.
10122 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10124 2008-12-01 Andreas Schwab <schwab@suse.de>
10126 * font.c (register_font_driver): Use xmalloc.
10127 (font_put_frame_data): Likewise.
10129 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
10131 * xfaces.c (realize_x_face): Make abort condition clearer.
10133 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10135 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
10137 * keyboard.c (timer_check): After a timer runs, ensure that the
10138 selected window's buffer is current.
10140 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
10142 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10143 It was accidentally restored by the Unicode merge.
10145 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10147 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
10149 * w32proc.c: Include "coding.h".
10150 (Fw32_short_file_name): Encode filename passed to Windows API.
10151 (Fw32_long_file_name): Encode filename passed to Windows API and
10152 decode back the result. (Bug#1433)
10154 2008-11-29 Kenichi Handa <handa@m17n.org>
10156 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10157 not before accessing it.
10159 * charset.c (Fdefine_charset_internal): After calculating
10160 min_char, max_char, and fastmap, copy the charset structure again.
10161 (encode_char): Fix the previous change.
10163 2008-11-28 Seiji Zenitani <zenitani@mac.com>
10165 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10167 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10169 * nsterm.m (x_set_frame_alpha): New function.
10171 2008-11-27 Eli Zaretskii <eliz@gnu.org>
10173 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10175 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
10177 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10178 pointer to check_face_name.
10180 2008-11-27 Kenichi Handa <handa@m17n.org>
10182 * category.h (SET_CATEGORY_SET): Call set_category_set.
10183 (set_category_set): Extern it.
10185 * category.c (hash_get_category_set): New function.
10186 (Fmodify_category_entry): Adjusted for the change of
10187 char_table_ref_and_range. Call hash_get_category_set to get a
10188 category set to store in the table.
10190 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10193 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
10194 (DECODE_CHAR): Check if the decoder vector is ready.
10195 (ENCODE_CHAR): Check if the encoder char-table is ready.
10196 (maybe_unify_char): Extern it.
10198 * charset.c (Vchar_unified_charset_table): Delete it.
10199 (inhibit_load_charset_map): New variable.
10200 (temp_charset_work): New variable.
10201 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10202 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10204 (load_charset_map): Meaning of control_flag changed. If
10205 inhibit_load_charset_map is nonzero, setup a table in
10207 (load_charset): New argument control_flag.
10208 (map_charset_for_dump): New function.
10209 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10210 map_charset_for_dump.
10211 (Fdefine_charset_internal): If the charset method is MAP, load
10212 mapping tables by calling load_charset.
10213 (Funify_charset): Don't load a mapping table but directly set
10215 (maybe_unify_char): New function.
10216 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10217 Handle the case of inhibit_load_charset_map being nonzero.
10218 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10219 Handle the case of inhibit_load_charset_map being nonzero.
10220 (Fclear_charset_maps): Just free temp_charset_work.
10221 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10224 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10225 change of char_table_ref_and_range.
10226 (char_table_ref_and_range): Change the meaning of argument FROM
10227 and TO. Now the caller must provide initial values for *FROM
10230 * fontset.c (fontset_add): Adjusted for the change of
10231 char_table_ref_and_range.
10232 (fontset_get_font_group): Likewise.
10233 (Ffontset_info): Likewise.
10235 * keymap.c (describe_vector): Adjusted for the change of
10236 char_table_ref_and_range. For char-table, put boundary between
10237 non-ASCII and 8-bit characters.
10239 * print.c (print_object): For bool-vector, delete unnecessary
10240 check of ASCII_BYTE_P.
10242 2008-11-26 Jason Rumney <jasonr@gnu.org>
10244 * w32font.c (w32font_open_internal): Don't include external
10245 leading in font height. (Bug#879)
10247 2008-11-26 Glenn Morris <rgm@gnu.org>
10249 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10250 redefinition with ifdef. (Bug#1383)
10252 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10254 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10256 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10258 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10259 New EmacsView methods.
10260 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10261 Fixes bug #1048,1357,1414.
10263 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10266 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10267 is not an indexed color.
10268 * nsterm.m (free_indexed_color): Add argument checking.
10269 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10271 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
10273 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10274 Document confirm-after-completion value for
10275 minibuffer-completion-confirm.
10277 2008-11-24 Jason Rumney <jasonr@gnu.org>
10279 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10282 2008-11-23 Jason Rumney <jasonr@gnu.org>
10284 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10285 restored before returning.
10287 * w32font.c (check_face_name): New function.
10288 (add_font_entity_to_list): Use it to filter out common substituted
10291 2008-11-22 Martin Rudalics <rudalics@gmx.at>
10293 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10294 confirm-nonexistent-file-or-buffer in doc-string.
10296 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10298 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10299 Fix copy/paste typo. Add checks.
10301 2008-11-21 Kenichi Handa <handa@m17n.org>
10303 * coding.c (detect_coding_iso_2022): Reject invalid composition
10305 (DECODE_COMPOSITION_START): If the current source is the last
10306 block, and the current composition doesn't end, regard this
10307 sequence as invalid.
10308 (decode_coding_iso_2022): Handle invalid composition sequence.
10310 2008-11-20 Martin Rudalics <rudalics@gmx.at>
10312 * window.c (coordinates_in_window): Don't return
10313 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10314 line when the window is not the rightmost one. (Bug#1372)
10316 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10318 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10320 2008-11-15 Eli Zaretskii <eliz@gnu.org>
10322 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10323 and bright_bg if noninteractive is non-zero.
10325 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10327 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10328 x_draw_glyph_string_background.
10330 * w32term.c (x_draw_glyph_string): Likewise.
10332 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
10334 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10335 the next glyph string once past the overhang width.
10337 * nsterm.m (ns_draw_glyph_string): Likewise.
10339 * w32term.c (x_draw_glyph_string): Likewise.
10341 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10343 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10346 2008-11-14 Martin Rudalics <rudalics@gmx.at>
10348 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10349 dedicated status of window before attempting to display another
10352 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
10354 * msdos.c (Fmsdos_long_file_names):
10355 (syms_of_msdos) <dos-unsupported-char-glyph>:
10356 * dosfns.c (Fint86): Fix typos in docstrings.
10358 2008-11-14 Eli Zaretskii <eliz@gnu.org>
10360 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10362 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10364 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10366 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10368 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10370 * frame.h: Negative alpha means "don't touch".
10372 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10374 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10376 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10380 * acldef.h: Remove files used only for systems no longer supported.
10382 * Makefile.in: Fix .o alphabetical ordering.
10383 (hftctl.o): Remove dependency, file removed.
10384 (keymap.o, print.o): Depend on charset.h.
10386 2008-11-10 Kenichi Handa <handa@m17n.org>
10388 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10390 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10392 * dired.c (file_name_completion): If completion_ignore_case is
10393 enabled, ignore case when checking completion-regexp-list.
10395 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10397 * vm-limit.c (get_lim_data): Fix last change.
10399 2008-11-08 Kenichi Handa <handa@m17n.org>
10401 * character.c (Fget_byte): New function.
10402 (syms_of_character): Defsubr Fget_byte.
10404 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10406 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10407 cursor position is valid after scrolling.
10409 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10411 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10413 2008-11-06 Glenn Morris <rgm@gnu.org>
10415 * xterm.c (handle_one_xevent): Don't let popup menus cause
10416 mouse-autoselect-window related window switching. (Bug#1261)
10418 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10420 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10422 2008-11-04 Andreas Schwab <schwab@suse.de>
10424 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10426 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10428 * xfns.c (Fx_wm_set_size_hint): New function.
10430 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10432 * textprop.c (Fprevious_single_char_property_change): Return 0
10433 when there's no change in a string. (Bug#1301)
10435 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10437 * frame.c (do_switch_frame): New argument NORECORD passed to
10439 (Fselect_frame): New argument NORECORD passed to
10441 (Fset_frame_selected_window): New argument NORECORD passed to
10443 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10444 in call of do_switch_frame.
10445 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10446 Handle NORECORD argument in call of Fselect_frame.
10447 * lisp.h (do_switch_frame, Fselect_frame)
10448 (Fset_frame_selected_window): Adjust declarations.
10449 * window.c (select_frame_norecord): New function.
10450 (run_window_configuration_change_hook): Use it and call
10451 Fselect_frame with NORECORD set.
10452 (Fselect_window): Pass NORECORD to Fselect_frame.
10453 (Fset_window_configuration): Handle NORECORD argument in call of
10455 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10456 Fset_frame_selected_window.
10457 * keyboard.c (command_loop_1): Handle NORECORD in call of
10458 Fselect_frame (currently ifdefd).
10460 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10462 * emacs.c (USAGE2): Untabify.
10464 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10466 * composite.c (fill_gstring_header): Fix copy/paste typo.
10468 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10470 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10471 (Fother_window): Rename argument and rewrite doc-string.
10472 (select_window_norecord): Fix return value. (Bug#1276)
10474 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10476 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10477 new frames overriding foreground for tooltips. Based on similar patch
10478 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10480 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10482 * emacs.c (Fdaemon_initialized): Initialize nfd.
10484 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10486 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10487 (Fwindow_text_height): Clarify doc-strings.
10488 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10489 doc-string of window-scroll-functions.
10491 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10493 * category.c (syms_of_category): Fix typo in docstring.
10495 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10497 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10498 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10499 Fix typos in docstrings.
10501 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10503 * emacs.c (daemon_pipe): Make non-static.
10504 (IS_DAEMON): Move definition ...
10505 * lisp.h (IS_DAEMON): ... here.
10506 (daemon_pipe): Declare.
10507 (is_daemon): Remove.
10508 * dispnew.c (init_display): Use IS_DAEMON.
10510 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10512 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10513 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10515 * emacs.c (is_daemon): Remove.
10516 (main): Don't set is_daemon.
10517 (IS_DAEMON): New macro.
10518 (Fdaemonp, Fdaemon_initialized): Use it.
10519 (Fdaemon_initialized): Write a char into the pipe to make sure the
10521 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10523 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10525 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10526 over-sized glyph, draw it with the default glyph width.
10528 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10529 glyph, draw it with the default glyph width.
10531 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10532 glyph, draw it with the default glyph width.
10534 * xdisp.c (try_scrolling): When computing the distance from the
10535 scroll margin to PT, try moving some distance past the window
10536 bottom before giving up.
10538 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10540 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10541 (Fset_window_buffer): Explain in doc-string that a window can be
10542 "strongly" dedicated to its buffer.
10544 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10546 * emacs.c (daemon_name): New variable.
10547 (main): Deal with --daemon=SERVER_NAME.
10548 (Fdaemonp): Return a name if one was passed to --daemon.
10550 2008-10-26 Romain Francoise <romain@orebokech.com>
10552 * emacs.c (daemon_pipe): New variable.
10553 (main): Create a pipe before forking, make the parent exit only after
10554 the child has closed its end of the pipe. Move closing the
10556 (Fdaemon_initialized): ... here. New function.
10558 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10560 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10561 the previous unoptimized table.
10563 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10564 the distinction between non-nil and non-t value of `dedicated'.
10566 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10568 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10569 read_char_minibuf_menu_text is large enough to hold the menu string.
10571 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10573 * window.c (Fget_buffer_window, Fdelete_windows_on)
10574 (Freplace_buffer_in_windows): Make buffer argument optional and
10575 rename to buffer_or_name.
10577 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
10579 * xdisp.c (handle_single_display_spec, handle_display_prop):
10580 Undo 2005-05-16 change.
10581 (handle_stop): Pop iterator if it's loaded with an empty string.
10582 (get_overlay_strings_1): Don't save iterator if it's loaded with
10583 an empty string (bug#1201).
10585 2008-10-24 Kenichi Handa <handa@m17n.org>
10587 * ftfont.c (ftfont_otf_features): Fix previous change.
10588 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10589 calling ftfont_otf_features.
10591 2008-10-24 Kenichi Handa <handa@m17n.org>
10593 * font.c (font_match_p): Fix for the case that a vector of
10594 characters is in script-representative-chars.
10596 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
10598 * dbusbind.c (xd_in_read_queued_messages): New variable.
10599 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
10600 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10601 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10604 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
10606 * s/sol2-10.h: New file.
10608 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10610 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10611 poor beast has survived 9+ years and the jump from xterm.c!).
10613 2008-10-23 Martin Rudalics <rudalics@gmx.at>
10615 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10617 (Fbury_buffer): In doc-string say what happens to the buffer's window.
10619 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10621 * character.c (syms_of_character) <script-representative-chars>:
10622 <unicode-category-table>: Doc fixes.
10624 2008-10-23 Noah Friedman <friedman@splode.com>
10626 * coding.c (make_conversion_work_buffer): Check that
10627 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10628 Fget_buffer_create.
10630 2008-10-23 Kenichi Handa <handa@m17n.org>
10632 * font.c (font_add_log): Check the values of extra properties.
10634 2008-10-22 Martin Rudalics <rudalics@gmx.at>
10636 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10638 (Fset_window_parameter): Use NILP.
10639 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10640 (Frecenter): Use "selected" instead of "current" window in doc-strings.
10642 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10644 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10646 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10648 * nsfns.m (ns_appkit_version): New function.
10649 (x-server-version): Use it.
10650 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10651 (x-server-vendor): Don't check_ns().
10653 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10655 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10657 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10658 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10660 2008-10-22 Kenichi Handa <handa@m17n.org>
10662 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10665 * category.c (word_boundary_p): Check scripts instead of charset.
10666 Handle nil value in word-separating-categories and
10667 word-combining-categories.
10668 (syms_of_category): Fix docstrings of word-separating-categories
10669 and word-combining-categories.
10671 2008-10-21 Eli Zaretskii <eliz@gnu.org>
10673 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10674 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10676 2008-10-21 Martin Rudalics <rudalics@gmx.at>
10678 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10679 Rename arg "buffer" to "buffer_or_name".
10680 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10682 (no_switch_window): Remove since the return value is not used.
10683 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10684 Consider window as dedicated when Fwindow_dedicated_p returns a
10686 * lisp.h: Remove prototype for no_switch_window.
10688 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10690 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10691 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10693 2008-10-21 Kenichi Handa <handa@m17n.org>
10695 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10696 check Vlatin_extra_code_table.
10698 2008-10-20 Eli Zaretskii <eliz@gnu.org>
10700 * fileio.c (Fset_file_modes): Doc fix.
10702 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
10704 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10707 2008-10-19 Martin Rudalics <rudalics@gmx.at>
10709 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10710 Mention kill-buffer in doc-string.
10711 (Fset_window_buffer): Reinsert tem check removed in last commit.
10712 (Fenlarge_window, Fshrink_window): Have argument names and
10713 doc-string follow Elisp manual more closely.
10715 2008-10-18 Eli Zaretskii <eliz@gnu.org>
10717 * fileio.c (Fset_file_modes): Doc fix.
10719 2008-10-18 Martin Rudalics <rudalics@gmx.at>
10721 * window.c (Fwindow_width, Fset_window_start)
10722 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10723 (Fdelete_windows_on, Freplace_buffer_in_windows):
10724 Make doc-strings follow code and Elisp manual more closely.
10725 (Fwindow_dedicated_p): Make window argument optional.
10726 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10727 (Fset_window_buffer): Respect any non-nil dedicated value for
10728 window. Rename "buffer" argument to "buffer_or_name".
10730 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
10732 * m/sh3.h: New file, machine description for SuperH.
10734 2008-10-17 Martin Rudalics <rudalics@gmx.at>
10736 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10738 2008-10-17 Kenichi Handa <handa@m17n.org>
10740 * ftfont.c (ftfont_otf_features): Fix indexing
10741 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10743 2008-10-16 Magnus Henoch <mange@freemail.hu>
10745 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10746 (Fdbus_call_method_asynchronously): Ditto.
10747 This change makes C-h f display the argument list.
10749 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
10751 * fileio.c (Fexpand_file_name): Doc fix.
10753 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10754 of :foreground and :background equivalent to unspecified (20.x
10757 2008-10-15 Eli Zaretskii <eliz@gnu.org>
10759 * buffer.c (syms_of_buffer): Doc fix.
10761 2008-10-14 Kenichi Handa <handa@m17n.org>
10763 * font.c (font_clear_prop): When clearing font width, clear the
10764 average width field too.
10766 2008-10-12 Andreas Schwab <schwab@suse.de>
10768 * ftfont.c (ftfont_shape_by_flt): Make static.
10769 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10771 * font.c: Don't include <m17n-flt.h>.
10773 2008-10-10 Eli Zaretskii <eliz@gnu.org>
10775 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10777 2008-10-09 Eli Zaretskii <eliz@gnu.org>
10779 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10782 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
10784 * dispnew.c (update_text_area): Avoid looping due to large glyph
10785 overhangs (bug#1070).
10787 2008-10-09 Kenichi Handa <handa@m17n.org>
10789 * fontset.c (face_for_char): If face->fontset is negative, just
10792 * font.c (font_delete_unmatched): Fix previous change.
10793 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10795 2008-10-09 Martin Rudalics <rudalics@gmx.at>
10797 * frame.c (Fraise_frame): On text-only terminals select frame in
10798 order to make it visible. (Bug#1061)
10800 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
10802 * fontset.c (fontset_find_font): Check frame validity.
10804 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
10806 * gtkutil.c (xg_display_open): Reset default display if none exists.
10807 (xg_display_close): Allow Emacs to close all displays (bug#985).
10809 2008-10-06 Andreas Schwab <schwab@suse.de>
10811 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10813 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
10815 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
10817 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
10819 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10820 during initialization.
10822 2008-10-04 Eli Zaretskii <eliz@gnu.org>
10824 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10825 whole thing on MSDOS frames as well as on a TTY.
10827 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10829 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10832 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10833 as well as for TTY.
10835 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10837 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10838 MSDOS frames as well.
10840 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10842 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10844 * menu.c (find_and_return_menu_selection): Add cast.
10846 2008-10-03 Glenn Morris <rgm@gnu.org>
10848 * emacs.c (USAGE1): Add --daemon.
10850 2008-10-02 Eli Zaretskii <eliz@gnu.org>
10852 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10853 100, so it's in percents as advertised.
10855 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10857 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10858 (ns_output.current_cursor, ns_output.desired_cursor)
10859 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10860 (FRAME_NEW_CURSOR_COLOR): Remove.
10862 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
10863 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
10864 enumeration (HOLLOW_BOX_CURSOR, etc.).
10866 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10867 (draw_window_cursor): Simplify code.
10868 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10869 Don't change cursor type. In latter, call rehighlight instead of doing
10871 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10872 Use core Emacs cursor types.
10874 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
10876 2008-10-02 Martin Rudalics <rudalics@gmx.at>
10878 * process.c (Faccept_process_output): Fix doc-string.
10880 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10882 * gmalloc.c (__sbrk): Also define for uClibc.
10884 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10887 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10889 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10891 (nsfont_open): Reenable the cache.
10893 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10895 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10896 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10898 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10900 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10901 a suspended terminal.
10903 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
10905 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10907 2008-09-30 Eli Zaretskii <eliz@gnu.org>
10909 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10911 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
10913 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10914 in a continued line coincides with a line beginning.
10916 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10918 * nsfont.m (nsfont_trait_distance): Fix bug.
10919 (nsfont_list): Return a list rather than a vector (syncs with Handa
10920 changes of 2008-05-14).
10921 (nsfont_open): Improve logging.
10923 2008-09-29 Andreas Schwab <schwab@suse.de>
10925 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10927 2008-09-28 Martin Rudalics <rudalics@gmx.at>
10929 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10930 name as char-resolve-modifiers.
10931 Reported by: Markus Triska <markus.triska@gmx.at>
10933 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10935 * dispnew.c (init_display): Return earlier when running as a daemon.
10937 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10939 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10941 2008-09-27 Eli Zaretskii <eliz@gnu.org>
10943 * composite.c (Fcomposition_get_gstring)
10944 (Fcompose_region_internal, Fcompose_string_internal)
10945 (Ffind_composition_internal): Doc fix.
10946 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10947 (syms_of_composite) <auto-composition-function>: Doc fix.
10948 (syms_of_composite) <composition-function-table>: Doc fix.
10950 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
10952 * search.c (wordify): New argument for lax word-ends.
10953 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10955 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10957 * lisp.h (is_daemon): Declare.
10958 * dispnew.c (init_display): Do not try to initialize the terminal
10959 when running as a daemon.
10961 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
10963 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10964 x_display_pixel_height.
10966 2008-09-22 Martin Rudalics <rudalics@gmx.at>
10968 * undo.c (record_point): Don't call Fundo_boundary for first
10971 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
10973 * emacs.c (Fdaemonp): Doc fix.
10975 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10977 * emacs.c (main): Place #ifdef in the proper place.
10979 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10981 * emacs.c (standard_args): Add --daemon.
10982 (main): Disconnect from the terminal when --daemon is passed.
10983 (is_daemon): New variable.
10984 (Fdaemonp): New function.
10985 (syms_of_emacs): Defsubr it.
10987 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
10989 * xdisp.c (get_next_display_element): Handle string display
10990 correctly when checking for the end of a box run.
10992 2008-09-20 Glenn Morris <rgm@gnu.org>
10994 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10995 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10996 (Frename_file): Avoid copying to trash if a rename involves
10997 a delete. (Bug#964).
10999 2008-09-20 Eli Zaretskii <eliz@gnu.org>
11001 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11002 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11003 frames as well as termcap frames.
11004 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11007 2008-09-19 Eli Zaretskii <eliz@gnu.org>
11009 * process.c (procfs_system_process_attributes): Fix cmdline in
11010 case /proc/PID/cmdline is empty.
11012 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11013 x_display_pixel_height.
11015 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
11017 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11019 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11020 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11022 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11024 * dispextern.h (struct it): Move line_wrap away from the middle of
11025 bitfields. Move voffset in struct iterator_stack_entry after the
11026 bitfields. Move tab_width near after another short.
11028 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11030 * frame.h (struct frame): Move alpha from the middle of bitfields.
11032 * window.h (struct window): Move frozen_window_start_p after the
11033 rest of the bitfields to reduce padding.
11035 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
11037 * xterm.h (x_display_info): Remove `height' and `width' members.
11039 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11041 * w32term.h (w32_display_info): Remove `height', `width',
11042 `height_in', and `width_in' members.
11044 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11046 (x_calc_absolute_position): Use them.
11047 (x_term_init): Omit removed `height' and `width' members.
11049 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11051 (w32_read_socket, x_calc_absolute_position): Use them.
11052 (w32_initialize_display_info, w32_term_init): Omit removed members
11053 of w32_display_info.
11055 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11057 (ns_initialize_display_info): Omit removed members of ns_display_info.
11059 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11061 (x_calc_absolute_position): Use them.
11062 (x_term_init): Omit removed `height' and `width' members.
11064 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11066 * frame.c (x_fullscreen_adjust):
11067 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11068 x_display_pixel_width.
11070 2008-09-18 Kenichi Handa <handa@m17n.org>
11072 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11073 (composition_compute_stop_pos): Fix handling of static composition.
11074 (Fcomposition_get_gstring): Check FROM and TO at first.
11076 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11078 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
11081 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
11083 * indent.c (Fvertical_motion): Use position reported by iterator
11084 instead of PT for determining screen motion (bug#943).
11086 2008-09-17 Romain Francoise <romain@orebokech.com>
11088 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11090 2008-09-17 Kenichi Handa <handa@m17n.org>
11092 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11094 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11097 2008-09-16 Kenichi Handa <handa@m17n.org>
11099 * coding.c (make_conversion_work_buffer): Avoid calling
11100 Fget_buffer_create if it is not necessary.
11102 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11104 * window.c (Fselect_window): Don't update window_select_count and
11105 use_time when norecord is not nil.
11107 2008-09-14 Kenichi Handa <handa@m17n.org>
11109 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11112 2008-09-12 Kenichi Handa <handa@m17n.org>
11114 * indent.c (scan_for_column): Don't handle automatic composition
11115 if the current buffer is not associated with a window.
11117 * composite.c (composition_reseat_it): If the current buffer is
11118 not associated with a window, ignore the automatic composition.
11119 (find_automatic_composition): Likewise.
11121 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11123 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11124 (Fgpm_mouse_stop): Use it.
11125 * termhooks.h (close_gpm): Declare.
11126 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11127 connection if Gpm_GetEvent fails.
11129 * window.c (set_window_buffer): Always preserve current-buffer.
11131 2008-09-12 Glenn Morris <rgm@gnu.org>
11133 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11135 2008-09-11 Glenn Morris <rgm@gnu.org>
11137 * charset.c (charset-map-path): Doc fix.
11139 2008-09-10 Kenichi Handa <handa@m17n.org>
11141 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11143 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11144 compose a grapheme cluster with the preceding base glyph.
11146 * composite.c (composition_compute_stop_pos): Fix previous change.
11147 Reset cmp_it->id to -1 at first.
11149 2008-09-10 Glenn Morris <rgm@gnu.org>
11151 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11153 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
11155 * keyboard.c (read_key_sequence): Reapply translation maps when
11156 switching keyboards.
11158 2008-09-09 Kenichi Handa <handa@m17n.org>
11160 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11163 * composite.c (FORWARD_CHAR): Fix calculation
11164 of (POSITION).pos_byte.
11165 (composition_compute_stop_pos): Limit the search of composition to
11166 at most 500 characters ahead. If we reach the limit or find a
11167 newline, set cmp_it->ch to -2 and return 0.
11168 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11170 2008-09-08 Kenichi Handa <handa@m17n.org>
11172 * indent.c (Fvertical_motion): Be sure to set
11173 it_overshoot_expected if it.cmp_it.id is non-negative.
11175 2008-09-07 Andreas Schwab <schwab@suse.de>
11177 * callproc.c (Fcall_process): Don't hold references to string data
11178 across garbage collection. Move initialisation of new_argv down
11179 to avoid compiler bug.
11181 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11183 * process.c (Fsystem_process_attributes): Doc fix.
11185 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
11187 * callproc.c (Fcall_process): Canonicalize current directory name.
11189 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11190 iterator advances to the next line if the current line ends in a
11193 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11195 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11196 member to point to cmp_from.
11198 * xdisp.c: Doc fix for references to gidx data member.
11200 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11202 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11204 2008-09-07 Kenichi Handa <handa@m17n.org>
11206 * composite.c (FORWARD_CHAR): Check STOP after
11207 incrementing (POSITION).pos.
11209 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11211 * process.c (Fsystem_process_attributes): Doc fix.
11213 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
11215 * keyboard.c (Ftop_level): Doc fix.
11217 2008-09-06 Eli Zaretskii <eliz@gnu.org>
11219 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11220 minibuffer, don't let lower part of menu invade the echo area.
11222 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11223 "char *q" to access menu text and advance through it. Revert the
11224 change that displayed ">" instead of ASCII character 0x10.
11226 2008-09-05 Eli Zaretskii <eliz@gnu.org>
11228 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11229 toggle boxes and radio buttons on MS-DOS as well.
11231 2008-09-05 Kenichi Handa <handa@m17n.org>
11233 * composite.c (autocmp_chars): Check lookback count.
11234 (composition_compute_stop_pos): Set cmp_it->lookback.
11235 (composition_reseat_it): Check lookback count.
11236 (struct position_record): New struct.
11237 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11238 (find_automatic_composition): New function.
11239 (composition_adjust_point): Use find_automatic_composition.
11241 * dispextern.h (struct composition_it): New member lookback.
11243 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
11245 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11246 if moving by a single line.
11248 2008-09-02 Andreas Schwab <schwab@suse.de>
11250 * xterm.c (x_delete_display): Fix merge error.
11252 * fileio.c (Fexpand_file_name): Remove unused variables.
11254 2008-09-02 Eli Zaretskii <eliz@gnu.org>
11256 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11257 storage on all platforms, not just on DOS_NT.
11259 2008-09-02 Jason Rumney <jasonr@gnu.org>
11261 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11262 Ensure mouse is not grabbed after menu is finished.
11264 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
11266 * xfaces.c (Finternal_set_alternative_font_family_alist)
11267 (Finternal_set_alternative_font_registry_alist): Properly copy
11268 entire alist structure.
11270 2008-09-01 Kenichi Handa <handa@m17n.org>
11272 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
11273 representative chars of the script is a vector.
11274 (ftfont_list): Handle the case where the representative chars of
11275 the script is a vector.
11277 * character.c (syms_of_character): Docstring of
11278 script-representative-chars fixed.
11280 2008-08-31 Eli Zaretskii <eliz@gnu.org>
11282 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11283 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11284 the menu. Allocate larger buffer for `text', to account for
11285 possible ^C characters.
11287 2008-08-31 Martin Rudalics <rudalics@gmx.at>
11289 * xdisp.c (prepare_menu_bars): Don't call
11290 Vwindow_size_change_functions with arg Qt.
11292 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11294 * font.h (font_range):
11295 * fileio.c (report_file_error):
11296 * composite.c (composition_update_it): Yet another int/Lisp_Object
11299 2008-08-30 Glenn Morris <rgm@gnu.org>
11301 * data.c (Fmake_variable_frame_local): Doc fix.
11303 * frame.c (Fmodify_frame_parameters): Doc fix.
11305 2008-08-30 Eli Zaretskii <eliz@gnu.org>
11307 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11308 needed by GetTokenInformation.
11309 (w32_system_process_attributes): Check return values of all system
11312 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11313 only when the state changes.
11314 (IT_update_begin, IT_update_end): Add termscript trace.
11316 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11317 clipboard is unavailable. Set dst to NULL if it doesn't point to
11319 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11320 passing random values to xfree.
11322 * dispnew.c (init_display): Set `tty's association in frame's
11323 parameters alist to the name of the terminal device, if that is known.
11325 2008-08-29 Jason Rumney <jasonr@gnu.org>
11327 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11329 2008-08-29 Eli Zaretskii <eliz@gnu.org>
11331 * composite.c (fill_gstring_body): Avoid compiler warnings.
11333 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11334 LGLYPH_SET_CODE to avoid compiler warnings.
11336 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
11338 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11340 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11343 2008-08-29 Kenichi Handa <handa@m17n.org>
11345 * fileio.c (report_file_error): Don't downcase the first character
11346 of errstring if it is still unibyte.
11348 2008-08-29 Kenichi Handa <handa@m17n.org>
11350 These changes are to re-implement the automatic composition so
11351 that it doesn't use text properties.
11353 * Makefile.in (ftfont.o): Depend on composite.h.
11354 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11356 * character.h (Vunicode_category_table): Extern it.
11358 * character.c (Vunicode_category_table): New variable.
11359 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11361 * chartab.c (optimize_sub_char_table): Perform more greedy
11364 * composite.h (enum composition_method):
11365 Delete COMPOSITION_WITH_GLYPH_STRING.
11366 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11367 (Vcomposition_function_table): Extern it.
11368 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11369 (composition_gstring_put_cache, composition_gstring_from_id)
11370 (composition_gstring_p, composition_gstring_width)
11371 (composition_compute_stop_pos, composition_reseat_it)
11372 (composition_update_it, composition_adjust_point): Extern them.
11373 (Fcomposition_get_gstring): EXFUN it.
11375 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
11376 (Vcomposition_function_table)
11377 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
11378 (gstring_hash_table, gstring_work, gstring_work_headers):
11380 (gstring_lookup_cache, composition_gstring_put_cache)
11381 (composition_gstring_from_id, composition_gstring_p)
11382 (composition_gstring_width, fill_gstring_header)
11383 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11384 (composition_reseat_it, composition_update_it)
11385 (composition_adjust_point, Fcomposition_get_gstring): New functions.
11386 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11387 and gstring_work_headers. DEFVAR_LISP composition-function-table.
11388 Defsubr composition_get_gstring.
11390 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11392 (struct glyph_string): Delete the member gidx. New members
11393 cmp_id, cmp_from, and cmp_to.
11394 (enum it_method): Delete GET_FROM_COMPOSITION.
11395 (struct composition_it): New struct.
11396 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11397 Delete c, len, cmp_id, cmp_len in u.comp.
11399 * font.h (enum lgstring_indices): Delete it.
11400 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11401 (enum lglyph_indices): Likewise.
11402 (font_range): Adjust extern.
11403 (font_fill_lglyph_metrics): Extern it.
11405 * font.c (QCf): New variable.
11406 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11407 (font_prepare_composition): Delete this function.
11408 (font_range): Type and arguments changed.
11409 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11410 (font_fill_lglyph_metrics): New function.
11411 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11412 (syms_of_font): DEFSYM QCf. Delete defsubr for
11413 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11414 Defsubr Sfont_shape_gstring.
11416 * fontset.h (font_for_char): Extern it.
11418 * fontset.c (font_for_char): New function.
11420 * ftfont.c: Include composite.h.
11421 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11422 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11424 * indent.c: Include composite.h and dispextern.h.
11425 (check_composition): Delete this function.
11426 (scan_for_column): Handle composition by
11427 composition_compute_stop_pos, composition_reseat_it, and
11428 composition_update_it.
11429 (compute_motion): Likewise.
11430 (Fvertical_motion): Fix checking of composition.
11432 * keyboard.c (adjust_point_for_property): Check composition by
11433 composition_adjust_point.
11435 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11436 struct glyph_string.
11438 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11439 (append_composite_glyph): Adjust for the change of struct it and
11441 (produce_composite_glyph): Likewise.
11443 * w32term.c (x_draw_composite_glyph_string_foreground):
11444 Adjust for the change of struct glyph_string.
11445 (x_draw_glyph_string): Likewise.
11447 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11448 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11450 * xdisp.c: Include font.h.
11451 (it_props): Delete the entry for Qauto_composed.
11452 (init_iterator): Initialize it->cmp_it.id to -1.
11453 (compute_stop_pos): Call composition_compute_stop_pos.
11454 (face_before_or_after_it_pos): Adjust for the change of struct it.
11455 (handle_auto_composed_prop): Delete it.
11456 (handle_composition_prop): Handle only static composition.
11457 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11458 from xassert. Initialize it->cmp_it.stop_pos.
11459 (push_it): Adjust for the change of struct it.
11460 (pop_it): Likewise.
11461 (get_next_element): Delete next_element_from_composition.
11462 (CHAR_COMPOSED_P): New macro.
11463 (get_next_display_element): For automatic composition, get a face
11464 from the font in the glyph-string.
11465 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11466 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11467 (next_element_from_string): Check if the character at the current
11468 position is composed by CHAR_COMPOSED_P.
11469 (next_element_from_buffer): Likewise.
11470 (next_element_from_composition): Adjust for the change of struct it.
11472 (dump_glyph): Adjust for the change of struct glyph.
11473 (fill_composite_glyph_string): Adjust for the change of struct
11474 it and struct glyph. Don't handle automatic composition here.
11475 (fill_gstring_glyph_string): New function.
11476 (x_get_glyph_overhangs): Handle automatic composition.
11477 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11478 (BUILD_GSTRING_GLYPH_STRING): New macro.
11479 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11480 automatic composition.
11481 (append_composite_glyph): Adjust for the change of struct it and
11483 (x_produce_glyphs): Adjust for the change of struct it.
11485 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11486 the change of struct glyph_string.
11487 (x_draw_glyph_string): Likewise.
11489 2008-08-29 Glenn Morris <rgm@gnu.org>
11491 * buffer.c (word-wrap): Doc fix.
11492 * xdisp.c (truncate-partial-width-windows): Doc fix.
11493 Increase default to 50.
11495 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11497 * xdisp.c (update_tool_bar_unwind): New function.
11498 (update_tool_bar): Temporarily set selected frame before building
11501 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11503 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11504 snprintf, respectively.
11505 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11507 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11509 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11510 LDFLAGS to GNUstep CC invocation.
11512 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11514 * indent.c (Fvertical_motion): Revert last change. Handle the
11515 general case where we are moving forward, and PT spans multiple
11518 * eval.c (find_handler_clause): Temporarily increase
11519 max-lisp-eval-depth while printing the backtrace buffer, to
11520 guarantee that help-mode code can run.
11522 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11524 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11526 (IT_set_frame_parameters): Don't swap foreground and background
11527 colors if `(reverse . t)' is present in the frame properties.
11528 (internal_terminal_init): Call init_frame_faces only for the
11531 2008-08-27 Andreas Schwab <schwab@suse.de>
11533 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11535 2008-08-27 Andreas Schwab <schwab@suse.de>
11537 * search.c (search_buffer): Set char_base to zero only at the end.
11539 2008-08-27 Kenichi Handa <handa@m17n.org>
11541 * fileio.c (report_file_error): Fix handling of multibyte error string.
11543 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11545 * xterm.c (x_term_init): Temporarily hide the partially
11546 initialized terminal while calling vendor-specific-keysyms.
11548 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11550 * msdos.c (internal_terminal_init): Most initializations done only
11551 once, especially initial_screen_colors[] and termscript open.
11553 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11555 * eval.c (Fcondition_case): Doc fix.
11557 * widgetprv.h (EmacsFramePart): Change font member to the new font
11560 * widget.c: Include character.h and font.h for XSETFONT.
11561 (setup_frame_gcs): Compute X font id from font struct, just once.
11563 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11565 * term.c (get_named_tty): Fix last change.
11567 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11569 * indent.c (Fvertical_motion): If moving forward starting from a
11570 multi-line string, move the iterator to the last line of that string.
11572 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11574 * frame.c (do_switch_frame): Mark previously displayed frame as
11575 obscured for FRAME_MSDOS_P frames as well.
11577 2008-08-24 Eli Zaretskii <eliz@gnu.org>
11579 * frame.c (make_terminal_frame): Initialize f->terminal,
11580 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11581 Set the top frame to newly created frame.
11582 (Fmake_terminal_frame): Reuse the_only_display_info.
11584 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11585 estimating available memory.
11587 2008-08-23 David Reitter <david.reitter@gmail.com>
11589 * nsterm.m (ns_draw_window_cursor): Don't call
11590 NSDisableScreenUpdates and NSEnableScreenUpdates on
11591 non-NS_IMPL_COCOA systems.
11593 2008-08-23 Andreas Schwab <schwab@suse.de>
11595 * process.c (procfs_system_process_attributes): Fix use of
11596 uninitialized variables.
11598 2008-08-23 Eli Zaretskii <eliz@gnu.org>
11600 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11602 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11603 calling tty-set-up-initial-frame-faces.
11605 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11606 Allow MSDOS frames along with X frames.
11608 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11609 addition to output_termcap.
11611 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11613 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11614 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11617 * process.c [!subprocesses]: Define QCname.
11618 (syms_of_process): Intern and staticpro it.
11620 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11621 Adjust for changes in encoding/decoding routines.
11622 Use encode_coding_object and decode_coding_object instead of
11623 encode_coding and decode_coding.
11625 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11627 * dosfns.c: Include frame.h before termhooks.h.
11628 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11629 variable termscript.
11631 * s/msdos.h (USER_FULL_NAME): Define.
11632 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11634 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11635 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11638 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11639 SELECTED_FRAME as additional (1st) argument.
11640 (tty_read_avail_input): Handle output_msdos_raw in
11641 addition to output_termcap.
11643 * msdos.c: Include frame.h before termhooks.h.
11644 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11645 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11646 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11647 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11648 (IT_set_terminal_modes, IT_reset_terminal_modes)
11649 (IT_set_frame_parameters): Use tty->termscript instead of a global
11650 variable termscript.
11651 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11652 global variable terminal_coding. Don't refer to
11653 Vnonascii_translation_table.
11654 (internal_terminal_init): Set Vwindow_system in current_kboard.
11655 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11656 Announce date and time of session start, if termscript is open.
11657 Don't zero out the_only_display_info (it is done in
11658 term.c:init_tty). Open termscript only of not already open.
11659 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
11660 here instead of dos_ttraw. Don't initialize display if this is an
11661 initial tty. Don't set FRAME_FONT.
11662 (Vwindow_system_version): Bump to 23.
11663 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11664 is available, set up mouse_position_hook.
11665 (dos_ttraw, IT_set_terminal_modes): If called with initial
11666 terminal, do nothing.
11667 (IT_set_frame_parameters): Handle the Qtty_type frame
11668 parameter by calling internal_terminal_init.
11669 (dos_set_window_size, show_mouse_face)
11670 (clear_mouse_face, IT_note_mode_line_highlight)
11671 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11672 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11673 (initialize_msdos_display): New function.
11674 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11675 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11676 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11677 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11678 Accept additional argument: a pointer to a frame. Update all callers.
11679 (request_sigio, unrequest_sigio): Don't define, now defined on
11681 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11683 * term.c [MSDOS]: Include msdos.h.
11684 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11685 conditional to DOS_NT. Allow only one call to this function in a
11686 session. Don't allocate a new struct tty_display_info; instead,
11687 reuse the_only_display_info. Call get_tty_size to get screen
11688 dimensions. Call init_baud_rate to set bad_rate.
11689 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11690 (Fsuspend_tty) [MSDOS]: Don't close input and output.
11691 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11692 (get_tty_terminal, get_named_tty, Ftty_type)
11693 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11695 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11696 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11697 only when subprocesses are supported.
11699 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11701 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11704 * msdos.h: Remove definition of struct x_display_info and struct
11706 (FRAME_FONT): Use output_data.tty.
11707 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11708 (struct x_display_info): Rename from display_info. Update all users in
11710 (struct x_output): Remove background_pixel and foreground_pixel.
11711 (the_only_display_info): Rename from the_only_x_display.
11712 (dos_ttraw): Update prototype.
11714 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11715 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11717 2008-08-23 Jason Rumney <jasonr@gnu.org>
11719 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11720 (fn_TIFFSetDirectory): New library function used.
11721 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11722 (tiff_load): Use :index to select among multiple images. Set count
11723 property when multiple images exist.
11724 (gif_format): Use :index, not :image.
11726 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11728 * xdisp.c (try_scrolling): Check INT_MAX instead of
11729 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11732 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11734 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11736 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11738 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11739 GNUstep library location.
11741 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
11743 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11746 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11748 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11750 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11751 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11752 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11753 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11754 (EmacsApp-cursor_blink_handler): Remove declaration.
11755 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11756 match 01 Feb 2008 changes in xterm.c.
11757 (ns_read_socket): Add cast to avoid warning.
11758 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11761 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
11763 * xselect.c (x_get_foreign_selection): Return nil if desired
11764 selection could not be obtained, instead of signalling an error.
11766 2008-08-20 David Reitter <david.reitter@gmail.com>
11768 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11769 * nsterm.m: Remove ns-specific code for cursor blinking.
11770 (ns_draw_window_cursor): Clear cursor properly rather than
11771 redrawing the area. Respect width of bar cursors.
11772 These changes enable the use of generic blink-cursor-mode and
11773 generic cursor types in NS and support smooth cursor movements (do
11774 not blink off after command).
11775 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11778 2008-08-19 Kenichi Handa <handa@m17n.org>
11780 * font.c (Vfont_log_deferred): New variable.
11781 (font_add_log): Check Vfont_log_deferred.
11782 (font_deferred_log): New function.
11784 * font.h (font_deferred_log): Extern it.
11786 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11788 (face_for_char): Use deferred log.
11790 2008-08-18 Kenichi Handa <handa@m17n.org>
11792 * fontset.c (face_for_char): Add font log.
11794 * font.c (font_add_log): Add the font properties :script, :lang,
11795 and :otf in the log.
11797 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
11799 * xdisp.c: Remove dead code.
11800 (handle_invisible_prop, next_overlay_string): Defer call to
11801 setup_for_ellipsis.
11802 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11804 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
11806 * xfaces.c (lookup_derived_face): Properly handle possible zero
11807 return value of get_lface_attributes.
11808 (merge_faces): Don't tell lookup_derived_face to signal an error
11809 if face is not found.
11811 * dired.c (Fdirectory_files): Doc fix.
11813 * process.c (make_process): Initialize kill_without_query struct
11816 2008-08-15 Eli Zaretskii <eliz@gnu.org>
11818 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11819 Alternative calculation of totphys for Visual Studio 6.
11821 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11823 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11824 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11826 (stat): Only root directory passed to GetDriveType. Allow RAM
11827 disk as well as local fixed disk when w32-get-true-file-attributes
11829 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11830 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11831 (w32_cached_id, w32_add_to_cache): New functions.
11832 (get_name_and_id): Look account names in the cache before calling
11833 lookup_account_sid.
11834 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11835 New initialization flags.
11836 (globals_of_w32): Initialize them to zero.
11837 (w32_system_process_attributes): Use w32_cached_id and
11840 2008-08-14 Lawrence Mitchell <wence@gmx.li>
11842 * lread.c (Fread_char, Fread_char_exclusive): If no character
11843 event is read before timeout is reached, return nil, rather than
11844 converting to a number.
11846 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
11848 * fns.c (use_dialog_box): Doc fix.
11850 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11853 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
11855 * frame.c (Qns_parse_geometry): New var.
11856 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11858 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
11860 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11861 space character in calculating tabs.
11863 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11865 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11867 2008-08-10 Glenn Morris <rgm@gnu.org>
11869 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11870 silence gcc "limited range of data type" warnings in some
11871 make_fixnum_or_float calls.
11873 2008-08-09 Eli Zaretskii <eliz@gnu.org>
11875 * w32.c (w32_system_process_attributes): If the process does not
11878 * w32.c: Include thelp32.h, psapi.h and coding.h.
11879 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11881 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11882 (Process32Next_Proc): New typedefs.
11883 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11884 (g_b_init_process32_next, g_b_init_open_thread_token)
11885 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11886 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11887 (g_b_init_get_process_working_set_size)
11888 (g_b_init_global_memory_status_ex): New static variables.
11889 (globals_of_w32): Initialize them.
11890 (create_toolhelp32_snapshot, process32_first, process32_next)
11891 (open_thread_token, impersonate_self, revert_to_self)
11892 (get_process_memory_info, get_process_working_set_size)
11893 (global_memory_status, global_memory_status_ex): New wrapper
11895 (w32_list_system_processes, w32_system_process_attributes)
11896 (enable_privilege, restore_privilege, ltime, process_times):
11898 (convert_time_raw): New function.
11899 (convert_time): Remove conversion of FILETIME into time in 100
11900 nsec units, call convert_time_raw instead.
11902 * process.h (w32_list_system_processes, w32_system_process_attributes):
11904 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11905 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11906 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11907 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11909 * process.c (Fsystem_process_attributes): Doc fix.
11911 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
11913 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11914 a continued multi-char glyph; if so, advance to the actual glyph.
11916 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11918 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11920 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11922 * config.in: Regenerate.
11924 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
11926 * xdisp.c (redisplay_window): Revert last change.
11927 (try_window): Check bottom scroll margin too.
11929 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11931 * config.in: Regenerate.
11933 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11934 -list-load-path-shadows'.
11935 (nsgui.h): Reduce number of things depending on it.
11937 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
11939 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11940 instead of window-end which does the wrong thing at eob.
11941 (try_cursor_movement): Minor optimization.
11942 (redisplay_window): If scroll margin is defined, don't assume
11943 window doesn't need scrolling.
11945 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11947 * config.in: Regenerate.
11949 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11950 (mostlyclean): Don't delete *.d under NS.
11952 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11954 2008-08-06 Kenichi Handa <handa@m17n.org>
11956 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11958 2008-08-06 Andreas Schwab <schwab@suse.de>
11960 * config.in: Regenerate.
11962 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
11964 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11965 forcing a window start.
11967 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11968 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11970 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11972 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11975 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
11977 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11978 <scroll-down-aggressively, before-change-functions>:
11979 <after-change-functions>: Reflow docstrings.
11981 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11982 Ken Raeburn <raeburn@gnu.org>
11984 Dock menu customization, based on a patch by Ken Raeburn, plus some
11986 * nsmenu.m (dockMenu): New variable.
11987 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11989 * nsterm.h (dockMenu): Declare.
11991 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11992 (ns_term_init): Initialize dockMenu.
11993 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11994 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11997 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11999 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12001 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12003 * config.in: Regenerate.
12005 2008-08-04 Seiji Zenitani <zenitani@mac.com>
12007 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12009 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12011 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12013 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12015 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12017 * keyboard.h: Comment an #endif.
12019 * lisp.h (have_menus_p): Adjust comment.
12021 * menu.c (find_and_return_menu_selection): Fix comparison with
12024 * nsmenu.m (popup_activated_flag): New variable.
12025 (popup_activated): New function.
12026 (menu-or-popup-active-p): New exported lisp definition.
12027 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12029 (ns_popup_dialog): Set popup_activated_flag.
12031 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12032 version for GNUstep (handled by conditional typedef in nsterm.m).
12033 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12036 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12038 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12040 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12042 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12043 shortcircuit if popup_activated like GTK and X toolkit.
12045 * m/inter386.h: Change DARWIN to DARWIN_OS.
12047 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12048 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12049 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12050 comment on NO_SOCK_SIGIO.
12052 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
12054 * nsterm.m (windowDidResize): Remove stopModal call.
12056 2008-08-03 Andreas Schwab <schwab@suse.de>
12058 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12059 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12061 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
12063 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12064 Don't use uninitialized pointer variable when using getrlimit.
12066 2008-08-02 Jason Rumney <jasonr@gnu.org>
12068 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12070 2008-08-02 Eli Zaretskii <eliz@gnu.org>
12072 * alloc.c (NSTATICS): Bump to 0x640.
12074 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12076 * lisp.h: Add prototype for directory_files_internal.
12078 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12080 (syms_of_process): Defsubr them. Add initializations for various
12081 Q* symbols used in procfs_system_process_attributes.
12082 (procfs_list_system_processes, procfs_system_process_attributes)
12083 [HAVE_PROCFS]: New functions.
12084 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12085 (procfs_get_total_memory): New functions.
12087 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12089 * xfaces.c (Fx_load_color_file): Fix previous change;
12090 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12092 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
12094 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12096 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12098 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12100 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12102 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12104 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12105 define NSApplicationDelegateReplySuccess.
12106 (EmacsView -converstationIdentifier): Use long instead of
12107 NSInteger for GNUstep, since it doesn't have NSInteger.
12109 * xmenu.c: Revert last change.
12111 * keyboard.h: Fix last change.
12113 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12115 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12118 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12120 Warning clearing and clean-up in NS port.
12121 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12123 * nsgui.h (FACE_DEFAULT): Remove, unused.
12124 (XGCValues): Change colors to unsigned long.
12125 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12127 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12128 (ns_list_fonts): Remove, unused.
12129 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12130 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12131 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12132 (nsfont_draw): Compare face colors to 0, not nil.
12133 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12134 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12135 (-addSubmenuWithTitle:): Use NSMenuItem class.
12136 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12137 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12138 (ns_clip_to_row): Make gc arg a BOOL.
12139 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12140 ns_clip_to_row() call.
12141 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12142 used). Cast FRAME_FONT assignments.
12143 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12144 (ns_string_to_lispmod): Change arg to const char.
12145 (ns_term_init): Use NSMenuItem class.
12146 (EmacsApp -openFile:): Move to different section of file.
12147 (EmacsApp -application:openFiles:): Don't return a value, call
12148 -replyToOpenOrPrint:.
12149 (EmacsView -keyDown:): Fix up cast.
12150 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12151 (EmacsView -menuDown:): Cast tag in call to
12152 find_and_call_menu_selection().
12153 (ns_list_fonts): Remove, unused.
12154 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12155 (ns_fontname_to_xlfd): Make static.
12156 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12157 Remove prototypes (now in keyboard.h).
12158 (next_menubar_widget_id): Remove, unused.
12159 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12160 Remove prototypes (now in keyboard.h).
12161 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12163 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12165 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12166 (floatfns.o): Depend on syssignal.h.
12167 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12169 * systty.h: Fix previous change that removed BSD_TERMIOS.
12170 Add comments to #ifdefs.
12172 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12174 * w32fns.c (w32-load-color-file): Remove.
12175 (x-open-connection): Use renamed Fx_load_color_file.
12176 * xfaces.c (x-load-color-file): Add.
12177 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12179 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12181 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
12183 * dbusbind.c (Fdbus_call_method_asynchronously)
12184 (Fdbus_method_error_internal): New defuns.
12185 (xd_read_message): Handle also reply messages.
12186 (Vdbus_registered_functions_table): Extend docstring.
12188 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
12190 * keyboard.c (gobble_input): Fix previous change.
12192 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12223 * m/vax.h: Remove VMS support.
12229 * ioctl.h: Remove file.
12231 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12233 * s/ms-w32.h (MULTI_KBOARD): Remove.
12248 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12249 * config.in: Regenerate.
12251 2008-07-30 Jason Rumney <jasonr@gnu.org>
12253 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12255 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12256 (w32font_open_internal): Get unicode version of textmetrics.
12257 Don't enable or disable glyph indices here.
12258 (w32font_open): Disable use of glyph indices.
12260 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12262 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
12264 * minibuf.c (Vread_buffer_function): Doc fix.
12266 2008-07-30 John Paul Wallington <jpw@pobox.com>
12268 * minibuf.c (read_buffer_completion_ignore_case): New var.
12269 (Fread_buffer): Use it.
12271 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12273 * systty.h (sensemode): Remove empty #if. Remove reference to
12274 BSD_TERMIOS, unused.
12276 * sysdep.c: Remove reference to DGUX.
12277 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12279 * config.in: Regenerate.
12281 2008-07-30 Jason Rumney <jasonr@gnu.org>
12283 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12285 2008-07-29 Jason Rumney <jasonr@gnu.org>
12287 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12289 (uniscribe_encode_char): Always use uniscribe.
12290 Avoid using context if cache is populated.
12292 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12294 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12297 * gtkutil.c (menu_nav_ended): Remove.
12298 (create_menus): Remove signal connect for menu_nav_ended.
12300 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
12302 * xdisp.c (redisplay_window): Check return value of
12303 compute_window_start_on_continuation_line before forcing a window
12306 2008-07-28 Jason Rumney <jasonr@gnu.org>
12308 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12310 * w32term.c (w32_enable_unicode_output, cleartype_active):
12311 Remove obsolete display options.
12312 (x_draw_glyph_string_background): Don't use old cleartype_active
12314 (w32_initialize): Remove cleartype_active initialization.
12315 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12317 2008-07-28 Andreas Schwab <schwab@suse.de>
12319 * lisp.h (init_weak_hash_tables, syms_of_font)
12320 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12321 (remove_hash_entry): Don't declare.
12322 * eval.c (maybe_call_debugger): Make static and move before use.
12323 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12324 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12325 * xterm.h (x_set_frame_alpha): Declare.
12327 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12329 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12330 (create_menus): Connect selection-done to menu_nav_ended.
12332 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12334 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12335 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12336 parameter with read of 'alpha' one.
12337 (Qns_frame_parameter): Remove.
12338 * nsselect.m (selection-coding-system)
12339 (next-selection-coding-system, Vselection_coding_system)
12340 (Vnext_selection_coding_system): Drop.
12342 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12344 * nsfns.m (do-applescript, do_applescript): Rename to
12345 ns-do-applescript, ns_do_applescript, and move within file.
12347 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12349 Remove support for Mac Carbon.
12357 * mac.c: Remove file.
12388 * Makefile.in: Remove code for Carbon.
12390 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12392 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12394 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12396 * macterm.h (kCGBitmapByteOrder32Host): New define for
12397 non-universal SDKs.
12399 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12400 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12402 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12403 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12405 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12407 * w32inevt.c: Include dispextern.h.
12409 2008-07-26 Andreas Schwab <schwab@suse.de>
12411 * print.c (print_object): Fix off-by-one in last change.
12413 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12415 * term.c (syms_of_term): Don't initialize default_orig_pair,
12416 default_set_foreground and default_set_background on Windows.
12418 2008-07-25 Jason Rumney <jasonr@gnu.org>
12420 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12421 ScriptItemize. Clean up return value checking. Remove unused
12423 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12426 * w32font.c (w32font_has_char): Handle the case where we can't
12427 determine the script for a character.
12429 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12431 * term.c (syms_of_term): Initialize default_orig_pair,
12432 default_set_foreground, and default_set_background.
12434 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12436 (getloadavg): Callers changed.
12438 * image.c (svg_load_image): Fix last change.
12439 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12440 image size is valid. Use g_object_unref instead of deprecated
12441 rsvg_handle_free to free rsvg handle.
12442 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12444 2008-07-25 Jason Rumney <jasonr@gnu.org>
12446 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12447 surrogates before looking up glyph index.
12448 (w32font_text_extents): Encode as surrogates if falling back to
12449 functions that need UTF-16 wide chars.
12451 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12452 BMP as surrogates before looking up glyph index.
12454 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12456 * image.c (svg_load_image): Check for failure in return value of
12457 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12459 2008-07-25 Jason Rumney <jasonr@gnu.org>
12461 * w32font.c (Fx_select_font): Reverse sense of second arg.
12463 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12465 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12466 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12468 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12469 (PURESIZE): Use it.
12471 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12473 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12474 * m/alpha.h (TEXT_END):
12475 * m/ibmrs6000.h (TEXT_END):
12476 * m/macppc.h (TEXT_END):
12477 * s/darwin.h (TEXT_END):
12478 * s/msdos.h (TEXT_END): Remove, unused.
12479 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12480 * s/cygwin.h: Remove comment.
12482 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12483 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12484 * m/intel386.h (DOT_GLOBAL_START):
12485 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12486 (USG): Remove, file not used on USG platforms.
12488 * Makefile.in (HAVE_X11): Remove empty #else.
12490 2008-07-24 Andreas Schwab <schwab@suse.de>
12492 * fileio.c (Finsert_file_contents): Properly adjust undo list
12493 after format conversion.
12495 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12497 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12498 (menu_nav_ended): Remove.
12499 (create_menus): Remove signal connect for menu_nav_ended.
12500 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12502 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12504 2008-07-23 Jason Rumney <jasonr@gnu.org>
12506 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12508 (w32font_open): Set font type to gdi.
12510 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12512 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12514 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12515 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12517 * unexec.c (ADDR_CORRECT): Define unconditionally.
12519 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12521 * unexec.c: Remove code depending on !COFF and USG, the file is
12522 not used for such systems.
12524 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12525 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12526 (LD_SWITCH_SYSTEM_1): Remove, update users.
12528 * s/darwin.h (DATA_END):
12529 * m/intel386.h (DATA_END):
12530 * m/ibmrs6000.h (DATA_END):
12531 * m/alpha.h (DATA_END): Remove, unused.
12533 * config.in: Regenerate.
12534 * s/ms-w32.h (subprocesses): Define unconditionally.
12535 * s/template.h (subprocesses): Update comment.
12536 * s/vms.h (subprocesses):
12537 * s/usg5-4.h (subprocesses):
12538 * s/hpux10-20.h (subprocesses):
12539 * s/gnu-linux.h (subprocesses):
12540 * s/cygwin.h (subprocesses):
12541 * s/bsd-common.h (subprocesses):
12542 * s/aix4-2.h (subprocesses):
12543 * s/darwin.h (subprocesses): Do not define, defined by default now.
12545 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12546 Remove all references.
12547 (temacs): Add GNUstep specific ld flags.
12549 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12550 similarly to what X does.
12552 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12554 * nsfns.m (x-list-fonts): Remove.
12555 (syms_of_nsfns): Drop the x-list-fonts declaration.
12556 * nsterm.m: Get rid of remaining "//" comments.
12558 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12560 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12562 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12563 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12564 (Fns_own_selection_internal, Fx_disown_selection_internal)
12565 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12567 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12568 ... */' style of docstrings. Doc fixes.
12570 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12572 * terminfo.c (UP, BC, PC): Undo previous change.
12574 * nsfns.m: Rename ns prefixed functions/variables to the
12575 corresponding x versions. Update references.
12577 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12579 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12581 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12583 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12584 Remove forwarding functions.
12585 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12587 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12589 (ns_frame_parm_handlers): Use the new names.
12590 (syms_of_nsfns): Move to the end of file.
12592 * nsterm.m (syms_of_nsterm): Move to the end of file.
12594 * dispnew.c (init_display): Remove code for X10.
12596 2008-07-22 Jason Rumney <jasonr@gnu.org>
12598 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12601 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12603 * nsterm.m (syms_of_nsterm): Remove debugging println.
12605 2008-07-22 David Reitter <david.reitter@gmail.com>
12607 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12608 Carbon implementation of the same functionality: execute arbitrary
12611 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12613 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12614 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12615 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12616 (Fx_display_mm_height, Fx_display_mm_width)
12617 (Fx_display_backing_store, Fx_display_visual_class)
12618 (Fx_display_save_under, Fx_open_connection)
12619 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12620 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12621 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12622 (Fx_display_pixel_width, Fx_display_pixel_height)
12623 (Fx_display_usable_bounds, Fx_display_planes)
12624 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12625 ... */' style of docstrings.
12627 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12629 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12632 * m/iris4d.h (mips): Do not define.
12633 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12635 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12641 * nsterm.m: Rename ns prefixed functions/variables to the
12642 corresponding x versions. Update references.
12644 * m/ibms390x.h (NO_REMAP): Do not undefine.
12646 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12648 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
12650 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12651 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12652 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12653 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12654 (Fns_display_mm_height, Fns_display_mm_width)
12655 (Fns_display_backing_store, Fns_display_visual_class)
12656 (Fns_display_save_under, Fns_open_connection)
12657 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12658 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12659 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12660 (Fns_display_pixel_width, Fns_display_pixel_height)
12661 (Fns_display_usable_bounds, Fx_display_planes)
12662 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12664 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12666 * print.c (print_object): Check print_depth before searching for
12669 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
12671 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12674 2008-07-21 Kenichi Handa <handa@m17n.org>
12676 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12678 2008-07-20 Andreas Schwab <schwab@suse.de>
12680 * syntax.c (find_start_pos, find_start_value)
12681 (find_start_value_byte, find_start_begv, find_defun_start)
12682 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12684 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12686 * s/sol2-3.h: Insert contents of s/sol2.h.
12687 (LD_SWITCH_SYSTEM): Remove redundant definition.
12688 * s/sol2.h: Remove, unused.
12690 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12692 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12694 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12696 * Makefile.in (ns_appdir): Fix typo in find command.
12698 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12700 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12702 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12703 added not supported anymore.
12705 * s/usg5-4-2.h (LIBS_SYSTEM):
12706 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12708 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12709 * s/lynxos.h (GETPGRP_NO_ARG):
12710 * s/hpux10-20.h (NO_SIOCTL_H):
12711 * s/gnu.h (GETPGRP_NO_ARG):
12712 * s/gnu-linux.h (NO_SIOCTL_H):
12713 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12714 * s/cygwin.h (GETPGRP_NO_ARG):
12715 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12716 (C_DEBUG_SWITCH): Remove duplicate definition.
12718 * m/ibms390.h: Remove boilerplate comments.
12720 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12722 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12723 (wait_reading_process_output): Remove code for SunOS, platform not
12724 supported anymore. Use SOLARIS2 instead of sun.
12726 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12728 * font.c (font_open_by_name): Under NS, default lface height to zero.
12729 (font_open_for_lface): Under NS, set size based on frame fontsize.
12730 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12731 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12733 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12735 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12736 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12737 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12739 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12740 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12741 * Makefile.in (clean): Clear out build destination dir.
12743 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12745 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12747 * lisp.h: Remove declaration of hash_remove.
12748 * nsgui.h: Remove redefinitions of hash_remove.
12749 * fns.c (hash_remove): Rename to hash_remove_from_table.
12751 2008-07-19 Seiji Zenitani <zenitani@mac.com>
12753 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12754 strdup() the family UTF8String before modifying it.
12756 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12758 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12759 NS_FACE_BACKGROUND with 0 instead of nil.
12760 * nsfont.m (nsfont_draw): Same.
12762 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
12764 * nsfns.m (ns_set_background_color): Fix crash.
12766 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
12768 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12770 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12772 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12774 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12776 * gtkutil.c: Include <config.h> instead of "config.h".
12778 * lisp.h (Foverlay_buffer): Add EXFUN.
12780 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12781 child process to complete child_setup. Undo 2005-09-21 change.
12783 * s/darwin.h: Mention setsid after vfork.
12785 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12787 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12788 Depend on macgui.h.
12790 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12791 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12793 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12795 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12797 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12798 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12799 Remove enumerators.
12801 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12802 Check if FACE_FROM_ID returns NULL.
12804 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12806 * w32inevt.c (change_frame_size): Remove extern declaration.
12807 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12810 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12812 * getloadavg.c: Revert last change (2008-07-15).
12814 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12816 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
12817 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
12820 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12823 * s/sol2-4.h: Reorganize conditionals.
12825 * ecrt0.c: Remove code depending on m68000, not used anymore.
12827 * fns.c (hash_remove): Make static.
12828 * lisp.h (hash_remove): Don't prototype.
12832 * m/macppc.h: Remove boilerplate comments.
12834 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12835 Solaris, which does not need them.
12837 * m/vax.h: Remove comments about unsupported systems.
12839 * s/darwin.h: Reorganize ifdefs.
12841 2008-07-17 Andreas Schwab <schwab@suse.de>
12843 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12845 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12847 Use SDATA. Follow coding convention of placing operators at
12848 beginning of next line rather than end of previous line, and placing
12849 spaces around infix operators.
12851 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12852 in case it was defined already.
12853 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12854 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12856 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12858 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12859 (ns_defined_color, ns_color_to_lisp): Declare.
12860 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12861 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12862 it's accepted even with USE_LISP_UNION_TYPE.
12863 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12864 (update_frame_tool_bar): Remove apparently obsolete tests for
12865 non-integerness of f->tool_bar_lines.
12866 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12867 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12868 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12869 (nsfont_open): Don't confuse NULL for Qnil.
12870 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12871 * menu.h (find_and_call_menu_selection):
12872 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12873 (find_and_return_menu_selection): Always return something.
12874 * frame.h: Include dispextern.h for Display_Info.
12875 (display_x_get_resource): Declare.
12877 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12879 * syntax.c: Remove stdio.h include accidentally introduced in
12881 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12883 * keyboard.c (handle_async_input, input_available_signal): Remove
12884 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12886 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12888 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12889 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12890 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12893 * keymap.c: Remove all NS-specific code.
12894 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12895 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12896 where_is_preferred_modifier, return a different value depending on how
12897 preferred is the binding.
12898 (where_is_internal): Adjust accordingly.
12899 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12900 Adjust to new preferred_sequence_p.
12901 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12902 * keyboard.c (parse_solitary_modifier): Not static any more.
12903 * keyboard.h (parse_solitary_modifier): Declare.
12905 2008-07-16 Andreas Schwab <schwab@suse.de>
12907 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12910 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
12912 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12913 that we don't move off the line.
12915 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12917 * keyboard.c (Qsuper): Remove.
12918 (parse_menu_item): Don't call where_is_internal specially for NS.
12920 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12922 * s/gnu-linux.h: Remove boilerplate comments.
12924 * m/alpha.h (__ELF__): Consolidate conditions.
12926 * m/m68k.h (linux): Use GNU_LINUX instead.
12927 Remove boilerplate comments.
12929 * m/intel386.h: Undo refactoring from previous change.
12930 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12931 too, remove dead code.
12932 (linux): Use GNU_LINUX instead.
12934 2008-07-16 Jason Rumney <jasonr@gnu.org>
12936 * w32gui.h: Repeat 26 June changes lost by last change.
12938 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12940 * systty.h: Remove code for Aix on 386, unsupported platform.
12942 * s/ms-w32.h: Remove boilerplate comments.
12943 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12945 * s/gnu-linux.h (TERM): Remove support.
12946 (HAVE_SYSVIPC): Remove, unused.
12947 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12950 * process.c: Remove support for IRIS, unused.
12951 Remove support for TERM, not relevant anymore.
12953 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12954 used with the definition.
12956 * s/aix4-2.h (static): Do not undef.
12958 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12960 (HAVE_SYSVIPC): Remove, unused.
12962 * m/hp800.h (CANNOT_DUMP): Do not undef.
12964 * m/alpha.h: Fix comment.
12966 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12967 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12968 used by this configuration.
12969 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12970 * unexec.c: Remove code depending on HPUX and
12971 USG_SHARED_LIBRARIES, not used with this file. Remove code
12972 depending on IRIS, unused. Remove if 0-ed code.
12974 * s/template.h: Remove comments about static.
12976 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12977 Remove if 0-ed code.
12978 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12979 were the same as the default.
12980 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12981 Remove boilerplate comments.
12982 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12983 (HAVE_SYSVIPC): Remove, unused.
12984 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12986 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12987 Remove boilerplate comments.
12988 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12989 Remove boilerplate comments.
12990 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12991 Remove boilerplate comments.
12992 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12994 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12995 USG systems which do not use DATA_SEG_BITS.
12996 Refactor code. Remove boilerplate comments.
13005 * s/msdos.h: Remove boilerplate comments.
13007 * m/iris4d.h: Remove boilerplate comments and code for systems that
13008 do not use this file.
13009 (IRIS_4D): Remove, unused.
13011 * m/mips.h: Remove boilerplate comments and code for systems that
13012 do not use this file.
13013 (SIGN_EXTEND_CHAR):
13014 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13015 * unexmips.c: Remove file, unused.
13017 * editfns.c (Fuser_full_name): Replace the only use of
13018 USER_FULL_NAME with its value.
13019 * config.in: Regenerate.
13021 2008-07-16 David Reitter <david.reitter@gmail.com>
13023 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13024 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13026 2008-07-16 Glenn Morris <rgm@gnu.org>
13028 * emacs.c (system-type): Doc fix.
13030 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13032 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13033 If the cache doesn't work, let's fix it, rather than work around it.
13035 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13037 * Makefile.in: Correct additions for nsfont.o in last commit.
13038 * nsfont.m: New file (forgot last commit).
13040 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13042 * callproc.c (set_initial_environment): Initialize
13043 Vprocess_environment under CANNOT_DUMP (fixes crash when
13044 batch-compiling for bootstrap).
13046 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13047 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13049 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13050 CANNOT_DUMP case -- fix crash due to different init order.
13052 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13054 Changes and additions for NeXTstep windowing system (Cocoa and
13058 * config.in: Support defines and build commands for NS port.
13059 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13060 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13061 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13063 (struct face): Add synth_ital field.
13064 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13065 (init_display): Initialize Vinitial_window_system to "ns" when so
13067 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13068 (display_arg): Use under NS.
13069 (main): Under NS, allocate autorelease pool and handle command line
13070 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13071 (standard_args): Add NS-specific args.
13072 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13073 * font.c (DEFAULT_ENCODING): New variable.
13074 (font_find_for_lface): Use it.
13075 (syms_of_font): Load syms_of_nsfont under NS.
13076 * font.h: Declare nsfont_driver when compiled under NS.
13077 * fontset.c: When compiling under NS, include nsterm.h.
13078 (fontset_from_font): Autoconstruct fontset under NS.
13079 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13080 symbol, document and use it.
13081 (do_switch_frame): When for_deletion under Cocoa, add
13082 Fraise_frame(Qnil).
13083 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13084 (x_get_arg): Allow "yes" and "no" as boolean values.
13085 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13086 Qright under Cocoa.
13087 (focus-follows-mouse): Default to 0 under NS.
13088 * frame.h (enum output_method): Add output_ns.
13089 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13090 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13091 (FRAME_WINDOW_P): NS-specific definition.
13092 * fringe.c (max_used_fringe_bitmap): Make public.
13093 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13094 (getloadavg): Use NeXT code under descendant OS's.
13095 * image.c (includes and header section, x_create_bitmap_from_data)
13096 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13097 (image_background_transparent, x_clear_image_1)
13098 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13099 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13100 (x_to_xcolors, x_from_xcolors, x_disable_image)
13101 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13102 other GUIs, including XPM support using code originally written for
13104 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13106 (image_ascent): Use font metrics macros instead of direct struct field
13108 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13109 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13110 Also, handle NS as GTK for menu bar purposes.
13111 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13112 toolkit where they differ.
13113 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13114 use cachelist, still needed under NS.
13115 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13116 (struct widget_value): Define it here for menu.c.
13117 * keymap.c (includes): Include modifier internals.
13118 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13120 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13121 support for preferring sequences using certain modifiers, specified by
13122 the FIRSTONLY argument.
13123 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13124 under NS GNUstep implementation.
13125 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13126 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13127 * menu.c: Include nsterm.h under NS.
13128 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13129 (free_menubar_widget_tree_value, update_submenu_strings)
13130 (find_and_call_menu_selection): Treat NS as X and NT.
13131 (find_and_return_menu_selection): New function, used for popup menus.
13138 * nsterm.m: New files.
13139 * process.c (wait_reading_process_output): Under NS, call ns_select()
13140 instead of plain select().
13141 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13142 beginning of buffer.
13143 * sysselect.h (init_process): Rename when compiling under Cocoa to
13144 avoid name conflict.
13145 * termhooks.h (display_info): Add ns_display_info to union.
13146 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13147 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13149 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13150 unexec() signature. (Note, this will dump, but the resulting file
13151 crashes; unexosx is used instead; keeping around for reference and
13152 possible aid in getting dump working under GNUstep.)
13153 * w32gui.h (button_type, widget_value): Remove definitions (now in
13155 * window.c: Include nsterm.h when compiling under NS.
13156 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13157 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13158 other GUI windowing systems.
13159 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13161 (x_consider_frame_title): Under NS, set icon type and frame
13162 modified-state indicator; use ns_set_name_as_filename() when using
13164 (update_window_cursor): Make public when compiling under NS.
13165 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13166 (hourglass_atimer, Vhourglass_delay
13167 * xfaces.c (header section, init_frame_faces, clear_font_table)
13168 (defined_color, unload_color, x_face_list_fonts)
13169 (prepare_face_for_display): Add NS support parallel to other GUIs.
13170 Emulate GCs like other non-X GUIs.
13171 (split_font_name): Don't lowercase font name under NS.
13172 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13174 * s/darwin.h: Add support for compilation under NS.
13176 2008-07-15 Jason Rumney <jasonr@gnu.org>
13178 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13179 (w32_show_hourglass): Rename from show_hourglass.
13180 (w32_hide_hourglass): Rename from hide_hourglass.
13181 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13182 (Vhourglass_delay): Declare extern.
13183 (hourglass_started): Remove.
13185 * xdisp.c (Vhourglass_delay): Remove static.
13186 (hourglass_started, start_hourglass, cancel_hourglass):
13187 Don't include these versions on WINDOWSNT.
13189 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13191 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13192 variables (formerly in xfns.c).
13193 (show_hourglass, hide_hourglass): New prototypes (same).
13194 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13195 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13197 (syms_of_xdisp): Declare/initialize display-hourglass,
13198 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13199 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13200 formerly in xfns.c.
13201 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13202 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13203 (start_hourglass, cancel_hourglass): Remove.
13204 (show_hourglass, hide_hourglass): Remove prototypes and static
13206 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13207 hourglass_atimer, hourglass_shown_p declaration/initialization.
13208 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13209 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13210 (start_hourglass, cancel_hourglass): Remove.
13211 (show_hourglass, hide_hourglass): Remove prototypes and static
13213 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13214 hourglass_atimer, hourglass_shown_p declaration/initialization.
13215 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13216 (DEFAULT_HOURGLASS_DELAY): Remove.
13217 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13218 hourglass_shown_p declaration/initialization.
13220 2008-07-14 Jason Rumney <jasonr@gnu.org>
13222 * w32fns.c (w32_get_arg): Remove wrapper function.
13223 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13225 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13227 2008-07-14 Kenichi Handa <handa@m17n.org>
13229 * xfont.c (xfont_open): Add workaround for X's bug.
13231 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13233 * fontset.c: Include <stdio.h> unconditionally.
13235 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
13237 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13240 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13242 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13245 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13247 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
13248 (SPECIAL_EMACS_INT):
13249 * m/ia64.h (SPECIAL_EMACS_INT):
13250 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13251 * s/gnu.h (NLIST_STRUCT):
13252 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13253 * s/gnu-linux.h (LINUX):
13254 * s/msdos.h (HAVE_FACES):
13255 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13258 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13261 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13263 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13264 always defined as int.
13266 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13267 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13268 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13269 * s/freebsd.h (HAVE_WAIT_HEADER):
13270 * s/bsd-common.h (HAVE_UNION_WAIT):
13271 * s/aix4-2.h (HAVE_WAIT_HEADER):
13272 * m/mips.h (HAVE_UNION_WAIT):
13273 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13274 (COFF, static): Do not define, they are undefined later in the file.
13276 * process.c (update_status): Don't use a union.
13278 (sigchld_handler): Use int instead of WAITTYPE.
13280 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
13282 * indent.c (Fvertical_motion): Restore hscroll before moving to
13285 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13287 * lisp.h: Remove left over code.
13289 2008-07-11 Andreas Schwab <schwab@suse.de>
13291 * lisp.h: Fix logic in last change.
13293 * menu.h: New file.
13294 * menu.c: Include it.
13295 * xmenu.c: Likewise.
13296 * Makefile.in: Update dependencies.
13298 2008-07-11 Kenichi Handa <handa@m17n.org>
13300 * fontset.c (fontset_from_font): Cancel the previous change.
13302 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13307 * alloc.c: Replace all references of NO_UNION_TYPE with
13308 USE_LISP_UNION_TYPE.
13310 * m/xtensa.h (NO_UNION_TYPE):
13311 * m/vax.h (NO_UNION_TYPE):
13312 * m/template.h (NO_UNION_TYPE):
13313 * m/sparc.h (NO_UNION_TYPE):
13314 * m/mips.h (NO_UNION_TYPE):
13315 * m/macppc.h (NO_UNION_TYPE):
13316 * m/m68k.h (NO_UNION_TYPE):
13317 * m/iris4d.h (NO_UNION_TYPE):
13318 * m/intel386.h (NO_UNION_TYPE):
13319 * m/ibms390x.h (NO_UNION_TYPE):
13320 * m/ibms390.h (NO_UNION_TYPE):
13321 * m/ibmrs6000.h (NO_UNION_TYPE):
13322 * m/ia64.h (NO_UNION_TYPE):
13323 * m/hp800.h (NO_UNION_TYPE):
13324 * m/arm.h (NO_UNION_TYPE):
13325 * m/amdx86-64.h (NO_UNION_TYPE):
13326 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13327 defining it the same.
13329 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
13331 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13333 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13350 * s/vms.h: Remove references to unused variables.
13352 2008-07-10 Andreas Schwab <schwab@suse.de>
13354 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13355 pattern before matching the generic family.
13357 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13364 * s/darwin.h: Remove dead code.
13377 * m/amdx86-64.h: Remove dead code and references to unused
13378 and compiler defined symbols.
13381 * unexelf.c: Remove references to desupported systems.
13383 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13385 * m/powermac.h: Remove boilerplate comments.
13386 (NO_REMAP): Remove unused definition.
13388 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13391 2008-07-10 Kenichi Handa <handa@m17n.org>
13393 * xfont.c (xfont_open): Log the reason of failure.
13395 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13397 * fontset.c (fontset_get_font_group):
13398 * font.c (font_check_otf): Specify argument types.
13400 2008-07-09 Kenichi Handa <handa@m17n.org>
13402 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13403 non-ASCII char is found.
13405 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13406 (reorder_font_vector): Change the arg preferred_family to font.
13407 Prefer the spec matching with font.
13408 (fontset_get_font_group): New function.
13409 (fontset_find_font): Change the format of an element of a realized
13410 fontset. Use fontset_get_font_group.
13411 (fontset_font): Try the current fontset, the default fontset, the
13412 fallbacks of the current fontset, and the fallbacks of the default
13413 fontset in this order.
13414 (face_for_char): Delete the shortcut to use the current font.
13415 (fontset_from_font): Don't set fonts for Latin in the fontset.
13417 * font.h (font_make_object, font_match_p): Adjust prototypes.
13419 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13421 * font.c (font_make_object): New arg entity and pixelsize.
13422 (font_check_otf_features, font_check_otf): New functions.
13423 (font_match_p): Check :lang, :script, and :otf properties.
13425 * xfont.c (xfont_open): Adjust it for the change of
13427 (xfont_text_extents): Fix initial setting of metrics.
13429 * ftfont.c (struct ftfont_info): New member index, delete member
13430 fc_charset_idx. Make the member order compatible with struct
13432 (fc_charset_table): Change charset names to registry names.
13433 (ftfont_pattern_entity): Delete the args registry and
13434 fc_charset_idx. Change the value of :font-entity property
13435 to (FONTNAME . INDEX). Always set :registry property to
13437 (struct ftfont_cache_data): New struct.
13438 (ftfont_lookup_cache): New arg for_face.
13439 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13440 (ftfont_driver): Set the member otf_capability.
13441 (ftfont_get_charset): Adjust it for the change of
13443 (OTF_TAG_SYM): New macro.
13444 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13445 for the change of fc_charset_table.
13446 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13447 ftfont_pattern_entity. Add FC_INDEX to objset.
13448 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13449 and ftfont_pattern_entity.
13450 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13451 font_make_object, struct ftfont_info.
13452 (ftfont_has_char): Use ftfont_get_fc_charset.
13453 (ftfont_otf_features, ftfont_otf_capability): New functions.
13454 (ftfont_shape): Use ftfont_get_otf.
13455 (ftfont_text_extents): Fix initial setting of metrics.
13457 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13458 member order compatible with struct ftfont_info.
13459 (xftfont_open): Add FC_CHARSET to the pattern. Set
13460 xftfont_info->ft_size. Don't unlock the face. Check BDF
13461 properties if appropriate.
13462 (xftfont_close): Unlock the face.
13463 (xftfont_anchor_point, xftfont_shape): Deleted.
13464 (syms_of_xftfont): Don't set members anchor_point and shape of
13467 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13470 * w32font.c (w32font_open): Adjust it for the change of
13472 (w32font_open_internal): Don't set properties of font_object here.
13474 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13476 * macfns.c (x_create_tip_frame):
13477 * w32fns.c (x_create_tip_frame):
13478 * xfns.c (x_create_tip_frame): Pass parameter argument to
13479 face-set-after-frame-default.
13481 * xfaces.c (Finternal_merge_in_global_face): Save merged
13482 attributes for the default face back into the face vector.
13484 2008-07-08 Andreas Schwab <schwab@suse.de>
13486 * fontset.h: Declare fontset_from_font. Don't declare
13487 new_fontset_from_font and fontset_from_font_name.
13488 * xterm.c: Include "fontset.h".
13489 * Makefile.in (xterm.o): Update dependencies.
13491 2008-07-08 Glenn Morris <rgm@gnu.org>
13493 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13494 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13496 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13498 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13499 (x_set_frame_parameters): Don't bind it.
13501 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13503 * w32fns.c (map_w32_filename): Declare extern.
13505 2008-07-07 Jason Rumney <jasonr@gnu.org>
13507 * w32term.c (WS_EX_LAYERED): Define if not already.
13509 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13511 * xfaces.c (set_font_frame_param): Don't try to set the font
13512 parameter if it is still unspecified in the lface.
13514 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13516 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13517 face if it didn't already exist.
13519 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13521 2008-07-05 Andreas Schwab <schwab@suse.de>
13523 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13525 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13527 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13529 (IT_DISPLAYING_WHITESPACE): New macro.
13530 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13531 when word-wrapping. Simplify word-wrapping logic. Use correct
13532 pixel positions when saving copies of the iterator.
13533 (display_line): Use proper wrap point if the last character on a
13534 line was preceded by whitespace.
13536 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13538 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13540 2008-07-04 Kenichi Handa <handa@m17n.org>
13542 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13544 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13546 2008-07-02 Jason Rumney <jasonr@gnu.org>
13548 * xfns.c (syms_of_xfns): Only define x-select-font when both
13549 HAVE_FREETYPE and USE_GTK.
13551 * xdisp.c (next_element_from_display_vector): Move assignment out
13554 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13556 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13558 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13559 (syms_of_fileio): Initialize and export them.
13560 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13562 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13563 (Fsystem_move_file_to_trash): New function.
13564 (syms_of_w32fns): Export it to lisp.
13566 2008-07-01 Jason Rumney <jasonr@gnu.org>
13568 * w32font.c (w32font_text_extents): Don't count overhang as part
13571 2008-06-30 Miles Bader <miles@gnu.org>
13573 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13574 Add `avoid_cursor_p' field.
13576 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13577 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13578 (append_glyph, append_composite_glyph, produce_image_glyph)
13579 (append_stretch_glyph): Initialize avoid_cursor_p.
13580 (get_it_property): Rename from `get_line_height_property'.
13581 (x_produce_glyphs): Use get_it_property.
13582 (handle_line_prefix, push_display_prop): New functions.
13583 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13584 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13586 (syms_of_xdisp): Initialize them.
13588 2008-06-30 Kenichi Handa <handa@m17n.org>
13590 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13591 XftDefaultSubstitute (they are called in XftFontMatch).
13592 (xftfont_open): Fix args to ftfont_font_format.
13594 * ftfont.c (fc_charset_table): New member lang.
13595 (ftfont_resolve_generic_family): New arg pattern.
13596 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13597 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13598 (ftfont_open): Fix args to ftfont_font_format.
13599 (ftfont_font_format): New arg filename.
13601 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
13603 * xfaces.c (Finternal_merge_in_global_face): If default face was
13604 modified, realize it again. Update the font face attribute.
13606 2008-06-29 Jason Rumney <jasonr@gnu.org>
13608 * w32term.c (x_set_frame_alpha): Fix logic.
13610 2008-06-29 Kenichi Handa <handa@m17n.org>
13612 * fontset.c (Finternal_char_font): Return font-object instead of
13615 * composite.c (get_composition_id): Fix the width calculation for TAB.
13617 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13619 * indent.c (Fvertical_motion): Properly handle float column arg.
13621 2008-06-28 Jason Rumney <jasonr@gnu.org>
13623 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13624 (pfnSetLayeredWindowAttributes): New function pointer.
13625 (w32_initialize): Initialize it when supported.
13626 (x_set_frame_alpha): New function.
13628 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13629 (w32_frame_parm_handlers): Set alpha handler.
13631 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13633 2008-06-27 Jason Rumney <jasonr@gnu.org>
13635 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13636 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13637 (w32_to_x_charset, x_to_w32_charset)
13638 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13639 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13640 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13641 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13642 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13643 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13644 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13645 (Qw32_charset_unicode): Remove.
13646 (syms_of_w32fns): Update for above changes.
13648 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13649 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13650 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13651 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13652 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13653 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13654 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13655 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13656 (syms_of_w32font): Update for above changes.
13658 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13660 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13662 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13664 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13665 Eli Zaretskii <eliz@gnu.org>
13667 * makefile.w32-in (LOCAL_FLAGS):
13668 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13670 * sysdep.c (_spawnlp, _getpid):
13671 Declare with explicit _cdecl instead of _CRTAPI1.
13673 * editfns.c (Fget_internal_run_time):
13674 Check for WINDOWSNT with #ifdef, not #if.
13676 2008-06-26 Jason Rumney <jasonr@gnu.org>
13678 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13680 * w32term.c (x_draw_glyph_string_foreground)
13681 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13682 Use FONT_HANDLE macro.
13683 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13685 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13686 (uniscribe_encode_char): Use FONT_HANDLE macro.
13688 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13689 (w32font_text_extents): Use precast w32_font.
13690 (w32font_close): Free cached metrics.
13691 (w32font_open_internal): Allocate space for name on stack.
13693 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
13695 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13697 2008-06-26 Jason Rumney <jasonr@gnu.org>
13699 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13700 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13702 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13704 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13706 2008-06-26 Jason Rumney <jasonr@gnu.org>
13708 * w32bdf.c, w32bdf.h: Remove obsolete files.
13710 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13712 * w32gui.h: Don't include w32bdf.h.
13713 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13714 Remove obsolete font support.
13716 * w32font.h (struct w32font_info): Remove compat_w32_font.
13718 (FONT_COMPAT): Remove obsolete macro.
13720 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13721 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13722 (w32font_open_internal): Remove compat code. Set new hfont member.
13723 (Fx_select_font): Use new hfont member.
13725 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13726 (uniscribe_encode_char): Use new hfont member.
13728 * w32term.c (x_draw_glyph_string_foreground)
13729 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13730 (x_draw_glyph_string): Use metrics in w32font_info.
13732 2008-06-26 Kenichi Handa <handa@m17n.org>
13734 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13736 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13742 * m/mips-siemens.h:
13764 * s/uxpv.h: Remove support for obsolete systems.
13765 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13766 Remove, insert contents in s/hpux10-20.h.
13767 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13768 Remove, insert contents in s/aix4-2.h.
13769 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13770 * s/bsd4-3.h: Rename to ...
13771 * s/bsd-common.h: ... this.
13800 * s/template.h: Remove references to obsolete variables.
13802 * Makefile.in: Add dependencies for all unexec files.
13803 (admindir): Remove unused variable.
13804 (UNEXEC_SRC): Remove references.
13806 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
13808 * xfns.c (x_default_font_parameter): If Xft is available, first
13809 try Monospace-12 for the default font.
13811 2008-06-25 Jason Rumney <jasonr@gnu.org>
13813 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13815 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13817 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13819 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13821 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
13823 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13824 <scroll-conservatively>: Fix typo in docstring.
13826 * xselect.c (Fx_send_client_event): Doc fix.
13828 2008-06-25 Kenichi Handa <handa@m17n.org>
13830 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13832 * font.c (font_parse_fcname): Remove unused variables.
13833 (font_sort_entites): Delete the arg SPEC. Caller changed.
13834 Fix for the case of ! best_only.
13835 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13837 * lisp.h (Fstring_to_unibyte): EXFUN it.
13839 * character.h (str_to_unibyte): Extern it.
13841 * character.c (str_to_unibyte): New function.
13843 * fns.c (Fstring_to_unibyte): New function.
13844 (syms_of_fns): Defsubr it.
13846 2008-06-24 Kenichi Handa <handa@m17n.org>
13848 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13850 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13852 2008-06-24 Andreas Schwab <schwab@suse.de>
13854 * Makefile.in (${lispsource}loaddefs.el): Rename from
13855 ../lisp/loaddefs.el.
13856 (bootstrap-clean): Do what distclean does but don't remove
13858 (distclean): Depend on bootstrap-clean and remove Makefile.
13860 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
13862 * buffer.h (struct buffer): New member word_wrap.
13864 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13866 (init_buffer_once): Initialize them.
13868 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13869 line_wrap enum possessing three possible values.
13871 * termopts.h: Replace truncate_partial_width_windows with
13872 Vtruncate_partial_width_windows.
13874 * dispnew.c (direct_output_for_insert): Avoid direct output when
13875 inserting a space with word wrap on.
13877 * indent.c (compute_motion): Obey integer values of
13878 truncate-partial-width-windows.
13880 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13881 replacing truncate_partial_width_windows.
13882 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13883 truncate only if the window width is below that integer.
13884 (start_display, resize_mini_window, produce_stretch_glyph)
13885 (display_string, move_it_in_display_line_to): Use line_wrap.
13886 (back_to_previous_visible_line_start, reseat_1): Reset
13887 string_from_display_prop_p.
13888 (display_line): Extend default face to end of line when wrapping.
13890 2008-06-24 Kim F. Storm <storm@cua.dk>
13892 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13893 to wrap continued lines at word boundaries.
13895 2008-06-24 Jason Rumney <jasonr@gnu.org>
13897 * font.c (Ffont_face_attributes): Multiply pixel size before point
13898 conversion to avoid multiplying rounding error.
13900 2008-06-23 Jason Rumney <jasonr@gnu.org>
13902 * w32term.c (x_draw_glyph_string_background)
13903 (x_draw_glyph_string): Remove old bdf font code.
13905 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13907 2008-06-22 Kenichi Handa <handa@m17n.org>
13909 * font.c (font_find_for_lface): Try the adstyle specified in
13910 the property of LFACE_FONT of LFACE (if any).
13912 2008-06-21 Seiji Zenitani <zenitani@mac.com>
13913 Ryo Yoshitake <ryo@shiftmode.net>
13915 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13917 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13919 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13920 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13921 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13922 (witness-emacs): Remove.
13923 (lisp, shortlisp): Move loaddefs.el earlier.
13924 (mostlyclean): Forget about witness-emacs.
13926 2008-06-22 Glenn Morris <rgm@gnu.org>
13928 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13929 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13931 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13933 * Makefile.in (PRECOMP): Remove.
13934 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13935 (witness-emacs): Run `compile-first'.
13936 (.el.elc): Use the new compile-onefile target.
13938 2008-06-21 Kenichi Handa <handa@m17n.org>
13940 * xftfont.c (xftfont_open): Handle QCembolden only when
13941 FC_EMBOLDEN is defined.
13943 2008-06-21 Andreas Schwab <schwab@suse.de>
13945 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13946 (.el.elc): Likewise.
13948 2008-06-21 Miles Bader <miles@gnu.org>
13950 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13951 build dir, not the lisp source dir.
13953 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13955 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13956 (bootstrapclean): Remove.
13957 (.el.elc): New rule.
13958 (PRECOMP): New var.
13959 (../lisp/subdirs.el): Remove.
13960 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13961 (witness-emacs): New target.
13962 (mostlyclean): Remove witness-emacs as well.
13963 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13964 Add witness-emacs dependency.
13966 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
13968 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13969 defined by the font.
13971 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13973 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13974 (bootstrap-clean): New target that keeps TAGS around.
13975 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13976 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13978 2008-06-20 Jason Rumney <jasonr@gnu.org>
13980 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13981 Remove obsolete font code.
13983 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13984 to determine language support.
13986 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13988 * sysdep.c (cfsetspeed): New fun extracted from the code.
13989 (cfmakeraw): Move before first use.
13991 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13993 * sysdep.c (cfmakeraw): Provide fallback implementation.
13994 (serial_configure): Provide fallback implementation of cfsetspeed.
13996 2008-06-20 Kenichi Handa <handa@m17n.org>
13998 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14001 * fontset.c (fontset_from_font): Copy font_spec before changing
14004 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14006 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14008 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14009 for explicit `font' parameters.
14011 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14013 2008-06-19 Kenichi Handa <handa@m17n.org>
14015 * frame.c: Include <ctype.h>.
14016 (x_set_font_backend): Allow spacing characters in the X resource
14019 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14021 * w32fns.c, xfns.c (Qfont_param): New var.
14022 (syms_of_w32fns): Initialize it.
14023 (x_default_font_parameter): Record explicit `font' into
14026 2008-06-18 Kenichi Handa <handa@m17n.org>
14028 * font.c (font_parse_xlfd): Fix previous change.
14029 (font_parse_fcname): Don't use :fc-unknown-spec.
14030 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14031 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14032 (font_add_log): Prepend the driver name to the resulting fonts.
14034 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14035 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14036 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14038 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14039 (QCembolden): New variables.
14040 (syms_of_xftfont): DEFSYM them.
14041 (xftfont_open): Call XftFontMatch. Don't trust the result of
14042 XftTextExtents8 if the pixel_size is less than 5.
14044 2008-06-18 Andreas Schwab <schwab@suse.de>
14046 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14047 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14049 2008-06-18 Jason Rumney <jasonr@gnu.org>
14051 * w32font.c (w32font_list, w32font_match): Add logging.
14053 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14055 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
14057 * font.c (font_parse_fcname): Store divider characters for
14058 unknown-spec list. For known key symbols, intern using correct
14061 2008-06-17 Kenichi Handa <handa@m17n.org>
14063 * xfaces.c (realize_default_face): If the frame is not on window
14064 system, set the fontset of face to nil.
14066 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14068 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14070 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14072 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14073 (build_font_name_from_vector): Delete externs.
14075 * xfaces.c (struct font_name): Don't declare.
14077 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14079 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14081 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14083 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14085 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14087 * font.c (Ffont_spec): Fix usage in docstring.
14088 (Ffont_face_attributes): Doc fix.
14090 2008-06-16 Andreas Schwab <schwab@suse.de>
14092 * font.c (Ffont_face_attributes): Fix definition.
14094 2008-06-16 Jason Rumney <jasonr@gnu.org>
14096 * font.h (font_style_symbolic_from_value): Remove.
14098 * font.c (font_style_symbolic_from_value): Remove.
14099 (font_style_symbolic): Revert to pre 2008-06-13 version.
14101 * w32font.c (w32_to_fc_weight): New function.
14102 (w32font_full_name, logfont_to_fcname): Use it.
14104 2008-06-16 Kenichi Handa <handa@m17n.org>
14106 * font.c (font_check_object): Delete it.
14107 (font_clear_cache): Check if a font-object is alive.
14108 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14109 font-object to nil.
14110 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14111 (font_at): Don't call font_check_object.
14112 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14114 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14116 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14118 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14120 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14122 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
14124 * font.c (font_parse_fcname): Only one decimal point.
14125 (font_unparse_fcname): Handle data in family and foundry indices
14126 as symbols, not strings.
14127 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14129 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14131 * font.h (font_unparse_gtkname): Add prototype.
14133 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14135 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14137 2008-06-15 Andreas Schwab <schwab@suse.de>
14139 * font.c (font_update_drivers): Fix crash when no drivers match.
14141 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14143 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14144 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14146 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14148 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14150 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14152 * process.c (Fserial_process_configure, Fprocess_send_eof):
14153 Use EQ to compare Lisp_Objects.
14155 2008-06-13 Jason Rumney <jasonr@gnu.org>
14157 * w32fns.c (Fw32_select_font): Remove old font API function.
14159 * w32font.c (logfont_to_fcname): New function.
14160 (Fx_select_font): New font dialog function compatible with
14161 GTK/fontconfig version.
14163 * font.c (font_style_symbolic_from_value): New function.
14164 (font_style_symbolic): Use it.
14166 * font.h (font_style_symbolic_from_value): Declare new function.
14168 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
14170 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14171 <font-width-table>: Fix typos in docstrings.
14173 2008-06-13 Daniel Engeler <engeler@gmail.com>
14175 These changes add serial port access.
14176 * process.c: Add HAVE_SERIAL.
14177 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14178 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14179 (list_processes_1, select_wrapper, Fstop_process)
14180 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14181 (status_notify): Modify to handle serial processes.
14182 [HAVE_SERIAL] (Fserial_process_configure)
14183 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14185 * process.h (struct Lisp_Process): Add `type'.
14186 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14188 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14190 (serial_open, serial_configure): New functions.
14191 * w32.h: Add FILE_SERIAL.
14192 (struct _child_process): Add ovl_read, ovl_write.
14194 2008-06-13 Kenichi Handa <handa@m17n.org>
14196 * dispextern.h (enum lface_attribute_index): New member
14197 LFACE_FOUNDRY_INDEX.
14199 * font.c (font_score): Delete arg alternate_families. Check only
14200 weight, slant, width, and size. Ignore the difference of alias
14202 (font_sort_entites): Adjust for the above change. Reflect the
14203 order of font-driver to scores.
14204 (font_list_entities): Don't check alternate_familes here.
14205 (font_clear_prop): Handle foundry.
14206 (font_update_lface): Don't parse "foundry-family" form here.
14207 Handle FONT_FOUNDRY_INDEX.
14208 (font_find_for_lface): Likewise. Handle alternate families here.
14209 If registry is nil, try iso8859-1 and ascii-0.
14210 (font_open_for_lface): Pay attention to size in ENTITY.
14211 (font_open_by_name): Simplify by calling font_load_for_lface.
14212 (free_font_driver_list): Delete it.
14213 (font_update_drivers): Preserve the order of backends.
14214 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14215 of font_score and font_sort_entites.
14216 (font_update_sort_order): Likewise.
14218 * xfaces.c (LFACE_FOUNDRY): New macro.
14219 (check_lface_attrs): Check foundry.
14220 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14221 (merge_face_vectors): Check foundry.
14222 (merge_face_ref): Likewise.
14223 (Finternal_set_lisp_face_attribute): Likewise.
14224 (x_update_menu_appearance): Likewise.
14225 (Finternal_get_lisp_face_attribute): Likewise.
14226 (lface_hash): Likewise.
14227 (lface_same_font_attributes_p): Likewise.
14228 (x_supports_face_attributes_p): Likewise.
14229 (tty_supports_face_attributes_p): Likewise.
14230 (Finternal_set_alternative_font_family_alist): Intern strings.
14231 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14232 (realize_default_face): Set LFACE_FOUNDRY (lface).
14234 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14235 font-driver at first.
14237 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14239 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14241 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14243 2008-06-12 Jim Meyering <meyering@redhat.com>
14245 Make unexec_free handle NULL the same way free does.
14246 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14248 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14250 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14251 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14252 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14253 (WEAK_ALIAS): Simplify.
14254 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14255 when searching a unibyte buffer.
14257 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
14259 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14261 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
14263 * w32font.c: Include ctype.h.
14265 2008-06-11 Jason Rumney <jasonr@gnu.org>
14267 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14268 misreported as space.
14269 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14270 as aliases for registry iso10646-1.
14272 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14274 * buffer.c (clone_per_buffer_values): Skip `name'.
14276 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
14278 * font.c (font_parse_fcname): Fix last change; accept decimal
14279 points in font size.
14281 2008-06-10 Jason Rumney <jasonr@gnu.org>
14283 * w32uniscribe.c (add_opentype_font_name_to_list):
14284 Skip non unicode fonts.
14286 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14288 * xfns.c (Fx_font_dialog): New function.
14290 * gtkutil.c (xg_dialog_response_cb): Rename from
14291 xg_file_response_callback.
14292 (pop_down_dialog): Rename from pop_down_file_dialog.
14293 (xg_get_file_name): Callers changed.
14294 (xg_get_font_name): New function.
14296 * gtkutil.h (xg_get_font_name): Insert prototype.
14298 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14300 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14301 x_underline_minimum_display_offset.
14302 (syms_of_xdisp): Declare it here rather than in xterm.c.
14303 * dispextern.h (underline_minimum_offset): Declare it.
14304 * w32term.c (x_draw_glyph_string): Use it.
14305 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14306 (syms_of_xterm): Don't declare it any more.
14307 (x_draw_glyph_string): Adjust to the new name.
14309 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
14311 * xterm.c (x_underline_minimum_display_offset): New var.
14312 (x_draw_glyph_string): Use it.
14313 (syms_of_xterm): Declare it.
14315 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14317 * font.c (font_parse_fcname): Accept GTK-style font names too.
14319 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14321 * dired.c (file_name_completion): Don't return t if the match is exact
14322 but with different capitalization.
14323 * minibuf.c (Ftry_completion): Simplify.
14325 * window.c (Vwindow_point_insertion_type): New var.
14326 (set_window_buffer): Use it.
14327 (syms_of_window): Init and export it to Lisp.
14329 2008-06-10 Kenichi Handa <handa@m17n.org>
14331 * font.h (font_intern_prop): Prototype adjusted.
14333 * font.c (font_intern_prop): New arg force_symbol.
14334 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14335 Adjust for the change of font_intern_prop.
14337 * ftfont.c (ftfont_pattern_entity):
14338 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14340 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14341 the change of font_intern_prop.
14343 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
14345 * w32menu.c (digest_single_submenu): Declare extern.
14347 2008-06-09 Jason Rumney <jasonr@gnu.org>
14349 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14351 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14352 (parse_single_submenu): Remove.
14353 (digest_single_submenu): Remove.
14354 (syms_of_w32menu): Don't initialise variables that have moved
14356 (set_frame_menubar): Sync with version in xmenu.c.
14357 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14359 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14362 2008-06-09 Jason Rumney <jasonr@gnu.org>
14364 Changes to w32 files related to the move of common menu code
14365 to menu.c on 2008-06-08 by Chong Yidong.
14367 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14369 (single_keymap_panes, push_menu_item, push_menu_pane):
14370 Make globally visible.
14372 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14373 (local_free, malloc_widget_value, free_widget_value)
14374 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14375 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14376 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14377 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14378 (menu_items, menu_items_allocated, menu_items_used)
14379 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14380 (init_menu_items, finish_menu_items, discard_menu_items)
14381 (grow_menu_items, push_submenu_start, push_submenu_end)
14382 (push_left_right_boundary, push_menu_pane, push_menu_item)
14383 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14384 (free_menubar_widget_tree_value, parse_single_submenu)
14385 (update_submenu_strings): Remove functions.
14386 (xmalloc_widget_value): Remove and declare extern.
14388 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14391 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14392 (local_heap, local_alloc, local_free, malloc_widget_value)
14393 (free_widget_value): Define here.
14395 2008-06-09 Kenichi Handa <handa@m17n.org>
14397 * font.h (Qascii_0): Extern it.
14399 * font.c (Qascii_0): New variable.
14400 (syms_of_font): DEFSYM it.
14401 (font_open_by_name): If the registry "iso8859-1" fails, try also
14404 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14406 2008-06-08 Kenichi Handa <handa@m17n.org>
14408 * .gdbinit (xfont): New command.
14410 2008-06-08 Andreas Schwab <schwab@suse.de>
14412 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14413 * Makefile.in (menu.o): Update dependencies.
14415 * Makefile.in (obj): Always add menu.o.
14416 * emacs.c (main): Always call syms_of_menu.
14417 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14419 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14421 * Makefile.in: Compile menu.c.
14423 * lisp.h: Declare syms_of_menu.
14425 * emacs.c (main): Call syms_of_menu.
14427 * keyboard.h: Relocate platform-independent menu definitions from
14430 * menu.c: New file. Relocate platform-independent menu
14431 definitions from xmenu.c. Suggested by Adrian Robert.
14433 * xmenu.c: Remove platform-independent menu definitions.
14434 (menu_items, menu_items_inuse, menu_items_allocated)
14435 (menu_items_used, menu_items_n_panes)
14436 (menu_items_submenu_depth): Move to keyboard.h.
14437 (init_menu_items, finish_menu_items, unuse_menu_items)
14438 (discard_menu_items, restore_menu_items, save_menu_items)
14439 (grow_menu_items, push_submenu_start, push_submenu_end)
14440 (push_left_right_boundary, push_menu_pane, push_menu_item)
14441 (keymap_panes, single_keymap_panes, single_menu_item)
14442 (list_of_panes, list_of_items, find_and_call_menu_selection)
14443 (xmalloc_widget_value, free_menubar_widget_value_tree)
14444 (parse_single_submenu, digest_single_submenu)
14445 (update_submenu_strings): Move to menu.c.
14447 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14449 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14451 2008-06-06 Miles Bader <miles@gnu.org>
14453 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14454 face, not frame default.
14456 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14458 * window.c (pop_up_windows, pop_up_frames)
14459 (display_buffer_reuse_frames, Vpop_up_frame_function)
14460 (Vdisplay_buffer_function, Veven_window_heights)
14461 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14462 (Vspecial_display_function, Vsame_window_buffer_names)
14463 (Vsame_window_regexps, split_height_threshold)
14464 (Vsplit_window_preferred_function): Move those vars to window.el.
14465 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14466 (Fdisplay_buffer): Move those functions to window.el.
14467 (syms_of_window): Remove corresponding declarations.
14468 (display_buffer): New function.
14469 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14470 * dispnew.c (Flast_nonminibuf_frame): New function.
14471 * buffer.c (Fpop_to_buffer): Move to window.el.
14473 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14475 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14477 2008-06-05 Kenichi Handa <handa@m17n.org>
14479 * coding.c (detect_coding): Fix previous change.
14480 (detect_coding_system): Likewise.
14482 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14484 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14486 * keymap.c (Vminibuffer_local_filename_must_match_map):
14487 Rename from Vminibuffer_local_must_match_filename_map.
14489 * minibuf.c (Fcompleting_read): Adjust accordingly.
14490 * commands.h: Rename declaration as well.
14492 2008-06-05 Kenichi Handa <handa@m17n.org>
14494 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14496 (Ffont_put): Likewise.
14498 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14501 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14504 * xfaces.c (realize_x_face): If the font-related face attributes
14505 are the same as those of default face, realize a new fontset from
14507 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14509 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14511 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14512 (move_it_in_display_line): New wrapper.
14514 * window.c (window_scroll_pixel_based_preserve_x)
14515 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14516 (window_scroll_pixel_based, window_scroll_line_based):
14517 Use them to preserve column positions.
14518 (syms_of_window): Initialize them.
14520 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14521 (HPOS . VPOS) pair.
14523 * dispextern.h (move_it_in_display_line): Declare.
14525 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14527 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14528 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14529 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14531 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14533 * window.c (Fset_window_parameter): Doc fix.
14534 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14536 2008-06-04 Joakim Verona <joakim@verona.se>
14538 * window.h (struct window): Add new member window_parameters.
14540 * window.c (Fwindow_parameters, Fwindow_parameter)
14541 (Fset_window_parameter): New defuns.
14542 (syms_of_window): Defsubr the new defuns.
14543 (make_window): Initialize window_parameters to nil.
14545 2008-06-04 John Paul Wallington <jpw@pobox.com>
14547 * eval.c (Fdefmacro): Doc fix.
14549 2008-06-04 Kenichi Handa <handa@m17n.org>
14551 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14552 Be sure to call setup_coding_system when we find a proper coding system.
14553 (detect_coding_system): Fix handling of coding->head_ascii.
14555 2008-06-03 Andreas Schwab <schwab@suse.de>
14557 * font.c (font_prop_validate_spacing): Fix last change.
14559 2008-06-03 Kenichi Handa <handa@m17n.org>
14561 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14562 (font_parse_fcname): Fix handling of unknown key.
14564 * xfont.c (xfont_list): Try an alias.
14566 * charset.c (char_charset): Return NULL if the arg charset_list is
14567 specified and C doesn't belong to any of them.
14569 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14571 * font.c (font_pixel_size): Don't take cdr of an integer.
14573 2008-06-02 Jim Meyering <meyering@redhat.com>
14575 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14576 * alloc.c (xfree): Return right away for a NULL arg.
14577 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14578 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14579 * mac.c (create_apple_event_from_event_ref): Likewise.
14580 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14582 * doprnt.c (doprnt1): Likewise.
14583 * frame.c (frame): Likewise.
14584 * keyboard.c (wipe_kboard): Likewise.
14585 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14586 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14587 * term.c (tty_default_color_capabilities, maybe_fatal)
14588 (delete_tty): Likewise.
14589 * w16select.c (string): Likewise.
14590 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14591 * w32bdf.c (w32_free_bdf_font): Likewise.
14592 * w32fns.c (w32_unload_font): Likewise.
14593 * w32font.c (w32font_close): Likewise.
14594 * window.c (size_window): Likewise.
14595 * xselect.c (receive_incremental_selection): Likewise.
14596 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14597 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14598 * w32.c (stat): Likewise.
14600 Remove useless if-before-free tests.
14601 * editfns.c (Fset_time_zone_rule): Likewise.
14602 * lread.c (nosuffix): Likewise.
14603 * ralloc.c (get_bloc): Likewise.
14604 * regex.c (reg_free): Likewise.
14605 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14606 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14607 * xsmfns.c (smc_save_yourself_CB): Likewise.
14609 2008-06-02 Kenichi Handa <handa@m17n.org>
14611 * font.c (font_find_for_lface): Handle float font size.
14612 (font_open_for_lface): Likewise.
14614 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14615 comparing the properties.
14617 2008-06-01 Jason Rumney <jasonr@gnu.org>
14619 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14620 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14621 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14622 Don't add empty script list.
14623 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14625 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14627 * Makefile.in (dot, dotdot): Remove, update users.
14628 ".." has been used elsewhere in the file for a long time.
14629 (LIBXT_STATIC): Remove conditional based on unused variable.
14631 2008-06-01 Miles Bader <miles@gnu.org>
14633 * xfaces.c (Vface_remapping_alist): New variable.
14634 (syms_of_xfaces): Initialize it.
14635 (enum named_merge_point_kind): New type.
14636 (struct named_merge_point): Add `named_merge_point_kind' field.
14637 (push_named_merge_point): Make cycle detection respect different
14638 named-merge-point kinds.
14639 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14640 Remove face-name alias resolution.
14641 (lface_from_face_name): New definition using
14642 `lface_from_face_name_no_resolve'.
14643 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14644 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14645 (get_lface_attributes): New definition that layers face-remapping on
14646 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14647 (lookup_basic_face): New function.
14648 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14649 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14650 `get_lface_attributes'.
14651 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14652 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14653 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14655 * xdisp.c (init_iterator): Pass base_face_id through
14656 `lookup_basic_face' when we actually use it as a face-id.
14657 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14660 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14661 lookup the initial face-id.
14663 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14665 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
14667 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14668 (Fremove_text_properties): Fix typos in docstrings.
14670 2008-05-31 Kenichi Handa <handa@m17n.org>
14672 * font.c (font_list_entities): Fix the car part of data to be
14673 stored in the cache.
14675 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14677 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14679 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14680 Add a `test' argument so another predicate than `equal' can be used.
14681 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14682 (map_char_table): Remove unused vars `c' and `i'.
14683 * lisp.h (Foptimize_char_table): Adjust declaration.
14684 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14686 2008-05-30 Kenichi Handa <handa@m17n.org>
14688 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14689 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14692 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14694 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14695 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14696 frame-local settings for the same variable.
14698 2008-05-30 Kenichi Handa <handa@m17n.org>
14700 * fontset.c (Ffont_info): Move to font.c.
14701 (syms_of_fontset): Delete defsubr of Sfont_info.
14703 * font.c (font_style_to_value, font_score): Delete casting of the
14704 args to xstcasecmp.
14705 (register_font_driver): Increment num_font_drivers only when
14706 registering the driver globally.
14707 (Ffont_info): Move from fontset.c. Handle a font object too.
14708 (syms_of_font): Defsubr Sfont_info.
14710 2008-05-29 Kenichi Handa <handa@m17n.org>
14712 * coding.h (enum define_coding_utf8_arg_index): New enum.
14713 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14714 coding_attr_utf_bom.
14715 (enum utf_bom_type): Rename from utf_16_bom_type.
14716 (struct utf_16_spec): Adjust for the above change.
14717 (struct coding_system): Add utf_8_bom in `spec' union.
14719 * coding.c (CODING_UTF_8_BOM): New macro.
14720 (enum coding_category): Delete coding_category_utf_8, add
14721 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14722 coding_category_utf_8_sig.
14723 (CATEGORY_MASK_UTF_8): Delete it.
14724 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14725 (CATEGORY_MASK_UTF_8_SIG): New macros.
14726 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14727 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14728 CATEGORY_MASK_UTF_8_SIG.
14729 (CATEGORY_MASK_UTF_8): New macro.
14730 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14731 (detect_coding_utf_8): Check BOM.
14732 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14733 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14734 (encode_coding_utf_16): Likewise.
14735 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14736 (detect_coding, detect_coding_system): Handle utf-8-auto.
14737 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14738 (syms_of_coding): Fix setting up of Vcoding_category_table.
14740 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14742 * process.c (Faccept_process_output): If `millisec' is non-nil,
14743 `seconds' default to 0.
14744 (wait_reading_process_output): Also return non-nil if we read output
14745 from a non-running process.
14747 2008-05-29 Jason Rumney <jasonr@gnu.org>
14749 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14750 `raster' specified.
14751 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14752 in the uniscribe backend, but disallow any font that has no
14753 unicode subrange support.
14755 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
14757 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14758 Fix typos in docstrings.
14760 2008-05-29 Kenichi Handa <handa@m17n.org>
14762 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14763 (Fx_family_fonts): Set frame correctly.
14765 2008-05-28 Jason Rumney <jasonr@gnu.org>
14767 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14769 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14771 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14772 calling build_annotations.
14774 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
14776 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14777 (Fencode_coding_string):
14778 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14779 <latin-extra-code-table>: Fix typos in docstrings.
14780 (syms_of_coding) <coding-system-alist>: Doc fix.
14781 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14783 2008-05-28 Kenichi Handa <handa@m17n.org>
14785 * fontset.c (Ffont_info): Don't call font_close_object.
14787 * font.c (font_parse_family_registry): Use Ffont_put to validate
14788 foundry and family.
14789 (font_delete_unmatched): Don't check spacing.
14790 (font_list_entities): Add spacing to the spec to list fonts.
14792 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14793 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14795 * coding.c (encode_coding_raw_text): Fix previous change.
14796 (encode_coding_object): When the dst_object is a buffer and is
14797 different from src_object, move gap to PT.
14799 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14801 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14803 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14805 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14806 all branches. Compute it differently.
14808 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14810 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
14812 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14813 into "else if () ... else ...".
14815 2008-05-27 Jason Rumney <jasonr@gnu.org>
14817 * w32font.c (w32font_open_internal): Determine if glyph indices
14818 are likely to work here.
14820 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14822 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14823 draw overlap glyphs with appropriate highlighting.
14825 2008-05-27 Kenichi Handa <handa@m17n.org>
14827 * xfont.c (xfont_open): Fix calculation of font->average_width.
14829 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14831 * casefiddle.c (casify_object): Try to guess better whether the
14832 argument is a byte or a char.
14834 2008-05-26 Andreas Schwab <schwab@suse.de>
14836 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14837 Always send multiples of format size.
14839 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14841 2008-05-26 Jason Rumney <jasonr@gnu.org>
14843 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14844 (compute_metrics): Don't set failure if we just cleared the cache.
14845 (w32_weight_table): Remove unused variable.
14846 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14847 backwards compatibility.
14849 2008-05-25 Kenichi Handa <handa@m17n.org>
14851 * w32term.c (x_draw_glyph_string):
14852 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14854 * xfaces.c: Delete unused function prototypes.
14855 (xstrlwr, font_frame): Delete them.
14856 (clear_face_cache): Delete unused variable.
14858 * xftfont.c (xftfont_open): Delete unused variable.
14859 If underline_thickness is not 1, adjust underline_position.
14861 * ftxfont.c (ftxfont_open): Delete unused variable.
14863 * fontset.c (face_for_char): Optimize for the case of no charset
14866 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14867 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14868 (otf_open, font_otf_capability, generate_otf_features)
14869 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14870 Comment out by surrounding "#if 0" and "#endif" for the moment.
14871 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14872 (syms_of_font): Codes for accessing above commented out.
14874 2008-05-24 Eli Zaretskii <eliz@gnu.org>
14876 * w32proc.c: Include dispextern.h.
14878 * w32.c: Include dispextern.h.
14880 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
14882 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14883 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14884 Fix typos in docstrings.
14886 2008-05-23 Jason Rumney <jasonr@gnu.org>
14888 * xsmfns.c: Remove includes that are already included by config.h.
14890 2008-05-23 Kenichi Handa <handa@m17n.org>
14892 * charset.c (Qemacs, charset_emacs): New variables.
14893 (char_charset): Fix for non-Unicode characters.
14894 (syms_of_charset): Define charset_emacs.
14896 * w32term.c (x_draw_glyph_string): Be sure to update
14897 s->underline_thickness and s->underline_position. Be sure to draw
14898 underline within the current line area.
14900 * xterm.c (x_draw_glyph_string): Be sure to update
14901 s->underline_thickness and s->underline_position. Be sure to draw
14902 underline within the current line area.
14904 * fontset.c: Delete unused variables and add casting for char *
14905 throughout the file.
14906 (fontset_font): Try the fallback fonts of the current fontset
14907 before consulting the default fontset.
14909 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14911 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14913 2008-05-22 Jason Rumney <jasonr@gnu.org>
14915 * font.c: Don't include strings.h.
14917 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14919 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14920 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14921 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14922 to call xstrcasecmp.
14924 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14926 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14928 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14930 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14932 2008-05-22 Kenichi Handa <handa@m17n.org>
14934 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14936 * font.c (font_prop_validate_style): Adjust for the format
14937 change of font_style_table.
14939 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14942 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14945 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14947 * minibuf.c (keys_of_minibuf): Delete.
14948 * lisp.h (keys_of_minibuf): Delete.
14949 * emacs.c (main): Don't call keys_of_minibuf.
14951 2008-05-22 Kenichi Handa <handa@m17n.org>
14953 * ftfont.c (ftfont_resolve_generic_family): Rename from
14954 ftfont_list_generic_family. Return a single family for each
14956 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14957 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14959 (ftfont_match): Call font_add_log.
14961 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14962 (FONT_DEBUG): Define it.
14963 (font_add_log): Extern it.
14964 (font_assert): Rename from xassert.
14966 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14967 (xfont_list_family): Call font_add_log.
14968 (xfont_match): Likewise.
14969 (memq_no_quit): Delete.
14971 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14972 call of Ffont_xlfd_name.
14974 * xfaces.c (struct table_entry, slant_table, weight_table)
14975 (swidth_table): Move to font.c.
14977 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14978 xassert are changed to font_assert. Delete many unused variables.
14979 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14981 (struct table_entry): Move from xfaces.c and modified.
14982 (weight_table, slant_table, width_table): Move from xfaces.c and
14983 contents adjusted for the change of struct table_entry.
14984 (font_style_to_value, font_style_symbolic): Adjust for the
14985 format change of font_style_table.
14986 (font_parse_family_registry): Don't overwrite existing foundry and
14987 family of font_spec.
14988 (font_score): Fix calculation of diff for sizes.
14989 (font_sort_entites): Call font_add_log.
14990 (font_delete_unmatched): Return a newly created list.
14991 (font_list_entities): Fix previous change. Call font_add_log.
14992 (font_matching_entity, font_open_entity, font_close_entity):
14994 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14995 (Finternal_set_font_style_table): Delete.
14996 (BUILD_STYLE_TABLE): New macro.
14997 (build_style_table): New function.
14998 (Vfont_log, font_log_env_checked): New variables.
14999 (font_add_log): New function.
15000 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15001 Declare Lisp variables "font-weight-table", "font-slant-table",
15002 "font-width-table", and "font-log". Initialize font_style_table.
15004 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15006 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15008 2008-05-21 Seiji Zenitani <zenitani@mac.com>
15009 Ryo Yoshitake <ryo@shiftmode.net>
15011 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15012 (Vframe_alpha_lower_limit): New variable.
15013 (x_set_alpha): New function.
15015 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15017 * xfns.c (x-create-frame, Qalpha):
15018 Initialize the frame parameter `alpha'.
15019 * xterm.c (OPAQUE, OPACITY): New.
15020 (x_set_frame_alpha): New function.
15021 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15023 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15024 * w32fns.c (w32_frame_parm_handlers): Likewise.
15026 2008-05-20 Jason Rumney <jasonr@gnu.org>
15028 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15029 truetype fonts to opentype list.
15031 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
15033 * fontset.c (Ffontset_info): Doc fix.
15034 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15035 <ignore-relative-composition>: Fix typos in docstrings.
15037 * font.c (syms-of-font) <font-encoding-alist>:
15038 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15039 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15040 (Ffont_otf_alternates): Doc fixes.
15042 2008-05-20 Kenichi Handa <handa@m17n.org>
15044 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15045 font.h through out the file.
15046 (FONT_DRIVERS): Rename from FONTOBJ.
15047 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15048 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15050 * emacs.c (main): Call syms_of_font unconditionally.
15052 * font.h (find_font_encoding): Extern it.
15054 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15056 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
15057 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15058 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15059 only when HAVE_WINDOW_SYSTEM is defined.
15060 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15061 when HAVE_WINDOW_SYSTEM is defined.
15063 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15064 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15066 * xfaces.c: Include font.h unconditionally.
15067 (merge_face_ref, merge_face_vectors)
15068 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15070 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15072 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15074 * eval.c (lisp_indirect_variable): New fun.
15075 (Fuser_variable_p): Use it.
15077 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15079 * lisp.h (indirect_variable):
15080 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15081 Use Lisp_Symbol pointers rather than Lisp_Object.
15083 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15084 To this end, change calling-convention.
15086 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15087 if some non-hidden buffers are selected by string&pred.
15089 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
15091 * process.c (wait_reading_process_output): Always check status
15092 when in batch mode.
15094 2008-05-19 Kenichi Handa <handa@m17n.org>
15096 * font.c (font_list_entities): Fix handling of cache.
15097 (font_matching_entity): Likewise.
15099 * ftfont.c (cs_iso8859_1): Delete.
15100 (ft_face_cache): New variable.
15101 (struct ftfont_info): New member fc_charset_idx.
15102 (ftfont_build_basic_charsets): Delete.
15103 (fc_charset_table): New variable.
15104 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15105 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15107 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15108 (ftfont_spec_pattern): New argument fc_charset_idx.
15109 Check registry more rigidly. Change callers.
15110 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15111 change of :font-entity property of the font.
15113 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15114 property of the font.
15116 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
15118 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15119 (Funencodable_char_position, Fcheck_coding_systems_region)
15120 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15121 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15122 (Ffind_operation_coding_system, Fset_coding_system_priority)
15123 (Fcoding_system_eol_type): Doc fixes.
15125 2008-05-17 Glenn Morris <rgm@gnu.org>
15127 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15129 2008-05-16 Eli Zaretskii <eliz@gnu.org>
15131 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15134 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15135 HAVE_WINDOW_SYSTEM is not defined.
15137 * xfaces.c (merge_face_ref, merge_face_vectors)
15138 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15139 HAVE_WINDOW_SYSTEM is defined.
15140 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15142 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15144 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15146 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15148 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15150 2008-05-15 Kenichi Handa <handa@m17n.org>
15152 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15155 2008-05-15 Glenn Morris <rgm@gnu.org>
15157 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15159 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
15161 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15162 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15164 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15166 2008-05-15 Kenichi Handa <handa@m17n.org>
15168 * ftfont.c (ftfont_list): Downcase family name to check generic
15171 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15172 font-spec for QCfont value.
15174 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15175 buffer. Check the return value of it.
15177 2008-05-14 Jason Rumney <jasonr@gnu.org>
15179 * w32term.c (w32_get_glyph_overhangs): Remove.
15180 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15182 2008-05-14 Kenichi Handa <handa@m17n.org>
15184 * font.c (font_prop_validate): Make nil a valid value.
15185 (font_clear_cache): Check if the cached vector of entities is nil
15188 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15190 * emacs.c (main_thread): Conditionalize on
15191 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15192 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15194 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15195 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15196 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15198 2008-05-14 Kenichi Handa <handa@m17n.org>
15200 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15201 has no corresponding coding system.
15203 2008-05-14 Jason Rumney <jasonr@gnu.org>
15205 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15207 * w32font.h (w32font_open_internal): Update declaration.
15209 * w32font.c (w32font_open_internal): Change last argument from
15210 w32font_info struct to font object. Fill in font object from
15211 font_entity. Get Outline metrics if possible. Use them to
15212 calculate underline position and thickness. Use xlfd name as name
15213 property. Don't set codepage.
15214 (w32font_open): Pass font_object to w32font_open_internal. Don't
15215 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15216 (w32font_draw): Use s->font.
15217 (clear_cached_metrics): Don't clear non-existent blocks.
15219 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15220 font was not found.
15221 (x_draw_glyph_string): Use underline position and thickness from font.
15223 * w32uniscribe.c (uniscribe_open): Pass font_object to
15224 w32font_open_internal.
15226 2008-05-14 Kenichi Handa <handa@m17n.org>
15228 These changes are to delete all legacy font-handling codes, and
15229 make Emacs use only font-backends.
15231 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15232 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15234 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15236 * charset.h (Vcharset_non_preferred_head)
15237 (Vcurrent_iso639_language): Extern them.
15239 * charset.c (Vcharset_non_preferred_head): New variable.
15240 (Vcurrent_iso639_language): New variable.
15241 (syms_of_charset): Declare it as a Lisp variable.
15242 (char_charset): Don't check non preferred charsets. As a last
15243 resort, return charset_unicode.
15244 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15246 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15247 conditionals. Don't check enable_font_backend. Delete all codes
15248 used only when USE_FONT_BACKEND is not defined.
15250 * dispextern.h (struct glyph_string): Change type of `font' to
15252 (struct glyph_string): New member underline_position and
15253 underline_thickness.
15254 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15255 (struct face): Change type of `font' to `struct font *'. Remove
15256 members `font_name', `font_info_id'.
15257 (per_char_metric, encode_char): Delete externs.
15258 (calc_pixel_width_or_height): Adjust the prototype.
15260 * emacs.c (enable_font_backend): Delete extern.
15261 (main): Don't set enable_font_backend. Don't check the command
15262 line argument "-disable-font-backend".
15264 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15265 (enum font_property_index): New members FONT_DPI_INDEX,
15266 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15267 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15268 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15269 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15270 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15271 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15272 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15273 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15274 (struct font_spec, struct font_entity): New structs.
15275 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15276 (struct font): Many members from old "struct font_info" moved to
15277 here. Members font and entity deleted.
15278 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15279 the new font-related objects.
15280 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15281 (CHECK_FONT_GET_OBJECT): Likewise.
15282 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15283 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15284 (struct font_driver): New members case_sensitive anc check. Type
15285 of the member list and open changed.
15286 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15287 (font_symbolic_width, font_find_object, font_get_spec)
15288 (font_set_lface_from_name): Delete extern.
15289 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15291 * font.c: Include <strings.h>.
15292 (enable_font_backend): Delete it.
15293 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15294 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15295 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15296 (null_string): Delete it.
15297 (null_vector): Make it static.
15298 (font_family_alist): Delete it.
15299 (Qnormal): Extern it.
15300 (QCextra, QClanguage): Delete it.
15301 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15302 (font_make_spec, font_make_entity, font_make_object)
15303 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15304 the string. Callers changed.
15305 (font_pixel_size): Adjusted for the format change of font-related
15307 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15308 (font_style_to_value, font_style_symbolic): New function.
15309 (build_font_family_alist): Delete it.
15310 (font_registry_charsets): Use Fassoc_string instead of
15312 (font_prop_validate_symbol): Don't return null_string.
15313 (font_prop_validate_style): Adjusted for the change of
15314 style-related values in a font vector.
15315 (font_property_table): Delete entries for QClanguage and
15316 QCantialias, add entries for QCavgwidth.
15317 (get_font_prop_index): Delete the 2nd argument FROM.
15318 (font_prop_validate): Arguments changed.
15319 (font_put_extra): Adjusted for the change of font-related objects.
15320 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15321 (font_parse_fcname, font_unparse_fcname)
15322 (font_prepare_composition): Likewise.
15323 (font_parse_family_registry): Renamed from font_merge_old_spec.
15324 (otf_open): Delete the 1st arg entity.
15325 (font_otf_capability): Adjusted for the above change.
15326 (font_score): New arg alternate_families. Adjusted for the change
15327 of font-related objects.
15328 (font_sort_entites): New arg best_only.
15329 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15331 (font_match_p): Check alternate families.
15332 (font_find_object): Delete it.
15333 (font_check_object): New function.
15334 (font_clear_cache): Adjusted for the change of font-related objects.
15335 (font_delete_unmatched): New arg.
15336 (font_list_entities): Call font_driver->list with a spec that
15337 doesn't specify style-related properties.
15338 (font_matching_entity): Arguments changed. Caller changed.
15339 (font_open_entity): Adjusted for the change of font-related objects.
15340 (font_close_object, font_has_char, font_encode_char)
15341 (font_get_name, font_get_spec): Likewise.
15342 (font_spec_from_name, font_clear_prop, font_update_lface):
15344 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15345 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15346 (font_at): Adjusted for the change of font-related objects.
15347 (font_range): New function.
15348 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15349 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15350 (Fcopy_font_spec, Fmerge_font_spec): New function.
15351 (Ffont_family_list): Renamed from list-families.
15352 (Finternal_set_font_style_table): Arguments changed.
15353 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15354 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15355 change of font-related objects.
15356 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15358 * fontset.h (struct font_info): Delete it. Most members go to
15360 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15361 (enum FONT_SPEC_INDEX): Delete it.
15362 (font_info, list_fonts_func, load_font_func, query_font_func)
15363 (set_frame_fontset_func, find_ccl_program_func)
15364 (get_font_repertory_func, new_fontset_from_font_name): Delete
15366 (fontset_from_font_name): Extern it.
15367 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15368 (FONT_INFO_FROM_FACE): Deleted.
15369 (face_for_font): Adjust prototype.
15371 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15372 conditionals. Don't check enable_font_backend. Delete all codes
15373 used only when USE_FONT_BACKEND is not defined.
15374 (get_font_info_func, list_font_func, load_font_func)
15375 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15376 (get_font_repertory_func): Delete them.
15377 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15378 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15379 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15380 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15381 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15382 (fontset_compare_rfontdef): New function.
15383 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15384 rfont-defs by qsort. Adjusted for the change of font-group vector.
15385 (load_font_get_repertory): Deleted.
15386 (fontset_find_font): Use new macros to ref/set elements of
15387 font-def and rfont-def.
15388 (fontset_font): Fix the timing of remembering that no font for C.
15389 (free_face_fontset): Do nothing if the face has no fontset.
15390 (face_suitable_for_char_p): Use new macros to ref/set elements of
15392 (face_for_char): Likewise. Call face_for_char with font_object.
15393 (fs_load_font): Delete. Delete #pragma surrounding it.
15394 (fs_query_fontset): Use strcasecmp instead of strcmp.
15395 (generate_ascii_font_name): Adjusted for the format change of
15397 (Fset_fontset_font): Likewise. Use new macros to set elements of
15399 (Fnew_fontset): Use font_unparse_xlfd to generate
15400 FONTSET_ASCII (fontset).
15401 (new_fontset_from_font_name): Deleted.
15402 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15403 a fontset is already created for the font. FIx updating of
15404 Vfontset_alias_alist.
15405 (fontset_ascii_font): Deleted.
15406 (Ffont_info): Adjusted for the format change of font-spec.
15407 (Finternal_char_font): Likewise.
15408 (Ffontset_info): Likewise.
15409 (syms_of_fontset): Don't check load_font_func.
15411 * fns.c (internal_equal): Handle PREV_FONT.
15413 * frame.h: Delete USE_FONT_BACKEND conditional.
15415 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15416 conditionals. Don't check enable_font_backend. Delete all codes
15417 used only when USE_FONT_BACKEND is not defined.
15418 (x_set_font): Call x_new_font, not x_new_fontset2.
15419 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15420 already set for the frame.
15422 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15423 a font-entity by font_make_entity. Use font_intern_prop instead
15424 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15425 font property. If a font is scalable, set avgwidth property to 0.
15426 Set font-entity property by font_put_extra.
15427 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15428 (ffont_driver): Adjusted for the change of struct font_driver.
15429 (ftfont_spec_pattern): New function.
15430 (ftfont_list): Return a list, not vector.
15431 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15432 (ftfont_list_family): Don't downcase names.
15433 (ftfont_free_entity): Deleted.
15434 (ftfont_open): Return a font-object. Adjusted for the change of
15435 struct font. Get underline_thickness and underline_position from
15436 font property. Don't update dpyinfo->smallest_font_height and
15437 dpyinfo->smallest_char_width.
15438 (ftfont_close): Don't free `struct font'.
15439 (ftfont_has_char): Adjusted for the format change of font-entity.
15440 (ftfont_encode_char, ftfont_text_extents): Likewise.
15442 * ftxfont.c (ftxfont_list): Return a list, not vector.
15443 (ftxfont_open): Return a font-object. Adjusted for the change of
15444 struct font. Get underline_thickness and underline_position from
15445 font property. Don't update dpyinfo->smallest_font_height and
15446 dpyinfo->smallest_char_width.
15447 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15448 (ftxfont_draw): Adjusted for the change of struct font.
15450 * image.c (image_ascent): Don't include "charset.h". Include
15451 "character.h" and "font.h".
15453 * lisp.h (enum pvec_type): New member PREV_FONT.
15454 (Fassoc_string): EXFUN it.
15456 * print.c: Include font.h.
15457 (print_object): Handle font-related objects.
15459 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15460 conditionals. Don't check enable_font_backend. Delete all codes
15461 used only when USE_FONT_BACKEND is not defined.
15462 (handle_auto_composed_prop): Do nothing if it->f is not on a
15463 window system. Check how many following characters can be
15464 displayed by the same font.
15465 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15467 (get_char_face_and_encoding): Assign the whole encoding task to
15468 the `encode-char' method of a font driver.
15469 (fill_composite_glyph_string): Adjusted for the change of `struct
15470 face' and `struct glyph_string'.
15471 (fill_glyph_string): Likewise.
15472 (get_per_char_metric): Arguments changed.
15473 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15474 and `struct glyph_string'.
15475 (produce_stretch_glyph, calc_line_height_property)
15476 (x_produce_glyphs): Likewise.
15478 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15479 conditionals. Don't check enable_font_backend. Delete all codes
15480 used only when USE_FONT_BACKEND is not defined. Use
15481 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15482 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15484 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15486 (struct font_name): Deleted.
15487 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15488 (compare_fonts_by_sort_order): New function.
15489 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15490 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15492 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15493 compare_fonts_by_sort_order.
15494 (Fx_font_family_list): Call Ffont_family_list.
15495 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15496 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15497 (face_symbolic_slant, face_symbolic_swidth)
15498 (split_font_name_into_vector, build_font_name_from_vector)
15499 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15500 (font_rescale_ratio, split_font_name, build_font_name)
15501 (free_font_names, sort_fonts, x_face_list_fonts)
15502 (face_font_available_p, sorted_font_list, cmp_font_names)
15503 (font_list_1, concat_font_list, font_list, remove_duplicates):
15505 (Fx_list_fonts): Use Ffont_list.
15506 (LFACE_AVGWIDTH): Deleted.
15507 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15509 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15510 (set_lface_from_font_name): Delete it.
15511 (set_lface_from_font): Renamed from
15512 set_lface_from_font_and_fontset. Caller changed. Don't set
15513 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15515 (merge_face_vectors): Copy font-spec if necessary.
15516 Clear properties of the font-spec if necessary.
15517 (merge_face_ref): Clear properties of the font-spec if necessary.
15518 (Finternal_set_lisp_face_attribute): Likewise.
15519 (set_font_frame_param): Use font_load_for_lface to load a
15520 font-object, and call Fmodify_frame_parameters with it.
15521 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15522 font name by Ffont_xlfd_name.
15523 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15524 QCslant, and QCwidth.
15525 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15526 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15527 Compare fonts by EQ.
15528 (lookup_non_ascii_face): Deleted.
15529 (face_for_font): The 2nd argument changed.
15530 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15531 Check atomic font properties by case insensitive.
15532 (realize_non_ascii_face): Set face->overstrike correctly.
15533 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15534 (dump_realized_face): Get font name from
15535 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15537 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15538 conditionals. Don't check enable_font_backend. Delete all codes
15539 used only when USE_FONT_BACKEND is not defined.
15540 (xic_create_xfontset): Original code deleted and renamed from
15541 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15542 (x_make_gc): Don't set GCFont in GCs.
15543 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15545 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15546 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15547 get_font_repertory_func.
15549 * xfont.c: Include <stdlib.h> and "ccl.h".
15550 (struct xfont_info): New structure.
15551 (xfont_query_font): Deleted.
15552 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15553 moved from xterm.c.
15554 (xfont_driver): Adjusted for the change of struct font_driver.
15555 (compare_font_names): New function.
15556 (xfont_list_pattern): Sort font names case insensitively. Make
15557 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15558 (xfont_list): Return a list, not vector.
15559 (xfont_match): If the font doesn't have QCname property, generate
15560 a name from the other font properties.
15561 (xfont_open): Return a font-object. Adjusted for the change of
15562 struct font. Get underline_thickness and underline_position from
15563 font property. Don't update dpyinfo->smallest_font_height and
15564 dpyinfo->smallest_char_width.
15565 (xfont_close): Don't free struct font.
15566 (xfont_prepare_face): Adjusted for the change of struct font.
15567 (xfont_done_face): Deleted.
15568 (xfont_has_char): Adjusted for the change of struct font.
15569 (xfont_encode_char, xfont_draw): Likewise.
15570 (xfont_check): New function.
15572 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15574 (xftfont_match): Adjusted for the format change of font-entity.
15575 (xftfont_open): Adjusted for the format change of font-entity and
15576 font-object. Adjusted for the change of struct font. Return a
15577 font-object. Don't update dpyinfo->smallest_font_height and
15578 dpyinfo->smallest_char_width.
15579 (xftfont_close): Block input while calling XftFontClose.
15580 (xftfont_prepare_face): Don't block input while calling
15581 xftfont_get_colors. Adjusted for the change of struct font.
15582 (xftfont_shape): Return value of error case fixed.
15584 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15586 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15588 (FONT_WIDTH): Return (f)->max_width.
15589 (struct x_display_info): Delete member `font'.
15590 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15591 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15592 (struct x_output): Change type of `font' to `struct font *'.
15594 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15595 conditionals. Don't check enable_font_backend. Delete all codes
15596 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15597 (x_per_char_metric, x_encode_char): Deleted.
15598 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15599 (x_compute_glyph_string_overhangs): Adjusted for the change of
15601 (x_draw_glyph_string_foreground)
15602 (x_draw_composite_glyph_string_foreground): Likewise.
15603 (x_draw_glyph_string): Likewise. Use font->underline_position and
15604 font->underline_thickness.
15605 (x_new_font): Renamed from x_new_fontset2.
15606 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15607 (x_check_font): Call `check' method of a font driver.
15608 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15609 (x_query_font, x_get_font_repertory): Deleted.
15610 (x_find_ccl_program): Renamed and moved to xfont.c.
15611 (x_redisplay_interface): Adjusted for the change of `struct
15612 redisplay_interface'.
15614 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15615 conditionals. Don't check enable_font_backend. Delete all codes
15616 used only when USE_FONT_BACKEND is not defined. Surround non-used
15617 code by "#ifdef OLD_FONT" and "endif".
15618 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15620 * w32font.h (struct w32font_info): New member.
15621 (FONT_COMPAT): New macro.
15622 (w32font_open_internal): Prototype adjusted.
15624 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15625 OLD_FONT" and "endif".
15627 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15628 conditionals. Don't check enable_font_backend. Delete all codes
15629 used only when USE_FONT_BACKEND is not defined.
15630 (w32font_open): Return a font-object. Make a font-object by
15631 font_make_object. Adjusted for the change of struct w32font_info.
15632 (w32font_close): Don't free struct font. Adjusted for the change
15633 of struct w32font_info.
15634 (w32font_encode_char, w32font_text_extents, w32font_draw):
15635 Adjusted for the change of struct w32font_info.
15636 (w32font_draw): Likewise.
15637 (w32font_list_internal): Return a list, not vector.
15638 (w32font_open_internal): Change the 4th arg to font-object.
15639 Adjusted for the change of struct w32font_info and font-object format.
15640 (add_font_name_to_list): Don't downcase names.
15641 (w32_enumfont_pattern_entity): Make a font-entity by
15642 font_make_entity. Adjusted for the format change of font-entity.
15643 Use FONT_SET_STYLE to set a style-related font property. If a
15644 font is scalable, set avgwidth property to 0. Set font-entity
15645 property by font_put_extra.
15646 (font_matches_spec): Adjusted for the format change of font-entity.
15647 (w32_weight_table, w32_decode_weight): New variables.
15648 (w32_encode_weight): New function.
15649 (fill_in_logfont): Adjusted for the format change of font-spec.
15650 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15652 (w32font_driver): Adjusted for the change of struct font_driver.
15654 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15655 conditionals. Don't check enable_font_backend. Surround non-used
15656 code by "#ifdef OLD_FONT" and "endif".
15657 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15658 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15660 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15661 conditionals. Don't check enable_font_backend. Delete all codes
15662 used only when USE_FONT_BACKEND is not defined. Surround non-used
15663 code by "#ifdef OLD_FONT" and "endif".
15665 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15666 (uniscribe_open): Return value changed to font-object.
15667 Adjusted for the format change of font-object.
15668 (uniscribe_otf_capability): Adjusted for the change of struct font.
15669 (add_opentype_font_name_to_list): Don't downcase names.
15670 (uniscribe_font_driver): Adjusted for the change of struct
15673 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
15675 * dispnew.c (update_frame_1): Check if tty output is still valid
15676 before flushing it.
15678 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15680 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15683 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15685 * dired.c (file_name_completion): Tweak the code so as to always do it
15686 in a single pass. Tighten the scope of some variables.
15688 * dired.c (Qdefault_directory): New var.
15689 (file_name_completion): Use it instead of Fexpand_file_name.
15690 (syms_of_dired): Initialize it.
15692 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15694 * fileio.c (double_dollars): Remove dead code.
15696 2008-05-10 Eli Zaretskii <eliz@gnu.org>
15698 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15699 Mention w32-get-true-file-attributes in doc string.
15701 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15703 2008-05-09 Glenn Morris <rgm@gnu.org>
15705 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15708 2008-05-09 Eli Zaretskii <eliz@gnu.org>
15710 Support for reporting owner and group of each file on MS-Windows:
15711 * dired.c (stat_uname, stat_gname): New functions, with special
15712 implementation for w32.
15713 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15715 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15716 (dflt_group_name): New static variable.
15717 (dflt_group): Rename from the_group.
15718 (init_user_info): Init dflt_group fields. Get user's group name
15719 from LookupAccountSid.
15720 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15721 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15722 New initialization states.
15723 (globals_of_w32): Initialize them to zero. Initialize the default
15724 group name to "None".
15725 (GetFileSecurity_Name): New global var, the name of the function
15726 to call for GetFileSecurity.
15727 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15728 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15729 (get_file_security, get_security_descriptor_owner)
15730 (get_security_descriptor_group, is_valid_sid)
15731 (get_file_security_desc, get_rid, get_name_and_id)
15732 (get_file_owner_and_group): New functions.
15733 (stat): Use get_file_security_desc and get_file_owner_and_group to
15734 report the owner and primary group of each file. Don't ignore the
15735 high 32 bits of file's size, now that st_size is 64-bit wide.
15736 Fix test when to get true file attributes.
15737 (init_user_info): Use get_rid instead of equivalent inline code.
15738 (fstat): Don't ignore the high 32 bits of file's size.
15740 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
15742 * image.c (png_load): Use correct bit-depth for setting background
15745 2008-05-08 Eli Zaretskii <eliz@gnu.org>
15747 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15750 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
15752 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15754 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15756 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15757 because the original parameters are in pure storage now.
15758 (mac_window): Remove unused params. Update callers.
15760 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15762 * lread.c (substitute_object_recurse): Use lower-level primitives.
15763 Don't signal errors when traversing sub-char-tables.
15764 Don't loop over all the possible characters when traversing char-tables.
15766 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15767 just like we do in print.c.
15769 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15771 * minibuf.c (Ftry_completion): Remove code left over from when we used
15772 scmp instead of Fcompare_strings.
15774 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
15776 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15778 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15780 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15781 Create bitmap context in native byte order.
15783 * macterm.c (XDrawLine)
15784 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15785 context in native byte order.
15787 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15789 * config.in: Regenerate.
15791 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15792 New definitions for Image I/O support.
15793 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15794 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15795 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15796 (mac_data_provider_release_data, image_load_image_io)
15797 [USE_MAC_IMAGE_IO]: New functions.
15798 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15799 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15800 (init_image_func_pointer) [MAC_OSX]: Remove function.
15801 (image_load_quartz2d) [MAC_OSX]: Check availability of
15802 CGImageCreateWithPNGDataProvider at compile time.
15803 Use lowercase `false' for boolean constant.
15804 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15805 Use image_load_image_io.
15806 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15807 Don't check MyCGImageCreateWithPNGDataProvider.
15808 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15809 Don't call init_image_func_pointer.
15811 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15813 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15814 Make variable non-static.
15815 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15816 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15818 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15819 (RED_FROM_ULONG): Mask off higher bits.
15820 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15822 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15823 Include AvailabilityMacros.h.
15824 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15825 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15827 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15829 * chartab.c (Fset_char_table_range): If range is t, really set all
15830 chars to that value.
15832 2008-05-03 Eli Zaretskii <eliz@gnu.org>
15834 * dired.c (Ffile_attributes): Don't allow the device number become
15837 2008-05-02 Daiki Ueno <ueno@unixuser.org>
15839 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15841 2008-05-02 Juri Linkov <juri@jurta.org>
15843 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15844 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15845 DEFAULT argument as a list of default values in docstrings.
15847 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
15849 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15851 2008-05-01 Martin Rudalics <rudalics@gmx.at>
15853 * dispnew.c (change_frame_size_1): Preserve small windows when
15854 shrinking frames by calling set_window_height|width with third
15857 * window.h (struct window): Replace field too_small_ok by field
15858 resize_proportionally.
15860 * window.c (make_window): Initialize resize_proportionally.
15861 (enlarge_window): Temporarily set resize_proportionally to make
15862 sure that shrink_windows does scale the window proportionally.
15863 (shrink_windows): When window has resize_proportionally set try
15864 to shrink it proportionally by stealing from other windows.
15865 (struct saved_window, Fset_window_configuration)
15866 (compare_window_configurations): Handle resize_proportionally.
15867 (WINDOW_TOTAL_SIZE): New macro.
15868 (window_min_size, shrink_windows, size_window): Use it.
15869 (check_min_window_sizes): Remove. Invalid values of
15870 window-min-height|width are handled by window_min_size_2 now.
15871 (size_window, Fsplit_window, enlarge_window)
15872 (adjust_window_trailing_edge, grow_mini_window): Don't call
15873 check_min_window_sizes.
15874 (window_min_size_2, window_min_size_1, window_min_size):
15875 New argument safe_p for retrieving "safe" minimum sizes.
15876 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15877 (adjust_window_trailing_edge, grow_mini_window):
15878 Adjust arguments of window_min_size... functions.
15879 (shrink_windows): Argument min_size removed. New argument
15880 safe_p allows shrinking windows to their safe minimum sizes.
15881 Calculate minimum size and decide whether a window shall be
15882 deleted for each window individually.
15883 (size_window): When nodelete_p equals 2, tell shrink_windows to
15884 delete windows only if their new minimum size is no more safe.
15885 (shrink_window_lowest_first): Call window_min_size_1 to make
15886 sure to preserve modeline of bottom-most window when resizing
15888 (Fset_window_configuration, Fcurrent_window_configuration)
15889 (compare_window_configurations): Do not handle
15890 window-min-height|width any more.
15891 (syms_of_window): Clarify window-min-height|width doc-strings.
15893 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15895 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15896 some more. Copy some of the code from Ftry_completions.
15897 Remove special case code that dates back to initial revision when the
15898 slash was only added when necessary and that can't trigger nowadays.
15900 2008-04-27 Kenichi Handa <handa@m17n.org>
15902 * font.c (font_prop_validate): Signal `error' instead of `font'.
15904 2008-04-29 Jason Rumney <jasonr@gnu.org>
15906 * w32fns.c (Fw32_battery_status): New defun.
15907 (syms_of_w32fns): Defsubr it.
15909 2008-04-28 Andreas Schwab <schwab@suse.de>
15911 * dired.c (file_name_completion): Fix another mixing of encoded
15914 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
15916 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15918 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
15920 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15922 2008-04-27 Andreas Schwab <schwab@suse.de>
15924 * dired.c (file_name_completion): Fix inappropriate mixing of
15925 encoded and decoded names.
15927 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15929 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15931 2008-04-26 Eli Zaretskii <eliz@gnu.org>
15933 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15934 2008-03-31, it's not needed anymore with `struct stat' definition
15935 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15936 for the same reasons.
15938 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15940 * m/sparc.h: Additional redefinitions for GNU/Linux.
15942 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15944 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15945 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15946 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15947 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15948 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15949 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15950 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15953 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15954 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15955 (mac_ax_number_of_characters): Add externs.
15956 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15957 [USE_MAC_TSM]: Likewise.
15958 (mac_handle_text_input_event) [MAC_OSX]:
15959 Handle kEventTextInputOffsetToPos for no active input area case.
15960 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15961 (mac_handle_document_access_event)
15962 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15963 (install_application_handler) [MAC_OSX]: Register handlers for
15964 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15965 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15966 Register mac_handle_document_access_event.
15968 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15969 Make functions non-static.
15971 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15973 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15974 (read_file_name_completion_ignore_case, insert_default_directory)
15975 (Qdefault_directory): Move to minibuffer.el.
15976 (Fread_file_name): Call the new `read-file-name' instead.
15978 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15980 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15981 Make function non-static.
15982 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15984 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15985 Move to mactoolbox.c.
15986 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15988 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15989 (mac_rect_make): New macro.
15991 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15993 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15994 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15995 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15996 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15998 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15999 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16000 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16001 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16002 instead of WindowRef in argument type.
16003 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16004 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16005 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16006 instead of DISPLAY. All uses changed.
16007 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16008 (x_calc_absolute_position): Simplify so as not to use
16009 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16011 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16012 instead of WindowRef in argument type.
16013 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16014 [TARGET_API_MAC_CARBON]: Remove externs.
16015 (create_apple_event, mac_event_parameters_to_lisp)
16016 [TARGET_API_MAC_CARBON]: Add externs.
16018 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16019 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16020 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16022 (x_activate_menubar): Remove extern for saved_menu_event_location.
16023 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16026 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16028 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16029 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16031 2008-04-23 Jason Rumney <jasonr@gnu.org>
16033 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16034 attributes only for local files.
16036 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16039 2008-04-22 Juri Linkov <juri@jurta.org>
16041 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16042 read-buffer-to-switch instead of using the letter "B".
16044 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16046 * fileio.c (Qdefault_directory): New variable.
16047 (Fread_file_name): Use it to pass `dir' to the completion functions.
16049 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
16051 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16053 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16055 * keyboard.c (Vpre_help_message): Remove.
16056 (show_help_echo): Remove default C code.
16058 * dired.c (directory_files_internal, file_name_completion):
16059 Only call ENCODE_FILE if the string is indeed decoded.
16061 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16063 * Makefile.in (TOOLKIT_DEFINES): Remove.
16064 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16066 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16068 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16069 (mactoolbox.o): New target.
16071 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16072 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16074 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16075 Use mac_set_frame_window_background instead of XSetWindowBackground.
16076 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16077 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16078 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16079 instead of SetWindowTitleWithCFString.
16080 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16081 Move function to mactoolbox.c.
16082 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16083 Use mac_set_window_modified instead of SetWindowModified.
16084 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16085 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16086 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16087 FrontNonFloatingWindow. Use mac_activate_window instead of
16088 ActivateWindow. Use mac_active_non_floating_window instead of
16089 ActiveNonFloatingWindow.
16090 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16091 Use mac_show_hourglass and mac_hide_hourglass.
16092 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16093 instead of GetGlobalMouse.
16094 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16095 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16096 Use mac_bring_window_to_front instead of BringToFront.
16097 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16099 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16100 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16101 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16104 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16105 (XtPointer): Move typedef from macmenu.c.
16106 (enum button_type): Move enum from macmenu.c.
16107 (widget_value): Move typedef from macmenu.c.
16108 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16109 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16110 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16111 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16112 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16113 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16114 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16115 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16116 (Selection): Move typedef from macselect.c.
16117 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16119 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16120 (mac_is_window_collapsed, mac_bring_window_to_front)
16121 (mac_send_window_behind, mac_hide_window, mac_show_window)
16122 (mac_collapse_window, mac_front_non_floating_window)
16123 (mac_active_non_floating_window, mac_activate_window)
16124 (mac_move_window_structure, mac_move_window, mac_size_window)
16125 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16127 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16128 (enum mac_menu_kind): Move enum to mactoolbox.c.
16129 (min_menu_id): Move variable to mactoolbox.c.
16130 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16131 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16132 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16133 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16134 [TARGET_API_MAC_CARBON]: Likewise.
16135 (XtPointer): Move typedef to macgui.h.
16136 (enum button_type): Move enum to macgui.h.
16137 (widget_value): Move typedef to macgui.h.
16138 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16139 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16140 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16141 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16142 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16143 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16144 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16145 (popup_activated_flag): Make variable non-static.
16146 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16147 (add_menu_item, fill_menu, dispose_menus):
16148 Move functions to mactoolbox.c.
16149 (restore_show_help_function, menu_target_item_handler)
16150 (install_menu_target_item_handler, mac_handle_dialog_event)
16151 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16152 [TARGET_API_MAC_CARBON]: Likewise.
16153 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16154 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16155 (find_and_call_menu_selection, name_is_separator): Make function
16157 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16159 (set_frame_menubar): Don't call install_menu_quit_handler.
16160 (menu_item_selection): New variable.
16161 (mac_menu_show): Use create_and_show_popup_menu.
16162 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16163 selection but set variable menu_item_selection. All uses changed.
16164 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16165 Call install_menu_quit_handler. Move to mactoolbox.c.
16167 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16168 (Selection): Move typedef to macgui.h.
16169 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16170 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16171 Make variables non-static.
16172 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16173 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16174 Make functions non-static.
16175 (Vmac_service_selection) [MAC_OSX]: Likewise.
16176 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16177 (mac_valid_selection_target_p, mac_clear_selection)
16178 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16179 (mac_put_selection_value, mac_selection_has_target_p)
16180 (mac_get_selection_value, mac_get_selection_target_list)
16181 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16182 Move functions to mactoolbox.c.
16183 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16185 (copy_scrap_flavor_data, mac_handle_service_event)
16186 (install_service_handler) [MAC_OSX]: Likewise.
16187 (syms_of_macselect) <Vmac_dnd_known_types>:
16188 Use mac_dnd_default_known_types.
16190 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16191 Move to mactoolbox.c.
16192 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16193 (Fx_selection_owner_p): Add EXFUN.
16194 (install_window_handler, remove_window_handler, XSetWindowBackground):
16196 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16197 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16198 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16199 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16200 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16201 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16202 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16203 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16204 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16205 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16206 (mac_valid_selection_target_p, mac_clear_selection)
16207 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16208 (mac_put_selection_value, mac_selection_has_target_p)
16209 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16210 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16211 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16212 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16213 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16214 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16215 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16216 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16217 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16219 * mactoolbox.c: New file.
16221 2008-04-18 Jason Rumney <jasonr@gnu.org>
16223 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16225 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16227 * character.c (Fmultibyte_char_to_unibyte):
16228 Return latin1 chars unchanged.
16230 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16231 relocated if it points to `name'.
16233 2008-04-17 Kenichi Handa <handa@m17n.org>
16235 * data.c (Faset): Allow setting a multibyte character in an
16236 ASCII-only unibyte string.
16238 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16240 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16242 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16245 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
16247 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16248 (Fchar_direction): Add usage in the docstring.
16250 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
16252 * keyboard.c (read_key_sequence): Remove always-true checks.
16254 2008-04-14 Jason Rumney <jasonr@gnu.org>
16256 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16257 compatibility struct, for better underline positioning.
16259 2008-04-13 David Hansen <david.hansen@gmx.net>
16261 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16264 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16266 * m/hp800.h (XUINT, XSET): Remove.
16268 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
16270 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16273 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16275 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16276 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16278 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16280 * keymap.h (map_keymap_canonical): Declare.
16281 * xmenu.c (single_keymap_panes): Use it.
16283 2008-04-11 Glenn Morris <rgm@gnu.org>
16285 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16286 set the target's value to that of the alias.
16288 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16290 * term.c (set_tty_color_mode): Left over typo.
16292 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
16294 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16295 only after check for file name handler functions. Signal, when
16296 native functionality is not supported.
16297 (syms_of_fileio): Declare it unconditionally.
16299 2008-04-10 Jason Rumney <jasonr@gnu.org>
16301 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16302 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16304 * w32.c (logon_network_drive): Also logon to remote drives that
16305 are mapped to drive letters.
16307 2008-04-10 Glenn Morris <rgm@gnu.org>
16309 * xdisp.c (truncate-partial-width-windows): Doc fix.
16311 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16313 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16314 Move functions to minibuffer.el.
16315 (syms_of_fileio): Don't declare them.
16317 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16319 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16320 (syms_of_minibuf): Remove its initialization.
16322 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16324 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
16326 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16328 2008-04-09 Jason Rumney <jasonr@gnu.org>
16330 * makefile.w32-in (distclean): Delete makefile too.
16331 (maintainer-clean): New target.
16333 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16335 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16336 for new font backend and composite cases.
16338 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16340 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16341 Most of the code moved to run_timers.
16342 (do_pending_atimers): Call run_timers.
16343 (run_timers): New function.
16345 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16348 * process.c (wait_reading_process_output): The same as above.
16350 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16352 * minibuf.c (last_exact_completion): Remove variable.
16353 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16354 (complete_and_exit_1, complete_and_exit_2)
16355 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16356 (Fdisplay_completion_list, display_completion_list_1)
16357 (Fminibuffer_completion_help, Fself_insert_and_exit)
16358 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16360 (syms_of_minibuf): Remove corresponding initializations.
16362 * keyboard.c (Qdeactivate_mark): New var.
16363 (command_loop_1): Use it to call `deactivate-mark'.
16364 (syms_of_keyboard): Initialize it.
16366 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16368 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16369 Don't call set_tty_color_mode.
16370 (store_frame_param): Reset previous_frame rather than call
16371 set_tty_color_mode.
16372 * term.c (set_tty_color_mode): Rewrite.
16373 * dispextern.h (set_tty_color_mode): New type.
16374 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16376 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16378 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16379 for generic chars, which do not exist any more in emacs-unicode.
16381 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
16383 * coding.c (detect_coding_emacs_mule)
16384 (Ffind_operation_coding_system): Fix typo.
16386 2008-04-08 Jason Rumney <jasonr@gnu.org>
16388 * w32uniscribe.c (SNAME): Extract only symbol name.
16390 * w32font.h (struct w32_metric_cache): New struct.
16391 (w32font_info): Use it.
16392 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16393 (CACHE_BLOCKSIZE): New constants.
16395 * w32font.c (Qja, Qko, Qzh): New symbols.
16396 (syms_of_w32font): Initialise them.
16397 (font_matches_spec): Use them to filter by language.
16398 (recompute_cached_metrics): Remove function.
16399 (compute_metrics, clear_cached_metrics): New functions.
16400 (w32font_encode_char): Use them to manage metric cache.
16401 (w32font_text_extents): Cache metrics for all glyphs on demand.
16402 Delay converting glyph indices to WORD until needed.
16403 (w32font_open_internal): Initialize metric cache to empty.
16404 (registry_to_w32_charset): Charset should always be a symbol.
16405 (fill_in_logfont, list_all_matching_fonts): Family should
16406 always be a symbol.
16408 2008-04-06 Jason Rumney <jasonr@gnu.org>
16410 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16411 Give up if glyph indices not supported. Use uniscribe obtained
16412 ABC widths for individual metrics. Map glyph clusters back to
16413 characters using fClusterStart flag. Return number of glyphs
16414 produced, not chars processed.
16415 (uniscribe_shape): Map char at FROM to current glyph.
16417 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16419 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16420 Use SetMenuItemHierarchicalMenu.
16422 2008-04-05 Jason Rumney <jasonr@gnu.org>
16424 * image.c (pbm_load): Allow color values up to 65535.
16425 Throw an error if max_color_idx is outside the supported range.
16426 Report an error when image size is invalid.
16427 Read two bytes at a time when raw images have max_color_idx above 255.
16429 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16431 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16432 append "CCL: Quitted" when the CCL program is quitted.
16433 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16435 * ccl.h (struct ccl_program): New member quit_silently.
16437 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16439 * search.c (compile_pattern_1): Treat non-nil and non-string of
16440 search-spaces-regexp as nil.
16442 * minibuf.c (Fassoc_string): Tweak docstring.
16444 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16446 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16447 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16448 2008-03-14 to force inode be positive.
16450 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16451 _S_* ones, since we now use our own sys/stat.h.
16452 (stat, fstat): Don't mangle the inode number.
16453 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16455 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16457 * frame.h (struct frame): Give one more bit to `visible' since we use
16458 values larger than 1 to indicate obscured frames on ttys.
16460 * keymap.c (Qkeymap_canonicalize): New var.
16461 (Fmap_keymap_internal): New fun.
16462 (describe_map): Use keymap-canonicalize.
16464 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16465 (Fundo_boundary): Set them.
16466 (syms_of_undo): Initialize them.
16467 (record_point): Use them instead of last_point_position*.
16468 (last_undo_buffer): Change type.
16470 2008-04-04 Jason Rumney <jasonr@gnu.org>
16472 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16473 (recompute_cached_metrics): Don't set ascent and descent per char.
16475 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16476 (uniscribe_check_otf): Add GC protection before consing.
16477 Rearrange loop for counting features.
16479 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16481 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16482 buffer with byte-size of source buffer.
16484 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16486 * callint.c (Fcall_interactively): Handle temporary region even
16487 when shift-select-mode is off.
16489 2008-04-03 Jason Rumney <jasonr@gnu.org>
16491 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16493 2008-04-03 Kenichi Handa <handa@m17n.org>
16495 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16496 (CATEGORY_MASK_UTF_16): Likewise.
16497 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16499 (detect_coding): Add null-byte detection for a binary file.
16500 (detect_coding_system): Likewise.
16502 2008-04-03 Jason Rumney <jasonr@gnu.org>
16504 * w32uniscribe.c: New file.
16506 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16508 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16510 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16511 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16512 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16513 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16514 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16515 (Qphonetic): New symbols.
16516 (syms_of_w32font): Initialize them.
16517 (font_supported_scripts): Use them.
16518 (w32font_list_family): List all charsets.
16519 (w32font_text_extents, recompute_cached_metrics): Fix metric
16521 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16522 Give opentype fonts their own format.
16523 (font_matches_spec): New arguments backend and logfont.
16524 Handle :otf spec for uniscribe backend.
16525 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16526 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16528 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16530 (globals_of_w32fns): Initialize uniscribe font backend.
16532 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16534 (w32uniscribe.$(O)): New file to build.
16535 (FONT_OBJ): Include w32uniscribe.$(O).
16536 (LIBS): Add uniscribe libraries.
16538 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16540 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16542 * callint.c (Vshift_select_mode): New var.
16543 (Finteractive): Document new ^ spec.
16544 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16547 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16548 (command_loop_1): Avoid running the direct display versions of
16549 forward-char and backward-char if shift-selection may occur.
16550 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16551 shift-translation takes place.
16553 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16554 avoid clobbering by define-minor-mode.
16556 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16557 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16559 * syntax.c (Fforward_word): Add ^ interactive spec.
16561 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16562 (Fscroll_right): Add ^ interactive spec.
16564 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16566 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16568 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16570 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16572 2008-03-31 Juri Linkov <juri@jurta.org>
16574 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16576 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16578 * gtkutil.c (xg_set_geometry): Fix indentation.
16579 (xg_resize_outer_widget): Remove.
16580 (x_wm_size_hint_off): Fix indentation.
16581 (xg_frame_set_char_size): Call flush_and_sync after
16583 (x_wm_set_size_hint): Pass NULL as geometry window to
16584 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16585 Add menu bar and tool bar height to base height.
16586 (xg_update_frame_menubar, free_frame_menubar)
16587 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16588 (update_frame_tool_bar, free_frame_tool_bar):
16589 Change xg_resize_outer_widget to xg_frame_set_char_size.
16591 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
16593 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16594 (Fdbus_call_method): New parameter TIMEOUT.
16595 (dbus-send-signal): Optimize UNGCPRO call.
16597 2008-03-29 Juri Linkov <juri@jurta.org>
16599 * window.c (Fdisplay_buffer): Move call to
16600 Vsplit_window_preferred_function out of conditions that check
16601 if window is eligible for vertical splitting.
16602 When Vsplit_window_preferred_function is non-nil, call it and use
16603 its non-nil return value as window. Otherwise, continue doing
16604 vertical splitting using Fsplit_window with arg horflag=nil.
16605 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16606 default value from `split-window' to nil.
16608 2008-03-29 Juri Linkov <juri@jurta.org>
16610 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16611 for interactive code letters 'b' and 'B'.
16613 2008-03-29 Eli Zaretskii <eliz@gnu.org>
16615 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16618 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16620 * keyboard.c (pending_funcalls): New var.
16621 (timer_check): Run it.
16622 (syms_of_keyboard): Initialize it.
16623 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16624 (Vdelete_terminal_functions): New vars.
16625 (syms_of_terminal): Initialize them.
16626 (Fdelete_terminal): Run delete-terminal-functions.
16627 * xdisp.c (safe_eval): Rewrite.
16628 (safe_call2): New fun.
16629 * frame.c (Qdelete_frame_functions): New var.
16630 (syms_of_frame): Initialize it.
16631 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16632 * lisp.h (safe_call2, pending_funcalls): Declare.
16634 2008-03-28 Andreas Schwab <schwab@suse.de>
16636 * indent.c (Fmove_to_column): Move declaration before statements.
16638 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16640 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16641 (struct frame): Use bit fields for boolean vars.
16643 * process.c (server_accept_connection): Simplify naming.
16644 (emacs_get_tty_pgrp): Use SDATA.
16646 * coding.c (decode_coding_object): Fix last change.
16648 2008-03-27 Jason Rumney <jasonr@gnu.org>
16650 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16652 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16654 * charset.c (Fdefine_charset_internal): Change the way of
16655 registering charsets in Vcharset_order_list.
16656 (syms_of_charset): Make the charset `eight-bit' supplementary.
16658 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16660 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16661 operations, to avoid having the difference between pointers
16664 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16666 * indent.c (check_display_width): New fun.
16667 (scan_for_column): Use it.
16669 * data.c (syms_of_data): Mark most-positive-fixnum and
16670 most-negative-fixnum as constants.
16672 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16674 * indent.c (scan_for_column): Extract from current_column_1.
16675 Merge with the same code from Fmove_to_column.
16676 (current_column_1, Fmove_to_column): Use it.
16678 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16680 * keymap.c (map_keymap_internal): New fun.
16681 (map_keymap): Use it.
16682 (Fmap_keymap_internal): New fun.
16683 (Fmap_keymap): Remove left-out test from before make_save_value.
16685 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16687 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16690 * process.h (struct Lisp_Process): Remove filter_multibyte.
16691 * process.c (QCfilter_multibyte): Remove.
16692 (setup_process_coding_systems): Don't use filter_multibyte.
16693 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16694 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16695 (Fset_process_filter_multibyte): Change the coding-system to
16696 approximate the previous behavior.
16697 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16700 * coding.c (decode_coding_object): When not decoding into a buffer,
16701 obey the coding system's preference of (uni|multi)byte.
16703 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16705 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16706 every char is changed and has a different byte-length.
16707 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16708 Fix int -> EMACS_INT.
16710 2008-03-23 David Hansen <david.hansen@gmx.net>
16712 * dbusbind.c (xd_read_message): Remove extra copying of message
16713 strings. Check for NULL `interface' or `member'.
16715 2008-03-22 Eli Zaretskii <eliz@gnu.org>
16717 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16718 cFileName a file name that includes `?' characters, use the 8+3
16719 alias in cAlternateFileName instead.
16721 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16723 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16725 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16727 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16728 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16729 work on current_buffer only instead (that was already the case
16730 for some of the code anyway).
16731 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16732 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16733 (SET_PT, SET_PT_BOTH): Adjust.
16734 * intervals.h (set_point, temp_set_point, set_point_both)
16735 (temp_set_point_both): Remove redundant declarations.
16737 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16739 * fileio.c (Finsert_file_contents):
16740 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16741 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16742 when buffer != current_buffer anyway.
16744 2008-03-20 Andreas Schwab <schwab@suse.de>
16746 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16749 2008-03-19 Jason Rumney <jasonr@gnu.org>
16751 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16752 (syms_of_w32fns): Initialize them.
16753 (HOURGLASS_ID): New constant.
16754 (x_window_to_frame): Don't check hourglass_window.
16755 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16756 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16757 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16758 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16759 Only change the cursor if hourglass is not active.
16760 (Fx_create_frame): Initialize frame's current_cursor.
16761 (hourglass_atimer): Remove.
16762 (hourglass_started): New function.
16763 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16764 (show_hourglass): Adapt to w32, changing argument to frame.
16766 * w32term.h (struct w32_output): Remove hourglass_window.
16767 Add current_cursor.
16769 * eval.c (call_debugger, Fsignal):
16770 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16771 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16772 (Fexecute_extended_command, cancel_hourglass_unwind):
16773 * minibuf.c (read_minibuf):
16774 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16776 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16778 * window.c (run_funs): New fun.
16779 (run_window_configuration_change_hook): Use it to run the buffer-local
16780 and the global part of the hook.
16782 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16783 (unwind_format_mode_line): Restore selected window.
16784 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16786 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16788 * editfns.c (Fchar_equal): Check they are valid characters.
16790 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16792 2008-03-17 Andreas Schwab <schwab@suse.de>
16794 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16797 * lisp.h (Fbuffer_list): Declare.
16799 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
16801 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16802 handlebox_widget is != 0.
16804 2008-03-16 Juri Linkov <juri@jurta.org>
16806 * callint.c (Fcall_interactively): For interactive code letters
16807 'b' and 'B' put the buffer list into the list of default "future"
16808 values of the minibuffer.
16810 2008-03-16 Andreas Schwab <schwab@suse.de>
16812 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16815 * regex.c (re_match_2_internal): Correct matching of a charset
16816 against latin-1 characters.
16818 2008-03-16 Kenichi Handa <handa@m17n.org>
16820 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16821 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16822 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16823 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16824 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16825 CHAR_STRING_ADVANCE.
16826 (produce_chars): Fix for the case that the source and the
16827 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16828 instead of CHAR_STRING_ADVANCE.
16829 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16830 STRING_CHAR_ADVANCE.
16832 2008-03-15 Andreas Schwab <schwab@suse.de>
16834 * regex.c (re_match_2_internal): Correct matching of eight bit
16835 characters in unibyte strings.
16837 2008-03-15 Martin Rudalics <rudalics@gmx.at>
16839 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16840 at end of range when it coincides with the end of the buffer.
16842 2008-03-14 Eli Zaretskii <eliz@gnu.org>
16844 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16846 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16848 2008-03-14 Jason Rumney <jasonr@gnu.org>
16850 * editfns.c (initial_tz): New variable.
16851 (syms_of_editfns): Initialize it.
16852 (Fset_time_zone_rule): Set it when first called.
16853 Use it when TZSTRING is nil.
16855 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16856 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16857 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16858 (globals_of_w32fns): Initialize them.
16859 (compute_tip_xy): Use them to position tooltips.
16861 2008-03-14 Glenn Morris <rgm@gnu.org>
16863 * emacs.c (main): Revert previous change.
16864 (standard_args): Revert -internal-script back to -scriptload,
16865 and remove the long-option form.
16867 2008-03-13 Glenn Morris <rgm@gnu.org>
16869 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16870 Remove option -enable-font-backend.
16872 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16874 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16876 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16878 * xterm.c (x_connection_closed): For GTK: If this is the last
16879 terminal just exit without closing the display.
16881 2008-03-11 Jason Rumney <jasonr@gnu.org>
16883 * w32font.c (w32font_full_name): Use floor to round.
16885 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16887 * sound.c (alsa_configure): Declare vol at beginning of block.
16889 * fontset.c (Ffontset_info): Remove extra semicolon.
16891 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16893 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16894 size of resulting string.
16896 2008-03-10 Jason Rumney <jasonr@gnu.org>
16898 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16900 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16902 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16903 Don't pretend as if characters with display property haven't been
16904 consumed for string-replacing-string case.
16906 2008-03-08 Kim F. Storm <storm@cua.dk>
16908 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16909 (get_next_display_element, next_element_from_string)
16910 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16912 2008-03-08 Andreas Schwab <schwab@suse.de>
16914 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16916 2008-03-06 Jason Rumney <jasonr@gnu.org>
16918 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16919 when charset not specified. Only translate ANSI to unicode when
16920 font_type is truetype.
16921 (w32font_coverage_ok): New function.
16922 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16924 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16926 * lread.c (Fread_char): Resolve modifiers.
16927 (Fread_char_exclusive): Likewise.
16929 * character.c (char_resolve_modifier_mask): New function.
16930 (char_string): Use char_resolve_modifier_mask.
16931 (Fchar_resolve_modifiers): New function.
16932 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16935 2008-03-04 Jason Rumney <jasonr@gnu.org>
16937 * makefile.w32-in: Always include w32font.c in the build.
16938 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16940 2008-03-04 Andreas Schwab <schwab@suse.de>
16942 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16943 (versionclean): Likewise.
16945 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
16947 * .cvsignore: Add oo.
16949 2008-03-03 Andreas Schwab <schwab@suse.de>
16951 * coding.c (decode_coding_object): Inhibit gap shrinking while
16954 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16956 * w32term.c: Remove unused include "gnu.h".
16957 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16959 * gnu.h: Rename to ...
16960 * emacs-icon.h: ... this.
16961 * xterm.c: Use emacs-icon.h instead of gnu.h.
16962 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16964 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
16966 * w32font.c: Include math.h.
16968 2008-03-03 Jason Rumney <jasonr@gnu.org>
16970 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16971 Compute options separately.
16972 (w32font_open_internal): Set glyph_idx before caching metrics.
16974 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16975 Define if system headers don't.
16976 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16977 (w32font_encode_char): Don't declare here.
16979 * w32font.c (Quniscribe, QCformat): New symbols.
16980 (syms_of_w32font): Define them.
16981 (w32font_has_char): Indicate uncertainty.
16982 (w32font_encode_char): Encode as glyph point. Make static.
16983 (recompute_cached_metrics): New function.
16984 (w32font_open_internal): Use it. Set font to use glyph points
16985 initially. Set format based on type of font.
16986 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16987 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16988 on it. Set format based on information available here.
16989 (add_font_entity_to_list): Identify backend based on opentype_only.
16991 2008-03-02 Andreas Schwab <schwab@suse.de>
16993 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16995 * coding.c (decode_coding_big5, produce_chars):
16996 Fix typos in last change.
16998 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17002 2008-03-02 Kenichi Handa <handa@m17n.org>
17004 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17005 `dos', don't decode '\r' if that is the last in the source.
17006 (decode_coding_utf_16, decode_coding_emacs_mule)
17007 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17008 (decode_coding_raw_text, decode_coding_charset): Likewise.
17009 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17011 2008-03-01 Jason Rumney <jasonr@gnu.org>
17013 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17015 2008-03-01 Kim F. Storm <storm@cua.dk>
17017 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17019 2008-03-01 Jason Rumney <jasonr@gnu.org>
17021 * w32font.c (w32font_full_name): New function.
17022 (w32font_open_internal): Use it.
17024 2008-03-01 Kim F. Storm <storm@cua.dk>
17026 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17028 2008-03-01 Jason Rumney <jasonr@gnu.org>
17030 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17032 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17034 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17035 xg_frame_resized when the event is for the edit widget.
17037 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17039 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17041 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17042 operations on widgets here. Just set frame size if needed.
17043 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17044 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17045 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17047 (xg_create_tool_bar): Move attachment of the tool bar to
17048 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17049 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17051 2008-03-01 Jason Rumney <jasonr@gnu.org>
17053 * w32fns.c (w32_msg_pump): Disable debug code.
17055 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17057 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17059 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17061 * xdisp.c (next_overlay_string): Don't set
17062 overlay_strings_at_end_processed_p if we're currently reading from
17065 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17067 * xdisp.c (get_overlay_strings_1): Fix typo.
17069 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17071 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17073 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17075 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17077 * xdisp.c (display_mode_element): Cancel the previous change.
17078 (decode_mode_spec): Likewise.
17079 (handle_auto_composed_prop): Don't make composition if it->string
17082 2008-02-27 Kim F. Storm <storm@cua.dk>
17084 * lisp.h (GLYPH): Change type from int to struct with separate char
17085 and face_id members.
17086 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17087 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17088 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17089 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17090 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17091 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17092 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17093 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17094 handle new Lisp glyph code encoding, either an integer or a cons.
17096 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17097 (GLYPH_ALIAS): Delete.
17098 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17099 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17100 (GLYPH_FROM_CHAR): Replace macro by ...
17101 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17103 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17104 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17105 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17106 (GLYPH_INVALID_P): New macro.
17107 (spec_glyph_lookup_face): Update prototype.
17109 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17110 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17111 new glyph code encoding.
17112 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17113 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17115 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17116 Adapt to new glyph type and new glyph code encoding.
17118 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17120 * indent.c (current_column, current_column_1, Fmove_to_column)
17121 (compute_motion): Adapt to new glyph code encoding.
17123 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17125 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
17127 * process.c (wait_reading_process_output): Check for window
17128 changes caused by timers.
17129 Suggested by Johan Bockgård.
17131 2008-02-27 Glenn Morris <rgm@gnu.org>
17133 * emacs.c (USAGE1): Add `--disable-font-backend'.
17135 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17137 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17138 is made to the buffer.
17140 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17142 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17143 (face_at_string_position):
17144 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17145 (face_at_string_position):
17146 * xdisp.c (display_string, next_overlay_change):
17147 * buffer.h (overlays_at):
17148 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17151 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
17153 * editfns.c (Fformat): Doc fix.
17155 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
17157 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17158 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17159 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17161 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17163 * buffer.c (Fbuffer_swap_text): New function.
17164 (syms_of_buffer): Defsubr it.
17166 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
17168 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17170 2008-02-25 Jason Rumney <jasonr@gnu.org>
17172 * w32font.c (w32font_draw): Draw one character at a time when padding.
17174 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17176 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17177 Handle a nil arg. Use run_window_configuration_change_hook.
17178 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17179 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17180 Use run_window_configuration_change_hook.
17182 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17184 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17187 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17189 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17190 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17191 if the glyph in the font is zero pixel with.
17193 * dispextern.h (struct glyph_string): New member padding_p.
17195 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17197 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17199 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17201 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17203 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17205 2008-02-25 Jason Rumney <jasonr@gnu.org>
17207 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17209 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17211 Allow fine-grained image-cache flushing.
17212 * dispextern.h (struct image): Add `dependencies' field.
17213 (clear_image_caches): Change arg to Lisp_Object.
17214 * image.c (make_image): Initialize `dependencies' field.
17215 (clear_image_cache): Change arg to allow fine-grained flushing.
17216 Perform the flush even if image-cache-eviction-delay is nil.
17217 (clear_image_caches): Change arg to Lisp_Object.
17218 (Fclear_image_cache): Expand meaning of the argument.
17219 (mark_image): Mark `dependencies' field.
17220 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17221 (lface_hash): Use XHASH rather than XFASTINT.
17222 (face_at_buffer_position): Fix int -> EMACS_INT position.
17223 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17224 (select_frame_for_redisplay): Remove code duplication.
17225 (redisplay_internal): Adapt arg to call to clear_image_caches.
17227 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17232 * s/vms5-5.h: Remove, unused.
17238 * m/mips4.h: Remove files for obsolete systems.
17251 * s/usg5-3.h: Remove references to obsolete variables.
17253 * s/irix5-0.h: Remove, move all the contents ...
17254 * s/irix6-5.h: ... here. Simplify.
17255 * config.in: Regenerate.
17257 2008-02-24 Jason Rumney <jasonr@gnu.org>
17259 * w32term.c (x_draw_glyph_string_background): Clear the background
17260 manually when cleartype is in use.
17261 (x_draw_glyph_string_foreground): Draw text transparently when
17262 cleartype is in use.
17264 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17265 a font into it unless we have to.
17267 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17269 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17270 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
17272 2008-02-18 Jason Rumney <jasonr@gnu.org>
17274 * w32fns.c (Fw32_shell_execute): Encode parameters.
17276 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17278 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17280 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
17282 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17284 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17286 * xterm.c (x_set_offset): Don't change the gravity if
17287 CHANGE_GRAVITY is -1.
17289 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
17291 * fileio.c (auto_save_error_occurred): New var.
17292 (auto_save_error): Set it.
17293 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17296 2008-02-23 Eli Zaretskii <eliz@gnu.org>
17298 * w32.c (globals_of_w32): Add initializations for
17299 g_b_init_get_sid_sub_authority and
17300 g_b_init_get_sid_sub_authority_count.
17302 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17304 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17305 (font_parse_xlfd): Use them for sanity check.
17306 (Finternal_set_font_style_table): Make sure the table is bijective.
17308 Consolidate the image_cache to the terminal struct.
17309 * termhooks.h (P_): Remove redundant def.
17310 (struct terminal): New field `image_cache'.
17311 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17312 of FRAME_X_IMAGE_CACHE.
17313 * xterm.h (struct x_display_info): Remove image_cache field.
17314 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17315 * w32term.h (struct w32_display_info): Remove image_cache field.
17316 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17317 * macterm.h (struct mac_display_info): Remove image_cache field.
17318 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17319 * xterm.c (x_term_init):
17320 * w32term.c (w32_term_init):
17321 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17322 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17323 Remove declarations.
17324 (clear_image_caches, mark_image_cache): New declarations.
17325 * xfaces.c (clear_face_cache):
17326 * xdisp.c (redisplay_internal): Use clear_image_caches.
17327 * image.c (clear_image_cache): Don't check that a frame is on
17328 a window-system before checking if it shares the same cache.
17329 (clear_image_caches): New function.
17330 (Fclear_image_cache): Use it.
17331 (mark_image): Move from allo.c.
17332 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17333 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17334 (mark_object): Don't call mark_image_cache for frames.
17335 (mark_terminals): Call mark_image_cache.
17337 * lisp.h (Fdelete_terminal): Declare.
17339 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17340 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17341 wrong_type_argument.
17343 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17345 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17346 malayalam.el, and tamil.el. Add sinhala.el.
17348 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17350 * xterm.c (x_connection_closed): Consolidate identical tests.
17351 (x_delete_terminal): Don't crash if called via x_connection_closed.
17353 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17355 * xdisp.c (decode_mode_spec): New arg string.
17356 (display_mode_element): Adjust for the above change.
17358 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17360 * callint.c (Fcall_interactively): Use AREF.
17362 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17364 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17366 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17368 * xfns.c (Fx_show_tip): Set string to " " if empty.
17370 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17372 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17375 2008-02-17 Kenichi Handa <handa@m17n.org>
17377 * ftfont.c (ftfont_shape): Return Lispy number.
17379 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17381 (Finternal_set_font_selection_order): Call font_update_sort_order
17382 only when enable_font_backend is set.
17383 (realize_x_face): Set face->font_info to that of default face only
17384 when enable_font_backend is set.
17386 * xdisp.c (handle_composition_prop): Set it->c to the fist
17387 character of the composed region.
17388 (fill_composite_glyph_string): Set base_face->font_info to
17389 s->font_info. Get a face for ascii from base_face->ascii_face.
17390 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17391 with a face already decided.
17392 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17394 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17395 call font_prepare_composition unconditionally.
17397 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17399 * xterm.h (struct x_display_info): New member font.
17401 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17402 (x_set_mouse_face_gc, x_new_font): Likewise.
17403 (x_term_init): Setup display_info->font.
17404 (x_delete_terminal): Free display_info->font.
17406 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17408 * ftxfont.c (ftxfont_default_fid): Delete it.
17409 (ftxfont_open): Set xfont->fid to 0.
17410 (ftxfont_end_for_frame): Clear data specific to the frame and the
17413 * xftfont.c (xftfont_default_fid): Delete it.
17414 (xftfont_open): Set xfont->fid to 0.
17416 * fontset.c (FONTSET_OBJLIST): New macro.
17417 (fontset_find_font): Update font-object list of the fontset.
17418 (free_realized_fontset): New function.
17419 (free_face_fontset): Call free_realized_fontset.
17420 (Ffont_info): Call font_close_object only when enable_font_backend
17423 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17424 [HAVE_NTGUI]: Include w32term.h.
17425 [MAC_OS]: Include macterm.ch.
17426 (font_otf_ValueRecord): Use make_number.
17427 (font_finish_cache): Fix handling of reference count.
17428 (font_clear_cache): Update num_fonts.
17429 (font_open_entity): Update smallest_char_width and
17430 smallest_font_height of the frame.
17431 (font_close_object): Update num_fonts.
17432 (Fclear_font_cache): Fix finding the target cache data.
17434 2008-02-16 Glenn Morris <rgm@gnu.org>
17436 * fontset.c (Finternal_char_font): Fix compilation warning.
17438 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17440 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17441 instead of char arrays. Enlarge the size of array passed to
17442 get_token_information.
17444 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17447 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17449 * .gdbinit: Don't set `args', it breaks gdb --args.
17451 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17453 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17454 within a narrowed buffer.
17456 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17458 * coding.c (decode_coding_object, encode_coding_object):
17459 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17461 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17463 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17465 (detect_coding_system):
17466 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17467 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17468 * insdel.c (insert_from_gap):
17469 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17470 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17471 (string_to_multibyte):
17472 * character.c (chars_in_text, multibyte_chars_in_text):
17473 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17475 * character.h (FETCH_STRING_CHAR_ADVANCE)
17476 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17477 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17478 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17480 * casefiddle.c (casify_region): Only call after-change and composition
17481 functions on the part of the region that was changed.
17483 * keyboard.c (read_avail_input):
17484 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17486 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17488 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17489 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17491 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17493 * w32menu.c (push_submenu_start, push_submenu_end)
17494 (push_left_right_boundary, push_menu_pane, push_menu_item):
17495 * keyboard.c (read_key_sequence): Don't pass args with side effects
17496 to AREF, it fails when compiling with -DENABLE_CHECKING.
17498 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17500 * Makefile.in (${lispsource}international/charprop.el):
17501 Delete this target.
17503 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17506 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17508 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17510 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17512 * frame.c (Qnoelisp): New symbol.
17513 (syms_of_frame): Initialize it.
17514 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17515 harmless Elisp code, from a strong `force' from x_connection_closed.
17516 * frame.h (Qnoelisp): Declare.
17517 * xterm.c (x_connection_closed): Pass `noelisp'.
17519 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17520 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17521 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17522 rather than `int' for the type of `type'.
17524 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17526 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17528 * Makefile.in (GNUC): Remove support for gcc-1.x.
17530 2008-02-10 Richard Stallman <rms@gnu.org>
17532 * lisp.h (ASET): Use AREF, not ASLOT.
17534 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17536 * lisp.h (ASET): Check bounds.
17538 2008-02-10 Glenn Morris <rgm@gnu.org>
17540 * buffer.c (mode-name): Doc fix.
17542 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17559 * xterm.c: Remove code that deals with obsolete variables.
17561 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17563 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17564 nothing else needs it anymore.
17566 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17568 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17569 instead of unibyte_char_to_multibyte.
17571 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17573 * s/gnu-linux.h: Remove commented out code.
17575 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17577 * Makefile.in: Update what RMS says about using autoconf.
17578 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17579 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17580 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17581 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17583 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17585 * keymap.c (Fkey_description): Move side effect outside of macro call.
17587 * xfaces.c (Finternal_make_lisp_face):
17588 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17590 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17591 (syms_of_fontset): Use ASET.
17593 * fns.c (concat): Move side effect outside of macro call.
17594 (hash_clear): Use ASET.
17596 2008-02-08 Richard Stallman <rms@gnu.org>
17598 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17599 If FORCE, and frame has a surrogate minibuffer for another frame,
17600 delete the other frame first.
17602 2008-02-07 Timo Savola <timo.savola@iki.fi>
17604 * xterm.c (x_detect_focus_change): Handle embed client message.
17605 (handle_one_xevent): Ditto.
17606 (handle_one_xevent): If embedded and we get a button press/release,
17608 (xembed_set_info, xembed_send_message): New functions.
17609 (x_make_frame_visible): Call xembed_set_info if embedded.
17610 (x_make_frame_invisible): Call xembed_set_info if embedded.
17611 (x_term_init): Initialize Xatom_XEMBED.
17612 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17613 (x_iconify_frame): Ditto.
17615 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17616 (enum xembed_info, enum xembed_message, enum xembed_focus)
17617 (enum xembed_modifier, enum xembed_accelerator): New.
17618 (xembed_set_info, xembed_send_message): Declare.
17619 (FRAME_X_EMBEDDED_P): New.
17621 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17624 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17625 window ID of a frame.
17626 (x_window): Reparent frame if embedded.
17627 (Fx_create_frame): Don't set border width if embedded.
17629 * emacs.c (USAGE3): Add --parent-id.
17630 (standard_args): Ditto.
17632 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17634 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17636 2008-02-07 Jim Meyering <meyering@redhat.com>
17638 Use "do...while (0)", not "if (1)...else" in macro definitions.
17639 The latter provokes a warning from gcc about the empty else, when
17640 followed by ";". Also, without that trailing semicolon, it would
17641 silently swallow up any following statement.
17642 * syntax.h (SETUP_SYNTAX_TABLE)
17643 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17644 * buffer.h (DECODE_POSITION): Likewise.
17645 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17646 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17647 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17648 (FETCH_CHAR_ADVANCE): Likewise.
17649 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17651 2008-02-07 Jim Meyering <meyering@redhat.com>
17653 * lread.c [lint]: Don't include <sys/inode.h>.
17655 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17657 * xselect.c (x_handle_dnd_message):
17658 * xmenu.c (digest_single_submenu, xmenu_show):
17659 * xdisp.c (with_echo_area_buffer_unwind_data)
17660 (format_mode_line_unwind_data, unwind_format_mode_line)
17661 (display_menu_bar):
17662 * eval.c (Ffetch_bytecode):
17663 * doc.c (store_function_docstring):
17664 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17665 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17666 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17668 2008-02-07 Kenichi Handa <handa@m17n.org>
17670 * ftxfont.c (ftxfont_open): Don't set
17671 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17673 * ftfont.c (ftfont_open): Fix previous change.
17675 2008-02-06 Jason Rumney <jasonr@gnu.org>
17677 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17678 Use cached metrics for ASCII characters.
17679 (w32font_open_internal): Don't set font's owning_frame.
17680 Cache metrics for ASCII characters.
17682 * w32font.h (struct w32font_info): Add ascii_metrics.
17683 Remove owning_frame.
17685 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17687 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17690 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17692 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17694 * charset.c (syms_of_charset): Set QCtest and Qeq.
17696 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17698 * process.c (Fstart_process):
17699 * callproc.c (Fcall_process): Handle the case where
17700 Funhandled_file_name_directory returns nil.
17702 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17703 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17704 * font.c (check_gstring): Use them and AREF to access the vector before
17705 we know it's really a gstring.
17706 (Ffont_shape_text): Fix typo.
17707 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17709 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17712 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17714 2008-02-05 Jason Rumney <jasonr@gnu.org>
17716 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17717 Set smallest_font_height and smallest_char_width in display info.
17719 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17721 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17723 2008-02-05 Miles Bader <miles@gnu.org>
17725 * xfaces.c (get_lface_attributes, merge_named_face)
17726 (lookup_named_face, lookup_derived_face, realize_named_face):
17727 Revert 2008-02-01 change by cyd@stupidchicken.com.
17729 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17731 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17733 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17735 2008-02-04 Jason Rumney <jasonr@gnu.org>
17737 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17739 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17741 2008-02-03 Jason Rumney <jasonr@gnu.org>
17743 * makefile.w32-in (OBJ1): Include font.o here.
17744 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17746 2008-02-02 Jason Rumney <jasonr@gnu.org>
17748 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17750 2008-02-01 Jason Rumney <jasonr@gnu.org>
17752 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17754 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17756 2008-02-01 Andreas Schwab <schwab@suse.de>
17758 * Makefile.in (shortlisp, lisp): Update for rename of
17759 ../lisp/language/myanmar.el.
17761 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
17763 * xfaces.c (get_lface_attributes): Delete function.
17764 (merge_named_face, lookup_named_face, lookup_derived_face)
17765 (realize_named_face): Call lface_from_face_name directly, and use
17766 the fact that merge_face_vectors does not alter its FROM argument.
17768 2008-02-01 Jason Rumney <jasonr@gnu.org>
17770 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17771 input in the default locale. Handle non-Unicode multibyte input.
17773 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17775 * fontset.c (reorder_font_vector): Exclude nil elements from the
17776 font group. Don't try multiple fonts.
17777 (fontset_font): Adjust for the above change.
17778 (Finternal_char_font): Return nil if the found font doesn't
17779 contain the character ch.
17781 * Makefile.in (lisp, shortlisp): Add cham.el.
17783 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17785 * font.h (FONTP): Make it return 1 also for a font-object.
17787 * .gdbinit (xfontset): New function.
17789 * font.c (font_find_for_lface): Check if the character C is
17790 supported or not only for the first font.
17792 * fontset.c (reorder_font_vector): Fix typo.
17793 (fontset_find_font): Don't add a font-spec specifying a script.
17794 Use 0 (not Qt) for the indication of empty font-group. Change the
17795 format of RFONT-DEF. Return Qt if no font in the font-group
17796 support the character.
17797 (fontset_font): Adjust for the above change. If no font was
17798 found the character, remember that.
17799 (face_for_char): Adjust for the change of RFONT-DEF.
17800 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17801 no font for the target.
17802 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17804 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17806 * font.c (font_load_for_face): Handle the case that the font in
17807 face->lface is a string.
17809 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17811 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17813 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17815 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17816 Fix previous change. If the frame is not on a window system,
17819 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17821 * coding.c (decode_coding_object, encode_coding_object): Adjust
17822 marker positions after conversion.
17824 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17826 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17828 * font.c (font_find_for_lface): Fix the handling of the return
17829 value of font_has_char.
17830 (Ffont_shape_text): Fix previous change.
17832 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17833 (fontset_ref_and_range): Delete it.
17834 (fontset_find_font): Call char_table_ref_and_range instead of
17835 FONTSET_REF_AND_RANGE.
17836 (make_fontset): Don't setup font groups of Latin here.
17837 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17838 (new_fontset_from_font): Make the specified font the default for
17839 all Latin characters.
17841 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17843 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17844 is on a window system before accessing the fontset of the frame.
17846 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17848 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17850 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17851 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17853 * font.c (Ffont_shape_text): If the font driver doesn't have a
17854 shaper function, make zero-width glyphs to have at least one-pixel
17855 width. Fix setting of `to' field of glyphs.
17857 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17859 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17862 * font.h (struct font_driver): Improve docstring of member `shape'.
17864 2008-02-01 Kenichi Handa <handa@m17n.org>
17866 * composite.c (syms_of_composite): Fix docstring of
17867 auto-composition-function.
17869 * font.h (LGLYPH_SIZE): New macro.
17871 * font.c (Ffont_fill_gstring): Stop filling when a character not
17872 supported by the font is found.
17873 (Ffont_shape_text): When a shape callback function returns nil,
17874 try at most two more times with larger gstring.
17875 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17877 * xdisp.c (handle_auto_composed_prop): Change the argument to
17878 auto-composition-function.
17880 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17881 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17882 Lispy glyph and store it in the lgstring.
17884 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17886 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17888 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17890 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17892 * fontset.c (Vfont_encoding_charset_alist): New variable.
17893 (syms_of_fontset): DEFVAR it.
17894 (reorder_font_vector, fontset_find_font): Optimize for the case of
17895 no need of reordering.
17896 (face_for_char): Map the charset property by
17897 Vfont_encoding_charset_alist.
17899 2008-02-01 Jason Rumney <jasonr@gnu.org>
17901 * w32font.c (logfonts_match): Don't check adstyle here.
17902 (font_matches_spec): Check here against physical font instead.
17903 (add_font_entity_to_list): Avoid some substitutions.
17905 * font.c (font_parse_fcname): Default weight and slant to normal.
17906 (font_score): Prefer normal fonts if weight or slant unspecified.
17907 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17908 match freetype scores.
17910 2008-02-01 Jason Rumney <jasonr@gnu.org>
17912 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17913 font, as it may have been deleted.
17914 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17915 most common hyphenless variation.
17916 (logfonts_match): Check generic family.
17917 (font_matches_spec): Don't check generic family here.
17918 (fill_in_logfont): Set generic family based on adstyle.
17920 * w32font.h (w32font_get_cache): Update declaration.
17922 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17924 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17926 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17927 If none of the new drivers are available, call font_update_drivers
17928 with the old drivers.
17930 * w32font.c (w32font_get_cache): Adjust the argument type.
17932 * xfont.c (xfont_get_cache): Adjust the argument type.
17934 * font.h (struct font_driver): Change argument type of get_cache.
17936 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17938 * font.c (Ffont_get): Fix arguments to Fassoc.
17939 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17940 (font_clear_cache): New function.
17941 (font_list_entities, font_matching_entity): Use font_get_cache.
17942 (font_update_drivers): Call font_clear_cache when finishing a driver.
17944 * fontset.c (fontset_find_font): Fix previous change.
17946 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17948 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17949 dpyinfo->font_table.
17950 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17951 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17953 * font.c (font_at): Handle the case that the arg C is negative.
17954 Handle the unibyte case.
17955 (Ffont_at): Call font_at with the arg C -1.
17957 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17958 the position here, and call font_at with the arg C -1.
17959 Don't check the range of the existing composition at the point.
17961 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17963 * fontset.c (fontset_add): New args charset_id and family.
17965 (load_font_get_repertory, fontset_find_font): Assume that
17966 font_spec is always a font-spec object.
17967 (Fset_fontset_font): Always store a font-spec object in a fontset.
17969 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17970 instead of get_property_and_range.
17972 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17974 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17975 (xftfont_open): Don't keep locking face.
17976 (xftfont_close): Don't unlock face.
17977 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17979 * fontset.c (fontset_find_font): Don't prefer a font of
17980 supplementary charset.
17982 2008-02-01 Kenichi Handa <handa@m17n.org>
17984 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17985 script, langsys_tag to langsys, new member script.
17986 (OTF_TAG_STR): Terminate by '\0'.
17987 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
17988 listing to the script specified in that property. Fix arg to
17989 OTF_check_features.
17991 2008-02-01 Jason Rumney <jasonr@gnu.org>
17993 * w32font.h: New file.
17995 * w32font.c: Include it.
17996 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17997 (w32font_open): Set owning_frame.
17998 (w32font_text_extents): Use owning_frame.
17999 (struct font_callback_data): Add opentype_only field.
18000 (add_font_entity_to_list): Use it to filter fonts.
18001 Don't check against full name.
18002 (w32font_list_internal): New function.
18003 (w32font_list): Use it.
18004 (w32font_match_internal): New function.
18005 (w32font_match): Use it.
18006 (w32font_open_internal): New function.
18007 (w32font_open): Use it.
18008 (w32font_get_cache, w32font_close, w32font_has_char)
18009 (w32font_encode_char, w32font_text_extents, w32font_draw):
18012 * makefile.w32-in (w32font.o): Depend on w32font.h.
18014 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18016 * charset.c (Fdefine_charset_internal): Record a supplementary
18017 charset at the tail of Vcharset_order_list.
18019 * font.c (Ffont_shape_text): Fix the return value.
18021 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18023 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18025 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18027 * ftfont.c (struct OpenTypeSpec): New struct.
18028 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18029 (ftfont_get_open_type_spec): New function.
18030 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18032 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18034 2008-02-01 Jason Rumney <jasonr@gnu.org>
18036 * w32font.c (add_font_entity_to_list): Compare only the beginning
18039 2008-02-01 Kenichi Handa <handa@m17n.org>
18041 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18042 Never return HANDLED_RECOMPUTE_PROPS.
18044 2008-02-01 Kenichi Handa <handa@m17n.org>
18046 * font.c (font_gstring_produce): Delete it.
18048 * composite.h (COMPOSITION_METHOD):
18049 Handle COMPOSITION_WITH_GLYPH_STRING.
18051 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18053 * xfont.c (Qx): Delete.
18054 (syms_of_xfont): Don't initialize Qx.
18056 * composite.h (enum composition_method):
18057 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18059 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18061 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18062 (choose_face_font): Accept new form of font-spec.
18064 * frame.h (font_driver_list): Declare it unconditionally.
18065 (struct frame): Define members font_driver_list and font_data_list
18068 * fontset.c: Include "font.h" unconditionally.
18069 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18070 (Fset_fontset_font): Accept a font-spec object.
18072 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18073 PIXEL_SIZE part a wild card.
18075 * dispextern.h (struct glyph_string): Define members clip and
18076 num_clips unconditionally.
18077 (struct face): Define members font_info and extra unconditionally.
18079 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18080 ftfont_info only when HAVE_LIBOTF is defined.
18082 2008-02-01 Andreas Schwab <schwab@suse.de>
18084 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18087 2008-02-01 Jason Rumney <jasonr@gnu.org>
18089 * w32font.c (w32font_driver): Add new fields.
18091 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18093 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18094 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18095 (LIBES): Add @M17N_FLT_CFLAGS@.
18097 * composite.c (compose_text): Don't treat the new style
18098 composition specially.
18100 * emacs.c (main): Call syms_of_font unconditionally.
18102 * font.h (FONT_ENTITY_NOT_LOADABLE)
18103 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18104 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18105 (struct font_driver): New member shape.
18106 (font_registry_charsets): Extern it.
18107 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18108 (font_otf_capability, font_drive_otf): Delete their externs.
18110 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18111 (font_charset_alist, font_registry_charsets): Move from xfont.c
18113 (font_prop_validate_otf): New function.
18114 (font_property_table): Register it for QCotf.
18115 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18116 (font_drive_otf): Delete.
18117 (font_prepare_composition): New arg F. Adjust for the change of
18119 (font_find_for_lface): New arg C.
18120 (font_load_for_face): Adjust for the change of font_find_for_lface.
18121 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18123 (Ffont_shape_text): New function.
18124 (Fopen_font): If the font size is not given, use 12-pixel.
18125 (Ffont_at): New arg STRING.
18126 (syms_of_font): Initalize font_charset_alist.
18127 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18130 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18131 fonts of the same font-spec. Change the format of RFONT-DEF.
18132 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18133 Adjust for the change of RFONT-DEF.
18134 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18136 * ftfont.h: New file.
18138 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18139 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18140 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18141 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18142 font_otf_capability and font_drive_otf, set ftfont_shape.
18143 (ftfont_list): Adjust for the change of :otf property value.
18144 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18145 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18146 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18147 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18148 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18149 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18151 * w32term.c (x_draw_composite_glyph_string_foreground):
18152 Adjust for the change of lispy gstring.
18154 * xdisp.c (handle_composition_prop): Adjust for the change of
18155 lispy gstring. Call a function for auto-composition with the
18156 third arg it->window.
18157 (fill_composite_glyph_string): Adjust for the change of lispy string.
18158 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18160 * xfaces.c (set_font_frame_param): Adjust for the change of
18161 font_find_for_lface.
18163 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18164 (xfont_registry_charsets): Likewise. Change caller.
18165 (syms_of_xfont): Don't handle x_font_charset_alist.
18167 * xftfont.c: Include "ftfont.h".
18168 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18169 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18170 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18171 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18172 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18173 Set xftfont_driver.shape to xftfont_shape.
18175 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18176 the change of lispy gstring.
18178 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18180 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18182 2008-02-01 Jason Rumney <jasonr@gnu.org>
18184 * w32font.c (w32font_draw): Fill background manually.
18186 2008-02-01 Jason Rumney <jasonr@gnu.org>
18188 * font.c (Qfontp): Remove unused symbol.
18189 (QCantialias): New symbol.
18190 (syms_of_font): Define it.
18191 (font_property_table): Set a validator for QCantialias.
18193 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18194 Define if not already.
18195 (QCfamily): Share with xfaces.c.
18196 (Qstandard, Qsubpixel, Qnatural): New symbols.
18197 (syms_of_w32font): Define them. Don't define QCfamily here.
18198 (w32_antialias_type, lispy_antialias_type): New functions.
18199 (w32_enumfont_pattern_entity): New arg requested_font.
18200 Set antialias parameter if non-default was requested.
18201 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18203 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18205 * lread.c (read1): Undo the previous change.
18207 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18209 * frame.c (Fdelete_frame): Call font_update_drivers only when
18210 USE_FONT_BACKEND is defined.
18212 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18214 * font.h (struct font_bitmap): New member bits_per_pixel.
18215 (struct font_driver): New members start_for_frame and end_for_frame.
18216 (struct font_data_list): New struct.
18217 (font_put_frame_data, font_get_frame_data): Extern them.
18219 * frame.h (struct frame): New member font_data_list.
18221 * font.c (font_update_drivers): Call driver->start_for_frame and
18222 driver->end_for_frame at proper timings.
18223 (font_put_frame_data, font_get_frame_data): New functions.
18224 (Ffont_spec): Add usage in the docstring.
18226 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18227 (Fdelete_frame): Call font_update_drivers.
18229 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18230 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18231 (xftfont_get_xft_draw): New function.
18232 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18233 (xftfont_end_for_frame): New function.
18234 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18236 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18237 Change argument. Cache GCs in the per-frame data.
18238 (struct ftxfont_frame_data): New struct.
18239 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18240 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18241 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18242 (ftxfont_end_for_frame): New function.
18243 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18245 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18247 2008-02-01 Kenichi Handa <handa@m17n.org>
18249 * xselect.c (Vselection_coding_system)
18250 (Vnext_selection_coding_system): Delete them.
18251 (syms_of_xselect): Don't declare selection-coding-system and
18252 next-selection-coding-system. They are declared in select.el.
18254 2008-02-01 Jason Rumney <jasonr@gnu.org>
18256 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18258 * w32fns.c: Include imm.h.
18259 (get_composition_string_fn, get_ime_context_fn): New optional
18261 (globals_of_w32fns): Load them from imm32.dll.
18262 (ignore_ime_char): New flag.
18263 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18264 WM_IME_ENDCOMPOSITION messages.
18266 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18267 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18269 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18271 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18272 (READCHAR_REPORT_MULTIBYTE): New macro.
18273 (readchar): New 2nd arg MULTIBYTE.
18274 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18275 Make symbol's name multibyte according to the multibyteness of the
18278 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18280 * xfaces.c (face_for_overlay_string): Call lookup_face with
18281 correct arguments (fix of synching with the trunk).
18283 2008-02-01 Kenichi Handa <handa@m17n.org>
18285 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18286 (font_prop_validate_non_neg, font_prop_validate_spacing):
18287 Delete argument prop_index.
18288 (font_property_table): Change arguments to validater. Change Callers.
18289 (font_lispy_object): Delete.
18290 (font_at): Use font_find_object instead fo font_lispy_object.
18292 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18294 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18297 2008-02-01 Jason Rumney <jasonr@gnu.org>
18299 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18300 (font_matches_spec): Remove debug output.
18301 (add_font_entity_to_list): Avoid using substituted fonts.
18303 2008-02-01 Jason Rumney <jasonr@gnu.org>
18305 * doc.c (Fsnarf_documentation):
18306 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18308 2008-02-01 Miles Bader <miles@gnu.org>
18310 * dispextern.h (struct glyph_row): Only define "clip" field if
18311 HAVE_WINDOW_SYSTEM is defined.
18313 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18315 Fix up multi-tty merge.
18317 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18320 * xfaces.c (free_realized_face, clear_face_gcs):
18321 Include font_done_for_face in the input_blocked section, just in case.
18323 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18324 (get_char_face_and_encoding): Undo last change and remove the *other*
18325 duplicate definition (i.e. keep the one that's better scoped and that
18326 includes code for the font-backend).
18328 * terminal.c (create_terminal): Default keyboard_coding to
18329 `no-conversion' and terminal_coding to `undecided'.
18331 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18333 * fontset.c (free_realized_fontsets): Check that the table entry does
18334 contain a fontset before trying to compare it to `base'.
18336 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18337 syms_of_charset, and syms_of_coding earlier because init_window_once
18338 now needs Vcoding_system_hash_table to be setup.
18340 * coding.h (default_buffer_file_coding): Remove.
18342 * coding.c (default_buffer_file_coding): Remove.
18343 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18344 than ->symbol, and use the terminal-local coding system.
18345 (syms_of_coding): Don't setup the coding-systems that are not
18347 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18349 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18350 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18352 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18353 in chartab.c and were re-added here by mistake.
18354 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18356 * doc.c (Fsnarf_documentation):
18357 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18360 * ChangeLog.10: Add mistakenly removed entry.
18362 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18364 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18366 2008-02-01 Miles Bader <miles@gnu.org>
18368 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18369 Add extra args to FACE_FOR_CHAR.
18371 2008-02-01 Kenichi Handa <handa@m17n.org>
18373 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18376 * chartab.c (map_sub_char_table, map_char_table): If the range
18377 contains just one character, call the function with that character
18378 even if the depth is not 3.
18380 2008-02-01 Jason Rumney <jasonr@gnu.org>
18382 * w32font.c (w32font_text_extents): Calculate metrics for the
18385 2008-02-01 Jason Rumney <jasonr@gnu.org>
18387 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18389 2008-02-01 Jason Rumney <jasonr@gnu.org>
18391 * w32term.c (x_set_glyph_string_clipping): Use
18392 get_glyph_string_clip_rects.
18393 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18394 Adjust for the change of struct glyph_string.
18396 * w32font.c (w32font_draw): Do clipping here.
18398 2008-02-01 Kenichi Handa <handa@m17n.org>
18400 * xftfont.c (xftfont_draw): Adjust for the change of struct
18403 * xterm.c (x_set_glyph_string_clipping): Use
18404 get_glyph_string_clip_rects.
18405 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18406 Adjust for the change of struct glyph_string.
18408 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18409 the resulting clip(s}.
18410 (expose_overlaps): Add arg r. Change callers. Set it to
18411 row->clip temporarily.
18412 (expose_window): Redraw rows overlapping the exposed area.
18414 * dispextern.h (struct glyph_row): New member clip.
18415 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18416 clip_height, new member clip, and num_clips.
18418 2008-02-01 Kenichi Handa <handa@m17n.org>
18420 * data.c (Fchar_or_string_p): Fix docstring.
18422 2008-02-01 Kenichi Handa <handa@m17n.org>
18424 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18425 create a temporary XftDraw object.
18427 2008-02-01 Kenichi Handa <handa@m17n.org>
18429 * font.c (Ffontp): Fix docstring.
18431 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18432 strong evidence of ISO-2022.
18434 2008-02-01 Kenichi Handa <handa@m17n.org>
18436 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18437 SYNTAX_ENTRY_FOLLOW_PARENT.
18439 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18441 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18443 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18444 Update to the new type of weak_hash_tables and next_weak.
18446 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18447 a plain C pointer to Lisp_Hash_Table.
18449 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18450 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18451 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18452 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18453 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18454 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18455 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18456 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18457 (GC_EQ): Remove since they've been identical to their non-GC_
18458 alter-egos ever since the markbit was eradicated.
18477 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18479 2008-02-01 Kenichi Handa <handa@m17n.org>
18481 * chartab.c (map_sub_char_table): Make it work for the top-level
18482 char-table. Fix handling of parent char-table.
18483 (map_char_table): Adjust for the above change.
18485 2008-02-01 Jason Rumney <jasonr@gnu.org>
18487 * w32font.c (Qgdi): Rename from Qw32.
18489 2008-02-01 Jason Rumney <jasonr@gnu.org>
18491 * w32bdf.c (get_quoted_string): Make function static.
18493 2008-02-01 Kenichi Handa <handa@m17n.org>
18495 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18496 bigger ascent and descent than those of the font, use them as
18497 font's ascent and descent.
18499 2008-02-01 Kenichi Handa <handa@m17n.org>
18501 * Makefile.in (${lispsource}international/charprop.el): Move this
18502 target within "#ifdef HAVE_UNIDATA" and "#endif".
18504 2008-02-01 Kenichi Handa <handa@m17n.org>
18506 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18507 (shortlisp): Add ../lisp/language/tai-viet.el.
18509 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18511 * Makefile.in (${lispsource}international/charprop.el): Depend on
18514 2008-02-01 Jason Rumney <jasonr@gnu.org>
18516 * w32font.c (w32font_close): Delete the GDI font object.
18518 * w32menu.c: Include character.h.
18520 * w32proc.c: Likewise.
18522 * w32select.c: Likewise.
18524 * makefile.w32-in (w32proc.o): Depend on character.h.
18526 2008-02-01 Jason Rumney <jasonr@gnu.org>
18528 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18530 * w32menu.c (syms_of_w32menu): Likewise.
18532 * w32proc.c (syms_of_ntproc): Likewise.
18534 * w32select.c (syms_of_w32select): Likewise.
18536 * w32term.c (syms_of_w32term): Likewise.
18538 2008-02-01 Jason Rumney <jasonr@gnu.org>
18540 * w32font.c (w32font_draw): Delete brush after using it.
18542 2008-02-01 Jason Rumney <jasonr@gnu.org>
18544 * w32font.c (w32font_open): Don't set font_idx.
18545 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18547 (w32font_draw): Fill background explicitly.
18549 2008-02-01 Jason Rumney <jasonr@gnu.org>
18551 * w32term.c (w32_initialize): Don't call w32font_initialize.
18553 * w32font.c (w32font_info): Remove subranges.
18554 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18555 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18556 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18557 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18558 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18559 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18560 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18561 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18562 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18563 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18565 (font_callback_data): New struct.
18566 (w32font_list, w32font_match): Use it.
18567 (w32font_open): Don't populate subranges.
18568 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18569 (w32font_encode_char): Always return unicode code-point as-is.
18570 (w32font_text_extents): Supply a transformation matrix to
18571 GetGlyphOutline. Never look up by glyph index. Avoid looping
18572 twice. Use unicode version of GetTexExtentPoint32 instead of
18573 glyph index version.
18574 (set_fonts_frame): Remove.
18575 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18576 set frame parameter. Use backward compatible fake foundries.
18577 Save generic family in extra slot under QCfamily. Make width slot
18578 constant. Save QCspacing value. Save list of scripts instead of
18580 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18581 (add_font_entity_to_list): Use font_callback_data struct. Filter
18583 (add_one_font_entity_to_list): Use font_callback_data struct.
18584 (w32_registry): Default to iso10646_1.
18585 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18586 string font registries. Don't fill in font name if it is a generic
18587 family name, fill family instead. Use spacing, family and script
18588 extra info to fill pitch, family and charset fields.
18589 (list_all_matching_fonts): Use font_callback_data struct.
18590 (unicode_range_for_char): Remove.
18591 (font_supported_scripts): New function.
18592 (w32font_initialize): Remove.
18593 (syms_of_w32font): Update which symbols are defined.
18595 2008-02-01 Jason Rumney <jasonr@gnu.org>
18597 * font.c (font_pixel_size): Reverse assq_no_quit args.
18599 * w32term.h (FONT_WIDTH): Report max width, not average.
18600 (FONT_MAX_WIDTH): Remove.
18601 (FONT_AVG_WIDTH): New macro.
18603 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18604 redefinition of FONT_WIDTH.
18606 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18607 (w32_cache_char_metrics): Use FONT_WIDTH.
18609 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18611 2008-02-01 Jason Rumney <jasonr@gnu.org>
18613 * w32font.c (w32font_open): Make lfHeight negative.
18615 * w32fns.c (x_default_font_parameter): Use new style font name.
18616 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18618 2008-02-01 Jason Rumney <jasonr@gnu.org>
18620 * w32font.c (QCsubranges): New symbol.
18621 (w32font_open, w32font_has_char): Get subranges from subproperty
18623 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18624 (syms_of_w32font): Define :subranges symbol.
18626 * font.c (font_put_extra): Expose externally.
18628 * font.h (font_put_extra): Move declaration from font.c.
18630 * font.c (Ffont_get): Use font driver to determine otf capability.
18631 (adjust_anchor): Check if driver defines anchor_point before using.
18633 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18634 (w32font_draw): Use options.
18635 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18636 Fix detection of truetype fonts.
18637 (registry_to_w32_charset): Handle charsets other than iso8859-1
18638 expressed as lisp symbols.
18639 (w32_registry): Express charset as lisp symbol.
18640 (fill_in_logfont): Reverse pixel and point height logic.
18641 Don't set width here. Set quality to default.
18643 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18644 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18646 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18647 Remove redundant loop and allocation.
18649 * makefile.w32-in (font.o, w32font.o): New objects.
18650 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18651 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18653 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18654 STORE_XCHARB a valid l-value.
18656 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18657 calculations for non-Truetype fonts.
18658 (x_draw_glyph_string): Sync with xterm.c.
18659 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18660 Remove redundant code.
18661 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18663 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18664 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18666 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18667 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18669 * w32font.c: New file for w32 font backend.
18671 2008-02-01 Kenichi Handa <handa@m17n.org>
18673 * term.c: Don't include "buffer.h" twice.
18675 2008-02-01 Kenichi Handa <handa@m17n.org>
18677 * character.c (Funibyte_string): New function.
18678 (syms_of_character): Defsubr it.
18680 2008-02-01 Jason Rumney <jasonr@gnu.org>
18682 * w32term.c [USE_FONT_BACKEND]:
18683 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18684 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18685 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18686 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18687 (x_free_frame_resources): Sync with xterm.c.
18689 2008-02-01 Andreas Schwab <schwab@suse.de>
18691 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18694 2008-02-01 Kenichi Handa <handa@m17n.org>
18696 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18698 2008-02-01 Kenichi Handa <handa@m17n.org>
18700 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18701 font_otf_gpos, add font_drive_otf.
18703 * fontset.c (fontset_find_font): Pay attention to font size
18704 specified for a font.
18705 (reorder_font_vector): Check contents of font_def.
18707 * font.c (struct otf_list): Delete it.
18708 (otf_list): Make it a lisp variable.
18709 (otf_open): Use lispy otf_list.
18710 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18711 (check_otf_features): New function.
18712 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18714 (font_drive_otf): New function merging font_otf_gsub and
18716 (font_open_for_lface): New arg spec. Change argument order.
18717 (font_load_for_face): Adjust for the change of font_open_for_lface.
18718 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18720 (syms_of_font): Staticpro otf_list. Delete defsubr of
18721 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18723 * xfaces.c (set_font_frame_param): Adjust for the change of
18724 font_open_for_lface.
18726 * font.h (font_open_for_lface): Adjust prototype.
18727 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18729 (font_otf_gsub, font_otf_gpos): Delete externs.
18730 (font_drive_otf): Extern it.
18732 2008-02-01 Kenichi Handa <handa@m17n.org>
18734 * font.c (font_at): If the window W is not on a window system,
18737 * coding.c (produce_chars, encode_coding): Don't call
18738 insert_from_gap if no characters to produce.
18740 2008-02-01 Kenichi Handa <handa@m17n.org>
18742 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18745 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18747 2008-02-01 Miles Bader <miles@gnu.org>
18749 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18750 Parse "--disable-font-backend" option.
18751 (standard_args): Add "--disable-font-backend" option.
18753 2008-02-01 Kenichi Handa <handa@m17n.org>
18755 * fontset.c (fontset_find_font): New function.
18756 (fontset_font): Use fontset_find_font.
18757 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18758 Register the specified font for all Latin characters.
18759 (new_fontset_from_font): Register the specified font for all Latin
18761 (dump_fontset): For a realized fontset, include the base fontset
18762 name in the returned vector.
18764 2008-02-01 Kenichi Handa <handa@m17n.org>
18766 * character.h (CHAR_STRING): Cast C to unsigned on calling
18769 * character.c (char_string): Type of arg C changed to unsigned.
18770 Signal an error if C is an invalid character code.
18772 * editfns.c (general_insert_function, Fchar_to_string):
18773 Use CHARACTERP, not INTEGERP.
18775 2008-02-01 Kenichi Handa <handa@m17n.org>
18777 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18778 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18780 * regex.c (analyse_first): Fix for multibyte characters in "case
18781 charset:" and "case categoryspec:".
18783 2008-02-01 Andreas Schwab <schwab@suse.de>
18785 * Makefile.in (LIBES): Move standard libraries to the end.
18787 2008-02-01 Kenichi Handa <handa@m17n.org>
18789 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18790 nonzero, don't shrink the buffer nextb.
18792 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18794 * coding.c (coding_alloc_by_making_gap): New arg offset.
18795 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18797 (decode_coding_iso_2022): Update coding->safe_charsets.
18798 (decode_coding_gap): Temporarily set
18799 current_buffer->text->inhibit_shrinking to 1.
18801 2008-02-01 Kenichi Handa <handa@m17n.org>
18803 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18804 indexing into elements of s->cmp and s->char2b.
18806 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
18808 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18810 2008-02-01 Kenichi Handa <handa@m17n.org>
18812 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18813 target_multibyte instead of multibyte.
18814 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18815 (bcmp_translate): Change the argument name from multibyte to
18818 2008-02-01 Kenichi Handa <handa@m17n.org>
18820 These changes are to compile a regexp into a pattern that can be
18821 used both for multibyte and unibyte targets.
18823 * Makefile.in (search.o): Depend on charset.h.
18825 * character.c (multibyte_char_to_unibyte_safe): New function.
18827 * search.c: Include "charset.h".
18828 (compile_pattern_1): Delete argument multibyte. Don't set
18829 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18830 (compile_pattern): Don't compare cp->buf.target_multibyte.
18831 Compare cp->buf.charset_unibyte.
18832 (compile_pattern): Set cp->buf.target_multibyte.
18834 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18836 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18838 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18839 multibyte. Change callers.
18840 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18841 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18842 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18843 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18844 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18845 (regex_compile): Make the compiled pattern usable both for
18846 multibyte and unibyte targets.
18847 (analyse_first): Make the fastmap usable both for multibyte and
18849 (TRANSLATE_VIA_MULTIBYTE): Delete.
18850 (re_match_2_internal): Pay attention to the case that the
18851 multibyteness of bufp and target may be different.
18853 2008-02-01 Kenichi Handa <handa@m17n.org>
18855 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18856 empty box occupy at least one column width.
18858 2008-02-01 Miles Bader <miles@gnu.org>
18860 * Makefile.in: Remove redundant HAVE_XFT clause.
18862 2008-02-01 Kenichi Handa <handa@m17n.org>
18864 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18866 2008-02-01 Kenichi Handa <handa@m17n.org>
18868 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18871 2008-02-01 Kenichi Handa <handa@m17n.org>
18873 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18875 2008-02-01 Kenichi Handa <handa@m17n.org>
18877 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18879 2008-02-01 Kenichi Handa <handa@m17n.org>
18881 * search.c (simple_search): Fix previous change.
18883 2008-02-01 Kenichi Handa <handa@m17n.org>
18885 * xftfont.c (ftfont_font_format): Extern declaration.
18887 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18889 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18890 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18892 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18893 (ftfont_font_format): Fix previous change.
18895 * font.h (Ffont_xlfd_name): EXFUN it.
18897 * font.c (font_parse_xlfd): Fix the array size of `f'.
18898 (register_font_driver): Use EQ to compare driver->type.
18900 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18901 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18902 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18904 2008-02-01 Kenichi Handa <handa@m17n.org>
18906 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18907 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18909 2008-02-01 Kenichi Handa <handa@m17n.org>
18911 * xfont.c (xfont_open): Set font->format.
18913 * xftfont.c (xftfont_open): Set font->format.
18915 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18916 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18917 (ftfont_open): Set font->format.
18918 (ftfont_font_format): New function.
18920 * font.h (struct font): New member format.
18922 * font.c (Qopentype): New variable.
18923 (syms_of_font): Defsym it.
18924 (Fquery_font): Change the format of the last element of the return
18927 2008-02-01 Kenichi Handa <handa@m17n.org>
18929 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18932 2008-02-01 Kenichi Handa <handa@m17n.org>
18934 * coding.c (detect_coding_charset): Fix detection of multi-byte
18937 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18939 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18941 2008-02-01 Kenichi Handa <handa@m17n.org>
18943 * xdisp.c (get_next_display_element): Set it->face_id for the
18944 first component of a composition.
18945 (x_produce_glyphs): Check if the font is changed or not for composition.
18947 2008-02-01 Kenichi Handa <handa@m17n.org>
18949 * fontset.c (Qlatin): New variable.
18950 (syms_of_fontset): Define it as a lisp symbol.
18951 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18953 2008-02-01 Kenichi Handa <handa@m17n.org>
18955 * font.c (font_unparse_fcname): Pay attention to the case that
18956 some of font property is a null string.
18958 2008-02-01 Kenichi Handa <handa@m17n.org>
18960 * term.c: Include "composite.h".
18961 (encode_terminal_code): Output all components of composition.
18962 Check the size of encode_terminal_src.
18963 (produce_glyphs): For composition, call produce_composite_glyph.
18964 (append_composite_glyph, produce_composite_glyph): New functions.
18966 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18967 is not found, get font_info from the current ascii face.
18969 2008-02-01 Kenichi Handa <handa@m17n.org>
18971 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18972 buffer-file-name to Qnil before calling insert_from_buffer.
18974 * font.c (font_unparse_fcname): Pay attention to the case that
18975 foundry is a null string.
18977 2008-02-01 Kenichi Handa <handa@m17n.org>
18979 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18981 * font.c (Qunicode_sip): New variable.
18982 (syms_of_font): Declare it as a Lisp symbol.
18984 * font.h (Qunicode_sip): Extern it.
18986 2008-02-01 Kenichi Handa <handa@m17n.org>
18988 * composite.c (get_composition_id): Pay attention to TAB component.
18990 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18991 TAB. Adjust for the change of s->char2b which always points to
18992 the first element of allocated memory.
18994 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18996 * xdisp.c (handle_composition_prop): Set it->c to the first
18998 (fill_composite_glyph_string): Change argument.
18999 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19000 (x_produce_glyphs): Fix handling of left/right padding.
19002 2008-02-01 Kenichi Handa <handa@m17n.org>
19004 * coding.c (detect_coding_system): Fix for handling off
19005 inhibit_iso_escape_detection. Fix for the case that no coding
19006 system is defined for a specific coding category.
19008 2008-02-01 Kenichi Handa <handa@m17n.org>
19010 * font.c (font_matching_entity): Delete unused local var.
19012 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19015 * fileio.c (Finsert_file_contents): On recovering a file, assume
19017 (choose_write_coding_system): On auto-saving a file, force
19020 * coding.c (setup_coding_system): Fix setting of
19021 coding->common_flags based on eol_type.
19022 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19025 2008-02-01 Kenichi Handa <handa@m17n.org>
19027 * alloc.c (NSTATICS): Increas to 0x600.
19029 2008-02-01 Kenichi Handa <handa@m17n.org>
19031 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19032 (ftfont_list): Don't check :name property.
19033 (ftfont_match): New function.
19034 (ftfont_pattern_entity): If the pattern doesn't contain
19035 FC_SPACING, don't assume FC_MONO.
19037 * font.h (struct font_driver): New member `match'.
19038 (font_update_drivers): Adjust prototype.
19040 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19042 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19043 them unconditionally.
19044 (font_matching_entity): New function.
19045 (font_open_by_name): Try font_matching_entity if exact match is
19047 (font_update_drivers): Delete the arg FONT. Return a list of
19048 actually used backends. Don't free faces, font caches here.
19049 Don't store data in frame parameters. Don't call x_set_font.
19050 (Ffont_spec): Store :name property as is.
19051 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19052 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19053 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19054 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19055 Call font->driver->otf_gsub instead of font_otf_gsub.
19057 * frame.c (x_set_font_backend): Do more works that were done in
19058 font_update_drivers before.
19060 * xfont.c (xfont_match): New function.
19061 (xfont_driver): Set xfont_driver.match to xfont_match.
19062 (xfont_draw): Set font in GC if necessary.
19064 * ftxfont.c (ftxfont_match): New function.
19065 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19067 * xftfont.c (xftfont_match): New function.
19068 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19070 2008-02-01 Kenichi Handa <handa@m17n.org>
19072 * font.h (struct font): New member scalable.
19073 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19074 (font_otf_gsub): Adjust prototype.
19076 * font.c (font_otf_capability): Fix handling of the default langsys.
19077 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19078 Check the contents of SPEC.
19079 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19080 (check_gstring): New function.
19081 (REPLACEMENT_CHARACTER): New macro.
19082 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19083 glyph codes of GSTRING.
19084 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19085 (font_prepare_composition): Set cmp->glyph_len.
19086 (font_open_entity): Set font->scalable.
19087 (Ffont_get): Handle :otf property.
19088 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19090 (Fquery_font): Use font->font.full_name.
19091 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19092 Sfont_otf_alternates.
19094 * ftfont.c (ftfont_open): Set font->font.full_name and
19095 font->font.name properly. Fix calculation of font->font.height
19096 and font->min_width.
19098 * ftxfont.c (ftxfont_create_gcs): New function.
19099 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19100 (ftxfont_draw_backgrond): Fix filling region.
19101 (ftxfont_default_fid): New function.
19102 (ftxfont_open): Set xfont->fid to the return value of
19103 ftxfont_default_fid.
19104 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19105 (ftxfont_done_face): Free only GCs that are created by
19106 ftxfont_create_gcs.
19107 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19109 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19110 Clip to src->width, etc (not src->clip_XXX).
19112 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19113 FontBackend frame parameter.
19115 2008-02-01 Kenichi Handa <handa@m17n.org>
19117 * font.h (struct font_driver_list): New member `on'.
19118 (Fclear_font_cache): EXFUN it.
19119 (font_update_drivers): Extern it.
19121 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19122 (font_list_entities): Check driver_list->on.
19123 (register_font_driver): Initalize `on' member to 0.
19124 (font_update_drivers): New function.
19125 (Fclear_font_cache): Check driver_list->on.
19127 * frame.h (Qfont_backend): Extern it.
19128 (x_set_font_backend): Extern it.
19130 * frame.c (Qfont_backend): New variable.
19131 (frame_parms): New element for font-backend.
19132 (x_set_font_backend): New function.
19134 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19135 FontBackend frame parameter.
19136 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19137 x_set_font_backend.
19139 * xfont.c (xfont_list): Don't try listing by :name property if the
19140 name is not for XLFD.
19142 2008-02-01 Kenichi Handa <handa@m17n.org>
19144 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19145 (LGLYPH_SET_TO): New macros.
19146 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19147 element of G is vector or not.
19148 (font_at): Extern it.
19150 * font.c: Include window.h.
19151 (font_lispy_object): New function.
19152 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19153 end of valid glyph.
19154 (font_close_object): Fix getting (struct font *).
19155 (font_at): New function.
19156 (Ffont_get): If FONT is a font-object, get entity from it.
19157 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19158 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19160 (Ffont_at): New function.
19161 (syms_of_font): Defsubr Sfont_at.
19163 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19164 before the entry for Qcomposition.
19165 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19166 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19167 the font in gstring.
19168 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19169 LGLYPH_FORM (g) to detect the end of valid glyph.
19170 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19171 we are composing with gstring.
19173 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19174 Check if adjustment is vector or not.
19176 * Makefile.in (font.o): Make it depends on window.h.
19178 2008-02-01 Kenichi Handa <handa@m17n.org>
19180 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19181 adjustment is vector or not.
19183 2008-02-01 Miles Bader <miles@gnu.org>
19185 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19187 2008-02-01 Kenichi Handa <handa@m17n.org>
19189 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19190 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19191 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19193 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19194 (DEVICE_DELTA): Fix typo.
19195 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19198 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19199 the change of LGLYPH format.
19201 2008-02-01 Kenichi Handa <handa@m17n.org>
19203 * ftfont.c (ftfont_list): Fix typo.
19204 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19206 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19208 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19210 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19211 xftface_info is non-NULL.
19213 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19215 * ftfont.c (ftfont_list): Move misplaced #endif.
19217 2008-02-01 Kenichi Handa <handa@m17n.org>
19219 * ftfont.c (ftfont_list): Pay attention to the case that
19220 FC_CAPABILITY is not defined.
19222 2008-02-01 Kenichi Handa <handa@m17n.org>
19224 * xftfont.c (xftfont_open): Set charset related members to -1.
19226 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19228 (ftfont_open): Set charset related members to -1.
19230 * fontset.c (Votf_script_alist): New variable.
19231 (syms_of_fontset): Initialize it.
19232 (fontset_font): Delete unused variable.
19234 * fontset.h (Votf_script_alist): Extern it.
19236 * font.c (font_find_for_lface): Optimize code.
19238 * font.h (font_close_object, font_merge_old_spec): Extern them.
19240 2008-02-01 Kenichi Handa <handa@m17n.org>
19242 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19243 (syms_of_font): Initialize them.
19244 (font_pixel_size): Allow float value in dpi.
19245 (font_prop_validate_type): Delete.
19246 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19248 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19249 (font_prop_validate_extra): Delete.
19250 (font_prop_validate_spacing): New function.
19251 (font_property_table): Add elements for all known properties.
19252 (get_font_prop_index): Rename from check_font_prop_name. New
19253 argument FROM. Change caller.
19254 (font_prop_validate): Validate all known properties.
19255 (font_put_extra): Delete argument force. Change caller.
19256 (font_expand_wildcards): Make it static. Fix the way of shrinking
19257 the possible range.
19258 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19259 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19261 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19262 (font_parse_fcname): Delete argument merge. Fix parsing of point
19263 size. Don't validate properties values here. Change caller.
19264 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19265 (font_open_by_name): Delete unused variable.
19266 (Ffont_spec): Likewise. Validate property values.
19267 (Ffont_match_p): New function.
19269 * font.h (QCscalable): Extern it.
19270 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19272 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19274 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19275 (xfont_list_pattern): New function.
19276 (xfont_list): Use xfont_list_pattern.
19278 2008-02-01 Kenichi Handa <handa@m17n.org>
19280 * font.h (Flist_fonts): EXFUN it.
19282 2008-02-01 Jason Rumney <jasonr@gnu.org>
19284 * w32term.c (w32_initialize): Add back smoothing_type and
19285 smoothing_enabled definitions.
19287 2008-02-01 Kenichi Handa <handa@m17n.org>
19289 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19290 s->face->font on determining underline position.
19292 2008-02-01 Kenichi Handa <handa@m17n.org>
19294 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19295 (font_has_char): Accept font-object too.
19296 (font_find_for_lface): Try at first with a size specified in face.
19298 2008-02-01 Kenichi Handa <handa@m17n.org>
19300 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19303 2008-02-01 Kenichi Handa <handa@m17n.org>
19305 * font.h (QCspacing, QCdpi): Extern them.
19306 (enum font_spacing): New enum.
19307 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19309 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19310 (QCspacing, QCdpi): New variables.
19311 (syms_of_font): Initialize them.
19312 (font_pixel_size): New function.
19313 (font_put_extra): New function.
19314 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19316 (font_parse_fcname): Handle enumerated values (e.g. bold).
19317 Fix handling font size. Add QCname property that contains only
19318 unknown properties.
19319 (font_score): Change argument. Change caller. Pay attention to
19320 FONT_PIXEL_SIZE_QUANTUM.
19321 (font_sort_entites, font_list_entities, font_find_for_lface)
19322 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19323 (Ffont_spec): Add QCname property that contains only unknown properties.
19325 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19326 include weight in listing pattern, instead check weight of each
19327 listed font. Don't include scalable in pattern. Pay attention to
19328 FONT_PIXEL_SIZE_QUANTUM.
19330 2008-02-01 Kenichi Handa <handa@m17n.org>
19332 * font.c (font_parse_fcname): Fix parsing of point-size.
19333 (font_unparse_fcname): Produce symbolic names for style properties.
19334 (font_list_entities): Handle float size correctly.
19335 (font_open_by_name): Prefer `normal' property values if the name
19336 doesn't specify them.
19338 * fontset.c (Finternal_char_font): Use font_get_name, not
19341 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19342 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19343 pattern. Don't force scalable.
19345 * xftfont.c (xftfont_open): For generating a name, start from
19348 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19350 * frame.h (x_new_fontset2): Fix prototype.
19352 2008-02-01 Kenichi Handa <handa@m17n.org>
19354 * font.h (struct font_driver): Delete member parse_name.
19355 (font_match_p, font_get_spec, font_parse_fcname)
19356 (font_unparse_fcname): Extern them.
19357 (font_get_name): Adjust prototype.
19359 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19360 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19361 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19362 unnecessary checks for weight, slant, and swidth.
19363 (font_parse_fcname): New function.
19364 (font_unparse_fcname): New function.
19365 (font_parse_name): New function.
19366 (font_match_p): New function.
19367 (font_get_name): Change return value to Lisp string.
19368 (font_get_spec): New function.
19369 (Qunspecified, Qignore_defface): Don't extern them.
19370 (font_find_for_lface): Assume that LFACE is fully specified.
19371 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19372 object, use it for FACE.
19373 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19374 driver->parse_name.
19375 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19377 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19380 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19381 argument F. Don't call Fnew_fontset. Instead, directly call
19384 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19386 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19389 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19390 (Qsans__serif): New variables.
19391 (ftfont_generic_family_list): New variable.
19392 (syms_of_ftfont): Initialize the above variables.
19393 (ftfont_pattern_entity): Delete argument NAME.
19394 (ftfont_list_generic_family): New function.
19395 (ftfont_parse_name): Delete this function.
19396 (ftfont_list): Try generic family only when FcFontList found no font.
19397 (ftfont_list_family): Fix args to FcObjectSetBuild.
19399 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19400 object in attrs[LFACE_FONT_INDEX].
19401 (set_lface_from_font_name): Cancel all changes for font-backend.
19402 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19404 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19405 font object in QCfont attribute.
19406 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19407 (realize_default_face) [USE_FONT_BACKEND]: Call
19408 set_lface_from_font_and_fontset.
19410 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19411 "fixed", and signal error here if no suitable font was found.
19413 * xfont.c (xfont_parse_name): Delete this function.
19415 * xftfont.c (xftfont_open): Change coding style of error
19416 handling. Generate fontconfig's fontname pattern.
19418 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19419 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19421 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19422 Both args FONTSET and FONT_OBJECT must be existing ones.
19424 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19426 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19428 2008-02-01 Kenichi Handa <handa@m17n.org>
19430 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19432 * font.h (struct font): Fix typo.
19434 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19436 (enum xlfd_field_mask): New enum.
19437 (intern_font_field): Changed argument. Change caller. If digits
19438 are followed by non-digits, return a symbol.
19439 (font_expand_wildcards): New function.
19440 (font_parse_xlfd): Fix wildcard handling.
19441 (Ffont_spec): If :name is specified, reflect the info in the other
19444 * ftfont.c (ftfont_pattern_entity): Fix typo.
19445 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19448 2008-02-01 Kenichi Handa <handa@m17n.org>
19450 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19452 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19453 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19454 registry doesn't specify encoding part.
19455 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19456 (font_open_by_name): At first try parsing the name.
19457 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19460 * fontset.c (reorder_font_vector): Pay attention to the case that
19461 the 3rd element of font_def is nil.
19462 (fontset_font): For the default fontset, append one more fontset
19463 elements for a script-based font specification. Don't add script
19464 attribute on finding a font.
19465 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19467 (fontset_ascii_font): If a font can't be opened, return nil.
19469 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19470 (ftfont_pattern_entity): New function.
19471 (ftfont_get_cache): Assume that freetype_font_cache is already
19473 (ftfont_list): Handle the case that a file is specified in font
19474 name. Use ftfont_pattern_entity to generate entities.
19475 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19476 (syms_of_ftfont): Initialize freetype_font_cache.
19478 * xftfont.c (xftfont_open): Make the font name fontconfig's
19479 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19480 (xftfont_close): Free font->font.name if not NULL.
19482 * xfont.c (xfont_list): If script is specified for a font, return
19484 (xfont_list_family): Declare argument type.
19486 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19487 name, set LFACE_FONT (lface) to nil.
19489 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19492 2008-02-01 Kenichi Handa <handa@m17n.org>
19494 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19495 (standard_args): Add "-enable-font-backend".
19497 2008-02-01 Kenichi Handa <handa@m17n.org>
19499 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19500 (struct xftdraw_list, xftdraw_list): Delete them.
19501 (register_xftdraw, check_xftdraw): Delete them.
19502 (xftfont_prepare_face): Don't call register_xftdraw.
19503 (xftfont_done_face): Don't call check_xftdraw.
19504 (xftfont_draw): Get background color only when with_background is
19507 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19509 2008-02-01 Kenichi Handa <handa@m17n.org>
19511 These changes are for the new font handling codes.
19513 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19514 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19515 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19516 (FONTSRC, FONTOBJ): New variables.
19517 (obj): Add $(FONTOBJ).
19518 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19519 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19521 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19522 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19524 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19526 * character.h (Vscript_representative_chars): Extern it.
19528 * character.c (Vscript_representative_chars): New variable.
19529 (syms_of_character): Declare it as a Lisp variable.
19531 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19532 enable_font_backend is nonzero, accept the composition method
19533 COMPOSITION_WITH_GLYPH_STRING.
19535 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19536 enumeration COMPOSITION_WITH_GLYPH_STRING.
19538 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19539 members clip_x, clip_y, clip_width, and clip_height.
19540 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19542 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19543 --enable-font-backend. Call syms_of_font.
19545 * fns.c (assoc_no_quit): New function.
19547 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19548 (face_for_font, new_fontset_from_font)
19549 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19551 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19552 (fontset_font, fontset_ascii, face_for_char)
19553 (make_fontset_for_ascii_face, Ffont_info)
19554 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19555 is nonzero, use font-backend mechanism.
19556 (find_font_encoding): Make it non-static.
19557 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19560 * frame.h (struct frame): New members resx and resy.
19561 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19562 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19564 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19565 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19567 * lisp.h (assoc_no_quit): Extern it.
19569 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19570 Through out the file, use FONT_INFO_FROM_FACE instead of
19571 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19572 rif->per_char_metric.
19573 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19574 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19575 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19576 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19577 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19578 nonzero, use font-backend mechanism.
19579 (get_per_char_metric): New function.
19581 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19582 (set_lface_from_font_name)
19583 (set_font_frame_param, free_realized_face)
19584 (prepare_face_for_display, clear_face_gcs)
19585 (Finternal_set_font_selection_order, realize_x_face)
19586 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19587 font-backend mechanism.
19588 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19589 (load_face_font) [USE_FONT_BACKEND]: Abort.
19590 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19591 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19593 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19594 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19595 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19596 nonzero, register all available font drivers. Call
19597 x_default_font_parameter for deciding a font.
19598 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19600 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19601 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19602 (x_set_glyph_string_clipping_exactly)
19603 (x_compute_glyph_string_overhangs)
19604 (x_draw_glyph_string_foreground)
19605 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19606 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19607 enable_font_backend is nonzero, use font-backend mechanism.
19608 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19610 2008-02-01 Kenichi Handa <handa@m17n.org>
19612 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19614 (syms_of_coding): Initialize system_eol_type.
19616 * process.c (Fset_process_coding_system): Inherit system's eol
19617 format if necessary.
19619 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19621 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19623 2008-02-01 Kenichi Handa <handa@m17n.org>
19625 * coding.c (decode_eol): Pay attention to buffer relocation in
19627 (decode_coding): Call decode_eol before restoring undo_list.
19629 2008-02-01 Kenichi Handa <handa@m17n.org>
19631 * charset.c (Fdefine_charset_internal): Fix setting of
19634 2008-02-01 Kenichi Handa <handa@m17n.org>
19636 * keyboard.c (read_char): Check if C is a character or not before
19637 looking up Vkeyboard_translate_table.
19639 2008-02-01 Kenichi Handa <handa@m17n.org>
19641 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19642 condition to terminate the loop.
19644 2008-02-01 Kenichi Handa <handa@m17n.org>
19646 * coding.c (produce_composition): Compare charbuf[i] instead of
19648 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19650 2008-02-01 Kenichi Handa <handa@m17n.org>
19652 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19653 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19654 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19656 (emacs_mule_char): Handle old style (Emacs 20) component character
19658 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19659 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19661 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19663 2008-02-01 Kenichi Handa <handa@m17n.org>
19665 * coding.c (encode_coding_ccl): Allocate destination dynamically
19668 2008-02-01 Kenichi Handa <handa@m17n.org>
19670 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19671 the loop. When quitted, show a proper error message.
19673 2008-02-01 Kenichi Handa <handa@m17n.org>
19675 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19676 src->clip_head and src->clip_tail temporarily instead of src->hl.
19678 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19679 character sequence.
19680 (Fccl_execute_on_string): Use ASET, not XSET.
19682 2008-02-01 Kenichi Handa <handa@m17n.org>
19684 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19686 2008-02-01 Kenichi Handa <handa@m17n.org>
19688 * coding.c (decode_coding): Fix the condition of terminating the
19691 2008-02-01 Kenichi Handa <handa@m17n.org>
19693 * data.c (Faset): On setting a character bigger than 255 in a
19694 unibyte string, signal an error instead of make the string multibyte.
19696 2008-02-01 Kenichi Handa <handa@m17n.org>
19698 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19699 made by a mapping table.
19701 2008-02-01 Kenichi Handa <handa@m17n.org>
19703 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19705 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19706 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19708 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19709 s->face is NULL or not.
19711 2008-02-01 Kenichi Handa <handa@m17n.org>
19713 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19714 (x_draw_glyph_string): Fix drawing of right_overhang and
19715 left_overhang around/on cursor.
19717 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19719 2008-02-01 Kenichi Handa <handa@m17n.org>
19721 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19723 2008-02-01 Kenichi Handa <handa@m17n.org>
19725 * coding.c (Fdefine_coding_system_internal)
19726 (Fdefine_coding_system_alias): Avoid a duplicated element in
19727 Vcoding_system_alist.
19729 2008-02-01 Kenichi Handa <handa@m17n.org>
19731 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19733 * coding.c (Qcoding_system_define_form): New variable.
19734 (syms_of_coding): Intern and staticpro it.
19735 (Fcoding_system_p): Check Qcoding_system_define_form.
19736 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19738 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19740 (CHECK_CODING_SYSTEM): If ID is not available, call
19741 Fcheck_coding_system.
19742 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19743 Try also Fcheck_coding_system.
19745 2008-02-01 Kenichi Handa <handa@m17n.org>
19747 * coding.c (code_conversion_restore): GCPRO arg.
19749 2008-02-01 Kenichi Handa <handa@m17n.org>
19751 * character.c (lisp_string_width): Check multibyteness of STRING.
19753 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19755 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19756 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19757 (decode_mac_font_name): Use decode_coding_c_string instead of
19759 (x_load_font): Initialize fontp->fontset to -1. Set
19760 fontp->encoding_type.
19762 2008-02-01 Kenichi Handa <handa@m17n.org>
19764 * search.c (search_buffer): Give up BM search on case-fold-search
19765 if one of a target character has a case-equivalence of different
19766 byte length even if that target charcter is an ASCII.
19767 (simple_search): Fix calculation of byte length of matched text.
19768 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19770 2008-02-01 Kenichi Handa <handa@m17n.org>
19772 * coding.c (decode_coding): Fix handling of invalid bytes.
19774 2008-02-01 Kenichi Handa <handa@m17n.org>
19776 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19777 Unicode characters.
19779 2008-02-01 Kenichi Handa <handa@m17n.org>
19781 * coding.c (encode_coding_object): If a pre-write-conversion
19782 function makes a new buffer, kill it.
19784 2008-02-01 Kenichi Handa <handa@m17n.org>
19786 * coding.c (QCascii_compatible_p): New variable.
19787 (syms_of_coding): Initialize it.
19788 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19789 calling string_char.
19790 (record_conversion_result): Add `default:' case.
19791 (coding_charset_list): Delete unused variable `coding_type'.
19792 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19793 property in the plist of the coding system.
19794 (Fcoding_system_put): Check QCascii_compatible_p.
19796 2008-02-01 Miles Bader <miles@gnu.org>
19798 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19799 removed calculation of frame `f', as it's now used.
19801 2008-02-01 Kenichi Handa <handa@m17n.org>
19803 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19804 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19805 (UNIDATA): New variable.
19806 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19807 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19808 $(RUN_TEMACS) unconditionally.
19810 2008-02-01 Kenichi Handa <handa@m17n.org>
19812 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19813 (admindir): New variable.
19814 ($(lispsource)international/charprop.el): New target.
19816 2008-02-01 Miles Bader <miles@gnu.org>
19818 * character.c (chars-in-region): Remove obsolete function.
19819 (syms_of_character): Remove its initialization.
19821 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19823 * w32select.c (validate_coding_system)
19824 (setup_windows_coding_system): New functions.
19825 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19826 setup_windows_coding_system.
19827 (setup_config, Fw32_get_clipboard_data): Use
19828 validate_coding_system.
19829 (Fx_selection_exists): Move call to setup_config to a place
19830 where signals are allowed.
19832 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19833 (Fcheck_coding_system): Add declarations.
19835 2008-02-01 Kenichi Handa <handa@m17n.org>
19837 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19839 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19841 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19842 string as the second argument for x_new_fontset.
19844 2008-02-01 Kenichi Handa <handa@m17n.org>
19846 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19847 (encode_coding_object): Use safe_call instead of call2.
19849 2008-02-01 Kenichi Handa <handa@m17n.org>
19851 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19853 * Makefile.in (lisp): Include charprop.el.
19855 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19857 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19858 Not sure if it's unnecessary.
19860 2008-02-01 Steven Tamm <steventamm@mac.com>
19862 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19863 some possibly unnecessary fontset checking code that crashed
19864 when creating a new frame.
19866 2008-02-01 Kenichi Handa <handa@m17n.org>
19868 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19871 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19873 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19875 2008-02-01 Kenichi Handa <handa@m17n.org>
19877 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19878 (coding_charset_list): New function.
19880 * coding.h (coding_charset_list): Extern it.
19882 2008-02-01 Kenichi Handa <handa@m17n.org>
19884 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19885 concatenation of family and registry.
19887 2008-02-01 Kenichi Handa <handa@m17n.org>
19889 * character.h (BYTE8_STRING): Fix typo.
19891 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19892 string to multibyte (sync to HEAD).
19894 * casefiddle.c (casify_region): Handle changes in byte-length
19895 using replace_range_2 (sync to HEAD).
19897 2008-02-01 Andreas Schwab <schwab@suse.de>
19899 * chartab.c (map_char_table): GCPRO table and arg.
19901 2008-02-01 Kenichi Handa <handa@m17n.org>
19903 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19906 2008-02-01 Kenichi Handa <handa@m17n.org>
19908 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19909 instead of fast_c_string_match_ignore_case.
19910 (find_font_encoding): Change argument to Lisp_Object. Use
19911 fast_string_match_ignore_case instead of
19912 fast_c_string_match_ignore_case. Change caller.
19914 2008-02-01 Kenichi Handa <handa@m17n.org>
19916 * xdisp.c (get_next_display_element): In unibyte case, decide to
19917 display in octal form by checking a character by
19918 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19920 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19922 * character.c (unibyte_has_multibyte_table): New variable.
19924 * character.h (unibyte_has_multibyte_table): Extern it.
19925 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19927 2008-02-01 Kenichi Handa <handa@m17n.org>
19929 * coding.c (encode_coding_iso_2022): Fix handling of charset
19932 2008-02-01 Kenichi Handa <handa@m17n.org>
19934 * coding.c (setup_coding_system): If coding_system is nil, use
19936 (Fterminal_coding_system): Return nil if terminal coding system is
19938 (syms_of_coding): Define coding-system `undecided' here. Setup
19939 terminal_coding as `undecided'.
19941 2008-02-01 Kenichi Handa <handa@m17n.org>
19943 * xdisp.c (message_dolog, set_message_1): Call
19944 unibyte_char_to_multibyte with arg type int.
19946 * lread.c (read1): Fix reading of a char-table.
19948 * print.c (print_object): Include sub char-table in circularities
19951 2008-02-01 Kenichi Handa <handa@m17n.org>
19953 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19954 Append the found sequences in car of ARGS instead of prepending.
19956 2008-02-01 Kenichi Handa <handa@m17n.org>
19958 * fileio.c (report_file_error): Make a unibyte string from
19959 strerror (errorno).
19960 (Fsubstitute_in_file_name): Fix the arg to
19961 unibyte_char_to_multibyte. It is evaluated twice.
19963 2008-02-01 Kenichi Handa <handa@m17n.org>
19965 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19967 2008-02-01 Kenichi Handa <handa@m17n.org>
19969 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19971 (detect_coding, detect_coding_system): Optimization for ISO-2022
19972 when no 8-bit data is found.
19974 2008-02-01 Jason Rumney <jasonr@gnu.org>
19976 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19978 2008-02-01 Kenichi Handa <handa@m17n.org>
19980 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19983 2008-02-01 Steven Tamm <steventamm@mac.com>
19985 * macterm.c (mac_encode_char): Add charset argument and update
19986 to use encoding_type.
19987 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19988 switch to pure fontset.
19989 (decode_mac_font_name): Temporarily remove decoding.
19990 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19991 (x_load_font): Temporarily remove encoding.
19993 2008-02-01 Kenichi Handa <handa@m17n.org>
19995 * xfaces.c (Fface_font): If frame is not on a window system,
19996 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19997 refer to face->font.
19998 (split_font_name_into_vector, build_font_name_from_vector)
19999 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20000 when HAVE_WINDOW_SYSTEM is defined.
20002 2008-02-01 Kenichi Handa <handa@m17n.org>
20004 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20005 (x_produce_glyphs): Fix setting of members of cmp in case
20006 cmp->glyph_len is zero.
20008 * fontset.c (Fset_fontset_font): Fix docstring.
20009 (Ffontset_info): Make it backward compatible. New arg ALL.
20011 2008-02-01 Kim F. Storm <storm@cua.dk>
20013 * process.c (read_process_output): Grow decoding_buf when needed;
20014 this could cause a crash in allocate_string and compact_small_strings.
20016 2008-02-01 Kenichi Handa <handa@m17n.org>
20018 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20020 2008-02-01 Kenichi Handa <handa@m17n.org>
20022 * coding.c (setup_coding_system): Set coding->common_flags
20023 correctly for raw-text.
20024 (consume_chars): On encoding unibyte text by raw-text, don't check
20026 (encode_coding): On encoding by raw-text, never use translation tables.
20028 * fileio.c (e_write): Short cut for the case of no encoding.
20030 2008-02-01 Kenichi Handa <handa@m17n.org>
20032 * coding.c (detect_coding, detect_coding_system): Delete unused
20035 2008-02-01 Kenichi Handa <handa@m17n.org>
20037 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20038 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20040 2008-02-01 Kenichi Handa <handa@m17n.org>
20042 * coding.c (Ffind_coding_systems_region_internal): Include
20043 raw-text and no-conversion in the result.
20045 2008-02-01 Kenichi Handa <handa@m17n.org>
20047 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20048 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20050 (font_def_arg, add_arg, from_arg, to_arg): New args.
20051 (set_fontset_font): Change argument.
20052 (Fset_fontset_font): Fix for the case that TARGET is a script
20053 name and charset name.
20054 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20056 2008-02-01 Kenichi Handa <handa@m17n.org>
20058 * fontset.c (fontset_font): Rename from fontset_face. Change return
20060 (face_suitable_for_char_p, face_for_char): Adjust for the change
20062 (make_fontset_for_ascii_face): Fix setting of the fontset element
20064 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20065 to get a font name.
20066 (Ffontset_info): Adjust for the change of fontset_font.
20068 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20070 * character.h (LEADING_CODE_LATIN_1_MIN)
20071 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20073 2008-02-01 Kenichi Handa <handa@m17n.org>
20075 * editfns.c (check_translation): New function.
20076 (Ftranslate_region_internal): Handle M:N mapping.
20078 2008-02-01 Kenichi Handa <handa@m17n.org>
20080 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20082 2008-02-01 Kenichi Handa <handa@m17n.org>
20084 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20086 (decode_coding_iso_2022): Fix handling of invalid designation.
20088 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20089 after calling code_conversion_save.
20091 2008-02-01 Kenichi Handa <handa@m17n.org>
20093 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20095 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20097 * fontset.c: Include "intervals.h".
20098 (fontset_face): Fix comparing of Lisp_Objects.
20099 (free_face_fontset, new_fontset_from_font_name): Fix
20100 Lisp_Object/int mixup.
20102 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20104 * coding.c: Add many prototypes for static functions.
20105 (get_translation_table): Allow max_lookup to be NULL.
20106 (decode_coding, Ffind_coding_systems_region_internal)
20107 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20108 get_translation_table with max_lookup NULL.
20110 2008-02-01 Kenichi Handa <handa@m17n.org>
20112 * coding.c (get_translation_table): Declare it as Lisp_Object.
20113 (LOOKUP_TRANSLATION_TABLE): New macro.
20114 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20115 instead of CHAR_TABLE_REF.
20117 2008-02-01 Kenichi Handa <handa@m17n.org>
20119 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20120 annotation data format.
20121 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20122 Change arguments FROM and TO to single argument NCHARS. Change caller.
20123 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20124 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20125 (decode_coding_ccl, decode_coding_charset): Pay attention to
20126 coding->charbuf_used.
20127 (get_translation): New function.
20128 (produce_chars): New arguments translation_table and last_block.
20129 Translate characters here. Return number of carryover chars.
20131 (produce_composition): New argument pos. Change caller.
20132 Adjust for the change of annotation data format.
20133 (produce_charset, produce_annotation): Likewise.
20134 (decode_coding, encode_coding): Don't call translate_chars.
20135 (consume_chars): New arg translation_table. Change caller.
20136 (translate_chars): Delete.
20137 (syms_of_coding): Make translation-table's number of extra slots 2.
20139 2008-02-01 Kenichi Handa <handa@m17n.org>
20141 * search.c (simple_search): Fix setting this_pos_byte in backward
20144 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20146 (detect_coding_ccl): Fix setting of the variable valids.
20148 2008-02-01 Kenichi Handa <handa@m17n.org>
20150 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20152 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20154 * editfns.c (Ftranslate_region_internal): Rename from
20155 Ftranslate_region. Accept a char-table in TABLE.
20156 (syms_of_editfns): Defsubr Stranslate_region_internal.
20158 * xfaces.c (set_lface_from_font_name): If a font is specified for
20159 a frame, generate a fontset from the font.
20160 (build_scalable_font_name): If the scalable font is requested for
20161 a specific size, don't change that size.
20162 (try_font_list): Try a scalable font also in the case that a
20163 pattern string is specified.
20165 2008-02-01 Kenichi Handa <handa@m17n.org>
20167 * xfaces.c (Fface_font): New optional arg CHARACTER.
20169 2008-02-01 Kenichi Handa <handa@m17n.org>
20171 * charset.h (CHARSET_OFFSET): New macro.
20173 2008-02-01 Kenichi Handa <handa@m17n.org>
20175 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20177 * fontset.c (fontset_face): Handle the case that repertory is a
20179 (find_font_encoding): Return nil for unknown encoding.
20180 (Fset_fontset_font): Ignore a font of unknown encoding.
20182 2008-02-01 Kenichi Handa <handa@m17n.org>
20184 * keymap.c (describe_vector): Handle default value of a char table.
20186 * fontset.c (fontset_face): Handle fallback fonts correctly.
20187 (Ffontset_info): Return infomation about fallback fonts.
20189 2008-02-01 Kenichi Handa <handa@m17n.org>
20191 * fontset.c (FONTSET_DEFAULT): New macro.
20192 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20193 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20194 the case that it is nil.
20195 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20196 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20198 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20199 subset or superset.
20201 2008-02-01 Kenichi Handa <handa@m17n.org>
20203 * emacs.c (main): Call init_charset after syms_of_XXX.
20205 * charset.c (Vcharset_map_directory): Delete.
20206 (Vcharset_map_path): New variable.
20207 (load_charset_map_from_file): Use Vcharset_map_path instead.
20208 (init_charset): Initialize Vcharset_map_path.
20209 (syms_of_charset): Delete declaration of "charset-map-directory",
20210 add declaration of "charset-map-path".
20212 2008-02-01 Kenichi Handa <handa@m17n.org>
20214 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20217 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20219 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20220 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20222 2008-02-01 Kenichi Handa <handa@m17n.org>
20224 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20226 * coding.c (QCmnemonic, QCdefalut_char)
20227 (QCdecode_translation_table, QCencode_translation_table)
20228 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20229 (get_translation_table): Return a list of translation tables if
20231 (decode_coding): Call get_translation_table with ENCODEP 0.
20232 (char_encodable_p): If translation_table is non-nil, always call
20234 (Fdefine_coding_system_internal): Accept list of translation
20235 tables as :encode-translation-table and :decode-translation-table.
20236 (Fcoding_system_put): New function.
20237 (syms_of_coding): Declare new symbols. Defsubr
20238 Scoding_system_put.
20239 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20240 typically JISX0212.
20242 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20243 when the charset is superset type.
20245 * character.c (translate_char): Accept list of translation tables.
20247 2008-02-01 Kenichi Handa <handa@m17n.org>
20249 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20250 (CODING_ATTR_TRANS_TBL): New macro.
20252 * coding.c (get_translation_table): New function.
20253 (translate_chars): Fix the bug of skipping annotation data.
20254 (decode_coding, encode_coding): Utilize get_translation_table.
20255 (char_encodable_p, Funencodable_char_position): Translate char if
20257 (Ffind_coding_systems_region_internal)
20258 (Fcheck_coding_systems_region): Setup translation table for encode
20259 in a coding system attribute vector in advance.
20260 (Fdefine_coding_system_internal): Allow a symbol as translation
20261 table. For shift-jis type coding system, allow 4th charset.
20263 2008-02-01 Kenichi Handa <handa@m17n.org>
20265 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20267 * xdisp.c (get_next_display_element): Pass -1 as POS to
20268 FACE_FOR_CHAR if displaying a C-string.
20270 2008-02-01 Kenichi Handa <handa@m17n.org>
20272 * composite.c (get_composition_id): Handle xoff and yoff in a
20275 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20276 (struct composition): New member lbearing and rbearing.
20278 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20279 (x_get_glyph_overhangs): Handle a composition glyph.
20280 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20282 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20285 2008-02-01 Kenichi Handa <handa@m17n.org>
20287 * print.c: Include charset.h.
20288 (Vprint_charset_text_property): New variable.
20289 (Qdefault): Extern it.
20290 (PRINT_STRING_NON_CHARSET_FOUND)
20291 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20292 (print_check_string_result): New variable.
20293 (print_check_string_charset_prop): New function.
20294 (print_prune_charset_plist): New variable.
20295 (print_prune_string_charset): New function.
20296 (print_object): Call print_prune_string_charset if
20297 Vprint_charset_text_property is not t.
20298 (print_interval): Print nothing if interval->plist is nil.
20299 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20300 variable. Init and staticpro print_prune_charset_plist.
20302 2008-02-01 Kenichi Handa <handa@m17n.org>
20304 * fontset.c (new_fontset_from_font_name): Use the specified font
20305 for all characters in the new fontset.
20307 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20310 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20311 OBJECT args for composition too.
20313 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20316 2008-02-01 Kenichi Handa <handa@m17n.org>
20318 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20320 * fontset.c (reorder_font_vector): Adjust for the change of
20322 (fontset_face): New arg id. Change caller.
20323 (face_for_char): New args pos and object.
20324 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20325 (fs_query_fontset): Check NAME by Fassoc too.
20326 (Fset_fontset_font): Allow non-XLFD font name.
20327 (Ffontset_info): Adjust for the change of FONT_DEF format.
20329 * fontset.h (face_for_char): Adjust prototype.
20331 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20332 (append_space, extend_face_to_end_of_line)
20333 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20334 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20336 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20337 POS and OBJECT args.
20339 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20340 POS and OBJECT args.
20342 2008-02-01 Jason Rumney <jasonr@gnu.org>
20344 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20345 of GlobalAlloc'ed memory.
20347 2008-02-01 Kenichi Handa <handa@m17n.org>
20349 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20351 * charset.h (charset_table_used): Delete extern.
20353 * charset.c (charset_table_used): Make it static.
20354 (map_charset_chars): Fix args to c_function with.
20356 * chartab.c (map_sub_char_table_for_charset): Fix args to
20359 * coding.h (enum coding_result_code): Delete
20360 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20362 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20363 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20364 (Vlast_code_conversion_error): New variables.
20365 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20366 (ONE_MORE_BYTE): Record error if any instead of signaling an
20367 error. If non-ASCII multibyte char is found, return the negative
20368 value of the code. All callers changed to check it.
20369 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20370 (record_conversion_result): New function. Change all codes setting
20371 coding->result to call this function.
20372 (detect_coding_utf_8, decode_coding_utf_8)
20373 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20374 Don't use the local variable incomplete.
20375 (emacs_mule_char): Change the second arg to `const'.
20376 (decode_coding): Fix of flushing out unprocessed data.
20377 (make_conversion_work_buffer): Fix making of a work buffer.
20378 (decode_coding_object): Return coding->dst_object.
20380 * fontset.c (set_fontset_font): Fix args.
20382 * lisp.h (CHARACTERBITS): Define as 22.
20384 * process.c (send_process): Be sure to set coding->src_multibyte.
20386 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20388 2008-02-01 Kenichi Handa <handa@m17n.org>
20390 * xdisp.c (handle_auto_composed_prop): Give limit to
20391 Fnext_single_char_property_change.
20393 2008-02-01 Kenichi Handa <handa@m17n.org>
20395 * composite.c (syms_of_composite): Don't make the composition hash
20398 * fontset.c (Fset_fontset_font): Fix docstring.
20400 * lisp.h (detect_coding_system): Adjust prototype.
20402 * fileio.c (kill_workbuf_unwind): Delete this function.
20403 (Finsert_file_contents): Adjust the call of detect_coding_system.
20404 Get conversion_buffer by code_conversion_save. Use the macro
20405 CODING_MAY_REQUIRE_DECODING. After decoding, update
20408 * coding.h (make_conversion_work_buffer): Delete extern.
20409 (code_conversion_save): Extern it.
20411 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20412 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20413 (decode_coding_utf_8): Don't do eol converion.
20414 (detect_coding_utf_16): Check coding->src_chars, not
20415 coding->src_bytes. Add heuristics for those that have no signature.
20416 (decode_coding_emacs_mule, decode_coding_iso_2022)
20417 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20418 Don't do eol converion.
20419 (adjust_coding_eol_type): Return a new coding system.
20420 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20421 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20423 (decode_coding): Pay attention to undo_list. Do eol conversion for
20424 all types of coding-systems (if necessary).
20425 (Vcode_conversion_work_buf_list): Delete it.
20426 (Vcode_conversion_reused_workbuf): Rename from
20427 Vcode_conversion_reused_work_buf.
20428 (Vcode_conversion_workbuf_name): New variable.
20429 (reused_workbuf_in_use): New variable.
20430 (make_conversion_work_buffer): Delete the arg DEPTH.
20431 (code_conversion_restore): Change argument to cons.
20432 (code_conversion_save): Delete the argument BUFFER. Change callers.
20433 (detect_coding_system): New argument src_chars. Change callers.
20434 Fix for utf-16 detection.
20435 (init_coding_once): Don't use ISO_carriage_return.
20436 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20437 reused_workbuf_in_use.
20439 2008-02-01 Kenichi Handa <handa@m17n.org>
20441 * keymap.c (store_in_keymap): Pay attention to the case that idx
20442 is a cons specifying a character range.
20444 2008-02-01 Kenichi Handa <handa@m17n.org>
20446 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20447 HANDLED_RECOMPUTE_PROPS.
20449 * coding.c (Fdefine_coding_system_internal): Fix checking of
20450 ascii compatibility.
20452 2008-02-01 Kenichi Handa <handa@m17n.org>
20454 * charset.c (find_charsets_in_text): Delete unused locale variable.
20455 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20457 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20458 Resync charset_list to Vemacs_mule_charset_list.
20460 * keymap.c (store_in_keymap): Pay attention to the case that idx
20461 is a cons specifying a character range.
20463 2008-02-01 Kenichi Handa <handa@m17n.org>
20465 * composite.c (update_compositions): Bind inhibit-read-only, etc
20466 to t before calling remove-list-of-text-properties.
20468 * print.c (print_object): Always print ASCII chars as is.
20470 2008-02-01 Kenichi Handa <handa@m17n.org>
20472 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20474 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20477 2008-02-01 Kenichi Handa <handa@m17n.org>
20479 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20481 2008-02-01 Kenichi Handa <handa@m17n.org>
20483 * xfaces.c (set_lface_from_font_name): Fix for the case that
20484 FONTNAME is not fontset name.
20486 2008-02-01 Kenichi Handa <handa@m17n.org>
20488 * fns.c (base64_encode_1): Fix previous change.
20490 2008-02-01 Kenichi Handa <handa@m17n.org>
20492 * fontset.c (set_fontset_font): New function.
20493 (Fset_fontset_font): If a font is specified for a charset, use
20494 map_charset_chars to store the font spec in a fontset.
20496 2008-02-01 Kenichi Handa <handa@m17n.org>
20498 * fontset.c (fontset_face): Create a fallback fontset on demand.
20499 (make_fontset): Don't create a fallback fontset here.
20500 (free_face_fontset): Free a fallback fontset (if any) too.
20501 (n_auto_fontsets): Delete this variable.
20502 (auto_fontset_alist): New variable.
20503 (new_fontset_from_font_name): Check auto_fontset_alist.
20504 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20505 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20506 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20507 Defsubr Sfontset_list_all.
20509 2008-02-01 Kenichi Handa <handa@m17n.org>
20511 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20513 2008-02-01 Kenichi Handa <handa@m17n.org>
20515 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20517 2008-02-01 Kenichi Handa <handa@m17n.org>
20519 * editfns.c (Fgoto_char): Fix docstring.
20521 2008-02-01 Kenichi Handa <handa@m17n.org>
20523 * insdel.c (insert_from_gap): Adjust intervals correctly.
20525 2008-02-01 Jason Rumney <jasonr@gnu.org>
20527 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20528 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20529 (w32_initialize): Try to load it.
20530 (x_get_font_repertory): Use it if available.
20531 (w32_encode_char): Add shortcut for unicode output.
20533 * w32fns.c (w32_load_system_font): Default charset to -1.
20534 (x_to_w32_charset): Match all fonts for unicode.
20535 (w32_to_x_charset): New parameter matching. Don't return partial
20536 or wildcard charsets.
20537 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20538 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20539 (w32_to_x_font): Match charset to real charset.
20540 (enum_font_cb2): Always list unicode versions.
20542 * makefile.w32-in (temacs): Increase EMHEAP.
20544 2008-02-01 Jason Rumney <jasonr@gnu.org>
20546 * w32term.c (w32_encode_char): New charset parameter.
20547 font_info.encoding becomes encoding_type.
20548 (x_get_font_repertory): New function. Warning: stub only!
20549 (x_new_font): Return quickly if font already set.
20550 (x_new_fontset): fontsetname parameter is Lisp_Object.
20551 Use new fs_query_fontset. Try new_fontset_from_font_name.
20552 Use fontset_name for return value.
20554 * w32term.h: Declare x_get_font_repertory.
20556 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20557 place of find_charset_in_text. Use encode_coding_object in place
20559 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20562 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20564 (w32_load_system_font): Initialize charset as unicode.
20565 font_info.encoding becomes encoding_type.
20566 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20567 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20568 (syms_of_w32fns): Set get_font_repertory_func.
20570 * w32console.c: Include character.h. Use terminal_encode_buffer
20572 (write_glyphs): Use new version of encode_terminal_code. Use
20573 encode_coding_object in place of encode_coding.
20575 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20576 encoding becomes encoding_type.
20578 * term.c (terminal_encode_buffer): Make externally visible.
20580 * makefile.w32-in: Add character.h dependancies.
20581 (character.o, chartab.o): New targets.
20583 2008-02-01 Kenichi Handa <handa@m17n.org>
20585 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20586 CODING_ID_EOL_TYPE.
20588 2008-02-01 Andreas Schwab <schwab@suse.de>
20590 * coding.c (produce_chars): Revert last change.
20592 2008-02-01 Kenichi Handa <handa@m17n.org>
20594 * charset.h (charset_unicode): Extern it.
20596 * charset.c (string_xstring_p): Check by (C >= 0x100).
20597 (find_charsets_in_text): Change format of the arc CHARSETS. New
20599 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20600 change of find_charsets_in_text.
20601 (Fsplit_char): Fix doc. Never return unknown.
20603 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20605 * coding.c (Fdefine_coding_system_alias): Update
20606 Vcoding_system_list.
20608 * fontset.c (load_font_get_repertory): Pay attention to the case
20609 that ENCODING of a font is specified by a char-table.
20611 * xterm.c (x_get_font_repertory): Handle the case that the
20612 encoding of font is other than Unicode.
20614 2008-02-01 Kenichi Handa <handa@m17n.org>
20616 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20617 if a character is encodable by the terminal coding system. If
20618 not, produces proper number of `?'s. Update
20619 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20620 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20622 2008-02-01 Kenichi Handa <handa@m17n.org>
20624 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20626 (encode_terminal_code): Change argument. Encode multiple
20627 characters at once. Store the result of encoding in
20628 terminal_encode_buffer.
20629 (write_glyphs, insert_glyphs): Adjust for the change of
20630 encode_terminal_code.
20631 (term_init): Initialize terminal_encode_buffer and
20632 terminal_encode_buf_size.
20634 * coding.c (consume_chars): If coding->src_object is nil, don't
20637 2008-02-01 Kenichi Handa <handa@m17n.org>
20639 * character.c (char_string): Use ASCII_CHAR_P instead of
20640 SINGLE_BYTE_CHAR_P.
20642 2008-02-01 Kenichi Handa <handa@m17n.org>
20644 * xdisp.c (handle_auto_composed_prop): Check if the last
20645 characters of auto-composed region is newly composed with the
20646 following characters.
20647 (handle_composition_prop): Fix checking of point being inside
20650 2008-02-01 Kenichi Handa <handa@m17n.org>
20652 * fns.c (concat): Don't change multibyteness of the result by
20653 concatenating an 8-bit character.
20655 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20656 multibyteness of the result when newelt is an 8-bit character.
20658 2008-02-01 Dave Love <fx@gnu.org>
20660 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20663 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20665 * xfaces.c (face_numeric_value): Declare dim size_t.
20666 (Finternal_lisp_face_equal_p): Remove unused f.
20668 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20669 (MATRIX_ROW): Remove unused vars.
20670 (draw_glyphs, x_insert_glyphs, fast_find_position)
20671 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20674 * regex.c (regex_compile): Remove unused var.
20676 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20678 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20679 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20681 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20683 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20685 * fileio.c (Fwrite_region): Remove unused var.
20687 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20688 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20690 * composite.c (Fremove_list_of_text_properties): Declare.
20692 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20693 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20694 (coding_inherit_eol_type): Remove unused attrs.
20695 (detect_coding): Cast arg of detect_eol.
20697 * charset.c (syms_of_charset): Remove unused var p.
20698 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20701 * casetab.c (set_case_table): Remove unused var.
20703 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20706 2008-02-01 Dave Love <fx@gnu.org>
20708 * xterm.c (x_bitmap_mask): Declare.
20710 2008-02-01 Dave Love <fx@gnu.org>
20712 * xterm.c (x_term_init): Fix type error.
20714 * lisp.h: Add Funibyte_char_to_multibyte.
20716 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20717 (Fset_coding_system_priority): Doc fix.
20719 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20721 * indent.c (check_composition): Make start and end EMACS_INT.
20723 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20725 * xdisp.c (handle_composition_prop, check_point_in_composition):
20726 Make buffer positions EMACS_INT.
20728 * composite.c (find_composition, run_composition_function)
20729 (update_compositions, Ffind_composition_internal): Make buffer
20730 positions EMACS_INT.
20732 * composite.h (find_composition, update_compositions): Make
20733 position args EMACS_INT.
20735 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20737 * intervals.c (get_property_and_range):
20738 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20740 * unexalpha.c: Don't include varargs.h.
20742 2008-02-01 Dave Love <fx@gnu.org>
20744 * coding.h (ENCODE_UTF_8): New.
20746 * Makefile.in (gtkutil.o): Depend on coding.h.
20748 * coding.c (Fset_coding_system_priority): Doc fix.
20750 2008-02-01 Kenichi Handa <handa@m17n.org>
20752 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20753 the case of auto saving.
20755 2008-02-01 Andreas Schwab <schwab@suse.de>
20757 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20760 2008-02-01 Kenichi Handa <handa@m17n.org>
20762 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20764 2008-02-01 Kenichi Handa <handa@m17n.org>
20766 * fileio.c (choose_write_coding_system): Return a decided coding system.
20767 (Fwrite_region): Set Vlast_coding_system_used to the return value
20768 of choose_write_coding_system.
20770 2008-02-01 Kenichi Handa <handa@m17n.org>
20772 * charset.c (Fset_charset_priority): Pay attention to duplicated
20775 * coding.c (QCcategory): New variable.
20776 (syms_of_coding): Defsym it. Set all elements of
20777 Vcoding_category_table and their symbol values.
20778 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20779 coding-category-XXX, and coding-category-list.
20780 (Fdefine_coding_system_internal): Add category in the plist.
20782 2008-02-01 Kenichi Handa <handa@m17n.org>
20784 * callproc.c (Fcall_process): Handle carryover correctly.
20786 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20787 (raw_text_coding_system): Check NILP (coding_system).
20788 (coding_inherit_eol_type): Check NILP (coding_system) and
20790 (consume_chars): Fix for the case of raw-text.
20792 * process.c (read_process_output): Handle carryover correctly.
20794 2008-02-01 Dave Love <fx@gnu.org>
20796 * regex.c (re_search_2): Fix last change.
20798 2008-02-01 Kenichi Handa <handa@m17n.org>
20800 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20801 target_multibyte. Even in a unibyte case, return a converted
20803 (GET_CHAR_AFTER): New macro.
20804 (PATFETCH): Translate via multibyte char.
20805 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20806 (SETUP_MULTIBYTE_RANGE): New macro.
20807 (regex_compile): Setup compiled code so that its multibyteness
20808 matches that of a target. Fix the handling of "[X-YZ]" using
20809 SETUP_MULTIBYTE_RANGE.
20810 (analyse_first) <charset>: For filling fastmap for all multibyte
20811 characters, don't check by BASE_LEADING_CODE_P.
20812 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20813 the same as RE_MULTIBYTE_P (bufp) now.
20814 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20815 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20816 (TRANSLATE_VIA_MULTIBYTE): New macro.
20817 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20818 It is the same as RE_MULTIBYTE_P (bufp) now.
20819 <exactn>: Translate via multibyte.
20820 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20822 <charset, charset_not>: Fetch a character by
20823 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20824 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20825 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20826 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20828 (bcmp_translate): Likewise.
20830 * search.c (compile_pattern): Check the member target_multibyte,
20831 not the member multibyte of buf.
20833 * lread.c (read1): While reading a string, set force_singlebyte
20834 and force_multibyte correctly.
20836 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20837 up of unibyte_to_multibyte_table.
20839 2008-02-01 Kenichi Handa <handa@m17n.org>
20841 * coding.c (setup_coding_system): If coding has
20842 post-read-conversion or pre-write-conversion, set
20843 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20845 (decode_coding_gap): Run post-read-conversion if any.
20847 * fileio.c (Finsert_file_contents): Even if we read into a
20848 unibyte buffer, check if we must decode the result or not.
20850 2008-02-01 Kenichi Handa <handa@m17n.org>
20852 * coding.c (make_conversion_work_buffer): Change the work buffer
20853 name to the same one as that of Emacs 21.
20855 2008-02-01 Kenichi Handa <handa@m17n.org>
20857 * coding.h (make_conversion_work_buffer): Adjust prototype.
20858 (code_conversion_restore): Don't extern it.
20860 * coding.c (detected_mask): Delete unused variable.
20861 (decode_coding_iso_2022): Pay attention to the byte sequence of
20862 CTEXT extended segment, and retain those bytes as is.
20863 (decode_coding_ccl): Delete unused variable `valids'.
20864 (setup_coding_system): Delete unused variable `category'.
20865 (consume_chars): Delete unused variable `category'. Make it work
20866 for non-multibyte case.
20867 (make_conversion_work_buffer): Change argument.
20868 (saved_coding): Delete unused variable.
20869 (code_conversion_restore): Don't check saved_coding->destination.
20870 (code_conversion_save): New function.
20871 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20872 instead of record_unwind_protect.
20873 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20874 (detect_coding_system): Delete unused variable `mask'.
20875 (Fdefine_coding_system_internal): Delete unused variable id.
20877 * fileio.c (kill_workbuf_unwind): New function.
20878 (Finsert_file_contents): On replacing, call
20879 make_conversion_work_buffer with correct args, and call
20880 record_unwind_protect with the first arg kill_workbuf_unwind.
20882 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20884 2008-02-01 Kenichi Handa <handa@m17n.org>
20886 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20887 (fontset_add): Fix for the case that TO is less than TO1.
20888 (Ffontset_info): Don't use fallback fontset on checking the
20890 (dump_fontset): New function for debugging.
20892 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20893 coding_type is Qcharset.
20895 2008-02-01 Kenichi Handa <handa@m17n.org>
20897 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20898 (map_char_table): Don't inherit the value from the parent on
20899 initializing VAL. Adjust for the above change.
20901 2008-02-01 Kenichi Handa <handa@m17n.org>
20903 * coding.c (Qsignature, Qendian): Delete these variables.
20904 (syms_of_coding): Don't initialize them.
20905 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20906 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20907 detect_info->found.
20908 (decode_coding_utf_16): Don't detect BOM here.
20909 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20910 is NOT utf_16_without_bom.
20911 (setup_coding_system): For a coding system of type utf-16, check
20912 if the attribute :endian is Qbig or not (not nil or not), and set
20913 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20914 (detect_coding): If coding type is utf-16 and BOM detection is
20915 required, detect it.
20916 (Fdefine_coding_system_internal): For a coding system of type
20917 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20919 2008-02-01 Kenichi Handa <handa@m17n.org>
20921 * coding.c (coding_set_source): Fix for the case that the current
20922 buffer is different from coding->src_object.
20923 (decode_coding_object): Don't use the conversion work buffer if
20924 DST_OBJECT is a buffer.
20926 2008-02-01 Dave Love <fx@gnu.org>
20928 * lread.c (read_emacs_mule_char) [len==2]: Index
20929 emacs_mule_charset correctly.
20931 2008-02-01 Dave Love <fx@gnu.org>
20933 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20934 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20935 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20936 treated specially.)
20937 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20938 (detected_mask): Remove Big5 bits.
20940 2008-02-01 Kenichi Handa <handa@m17n.org>
20942 The following changes are to make the font rescaling facility
20943 compatible with Emacs 21.
20945 * xfaces.c (Vface_font_rescale_alist): Rename from
20946 Vface_resizing_fonts.
20947 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20948 (font_rescale_ratio): Rename from font_resizing_ratio.
20949 (split_font_name): Set font->rescale_ratio.
20950 (better_font_p): Pay attention to font->rescale_ratio.
20951 (build_scalable_font_name): Likewise. Change RESX, and RESY
20953 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20955 2008-02-01 Kenichi Handa <handa@m17n.org>
20957 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20958 (Qutf_16_le): Remove these variables.
20959 (syms_of_coding): Don't DEFSYM them.
20960 (decode_coding_utf_16): Fix handling of BOM.
20961 (encode_coding_utf_16): Fix handling of BOM.
20963 2008-02-01 Kenichi Handa <handa@m17n.org>
20965 * fileio.c (Finsert_file_contents): On replacing, before decoding
20966 the file into the work buffer, set point of the work buffer to the end.
20968 2008-02-01 Dave Love <fx@gnu.org>
20970 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20972 2008-02-01 Dave Love <fx@gnu.org>
20974 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20977 2008-02-01 Kenichi Handa <handa@m17n.org>
20979 * xdisp.c (SKIP_GLYPHS): New macro.
20980 (set_cursor_from_row): Pay attention to string display properties.
20982 * category.c (copy_category_entry): Fix for the case that RANGE
20985 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20987 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20989 2008-02-01 Kenichi Handa <handa@m17n.org>
20991 * charset.c (Fcharset_id_internal): New function.
20992 (syms_of_charset): Defsubr it.
20994 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20995 with the last arg charset_list acquired from coding.
20996 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20997 the attribute coding_attr_ccl_valids.
20999 * coding.h (enum define_coding_ccl_arg_index): Set the first
21000 member coding_arg_ccl_decoder to coding_arg_max.
21002 * ccl.h (ccl_driver): Adjust prototype.
21004 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21005 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
21006 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
21007 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21010 2008-02-01 Kenichi Handa <handa@m17n.org>
21012 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21015 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21017 2008-02-01 Dave Love <fx@gnu.org>
21019 * composite.c (syms_of_composite): Make composition_hash_table weak.
21021 2008-02-01 Kenichi Handa <handa@m17n.org>
21023 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21024 (font_name_registry): Don't extern them.
21025 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21027 * fontset.h (Qfontset): Don't extern it.
21028 (new_fontset_from_font_name): Extern it.
21030 * fontset.c: Give 8 extra slots to fontset objects.
21031 (Qfontset_info): New variable.
21032 (syms_of_fontset): Defsym it.
21033 (FONTSET_FALLBACK): New macro.
21034 (fontset_face): Try also the default fontset.
21035 (make_fontset): Realize a fallback fontset from the default fontset.
21036 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21037 using split_font_name_into_vector and build_font_name_from_vector.
21038 (Fset_fontset_font): Access the elements of font_spec by enum
21039 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21040 name by using split_font_name_into_vector.
21041 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21042 generate a proper font name from the fontset name. Update
21043 Vfontset_alias_alist.
21044 (n_auto_fontsets): New variable.
21045 (new_fontset_from_font_name): New function.
21046 (Ffont_info): Store the information about fonts generated from the
21047 default fontset in the first extra slot of the returned char-table.
21049 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21050 (font_name_registry): Delete function.
21051 (split_font_name_into_vector): New function.
21052 (build_font_name_from_vector): New function.
21053 (font_list): The argument REGISTRY is now a list of registry names.
21054 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21055 specifies an explicit font name, return the name as is. Make a
21056 list of registy names.
21058 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21060 (Fx_create_frame): Don't call x_new_fontset here. Just use
21061 x_list_fonts to check the existence of fonts.
21063 * xterm.h (x_new_fontset): Adjust prototype.
21065 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21066 string. Use new_fontset_from_font_name to create a fontset from a
21069 2008-02-01 Kenichi Handa <handa@m17n.org>
21071 * syntax.c (Vfind_word_boundary_function_table): New name for
21072 Vnext_word_boundary_function_table.
21073 (find-word-boundary-function-table): New name for
21074 next-word-boundary-function-table.
21076 2008-02-01 Dave Love <fx@gnu.org>
21078 * Makefile.in: Fix some dependencies.
21080 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21081 set it to nil before returning.
21083 * composite.c (update_compositions): Fix type error.
21085 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21087 2008-02-01 Kenichi Handa <handa@m17n.org>
21089 * xterm.c (x_new_font): Optimize for the case that the font is
21090 already set for the frame.
21092 2008-02-01 Kenichi Handa <handa@m17n.org>
21094 * chartab.c (char_table_ascii): Check if the char table contents
21095 is sub-char-table or not.
21096 (char_table_set, char_table_set_range): Fix argument to
21099 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21100 (detect_coding_utf_8, detect_coding_utf_16)
21101 (detect_coding_emacs_mule, detect_coding_iso_2022)
21102 (detect_coding_sjis, detect_coding_big5)
21103 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21104 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21105 sequence is valid in this coding system. Change callers.
21106 (MAX_ANNOTATION_LENGTH): New macro.
21107 (ADD_ANNOTATION_DATA): New macro.
21108 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21109 ADD_ANNOTATION_DATA. Change the format of annotation data.
21110 (ADD_CHARSET_DATA): New macro.
21111 (emacs_mule_char): New argument ID. Change callers.
21112 (decode_coding_emacs_mule, decode_coding_iso_2022)
21113 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21114 Produce charset annotation data in coding->charbuf.
21115 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21116 to charset annotation data in coding->charbuf.
21117 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21118 coding->common_flags if the coding system is iso-2022 based and
21120 (produce_composition): Adjust for the new annotation data format.
21121 (produce_charset): New function.
21122 (produce_annotation): Handle charset annotation.
21123 (handle_composition_annotation, handle_charset_annotation): New
21125 (consume_chars): Handle charset annotation. Utilize the above two
21127 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21128 buffer, get the deleted text as a string and set
21129 coding->src_object to that string.
21130 (detect_coding, detect_coding_system): Use the new struct
21131 coding_detection_info.
21133 * coding.h (struct coding_detection_info): New structure.
21134 (struct coding_system): Adjust prototype of the member `detector'.
21135 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21137 2008-02-01 Kenichi Handa <handa@m17n.org>
21139 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21141 2008-02-01 Dave Love <fx@gnu.org>
21143 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21144 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21145 to new local and nullify apropos_accumulate before returning.
21146 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21148 2008-02-01 Kenichi Handa <handa@m17n.org>
21150 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21153 2008-02-01 Dave Love <fx@gnu.org>
21155 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21157 2008-02-01 Kenichi Handa <handa@m17n.org>
21159 The following changes are to make character composition happen
21160 automatically on displaying.
21162 * Makefile.in (lisp, shortlisp): Add composite.elc.
21164 * composite.h (Qauto_composed, Vauto_composition_function)
21165 (Qauto_composition_function): Extern them.
21167 * composite.c (Vcomposition_function_table)
21168 (Qcomposition_function_table): Delete variables.
21169 (Qauto_composed, Vauto_composition_function)
21170 (Qauto_composition_function): New variables.
21171 (run_composition_function): Don't call
21172 compose-chars-after-function.
21173 (update_compositions): Clear `auto-composed' text property.
21174 (compose_chars_in_text): Delete this function.
21175 (syms_of_composite): Staticpro Qauto_composed and
21176 Qauto_composition_function. Declare Vauto_composition_function as
21179 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21181 * xdisp.c (it_props): Add an entry for Qauto_composed.
21182 (handle_auto_composed_prop): New function.
21184 * xselect.c (selection_data_to_lisp_data): Don't call
21185 compose_chars_in_text.
21187 2008-02-01 Dave Love <fx@gnu.org>
21189 * keyboard.c (read_char): Modify checking around use of
21190 Vkeyboard_translate_table.
21192 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21195 2008-02-01 Kenichi Handa <handa@m17n.org>
21197 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21198 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21199 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21200 the case that the last byte is '\r' correctly.
21201 (decode_coding): Flush out the unprocessed data correctly.
21202 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21204 2008-02-01 Dave Love <fx@gnu.org>
21206 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21207 Add XK_ISO... case.
21208 (xaw_scroll_callback): Revert last change.
21210 2008-02-01 Kenichi Handa <handa@m17n.org>
21212 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21214 2008-02-01 Kenichi Handa <handa@m17n.org>
21216 * xfaces.c (Vface_resizing_fonts): New variable.
21217 (struct font_name): New member `resizing_ratio'.
21218 (font_resizing_ratio): New function.
21219 (split_font_name): Set font->resizing_ratio.
21220 (better_font_p): Pay attention to font->resizing_ratio.
21221 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21222 RESX, and RESY fields.
21223 (try_alternative_families): Try scalable fonts if
21224 Vscalable_fonts_allowed is not Qt.
21225 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21227 2008-02-01 Dave Love <fx@gnu.org>
21229 * xterm.c (xaw_scroll_callback): Cast correctly.
21231 2008-02-01 Dave Love <fx@gnu.org>
21233 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21234 (lispy_kana_keys): Comment out.
21235 (make_lispy_event) [XK_kana_A]: Comment out.
21237 * xterm.c (xaw_scroll_callback): Cast call_data.
21238 (XTread_socket): Deal with ASCII keysyms.
21239 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21241 2008-02-01 Dave Love <fx@gnu.org>
21243 * xterm.c (Vx_keysym_table): New.
21244 (syms_of_xterm): Initialize it.
21245 (XTread_socket): Use it.
21246 From head: Eliminate incorrect optimization that tried to avoid
21247 decoding the output of X*LookupString.
21248 (x_get_font_repertory): Delete charset declaration.
21250 2008-02-01 Kenichi Handa <handa@m17n.org>
21252 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21254 (Fdefine_coding_system_internal): Setup
21255 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21257 2008-02-01 Dave Love <fx@gnu.org>
21259 * coding.c (Fcheck_coding_system): Doc fix.
21261 * editfns.c (Finsert_byte): Return a proper value.
21263 2008-02-01 Kenichi Handa <handa@m17n.org>
21265 * coding.c (decode_coding): Fix args to translate_chars. Pay
21266 attention to Vstandard_translation_table_for_decode.
21267 (encode_coding): Fix args to translate_chars. Pay attention to
21268 Vstandard_translation_table_for_encode.
21270 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21271 SINGLE_BYTE_CHAR_P.
21273 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21274 not by SINGLE_BYTE_CHAR_P.
21276 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21277 SINGLE_BYTE_CHAR_P.
21279 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21280 SINGLE_BYTE_CHAR_P.
21282 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21283 by SINGLE_BYTE_CHAR_P.
21285 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21286 SINGLE_BYTE_CHAR_P.
21288 2008-02-01 Dave Love <fx@gnu.org>
21290 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21292 2008-02-01 Dave Love <fx@gnu.org>
21294 * fns.c (Flanginfo): Fix typo.
21296 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21298 2008-02-01 Kenichi Handa <handa@m17n.org>
21300 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21301 (detect_coding_emacs_mule, detect_coding_iso_2022)
21302 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21303 incomplete byte sequence. Don't update *mask when correctly detected.
21304 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21305 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21306 (detect_coding, detect_coding_system): Adjust for the changes above.
21308 2008-02-01 Kenichi Handa <handa@m17n.org>
21310 * character.c (char_string): Rename from
21311 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21312 (string_char): Rename from string_char.
21314 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21315 if C is greater than MAX_3_BYTE_CHAR.
21316 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21317 string_char instead of string_char_with_unification.
21319 2008-02-01 Dave Love <fx@gnu.org>
21321 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21323 2008-02-01 Kenichi Handa <handa@m17n.org>
21325 * keymap.c (push_key_description): Pay attention to force_multibyte.
21327 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21329 2008-02-01 Dave Love <fx@gnu.org>
21331 * charset.c (define_charset_internal): Rename `supprementary'.
21333 * Makefile.in (lisp, shortlisp): Remove latin-N.
21335 2008-02-01 Dave Love <fx@gnu.org>
21337 * xfns.c (x_window, x_window): Use use_xim.
21339 * xterm.c (use_xim): Initialize.
21340 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21341 (x_term_init): Maybe set use_xim.
21343 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21345 2008-02-01 Kenichi Handa <handa@m17n.org>
21347 * search.c (search_buffer): Fix case-fold-search of multibyte
21349 (boyer_moore): Rename the last argument to char_high_bits.
21351 2008-02-01 Kenichi Handa <handa@m17n.org>
21353 * xdisp.c (display_string): Fix for the case of zero width glyph.
21355 * xfns.c (x_set_font): Change the error message of the case that
21356 x_new_fontset returns Qt.
21358 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21359 (Finternal_set_lisp_face_attribute): Use signal_error for the
21360 error of invalid fontset.
21362 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21363 fontset, return Qt.
21365 2008-02-01 Dave Love <fx@gnu.org>
21367 * unexelf.c (unexec): Make .got handling not SGI-specific.
21369 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21371 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21373 * keyboard.c (read_key_sequence): Fix type error.
21375 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21378 * fontset.c (fontset_add): Return Lisp_Object.
21380 2008-02-01 Dave Love <fx@gnu.org>
21382 * charset.h (charset_ordered_list_tick): Declare extern.
21384 2008-02-01 Kenichi Handa <handa@m17n.org>
21386 The following changes (and some of 2008-02-01 changes of mine) are
21387 for handling syntax, category, and case conversion for unibyte
21388 characters by converting them to multibyte on the fly. With these
21389 changes, we don't have to setup syntax and case tables for unibyte
21390 characters in each language environment.
21392 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21393 multibyte if necessary.
21395 * bytecode.c (Fbyte_code): Likewise.
21397 * character.h (LEADING_CODE_LATIN_1_MIN)
21398 (LEADING_CODE_LATIN_1_MAX): New macros.
21399 (unibyte_to_multibyte_table): Extern it.
21400 (unibyte_char_to_multibyte): New macro.
21401 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21402 (CHAR_LEADING_CODE): New macro.
21403 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21405 * character.c (unibyte_to_multibyte_table): New variable.
21406 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21407 (multibyte_char_to_unibyte): If C is an eight-bit character,
21408 convert it to the corresponding byte value.
21410 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21411 not 1, signals an error. Update the elements of
21412 unibyte_to_multibyte_table.
21413 (init_charset_once): Initialize unibyte_to_multibyte_table.
21414 (syms_of_charset): Define the charset `iso-8859-1'.
21416 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21417 as is without converting it to unibyte. In a unibyte buffer,
21418 convert C to multibyte before checking the syntax.
21420 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21422 * minibuf.c (Fminibuffer_complete_word): Use the macro
21423 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21425 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21427 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21428 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21429 that is zero, convert an eight-bit char to multibyte.
21430 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21432 (PATFETCH): Convert an eight-bit char to multibyte.
21433 (HANDLE_UNIBYTE_RANGE): New macro.
21434 (regex_compile): Setup the compiled pattern for multibyte chars
21435 even if the given regex string is unibyte. Use PATFETCH_RAW
21436 instead of PATFETCH in many places. To handle `charset'
21437 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21438 only for ASCII chars.
21439 (analyse_first) <exactn>: Simplify because the compiled pattern
21441 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21442 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21443 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21444 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21445 multibyte always 1.
21446 (re_search_2): In emacs, set the locale variable multibyte to 1,
21447 otherwise to 0. New local variable target_multibyte. Check it
21448 to decide the multibyteness of STR1 and STR2. If
21449 target_multibyte is zero, convert unibyte chars to multibyte
21450 before translating and checking fastmap.
21451 (TARGET_CHAR_AND_LENGTH): New macro.
21452 (re_match_2_internal): In emacs, set the locale variable multibyte
21453 to 1, otherwise to 0. New local variable target_multibyte. Check
21454 it to decide the multibyteness of STR1 and STR2. Use
21455 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21456 <charset, charset_not>: If multibyte is nonzero, check fastmap
21457 only for ASCII chars. Call bcmp_translate with
21458 target_multibyte, not with multibyte.
21459 <begline>: Declare the local variable C as `unsigned'.
21460 (bcmp_translate): Change the last arg name to target_multibyte.
21462 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21463 the regexp pattern and the matching target. Set cp->buf.multibyte
21464 to the multibyteness of the regexp pattern. Set
21465 cp->but.target_multibyte to the multibyteness of the matching target.
21466 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21467 FETCH_STRING_CHAR_ADVANCE.
21468 (Freplace_match): Convert unibyte chars to multibyte.
21470 * syntax.c (char_quoted, back_comment, scan_words)
21471 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21472 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21473 unibyte chars to multibyte.
21474 (skip_chars): Delete the arg syntaxp, and move the code for
21475 handling syntaxes to skip_syntaxes. Change callers.
21476 Fix the case that the multibyteness of STRING and the current
21477 buffer doesn't match.
21478 (skip_syntaxes): New function.
21479 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21480 SINGLE_BYTE_CHAR_P.
21482 2008-02-01 Kenichi Handa <handa@m17n.org>
21484 * xfaces.c (QCfontset): New variable.
21485 (LFACE_FONTSET): New macro.
21486 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21487 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21488 (Finternal_set_lisp_face_attribute)
21489 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21490 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21491 check also LFACE_FONTSET_INDEX.
21492 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21493 attrs[LFACE_FONT_INDEX].
21494 (syms_of_xfaces): Intern and staticpro QCfontset.
21496 * dispextern.h (enum lface_attribute_index): New member
21497 LFACE_FONTSET_INDEX.
21499 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21501 2008-02-01 Kenichi Handa <handa@m17n.org>
21503 * coding.c (coding_set_destination): Fix coding->destination for
21504 the case converting a region.
21505 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21506 (encode_coding_object): Fix coding->dst_pos and
21507 coding->dst_pos_byte for the case converting a region.
21509 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21511 * character.h (BYTE8_STRING): New macro.
21513 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21515 2008-02-01 Kenichi Handa <handa@m17n.org>
21517 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21518 characters by octal form.
21520 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21522 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21523 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21524 _fetch_multibyte_char_len.
21525 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21527 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21529 * casefiddle.c (casify_object): Simplify. Handle the case that
21530 the case conversion change the byte length.
21531 (casify_region): Likewise.
21533 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21535 * character.c (_fetch_multibyte_char_len): Delete this variable.
21536 (syms_of_character): Setup Vprintable_chars.
21538 * editfns.c (Fchar_equal): Fix for the unibyte case.
21539 (Finsert_byte): New function.
21540 (syms_of_editfns): Defsubr it.
21542 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21543 of direct code 0x3ffff.
21545 * search.c (Freplace_match): Fix for the unibyte case.
21547 2008-02-01 Kenichi Handa <handa@m17n.org>
21549 * lread.c (safe_to_load_p): Fix the logic.
21551 * syntax.c (scan_words): Don't treat characters belonging to
21552 different scripts as constituting a word.
21554 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21556 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21558 * emacs.c (main): In the case of --unibyte, instead of aborting on
21559 finding non-empty buffer, make it unibyte.
21561 2008-02-01 Kenichi Handa <handa@m17n.org>
21563 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21564 to create a fontset.
21566 2008-02-01 Dave Love <fx@gnu.org>
21568 * character.c (Funibyte_char_to_multibyte): Doc fix.
21570 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21572 2008-02-01 Kenichi Handa <handa@m17n.org>
21574 * fontset.c (fontset_add): Make the type `int'.
21575 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21577 * character.c (unibyte_char_to_multibyte)
21578 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21579 charset_unibyte, not charset_primary.
21581 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21583 * charset.c (charset_unibyte): Rename from charset_primary.
21584 (Funibyte_charset): Rename from Fprimary_charset.
21585 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21586 (syms_of_charset): Adjust for the above changes.
21588 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21589 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21590 it->multibyte_p is zero.
21592 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21595 2008-02-01 Kenichi Handa <handa@m17n.org>
21597 * coding.c (Fdefine_coding_system_internal): Fix category setting
21598 for a coding system of type iso-2022.
21600 2008-02-01 Kenichi Handa <handa@m17n.org>
21602 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21604 2008-02-01 Kenichi Handa <handa@m17n.org>
21606 * syntax.c (Vnext_word_boundary_function_table): New variable.
21607 (next-word-boundary-function-table): Declare it as a Lisp variable
21609 (scan_words): Call functions in Vnext_word_boundary_function_table
21612 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21614 * fontset.c (fs_load_font): If fontp->charset is not negative,
21615 return fontp without setting its members.
21617 2008-02-01 Dave Love <fx@gnu.org>
21619 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21621 * m/sparc.h (HAVE_ALLOCA): Delete.
21623 * s/irix6-5.h: Don't include strings.h.
21624 (bcopy, bzero, bcmp): Don't undef.
21626 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21628 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21629 (TIOCSIGSEND): Don't test IRIX6.
21630 (bcopy, bzero, bcmp): Define conditionally.
21632 2008-02-01 Kenichi Handa <handa@m17n.org>
21634 * buffer.c (Qas, Qmake, Qto): New variables.
21635 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21636 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21638 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21639 we are inserting a process output into a multibyte buffer.
21641 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21642 multibyte_char_to_unibyte.
21644 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21645 by the primary charset, make it eight-bit char.
21646 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21648 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21649 (charset_8_bit__control, charset_8_bit_graphic)
21650 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21651 (define_charset_internal): New function.
21652 (syms_of_charset): Call define_charset_internal for pre-defined
21655 * charset.h (charset_8_bit): Extern it.
21657 * coding.c (make_conversion_work_buffer): Adjust for the change
21658 of Fset_buffer_multibyte.
21659 (encode_coding_raw_text): Increment p0 in the loop.
21661 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21663 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21664 for the change of Fset_buffer_multibyte.
21666 * fns.c (Fstring_to_multibyte): New function.
21667 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21669 2008-02-01 Dave Love <fx@gnu.org>
21671 * xfns.c (x_put_x_image): Declare args.
21673 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21674 (try_font_list): Declare an arg.
21676 * xdisp.c (message2_nolog, set_message): Declare an arg.
21678 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21680 * syntax.c (scan_sexps_forward): Declare an arg.
21682 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21685 * lisp.h (Fnew_fontset): Declare.
21687 * keymap.c (push_key_description): Call CHARACTERP correctly.
21689 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21690 (face_for_char): Delete unused vars.
21691 (Fset_fontset_font): Doc fix. Delete unused vars.
21693 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21695 * composite.c (update_compositions): Declare arg.
21697 * cm.c (calccost, cmgoto): Declare args.
21699 * charset.c: Remove `emacs' conditional. Doc fixes.
21700 (map_char_table_for_charset): Declare.
21702 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21704 * ccl.c: Remove `emacs' conditional.
21706 2008-02-01 Kenichi Handa <handa@m17n.org>
21708 The following changes are to allow specifying multiple font
21709 patterns for a character range (specified by script or charset).
21711 * Makefile.in (abbrev.o): Depend on syntax.h.
21712 (xfaces.o): Depend on charset.h.
21714 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21715 SINGLE_BYTE_CHAR_P.
21717 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21719 * character.h (Vchar_script_table): Extern it.
21721 * character.c (Vscript_alist): Delete.
21722 (Vchar_script_table, Qchar_script_table): New variable.
21723 (syms_of_character): Declare Vchar_script_table as a lisp variable
21726 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21727 have property char-table-extra-slots, make no extra slot.
21729 * dispextern.h (struct face): Delete member `charset'.
21730 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21731 SINGLE_BYTE_CHAR_P.
21732 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21734 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21735 (generate_ascii_font_name): Rename from generate_ascii_font.
21737 * fontset.h (get_font_repertory_func): New prototype.
21738 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21739 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21741 * fontset.c (Qprepend, Qappend): New variables.
21742 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21743 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21744 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21745 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21746 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21747 (load_font_get_repertory): New functions.
21748 (fontset_set): Delete.
21749 (fontset_face): New arg FACE. Return face ID, not face.
21750 Complete re-write to handle new fontset structure. Change caller.
21751 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21752 (face_for_char): Don't call lookup_face.
21753 (make_fontset_for_ascii_face): New arg FACE.
21754 (fs_load_font): New arg CHARSET_ID. Don't check
21755 Vfont_encoding_alist here.
21756 (find_font_encoding): New function.
21757 (list_fontsets): Use STRINGP, not ! NILP.
21758 (accumulate_script_ranges): New function.
21759 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21760 re-written to handle new fontset structure.
21761 (Ffontset_font): Return a copy of element.
21762 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21763 docstring of font-encoding-alist.
21765 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21766 (Fset_fotset_font): Fix arguments to 5.
21768 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21770 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21771 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21772 (highlight_trailing_whitespace): Adjust for the change of
21775 * xfaces.c: Include charset.h.
21776 (load_face_font): Delete argument C. Change caller.
21777 (generate_ascii_font_name): Rename from generate_ascii_font.
21778 (font_name_registry): New function.
21779 (cache_face): Store ascii faces before non-ascii faces in buckets.
21780 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21781 Lookup only ascii faces.
21782 (lookup_non_ascii_face): New function.
21783 (lookup_named_face): Delete argument C. Change caller.
21784 (lookup_derived_face): Delete argument C. Change caller.
21785 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21786 a string, just call font_list with it.
21787 (choose_face_font): Delete arguments FACE and C. New arg
21788 FONT_SPEC. Change caller.
21789 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21791 (realize_non_ascii_face): New function.
21792 (realize_x_face): Call load_face_font here.
21793 (realize_tty_face): Delete argument C. Change caller.
21794 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21796 (dump_realized_face): Don't print charset of FACE.
21798 * xfns.c (x_set_font): Always call x_new_fontset and
21799 store_frame_parameter.
21800 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21801 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21803 * xterm.h (x_get_font_repertory): Extern it.
21805 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21806 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21807 it->multibyte_p is zero.
21808 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21809 (x_new_fontset): If FONTSETNAME doesn't match any existing
21810 fontsets, create a new one.
21811 (x_get_font_repertory): New function.
21813 2008-02-01 Kenichi Handa <handa@m17n.org>
21815 * coding.c (Ffind_coding_systems_region_internal): Detect an
21816 ASCII only string correctly.
21818 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21821 2008-02-01 Kenichi Handa <handa@m17n.org>
21823 * lread.c: Include "coding.h".
21824 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21825 (load_each_byte, unread_char): New variables.
21826 (readchar_backlog): Delete.
21827 (readchar): Return a character unless load_each_byte is nonzero.
21828 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21829 cons. If unread_char is not -1, simply return it.
21830 (unreadchar): Handle the case that readcharfun is
21831 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21832 (read_multibyte): Delete.
21833 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21834 (read_emacs_mule_char): New functions.
21835 (Fload): Even if the file doesn't have the extension ".elc", if
21836 safe_to_load_p returns a positive version number, assume that the
21837 file contains bytecompiled code. If the version is less than 22,
21838 load the file while decoding multibyte sequences by emacs-mule.
21839 (readevalloop): Don't use readchar_backlog.
21840 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21841 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21842 (read_escape): Delete the arg BYTEREP.
21843 (read1): Set load_each_byte to 1 temporarily while handling
21844 #@NUMBER. Don't call read_multibyte.
21845 (read_vector): Call Fread with a cons. If readcharfun is
21846 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21847 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21848 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21849 and Qload_force_doc_strings.
21851 2008-02-01 Kenichi Handa <handa@m17n.org>
21853 * xdisp.c (face_before_or_after_it_pos): Call
21854 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21856 2008-02-01 Kenichi Handa <handa@m17n.org>
21858 * character.h (TRAILING_CODE_P): New macro.
21859 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21860 (string_char_with_unification): Fix prototype.
21861 (Vscript_alist): Extern it.
21863 * character.c (Vscript_alist): New variable.
21864 (string_char_with_unification, str_as_unibyte)
21865 (string_escape_byte8): Add `const' to local variables.
21866 (syms_of_character): Declare script-alist as a Lisp variable.
21868 * charset.h (Vcharset_ordered_list): Extern it.
21869 (charset_ordered_list_tick): Extern it.
21870 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21871 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21872 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21873 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21874 (Funify_charset): Adjust for the change of Funify_charset.
21876 * charset.c (charset_ordered_list_tick): New variable.
21877 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21878 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21879 deunify instead of unify a charset.
21880 (string_xstring_p): Add `const' to local variables.
21881 (find_charsets_in_text): Add `const' to arguments and local variables.
21882 (encode_char): Adjust for the change of Funify_charset. Fix
21883 detecting of invalid code.
21884 (Fset_charset_priority): Increment charset_ordered_list_tick.
21885 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21888 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21889 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21890 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21891 (decode_coding_ccl, consume_chars)
21892 (Ffind_coding_systems_region_internal)
21893 (Fcheck_coding_systems_region): Add `const' to local variables.
21895 * print.c (print_object): Use octal form for printing the
21896 contents of a bool vector.
21898 2008-02-01 Dave Love <fx@gnu.org>
21900 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21901 <version == 20>: Refuse to load.
21903 2008-02-01 Dave Love <fx@gnu.org>
21905 * fns.c: Move coding.h.
21906 (Qcodeset, Qdays, Qmonths): New.
21907 (concat): Use CHARACTERP instead of INTEGERP.
21908 (Flocale_codeset): Delete.
21909 (Flanginfo): New function.
21910 (syms_of_fns): Change accordingly.
21912 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21914 2008-02-01 Dave Love <fx@gnu.org>
21916 * casetab.c (init_casetab_once, init_casetab_once): Fix
21917 CHAR_TABLE_SET call.
21919 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21921 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21923 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21924 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21925 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21927 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21929 * coding.c (ENCODE_DESIGNATION, decode_eol)
21930 (make_conversion_work_buffer, code_conversion_restore)
21931 (Fdefine_coding_system_internal): Convert Lisp types.
21932 (code_conversion_restore): Use EQ, not ==.
21933 (Fencode_coding_string): Fix code_convert_string call.
21935 * coding.h (code_convert_region): Fix prototype.
21937 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21939 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21940 (Ffontset_info): Convert Lisp types.
21942 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21944 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21946 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21948 * chartab.c: Include "...h", not <...h> in some cases.
21950 * callproc.c (Fcall_process): Remove unused variables.
21952 2008-02-01 Dave Love <fx@gnu.org>
21954 * coding.c (Fset_coding_system_priority): Allow null arg list.
21956 2008-02-01 Dave Love <fx@gnu.org>
21958 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21959 (Fself_insert_and_exit): Use CHARACTERP.
21961 * callproc.c (Fcall_process): Remove unused vars.
21963 * xterm.c (XTread_socket): Add extra dead keysyms.
21965 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21967 * dispextern.h: Remove prototypes for redraw_frame,
21968 redraw_garbaged_frames.
21970 * cmds.c (Fself_insert_command): Use CHARACTERP.
21972 * chartab.c (make_sub_char_table): Remove unused var.
21973 (Fset_char_table_default, Fmap_char_table): Doc fix.
21975 * keymap.c (access_keymap): Remove generic char code.
21976 (push_key_description): Use CHARACTERP.
21978 2008-02-01 Dave Love <fx@gnu.org>
21980 * charset.c: Doc fixes.
21981 (Funify_charset): Extra checking.
21983 2008-02-01 Dave Love <fx@gnu.org>
21985 * lread.c: Remove some unused variables.
21986 (safe_to_load_p): If safe, return the magic number version byte.
21987 (Fload): Maybe use load-with-code-conversion.
21989 2008-02-01 Kenichi Handa <handa@m17n.org>
21991 * category.c (Fmodify_category_entry): Don't modify the contents
21992 of category_set for characters out of the range. Avoid
21993 unnecessary modification.
21995 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21996 Vchar_unify_table. The default value of the table is now nil.
21998 * character.c (syms_of_character): Setup Vchar_width_table for
21999 eight-bit-control and raw-byte chars.
22001 * charset.h (enum define_charset_arg_index): Delete
22002 charset_arg_parents and add charset_arg_subset and
22003 charset_arg_superset.
22004 (enum charset_attr_index): Delete charset_parents and add
22005 charset_subset and charset_superset.
22006 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22007 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22008 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22009 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22010 (CHARSET_SUPERSET): New macros.
22011 (charset_work): Extern it.
22012 (ENCODE_CHAR): Use charset_work.
22013 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22014 (map_charset_chars): Extern it.
22016 * charset.c (load_charset_map): Set the default value of encoder
22017 and deunifier char-tables to nil.
22018 (map_charset_chars): Change argument. Change callers. Use
22019 map_char_table_for_charset instead of map_char_table.
22020 (Fmap_charset_chars): New optional args from_code and to_code.
22021 (Fdefine_charset_internal): Adjust for the change of
22022 `define-charset' (:parents -> :subset or :superset).
22023 (charset_work): New variable.
22024 (encode_char, syms_of_charset): Adjust for the change of
22025 Fdefine_charset_internal.
22026 (Ffind_charset_string): Setup the vector `charsets' correctly.
22028 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22029 the previous change.
22030 (char_table_ref_and_range): Adjust for the above change.
22031 (map_sub_char_table_for_charset): New function.
22032 (map_char_table_for_charset): New function.
22034 * keymap.c (describe_vector): Handle a char-table directly here.
22035 (describe_char_table): Delete.
22037 * lisp.h (map_charset_chars): Delete.
22039 2008-02-01 Dave Love <fx@gnu.org>
22041 * fns.c (count_combining): Comment out (unused).
22042 (Flocale_codeset): New.
22043 (syms_of_fns): Defsubr it.
22045 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22048 2008-02-01 Dave Love <fx@gnu.org>
22050 * Makefile.in (chartab.o): Depend on charset.h.
22052 2008-02-01 Kenichi Handa <handa@m17n.org>
22054 * character.c (syms_of_character): Set the default value of
22055 Vprintable_chars to Qnil.
22057 2008-02-01 Dave Love <fx@gnu.org>
22059 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22061 2008-02-01 Kenichi Handa <handa@m17n.org>
22063 * charset.c (load_charset_map): Handle the case that from < to
22066 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22067 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22068 Pay attention to raw-8-bit chars.
22070 2008-02-01 Kenichi Handa <handa@m17n.org>
22072 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22073 It is not bytecompiled now.
22075 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22076 (charset_jisx0208): New variables.
22077 (Fdefine_charset_internal): Setup them if appropriate.
22078 (init_charset_once): Initialize them to -1.
22080 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22081 (charset_jisx0208): Extern them.
22083 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22084 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22085 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22086 (setup_iso_safe_charsets): Fix arguments to Fassq.
22087 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22088 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22089 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22090 (encode_coding_iso_2022): Change the 1st arg to
22091 ENCODE_ISO_CHARACTER to a variable.
22093 2008-02-01 Kenichi Handa <handa@m17n.org>
22095 * charset.h (enum define_charset_arg_index): New enums
22096 charset_arg_min_code and charset_arg_max_code.
22097 (struct charset): New member char_index_offset.
22099 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22100 Take charset->char_index_offset into account.
22101 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22102 args[charset_arg_max_code]. Setup charset.char_index_offset.
22103 (syms_of_charset): Fix args to Fdefine_charset_internal.
22105 2008-02-01 Dave Love <fx@gnu.org>
22107 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22109 2008-02-01 Dave Love <fx@gnu.org>
22111 * coding.c: Doc fixes.
22112 (Fcoding_system_aliases): Fix return value.
22113 (Qmac): Remove (duplicated) definition.
22115 2008-02-01 Dave Love <fx@gnu.org>
22117 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22120 * character.c (Fstring): Doc fix.
22122 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22124 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
22125 (font-encoding-alist): Doc fix.
22127 2008-02-01 Dave Love <fx@gnu.org>
22129 * term.c (costs_set): Declare static, non-initialized for pcc.
22130 (encode_terminal_code): Remove unused var.
22132 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22135 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22137 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22138 (suffixes): Move out of make_subsidiaries for K&R.
22140 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22142 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22144 2008-02-01 Dave Love <fx@gnu.org>
22146 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22148 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22150 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22152 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22154 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22156 2008-02-01 Kenichi Handa <handa@m17n.org>
22158 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22159 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22161 2008-02-01 Kenichi Handa <handa@m17n.org>
22163 * coding.c (decode_coding_charset): Adjust for the change of
22164 Fdefine_coding_system_internal.
22165 (Fdefine_coding_system_internal): For a coding system of
22166 `charset' type, store a list of charset IDs in
22167 `charset_attr_charset_valids' element of coding attributes.
22169 2008-02-01 Kenichi Handa <handa@m17n.org>
22171 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22172 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22173 caller. Handle 2-byte and 3-byte charsets correctly.
22174 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22175 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22176 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22177 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22178 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22180 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22181 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22182 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22183 and alt&rule composition.
22184 (decode_coding_iso_2022): Handle composition correctly.
22185 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22187 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22188 re-defining a charset. If the charset has :emacs-mule-id, setup
22190 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22192 2008-02-01 Kenichi Handa <handa@m17n.org>
22194 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22195 (encode_coding_big5, encode_coding_charset): If coding requires safe
22196 encoding, produce a character specified by
22197 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22199 2008-02-01 Dave Love <fx@gnu.org>
22201 * xterm.c (XSetIMValues): Declare.
22203 * process.c: Conditionally include sys/wait.h, pty.h.
22205 * print.c (print_object): Fix print format for 64-bit systems.
22207 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22209 * buffer.c (emacs_strerror): Declare.
22211 * fontset.c (Fclear_face_cache): Declare.
22212 (accumulate_font_info): Comment-out (unused).
22213 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22216 * character.h (string_escape_byte8): Declare.
22218 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22220 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22221 (Fmap_charset_chars): Doc fix.
22223 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22224 (Fset_coding_system_priority, Fset_coding_system_priority)
22225 (Fdefine_coding_system_internal): Doc fix.
22227 2008-02-01 Dave Love <fx@gnu.org>
22229 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22231 2008-02-01 Kenichi Handa <handa@m17n.org>
22233 * character.c (string_escape_byte8): Make multibyte string with
22236 * charset.c (Fmake_char): Delete unnecessary code.
22238 2008-02-01 Kenichi Handa <handa@m17n.org>
22240 * xfns.c (x_encode_text): Allocate coding.destination here, and
22241 call encode_coding_object with dst_object Qnil.
22243 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22244 multibyte form correctly.
22246 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22247 against Vfont_encoding_alist.
22249 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22250 handling of charset list.
22251 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22252 (decode_coding_object): Move point to coding->dst_pos before
22253 calling post-read-conversion function.
22254 (encode_coding_object): Give correct arguments to
22255 pre-write-conversion. Ignore the return value of
22256 pre-write-conversion function. Pay attention to the case that
22257 pre-write-conversion changes the current buffer. If dst_object is
22258 Qt, even if coding->src_bytes is zero, allocate at least one byte
22259 to coding->destination.
22261 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22263 * charset.c (Fmake_char): Make it more backward compatible.
22264 (Fmap_charset_chars): Fix docstring.
22266 2008-02-01 Dave Love <fx@gnu.org>
22268 * coding.c: Doc fixes.
22269 (Fdefine_coding_system_alias): Use names, not symbols, in
22270 coding-system-alist.
22272 2008-02-01 Kenichi Handa <handa@m17n.org>
22274 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22275 of calling free_realized_face.
22277 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22279 * charset.c (read_hex): Don't treat SPC as a comment starter.
22280 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22281 (Fdecode_char): Fix typo.
22283 2008-02-01 Kenichi Handa <handa@m17n.org>
22285 * charset.h (struct charset): New member `code_space_mask'.
22287 * coding.c (coding_set_source): Delete the local variable beg_byte.
22288 (encode_coding_charset, Fdefine_coding_system_internal):
22289 Delete the local variable charset.
22290 (Fdefine_coding_system_internal): Setup
22291 attrs[coding_attr_charset_valids] correctly.
22293 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22294 member to check if CODE is valid or not.
22295 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22296 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22297 is within the range of charset->min_code and carset->max_code.
22299 2008-02-01 Dave Love <fx@gnu.org>
22301 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22303 * dispextern.h (generate_ascii_font): Fix return type.
22305 * xfaces.c (generate_ascii_font): Fix arg declaration.
22307 * coding.c (coding_inherit_eol_type)
22308 (Fset_terminal_coding_system_internal)
22309 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22311 2008-02-01 Kenichi Handa <handa@m17n.org>
22313 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22314 multiple charsets correctly.
22316 2008-02-01 Kenichi Handa <handa@m17n.org>
22318 * search.c (boyer_moore): Fix handling of multibyte character
22321 * xdisp.c (display_mode_element): When the variable `elt' is
22322 changed, update `this' and `lisp_string'.
22324 2008-02-01 Kenichi Handa <handa@m17n.org>
22326 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22328 * callproc.c (Fcall_process): Be sure to give the current buffer
22329 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22331 * charset.c (struct charset_map_entries): New struct.
22332 (load_charset_map): Rename from parse_charset_map. New args
22333 entries and n_entries. Change caller.
22334 (load_charset_map_from_file): Rename from load_charset_map.
22335 Change caller. New arg control_flag. Call load_charset_map at
22337 (load_charset_map_from_vector): New function.
22338 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22339 (encode_char): If the charset is compact, change a character index
22342 * coding.c (coding_alloc_by_making_gap): Check the case that the
22343 source and destination are the same correctly.
22344 (decode_coding_raw_text): Set coding->consumed_char and
22345 coding->consumed to 0.
22346 (produce_chars): If coding->chars_at_source is nonzero, update
22347 coding->consumed_char and coding->consumed before calling
22349 (Fdefine_coding_system_alias): Register ALIAS in
22350 Vcoding_system_alist.
22351 (syms_of_coding): Define `no-conversion' coding system at the tail.
22353 * fileio.c (Finsert_file_contents): Set coding_system instead of
22354 val. If the current buffer is multibyte, always call
22357 * xfaces.c (try_font_list): Give higher priority to fontset's
22358 family than face's family.
22360 2008-02-01 Kenichi Handa <handa@m17n.org>
22362 * callproc.c (Fcall_process): Be sure to give the current buffer
22363 to decode_coding_c_string.
22365 * xfaces.c (try_font_list): Give a family specified in a fontset
22366 higher priority than a family specified in a face.
22368 2008-02-01 Kenichi Handa <handa@m17n.org>
22370 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22371 Fix arguments to insert_from_buffer.
22373 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22375 2008-02-01 Kenichi Handa <handa@m17n.org>
22377 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22378 (decode_coding_gap): Set coding->dst_multibyte correctly.
22380 2008-02-01 Kenichi Handa <handa@m17n.org>
22382 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22383 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22384 (encode_coding_utf_16): Substitute coding->default_char for
22385 non-Unicode characters.
22386 (decode_coding): Don't call record_insert here.
22387 (setup_coding_system): Initialize `surrogate' of
22388 coding->spec.utf_16 to 0.
22389 (EMIT_ONE_BYTE): Fix for multibyte case.
22391 * insdel.c (insert_from_gap): Call record_insert.
22393 2008-02-01 Kenichi Handa <handa@m17n.org>
22395 * casefiddle.c (casify_region): Fix multibyte case.
22397 * character.c (c_string_width): Add return type `int'.
22398 (char_string_with_unification): Delete arg ADVANCED.
22400 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22401 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22402 (CHAR_STRING_ADVANCE): Make it do-while statement.
22404 * chartab.c (sub_char_table_set_range): Optimize for the case
22405 DEPTH == 3. Add workaround code for a GCC optimization bug.
22407 * charset.c (parse_charset_map): Remove an unused variable.
22409 * coding.c: Delete unused variables.
22411 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22412 earlier. If inserted is zero and the coding system doesn't
22413 require flushing, don't call decode_coding_gap.
22415 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22417 2008-02-01 Kenichi Handa <handa@m17n.org>
22419 The following changes are for using Unicode as an internal
22420 character model, and use UTF-8 format for buffer/string
22423 * .gdbinit (xchartable): Adjust for the change of char table structure.
22424 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22426 * Makefile.in (obj): Add character.o and chartab.o.
22427 (lisp, shortlisp): Remove utf-8.elc.
22428 (*.o): For many files, change dependency on charset.h to
22429 character.h, and add dependency on character.h.
22430 (character.o, chartab.o): New targets.
22432 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22433 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22434 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22437 * dired.c, filelock.c: Include "character.h".
22439 * alloc.c: Include "character.h" instead of "charset.h".
22440 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22441 (syms_of_alloc): Remove defsubr for Smake_char_table.
22443 * buffer.c: Include "character.h" instead of "charset.h", don't
22444 include "coding.h".
22445 (Fset_buffer_multibyte): Adjust for UTF-8.
22447 * buffer.h: EXFUN Fbuffer_live_p.
22449 * callproc.c: Include "character.h" instead of "charset.h".
22450 (Fcall_process): Big change for the new code-conversion APIs.
22452 * casetab.c: Include "character.h" instead of "charset.h".
22453 (set_canon, set_identity, shuffle): Adjust for the new
22454 map_char_table spec.
22455 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22456 accessing the char table structure.
22458 * chartab.c: New file that implements char table.
22460 * category.c: Include "character.h".
22461 (copy_category_entry): New function.
22462 (copy_category_table): Call map_char_table and copy_category_entry.
22463 (Fmake_category_table): Initialize all top-level slots.
22464 (char_category_set): New function.
22465 (modify_lower_category_set): Delete.
22466 (Fmodify_category_entry): Call char_table_ref_and_range.
22468 * category.h (CATEGORY_SET): Just call char_category_set.
22470 * ccl.c: Include "character.h".
22471 (Qccl, Qcclp): New variables.
22472 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22473 it's less than 256.
22474 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22475 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22477 (ccl_driver): Change types of argument, adjust code accordingly.
22478 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22480 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22482 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22483 New members src_multibyte, dst_multibyte, consumed, and produced.
22484 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22485 (CODING_SPEC_CCL_PROGRAM): New macro.
22486 (ccl_driver): Update prototype.
22487 (Qccl, Qcclp, Fccl_program_p): Extern them.
22488 (CHECK_CCL_PROGRAM): New macro.
22490 * character.c, character.h, chartab.c: New files.
22492 * charset.c: Mostly re-written. Move character and multibyte sequence
22493 handling codes to character.c.
22495 * charset.h: Mostly re-written. Move character and multibyte sequence
22496 handling codes to character.h.
22498 * coding.c, coding.h: Mostly re-written.
22500 * composite.c: Include "character.h" instead of "charset.h".
22501 (CHAR_WIDTH): Move to character.h.
22502 (HASH_KEY, HASH_VALUE): Delete.
22504 * composite.h (enum composition_method): Change order of enumeration
22507 * data.c: Include "character.h" instead of "charset.h".
22508 (Faref): Call CHAR_TABLE_REF for a char table.
22509 (Faset): Call CHAR_TABLE_SET for a char table.
22511 * dispextern.h (free_realized_face, check_face_attribytes)
22512 (generate_ascii_font): Extern them.
22513 (free_realized_multibyte_face): Delete extern.
22515 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22518 * editfns.c: Include "character.h" instead of "charset.h".
22519 (Fchar_to_string): Always call CHAR_STRING.
22521 * emacs.c (main): Call init_charset_once, init_charset,
22522 syms_of_chartab, and syms_of_character.
22524 * fileio.c: Include "character.h" instead of "charset.h".
22525 (Finsert_file_contents): Big change for the new code-conversion API.
22526 (choose_write_coding_system, Fwrite_region): Likewise.
22527 (build_annotations_2): Delete.
22528 (e_write): Big change for the new code-conversion API.
22530 * fns.c: Include "character.h" instead of "charset.h".
22531 (copy_sub_char_table): Move to chartab.c.
22532 (Fcopy_sequence): Call copy_char_table for a char table.
22533 (concat): Delete codes calling count_multibyte.
22534 (string_char_to_byte, string_byte_to_char): Adjust for the new
22536 (internal_equal): Adjust for the change of char table structure.
22537 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22538 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22539 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22540 (char_table_translate, optimize_sub_char_table)
22541 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22543 (char_table_ref_and_index): Delete.
22544 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22545 (Fmd5): Call preferred_coding_system instead of accessing
22546 Vcoding_category_list. Adjust for the new code-conversion API.
22547 (syms_of_fns): Move defsubr for char table related functions to
22550 * fontset.c: Mostly re-written.
22552 * fontset.h (struct font_info): Change type of the member encoding_type.
22553 (enum FONT_SPEC_INDEX): New enum.
22554 (fontset_font_pattern, fs_load_font): Update prototype.
22555 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22557 * indent.c: Include "character.h" instead of "charset.h".
22558 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22560 * insdel.c: Include "character.h" instead of "charset.h".
22561 (copy_text): Don't refer to Vnonascii_translation_table.
22562 (insert_from_gap): New function.
22564 * keyboard.c: Include "character.h" instead of "charset.h".
22565 (command_loop_1): Never call direct_output_forward_char before
22566 a non-ASCII character.
22567 (read_char): If Vkeyboard_translate_table is a char table, always
22568 translate a character.
22570 * keymap.c: Include "character.h".
22571 (store_in_keymap): Handle the case that IDX is a cons.
22572 (Fdefine_key): Handle the case that KEY is a cons and the car part
22573 is also a cons (range).
22574 (push_key_description): Adjust for the new character code.
22575 (describe_vector): Call describe_char_table for a char table.
22576 (describe_char_table): New function.
22578 * keymap.h (describe_char_table): Extern it.
22580 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22581 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22582 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22583 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22585 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22587 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22588 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22589 (CHARTAB_SIZE_BITS_3): New macros.
22590 (chartab_size): Extern it.
22591 (struct Lisp_Char_Table): Re-design.
22592 (struct Lisp_Sub_Char_Table): New structure.
22593 (HASH_KEY, HASH_VALUE): Move from fns.c.
22594 (CHARACTERBITS): Define as 22.
22595 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22596 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22597 (GC_SUB_CHAR_TABLE_P): New macro.
22598 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22599 (code_convert_string_norecord): Deleted extern.
22600 (init_character_once, syms_of_character, init_charset)
22601 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22603 * lread.c: Include "character.h".
22604 (read_multibyte): New arg NBYTES.
22605 (read_escape): Change the meaning of returned *BYTEREP.
22606 (to_multibyte): Delete.
22607 (read1): Adjust the handling of char table and string.
22609 * print.c: Include "character.h" instead of "charset.h".
22610 (print_string): Convert 8-bit raw bytes to octal form by
22611 string_escape_byte8.
22612 (print_object): Adjust for the new multibyte form. Print 8-bit
22613 raw bytes always in octal form. Handle sub char table correctly.
22615 * process.c: Include "character.h" instead of "charset.h".
22616 (read_process_output, send_process): Adjust for the new
22617 code-conversion API.
22619 * puresize.h (BASE_PURESIZE): Increase.
22621 * regex.c: Include "character.h" instead of "charset.h".
22622 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22623 (regex_compile): Accept a range whose starting and ending
22624 character have different leading bytes.
22625 (analyse_first): Adjust for the above change.
22627 * search.c: Include "character.h" instead of "charset.h".
22628 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22629 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22631 * syntax.c: Include "character.h" instead of "charset.h".
22632 (syntax_parent_lookup): Delete.
22633 (Fmodify_syntax_entry): Accept a cons as CHAR.
22634 (skip_chars): Adjust for the new multibyte form.
22635 (init_syntax_once): Call char_table_set_range instead of directly
22636 accessing the structure of a char table.
22638 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22639 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22640 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22641 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22643 * term.c: Include "buffer.h" and "character.h".
22644 (encode_terminal_code, write_glyphs): Adjust for the new
22645 code-conversion API.
22646 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22648 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22650 * xdisp.c: Include "character.h".
22651 (get_next_display_element): Adjust for the new multibyte form.
22652 (disp_char_vector): Adjust for the new char table structure.
22653 (decode_mode_spec_coding): Adjust for the new structure of
22655 (decode_mode_spec): Adjust for the new code-conversion API.
22657 * xfaces.c: Include "character.h" instead of "charset.h".
22658 (load_face_font): Adjust for the change of choose_face_font and
22660 (generate_ascii_font): New function.
22661 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22662 (set_font_frame_param): Adjust for the change of choose_face_font.
22663 (free_realized_face): Make it public.
22664 (free_realized_faces_for_fontset): Rename from
22665 free_realized_multibyte_face. Free also faces realized for ASCII.
22666 (choose_face_font): Change arguments. Adjust for the change of
22667 fontset_font_pattern and FS_LOAD_FONT.
22669 * xfns.c: Include "character.h".
22670 (x_encode_text): Adjust for the new code-conversion API.
22672 * xselect.c: Don't include "charset.h".
22673 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22675 * xterm.c: Include "character.h".
22676 (x_encode_char): New argument CHARSET. Change caller.
22677 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22678 Call ENCODE_CHAR instead of SPLIT_CHAR.
22679 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22680 CHAR_WIDTH instead of CHARSET_WIDTH.
22681 (XTread_socket): Adjust for the new code-conversion API.
22682 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22683 (x_load_font): Adjust for the change of struct font.
22685 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22687 * xfaces.c (face_at_buffer_position): Remove unused vars.
22689 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22691 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22692 Fix overflow checking.
22694 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22696 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22697 Cancel previous change.
22699 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22701 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22702 ccl->eight_bit_control. Fix check for buffer overflow.
22703 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22704 (ccl_driver): Initialize extra_bytes to 0.
22706 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22708 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22709 return it ORed with ctrl_modifier.
22711 2008-01-29 Miles Bader <miles@gnu.org>
22713 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22715 2008-01-28 Jason Rumney <jasonr@gnu.org>
22717 * w32.c (stat): Don't double check for networked drive.
22719 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22721 * window.c (run_window_configuration_change_hook): New function.
22722 Code extracted from set_window_buffer. Set the selected frame.
22723 (set_window_buffer): Use it.
22724 * window.h (run_window_configuration_change_hook): Declare.
22725 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22727 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22729 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22731 * Makefile.in: Remove references to unused macros.
22733 2008-01-26 Eli Zaretskii <eliz@gnu.org>
22735 * w32.c (g_b_init_get_sid_sub_authority)
22736 (g_b_init_get_sid_sub_authority_count): New static variables.
22737 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22738 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22739 (init_user_info): Use them to retrieve uid and gid.
22740 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22741 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22742 st_uid and st_gid of the file.
22744 2008-01-26 Jason Rumney <jasonr@gnu.org>
22746 * w32.c (logon_network_drive): New function.
22749 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
22751 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22752 invisible text covered with an ellipsis.
22754 2008-01-25 Richard Stallman <rms@gnu.org>
22756 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22757 jump back to beginning. Move some other initializations after that.
22758 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22760 (syms_of_xdisp): Init them.
22762 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22764 * buffer.c (reset_buffer_local_variables):
22765 Implement `permanent-local-hook'.
22766 (Qpermanent_local_hook): New variable.
22767 (syms_of_buffer): Init and staticpro it.
22769 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
22771 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22773 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22775 * fns.c (Fclrhash): Return TABLE.
22777 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22779 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22780 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22781 is set even without positional changes.
22782 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22784 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22786 2008-01-23 Jason Rumney <jasonr@gnu.org>
22788 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22790 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22791 the unicode range available in MULE by locale-coding-system.
22792 Improve dbcs lead byte detection. Set event timestamp and modifiers
22795 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22797 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22798 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22799 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22800 when used on child processes.
22802 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
22804 * dbusbind.c (Fdbus_method_return_internal): Rename from
22805 Fdbus_method_return.
22806 (Fdbus_unregister_object): Move to dbus.el.
22807 (Fdbus_call_method, Fdbus_method_return_internal)
22808 (Fdbus_send_signal): Improve debug messages.
22810 2008-01-20 Martin Rudalics <rudalics@gmx.at>
22812 * undo.c (undo_inhibit_record_point): New variable.
22813 (syms_of_undo): Initialize it.
22814 (record_point): Don't record point when undo_inhibit_record_point
22817 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22819 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22821 * xdisp.c (Qauto_hscroll_mode): New var.
22822 (syms_of_xdisp): Initialize it.
22823 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22825 (hscroll_windows): Don't check automatic_hscrolling_p here.
22827 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22828 vscroll if we're setting window-buffer to the value it already has.
22830 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22832 * m/intel386.h: Remove references to XENIX.
22834 2008-01-17 Andreas Schwab <schwab@suse.de>
22836 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22837 instead of HAVE_X86_64_LIB64_DIR.
22838 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22840 2008-01-17 Glenn Morris <rgm@gnu.org>
22842 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22843 to HAVE_X86_64_LIB64_DIR.
22845 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22852 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22854 * sysdep.c: Remove code containing references to symbols defined
22855 by unsupported systems.
22857 2008-01-16 Glenn Morris <rgm@gnu.org>
22859 * coding.c (select-safe-coding-system-function): Doc fix.
22861 2008-01-15 Glenn Morris <rgm@gnu.org>
22863 * config.in: Revert 2008-01-13 change: this is a generated file.
22865 2008-01-13 Tom Tromey <tromey@redhat.com>
22867 * lisp.h: Fix typo.
22869 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22875 * s/ptx4.h: Remove files for systems no longer supported.
22877 * callproc.c (Fcall_process): Fix previous change.
22879 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22881 * unexsunos4.c: Remove file, system not supported anymore.
22901 * alloc.c: Remove code containing references to symbols defined by
22902 unsupported systems.
22904 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22906 * coding.c (detect_coding_mask): Fix previous change.
22908 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22910 * coding.c (detect_coding_iso2022): New arg
22911 latin_extra_code_state. Allow Latin extra codes only
22912 when *latin_extra_code_state is nonzero.
22913 (detect_coding_mask): If there is a NULL byte, detect the encoding
22914 as UTF-16 or binary. If Latin extra codes exist, detect the
22915 encoding as ISO-2022 only when there's no other proper encoding is
22918 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22920 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22923 2008-01-08 Richard Stallman <rms@gnu.org>
22925 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22927 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
22929 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22930 menu bar in parentheses.
22932 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22936 * m/alliant-2800.h:
22944 * m/aviion-intel.h:
23039 * unexsni.c: Remove files for systems no longer supported.
23041 * m/intel386.h: Remove references to unsupported systems.
23043 * w32.c (get_emacs_configuration): Remove reference to i860.
23045 * sysdep.c: Remove dead code.
23047 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23050 * m/masscomp.h: Remove files. Platform is obsolete.
23052 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
23054 * dbusbind.c (Fdbus_method_return): New function.
23055 (xd_read_message): Add the serial number to the event.
23056 (Fdbus_register_method): Activate the function.
23058 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23060 * keyboard.c (read_key_sequence): Fix typo.
23062 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
23064 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23065 (xd_signature, xd_append_arg): Handle element type detection for
23067 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23068 SDATA () calls; this must be solved more general.
23069 (Fdbus_register_signal): Use SBYTES instead of strlen.
23071 2008-01-03 Magnus Henoch <magnus@zemdatav>
23073 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23074 unsigned int for byte values (necessary for big-endian platform).
23075 (Fdbus_call_method): Handle the case of no returned arguments.
23077 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23079 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23081 2007-12-31 Magnus Henoch <mange@freemail.hu>
23083 * dbusbind.c (xd_signature): Signature of variant is just "v".
23085 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
23087 * dbusbind.c: Fix several errors and compiler warnings.
23088 Reported by Tom Tromey <tromey@redhat.com>.
23089 (XD_ERROR, XD_DEBUG_MESSAGE)
23090 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23091 (xd_append_arg): Part for basic D-Bus types rewritten.
23092 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23093 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23095 (xd_read_message): Return Qnil. Don't signal an error; it is not
23096 useful during event reading.
23097 (Fdbus_register_signal): Signal an error if the check for
23099 (Fdbus_register_method): New function. The implementation is not
23100 complete, the call of the function signals an error therefore.
23101 (Fdbus_unregister_object): New function, renamed from
23102 Fdbus_unregister_signal. The initial check signals an error, if
23103 the object is not well formed.
23105 2007-12-30 Richard Stallman <rms@gnu.org>
23107 * textprop.c (get_char_property_and_overlay):
23108 Signal error if POSITION is out of range in a buffer.
23110 2007-12-29 Martin Rudalics <rudalics@gmx.at>
23112 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23113 because the original parameters are in pure storage now.
23115 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23117 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23119 2007-12-22 Eli Zaretskii <eliz@gnu.org>
23121 * callint.c (syms_of_callint) <command-history>: Add reference to
23122 history-length in the doc string.
23124 2007-12-17 Jason Rumney <jasonr@gnu.org>
23126 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23127 before passing as wParam.
23129 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
23131 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23132 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23133 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23134 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23136 (Fdbus_call_method): Fix docstring.
23138 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
23140 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23142 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23143 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23145 (xd_signature): New function.
23146 (xd_append_arg): Compute also signatures. Major rewrite.
23147 (xd_retrieve_arg): Make debug messages friendly.
23148 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23149 Check for signatures of arguments.
23151 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
23153 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23154 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23155 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23156 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23157 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23158 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23159 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23160 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23161 (xd_retrieve_value): Remove. Functionality included in ...
23162 (xd_append_arg): New function.
23163 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23165 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
23167 * dbusbind.c (top): Include <stdio.h>.
23168 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23169 dbus_message_new_method_call and dbus_message_new_signal.
23170 (Fdbus_register_signal): Rename unique_name to uname.
23171 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23172 non-existing unique name. Fix typos in matching rule. Return an
23173 object which is useful in Fdbus_unregister_signal.
23174 (Fdbus_unregister_signal): Reimplementation, in order to remove
23175 only the corresponding entry.
23176 (Vdbus_registered_functions_table): Change the order of entries.
23177 Apply these changes in xd_read_message and Fdbus_register_signal.
23179 2007-12-16 Andreas Schwab <schwab@suse.de>
23181 * fileio.c (Finsert_file_contents): Fix overflow check to not
23182 depend on undefined integer overflow.
23184 2007-12-14 Jason Rumney <jasonr@gnu.org>
23186 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23187 for characters above 127.
23189 2007-12-13 Jason Rumney <jasonr@gnu.org>
23191 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23192 before dereferencing array.
23193 (lookup_vk_code): Remove zero comparison.
23195 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
23197 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23198 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23199 Use `unsigned int' instead of `uint'.
23200 (xd_read_message, Fdbus_register_signal): Split expressions into
23201 multiple lines before operators "&&" and "||", according to the
23202 GNU Coding Standards.
23204 2007-12-14 Eli Zaretskii <eliz@gnu.org>
23206 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23208 2007-12-12 Juri Linkov <juri@jurta.org>
23210 * buffer.c (Frename_buffer): In interactive spec replace
23211 `read-buffer' with `read-string' that uses `buffer-name-history'
23212 as history, and the current buffer's name as default.
23214 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23216 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23217 manipulating the backtrace manually.
23218 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23219 (struct backtrace, backtrace_list): Remove.
23220 (command_loop_1): Remove dead var `no_direct'.
23222 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23223 preserve non-built-in buffer-local variables.
23224 (Fkill_all_local_variables): Don't re-create&re-set permanent
23225 buffer-local variables.
23227 2007-12-09 Juri Linkov <juri@jurta.org>
23229 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23230 Lisp code that uses `read-buffer' with current buffer as default.
23232 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
23234 * dbusbind.c (xd_read_message): Generate an event for every
23235 registered handler. There might be several handlers registered
23236 for the same signal.
23237 (Fdbus_register_signal): Don't overwrite a registration for the
23238 same signal. Add a new registration if handlers are different.
23239 (Vdbus_registered_functions_table): Rework doc string.
23241 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
23243 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23244 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23245 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23246 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23247 Unify argument lists.
23248 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23249 arguments and hash table keys. Use unique name for service.
23250 (Fdbus_unregister_signal): Remove checks.
23251 (Vdbus_registered_functions_table): Fix doc string.
23253 2007-12-05 Magnus Henoch <mange@freemail.hu>
23255 * process.c (make_process): Initialize pty_flag to 0.
23257 2007-12-05 Jason Rumney <jasonr@gnu.org>
23259 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23262 2007-12-05 Richard Stallman <rms@gnu.org>
23264 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23266 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23268 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23270 (mac_try_close_socket) [MAC_OSX]: New function.
23271 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23272 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23274 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23275 Use mac_try_close_socket.
23277 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23279 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23281 (copy_dysymtab): Compute relocation base here.
23282 (rebase_reloc_address) [__ppc64__]: New function.
23283 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23286 2007-12-05 Jason Rumney <jasonr@gnu.org>
23288 * w32proc.c (sys_spawnve): Quote args with wildcards.
23290 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23292 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23294 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23296 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
23298 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23299 Move check for Vdbus_registered_functions_table to
23300 xd_read_queued_messages.
23301 (xd_read_queued_messages): Protect xd_read_message calls by
23302 internal_condition_case_1.
23304 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
23306 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23307 Qdbus_system_bus and Qdbus_session_bus, respectively.
23308 (Vdbus_intern_symbols): Remove.
23309 (Vdbus_registered_functions_table): New hash table.
23310 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23311 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23312 Rewrite in order to manage registered functions by hash table
23313 Vdbus_registered_functions_table.
23315 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23317 * xterm.c: Update URL to Window Manager Specification in comment.
23319 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
23321 * config.in (HAVE_DBUS): Add.
23323 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23324 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23325 (obj): Add $(DBUS_OBJ).
23326 (LIBES): Add $(DBUS_LIBS).
23327 (dbusbind.o): New target.
23329 * dbusbind.c: New file.
23331 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23333 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23334 (Qdbus_event): New Lisp symbol.
23335 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23336 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
23337 (keys_of_keyboard): Define dbus-event.
23339 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23341 2007-12-01 Richard Stallman <rms@gnu.org>
23343 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23345 2007-11-30 Jason Rumney <jasonr@gnu.org>
23347 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23348 (w32con_reset_terminal_modes): Clear screen buffer.
23349 (w32_face_attributes): Don't use color indexes that are out of range.
23350 Only reverse the default colors.
23352 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23355 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23357 2007-11-29 Jason Rumney <jasonr@gnu.org>
23359 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23360 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23361 if the terminal colors are initialized.
23362 (unspecified_fg, unspecified_bg): Remove unused declarations.
23364 2007-11-29 Andreas Schwab <schwab@suse.de>
23366 * keyboard.c (apply_modifiers): Fix typo.
23368 2007-11-29 Richard Stallman <rms@gnu.org>
23370 * keymap.c (Fcurrent_local_map): Doc fix.
23372 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23374 * s/gnu-kfreebsd.h: New file.
23376 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23378 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23379 Don't cast redundantly.
23381 * keyboard.c (KEY_TO_CHAR): New macro.
23382 (parse_modifiers, apply_modifiers): Accept integer arguments.
23383 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23384 for chars and symbol keys.
23385 After doing such remapping, apply function-key-map again.
23387 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23389 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23392 2007-11-26 Andreas Schwab <schwab@suse.de>
23394 * process.c (list_processes_1): Fix indentation level of the
23397 2007-11-23 Andreas Schwab <schwab@suse.de>
23399 * editfns.c (Fformat): Handle %c specially since it requires the
23400 argument to be of type int.
23402 2007-11-23 Markus Triska <markus.triska@gmx.at>
23404 * emacs.c (main): Call init_editfns before init_process, since
23405 init_process sets Vprocess_connection_type depending on OS release.
23407 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23409 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23410 (find_symbol_value): Use do_symval_forwarding.
23412 * data.c (set_internal): Set the value in the `cons-cell' (for
23413 Buffer_Local_values) not only for frame-local variables.
23415 2007-11-22 Andreas Schwab <schwab@suse.de>
23417 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23419 * keymap.c (Fsingle_key_description): Likewise.
23420 * print.c (print_object): Likewise.
23422 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23424 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23425 file for image is nil.
23427 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23429 * term.c: Include stdarg.h.
23430 (fatal): Implement using varargs.
23431 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23433 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23435 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23436 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23437 Update call to buffer_slot_type_mismatch.
23438 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23439 (buffer_slot_type_mismatch): Update.
23440 * buffer.c (buffer_local_types): Remove.
23441 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23442 (defvar_per_buffer): Set the type in the buffer_objfwd.
23444 2007-11-21 Jason Rumney <jasonr@gnu.org>
23446 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23447 CreateFileMapping returns NULL on failure.
23449 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23451 * search.c (Fset_match_data): Remove the `evaporate' feature.
23452 (unwind_set_match_data): Don't use the `evaporate' feature.
23454 2007-11-21 Jason Rumney <jasonr@gnu.org>
23456 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23458 * w32console.c (w32con_write_glyphs): Remove unused variables.
23460 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23462 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23464 * s/darwin.h (MULTI_KBOARD): Remove.
23466 * macfns.c (x_create_tip_frame, Fx_create_frame)
23467 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23469 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23471 * buffer.c (Fbuffer_local_value): Remove redundant test.
23472 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23473 than in `current-buffer' to match the comment.
23474 Do the swap using swap_in_global_binding.
23476 * data.c (store_symval_forwarding, set_internal):
23477 * eval.c (specbind): Remove dead code.
23479 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23480 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23481 Since we do not want to see internal Lisp_*fwd objects here.
23483 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23485 * sysdep.c (init_system_name): Use getaddrinfo if available.
23487 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23488 (x_scroll_bar_note_movement): start, end, with, height in struct
23489 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23491 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23493 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23495 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23497 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23498 This undoes Richard's change of 14-Oct-2002.
23500 * alloc.c (allocate_other_vector):
23501 * lisp.h (allocate_other_vector): Remove.
23503 * window.c (struct save_window_data): Move non-lisp data to the end
23504 and make it `int' rather than Lisp_Object.
23505 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23506 Done wrap/unwrap integer values.
23507 (Fset_window_configuration, compare_window_configurations):
23508 Update use of fields to their new types.
23510 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23511 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23512 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23513 (SET_SCROLL_BAR_X_WINDOW): Remove.
23514 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23515 Access the new x_window field directly.
23516 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23517 Don't wrap/unwrap integers into Lisp_Objects.
23518 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23519 (x_scroll_bar_report_motion):
23520 Don't wrap/unwrap integers into Lisp_Objects.
23521 (x_term_init): Use SDATA.
23522 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23523 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23524 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23525 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23526 * xfns.c (x_set_background_color):
23527 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23528 Access the new x_window field directly.
23530 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23531 (allocate_pseudovector): Make non-static.
23533 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23534 (allocate_pseudovector): Declare.
23535 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23537 2007-11-15 Andreas Schwab <schwab@suse.de>
23539 * editfns.c (Fformat): Correctly format EMACS_INT values.
23540 Also take precision into account when formatting an integer.
23542 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23544 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23546 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23547 (syms_of_keyboard): Defsubr it.
23549 * data.c (swap_in_global_binding): Fix longstanding bug where
23550 store_symval_forwarding was not called with the right second argument,
23551 thus causing objfwd-ing from being dropped.
23553 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23555 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23556 (Fx_display_pixel_height, Fx_display_planes)
23557 (Fx_display_color_cells, Fx_server_max_request_size)
23558 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23559 (Fx_display_visual_class, Fx_display_save_under):
23560 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23561 (Fx_display_pixel_height, Fx_display_planes)
23562 (Fx_display_color_cells, Fx_server_max_request_size)
23563 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23564 (Fx_display_mm_height, Fx_display_mm_width)
23565 (Fx_display_backing_store, Fx_display_visual_class)
23566 (Fw32_select_font, Fx_display_save_under):
23567 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23568 (Fx_display_pixel_height, Fx_display_planes)
23569 (Fx_display_color_cells, Fx_server_max_request_size)
23570 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23571 (Fx_display_save_under): Fix typos in docstrings.
23573 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23575 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23576 corresponding to deleted entries; they are an implementation detail.
23577 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23579 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23580 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23581 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23582 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23583 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23584 (Fw32_define_rgb_color, Fw32_load_color_file)
23585 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23586 Fix typos in docstrings.
23587 (Fx_server_version): Reflow docstring.
23588 (Fw32_shell_execute): Doc fixes.
23590 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
23592 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23593 if w32_parse_hot_key returned nil.
23595 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23597 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23599 2007-11-09 Jason Rumney <jasonr@gnu.org>
23601 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23603 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23605 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23606 Remove W32_SCROLL_BAR_CLICK_EVENT.
23608 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23609 Add MULTIMEDIA_KEY_EVENT.
23611 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23612 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23613 (make_lispy_event) [WINDOWSNT]: Use it to translate
23614 MULTIMEDIA_KEY_EVENT.
23616 * w32term.h (WM_APPCOMMAND): Define if not already.
23617 (GET_APPCOMMAND_LPARAM): Likewise.
23619 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23622 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23623 (syms_of_w32fns): Export and initialize it.
23624 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23626 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
23628 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23631 * xdisp.c (handle_face_prop): Fix last change.
23633 2007-11-09 Richard Stallman <rms@gnu.org>
23635 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23636 not just for after-strings and before-strings.
23637 Call face_for_overlay_string and pass the overlay to it.
23638 (handle_display_prop): Determine whether property came from an overlay.
23639 Pass OVERLAY arg to handle_single_display_spec.
23640 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23641 (load_overlay_strings): Fill in it->string_overlays.
23642 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23644 * xfaces.c (face_for_overlay_string): Function renamed from
23645 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23647 * dispextern.h (struct it): New elt string_overlays.
23648 New elt from_overlay, also in stack.
23649 Rearrange a few elements.
23650 (face_for_overlay_string): Decl renamed from
23651 face_at_buffer_position_no_overlays, and add argument.
23653 2007-11-09 Richard Stallman <rms@gnu.org>
23655 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23656 to get the base face for an overlay string.
23658 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23660 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23662 * xdisp.c (handle_stop): Move some code out of loop.
23664 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23666 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23667 Fix conversion from Lisp object to ATSUFontID.
23669 2007-11-09 Jason Rumney <jasonr@gnu.org>
23671 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23673 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23675 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23676 Don't assume regions are aligned to page boundary.
23677 (print_load_command_name): Add LC_UUID if defined.
23679 2007-11-09 Richard Stallman <rms@gnu.org>
23681 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23683 2007-11-07 Jason Rumney <jasonr@gnu.org>
23685 * s/windows95.h: Remove.
23687 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23689 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23690 abort with a message on unhandled store_type values.
23692 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23694 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23695 Remove HAVE_X11R5 and HAVE_X11R4.
23697 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23699 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23701 2007-11-01 Johan Bockgård <bojohan@gnu.org>
23703 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23704 Don't set s->stippled_p here, since it has already been set by
23705 x_set_glyph_string_gc from x_draw_glyph_string.
23707 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23709 * sunfns.c: Remove file.
23713 * m/sparc.h: Remove Sun windows code.
23715 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23717 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23718 (init_keyboard): Set current_kboard's window-system to nil.
23719 (tty_read_avail_input): Typo.
23720 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23722 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23729 * Makefile.in: Remove all mentions of X10.
23731 * dispnew.c (syms_of_display): Don't mention version 10.
23733 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
23735 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23736 ($(BLD)/abbrev.$(O)): Remove.
23738 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23740 Rewrite abbrev.c in Elisp.
23741 * image.c (Qcount): Don't declare as extern.
23742 (syms_of_image): Initialize and staticpro `Qcount'.
23743 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23744 * emacs.c (main): Don't call syms_of_abbrev.
23745 * Makefile.in (obj): Remove abbrev.o.
23746 (abbrev.o): Remove.
23747 * abbrev.c: Remove.
23749 2007-10-26 Martin Rudalics <rudalics@gmx.at>
23751 * window.c (window_min_size_2): Don't count header-line.
23753 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23755 * frame.h (struct frame): Move all bit fields after the first bit
23756 field to take advantage of the available space. Group all the
23757 chars together to reduce wasted space due to padding.
23759 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
23761 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23763 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23764 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23765 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23766 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23767 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23768 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23769 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23770 (last_marked, mark_object_loop_halt): Make static.
23772 * frame.c (syms_of_frame) <delete-frame-functions>:
23773 Fix typo in docstring.
23775 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
23777 * w32.c (init_environment): Fix tiny memory leak.
23778 (w32_get_resource): Remove unused variable `ok'.
23780 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23782 Make `window-system' into a keyboard-local variable (rather than
23783 frame-local as done originally by multi-tty).
23785 * keyboard.h (struct kboard): Add Vwindow_system.
23786 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23787 (mark_kboards): Mark Vwindow_system.
23789 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23790 (init_display): Don't set the obsolete `window-system' frame-param.
23792 * xterm.c (x_term_init):
23793 * w32term.c (w32_create_terminal):
23794 * term.c (init_tty): Set Vwindow_system.
23795 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23796 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23798 * xfns.c (Fx_create_frame, x_create_tip_frame):
23799 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23800 * macfns.c (Fx_create_frame):
23801 Don't set the obsolete `window-system' frame-param.
23803 * frame.h (Qwindow_system): Remove.
23804 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23805 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23807 2007-10-24 Richard Stallman <rms@gnu.org>
23809 * frame.c (x_figure_window_size): For fullscreen case,
23810 set USPosition | PPosition without clobbering rest of window_prompting.
23812 * keyboard.c (Fcurrent_idle_time): Doc fix.
23814 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23816 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23818 * process.c (unwind_request_sigio): Only define if __ultrix__.
23820 * callproc.c (child_setup): Remove spurious *.
23822 * lisp.h (Fget_text_property): Declare.
23823 (have_menus_p): Declare it here rather than in sys-dep header files.
23824 * macterm.h (have_menus_p):
23825 * msdos.h (have_menus_p):
23826 * xterm.h (have_menus_p): Remove.
23828 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23829 (Fmake_variable_frame_local): Just check the variable's const-ness
23830 rather than checking nil or t.
23832 2007-10-22 Jason Rumney <jasonr@gnu.org>
23834 * w32fns.c: Include math.h.
23835 (w32_abort): Declaration moved to nt/config.nt.
23837 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23838 (abort): Redefinition moved to nt/config.nt.
23840 * m/windowsnt.h: Remove.
23842 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
23844 * emacs.c (Fdump_emacs): Fix typo in message.
23845 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23846 <installation-directory>: Reflow docstring.
23848 2007-10-22 Juri Linkov <juri@jurta.org>
23850 * minibuf.c: Allow minibuffer default to be a list of default values.
23851 With empty input use the first element of this list as returned default.
23853 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23854 (read_minibuf): If defalt is cons, set histstring to its car.
23855 (Fread_string): If default_value is cons, set val to its car.
23856 (Fread_buffer): If def is cons, use its car.
23857 (Fcompleting_read): If defalt is cons, set val to its car.
23859 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
23861 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23863 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
23865 * doc.c (Fdocumentation): Check for advice in all cases.
23867 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
23869 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23871 2007-10-19 Richard Stallman <rms@gnu.org>
23873 * doc.c (Fdocumentation): Check for and handle an advised function.
23875 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
23877 * process.c (Fset_process_filter): Doc fix.
23879 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23881 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23882 which caused key-translation-map to applied repeatedly (thus breaking
23885 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23887 * xselect.c (x_own_selection, x_handle_selection_clear)
23888 (x_clear_frame_selections):
23889 * w32menu.c (list_of_panes, list_of_items):
23890 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23891 * textprop.c (validate_plist, interval_has_all_properties)
23892 (interval_has_some_properties, interval_has_some_properties_list)
23893 (add_properties, text_property_list):
23894 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23895 * minibuf.c (Fassoc_string):
23896 * macselect.c (x_own_selection, x_clear_frame_selections)
23897 (Fx_disown_selection_internal):
23898 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23899 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23901 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
23903 * process.c: Link to libs for calling res_init() if available.
23904 (Fmake_network_process): Call res_init() before getaddrinfo or
23905 gethostbyname, if possible.
23907 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23909 * lread.c (read1): Set pvectype for char_tables.
23911 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23912 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23914 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23916 * alloc.c (free_misc): Use XMISCTYPE.
23917 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23919 2007-10-17 Glenn Morris <rgm@gnu.org>
23921 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23922 (syms_of_minibuf): Add Qcompletion_ignore_case.
23923 * dired.c (Qcompletion_ignore_case): Change to external.
23924 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23925 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23926 (Fread_file_name): Use it rather than intern'ing.
23928 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23929 (Fread_coding_system): Ignore case of user input.
23931 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23933 * xdisp.c (handle_display_prop): Ignore display specs after
23934 replacing one when string text is being replaced.
23935 (handle_single_display_spec): Pretend as if characters with display
23936 property haven't been consumed only when buffer text is being replaced.
23938 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23940 * xfns.c (Fx_create_frame, Fx_display_list):
23941 * window.c (window_fixed_size_p, enlarge_window)
23942 (shrink_window_lowest_first):
23943 * macterm.c (init_font_name_table):
23944 * macfns.c (Fx_create_frame, Fx_display_list):
23945 * lread.c (close_load_descs):
23946 * keyboard.c (read_char_x_menu_prompt):
23947 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23948 * coding.c (code_convert_region_unwind): Test the type of an object
23949 rather than just !NILP before extracting data from it.
23951 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23953 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23954 (XMISCANY): New macro.
23955 (XMISCTYPE): Use it.
23956 (struct Lisp_Misc_Any): New type.
23957 (union Lisp_Misc): Use it.
23958 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23959 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23960 (find_symbol_value, set_internal, default_value, Fset_default)
23961 (Fmake_variable_buffer_local, Fmake_local_variable)
23962 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23963 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23964 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23965 * alloc.c (allocate_buffer): Set the size and tag.
23966 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23968 (die): Follow the GNU convention for error messages.
23969 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23970 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23972 (set_buffer_internal_1):
23973 * frame.c (store_frame_param):
23974 * eval.c (specbind):
23975 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23977 * doc.c (Fsnarf_documentation): Simplify.
23979 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23981 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23982 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23984 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23986 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23988 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23990 * eval.c (do_autoload): Don't save autoloads.
23992 * data.c (Ffset): Save autoload of the function being set.
23994 2007-10-07 John Paul Wallington <jpw@pobox.com>
23996 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23997 parameter before setting up faces.
23999 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24001 * ccl.c (Fregister_code_conversion_map):
24002 * keyboard.c (append_tool_bar_item): Reformat last change.
24004 * lisp.h (eabs): Rename from `abs'. All callers changed.
24006 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24008 * buffer.c (add_overlay_mod_hooklist):
24009 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24010 * fontset.c (make_fontset):
24011 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24012 (append_tool_bar_item):
24013 * macmenu.c (grow_menu_items):
24014 * w32menu.c (grow_menu_items):
24015 * xmenu.c (grow_menu_items): Use larger_vector.
24017 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24019 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24020 selected frame'' on MSDOS).
24022 2007-10-12 Martin Rudalics <rudalics@gmx.at>
24024 * frame.c (Qexplicit_name): New variable.
24025 (x_report_frame_params): Report it in parameter alist.
24026 (syms_of_frame): Intern and staticpro it.
24028 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24030 * macfns.c (x_create_tip_frame): Set terminal for frame.
24032 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24034 * frame.c (Qenvironment): Remove.
24035 (syms_of_frame) <Qenvironment>: Don't initialize.
24036 (Fdelete_frame): Don't treat the `environment' param specially.
24037 * frame.h (Qenvironment): Don't declare.
24038 * callproc.c (set_initial_environment): Don't set unused frame param.
24040 * frame.c (Fframe_with_environment): Remove.
24041 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24043 * lisp.h (Fframe_with_environment): Don't declare.
24045 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
24047 * indent.c (indent_tabs_mode, last_known_column)
24048 (last_known_column_modified): Make static.
24049 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24051 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24053 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24055 2007-10-09 Jason Rumney <jasonr@gnu.org>
24057 * w32term.c (x_set_window_size): Disable code that attempts to tell
24058 Lisp code about a size change before it actually happens.
24060 2007-10-09 Richard Stallman <rms@gnu.org>
24062 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24063 return HANDLED_RETURN.
24065 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24067 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24068 when there's an unread command event.
24070 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24071 window autoselection act appropriately when leaving selected frame.
24072 (syms_of_frame): Initialize focus_follows_mouse.
24073 * frame.h (focus_follows_mouse): Extern it.
24074 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24075 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24076 * msdos.c (dos_rawgetc): Likewise.
24077 * w32term.c (w32_read_socket): Likewise.
24078 * xterm.c (handle_one_xevent): Likewise.
24079 * xdisp.c (syms_of_xdisp): In doc-string of
24080 mouse-autoselect-window mention focus-follows-mouse.
24082 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24084 * macterm.c (mac_load_query_font): Fix missing return value.
24085 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24088 2007-10-08 Richard Stallman <rms@gnu.org>
24090 * xdisp.c (get_window_cursor_type): Implement documented behavior
24091 for cursor-in-non-selected-windows = t.
24093 2007-10-08 Jason Rumney <jasonr@gnu.org>
24095 * w32.c (w32_get_resource): Always close registry keys.
24097 2007-10-08 Jason Rumney <jasonr@gnu.org>
24099 * makefile.w32-in (LIBS): Add COMCTL32.
24101 * w32fns.c (globals_of_w32fns): Init common controls.
24103 2007-10-08 Richard Stallman <rms@gnu.org>
24105 * image.c (our_memory_buffer): Rename from omfib_buffer.
24107 2007-10-08 Richard Stallman <rms@gnu.org>
24109 * buffer.c (Foverlays_at): Doc fix.
24111 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24113 * fns.c (Fplist_put): Preserve uneven tail data.
24115 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24117 * termhooks.h (enum event_kind): Remove trailing comma.
24119 * frame.h (enum): Remove trailing comma.
24121 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24123 * w32proc.c (delete_child): Don't terminate threads of zombies.
24125 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24127 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24129 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24130 last-repeatable-command.
24131 (init_kboard): Initialize Vlast_repeatable_command.
24132 (command_loop_1): Set it to real_this_command unless that was
24133 bound to an input event.
24134 (mark_kboards): Mark it.
24136 2007-10-08 Richard Stallman <rms@gnu.org>
24138 * eval.c (condition-case): Doc fix.
24140 2007-10-08 Masatake YAMATO <jet@gyve.org>
24142 * xfaces.c (tty_supports_face_attributes_p): Fix code
24143 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24144 was copied and not edited.
24146 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24148 Add new `input-decode-map' keymap and use it for terminal
24150 * keyboard.h (struct kboard): Add Vinput_decode_map.
24151 Remove Vlocal_key_translation_map.
24152 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24153 (init_kboard): Init input-decode-map.
24154 Replace local-key-translation-map back with key-translation-map.
24155 (syms_of_keyboard): Declare input-decode-map.
24156 Remove local-key-translation-map. Update docstrings.
24157 (mark_kboards): Mark Vinput_decode_map.
24158 Don't mark Vlocal_key_translation_map.
24159 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24160 Replace local-key-translation-map back with key-translation-map.
24161 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24162 Bind in input-decode-map rather than function-key-map.
24164 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24165 This was made redundant by the previous introduction of XSETPVECTYPE.
24167 2007-10-09 Richard Stallman <rms@gnu.org>
24169 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24171 2007-09-29 Richard Stallman <rms@gnu.org>
24173 * eval.c (internal_condition_case_2, internal_condition_case_1)
24174 (internal_condition_case): Reenable abort if x_catching_errors ()
24175 to see if that really happens and why.
24177 2007-10-06 Andreas Schwab <schwab@suse.de>
24179 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24181 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
24183 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24185 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24187 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24189 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24191 * window.h (struct window):
24192 * window.c (struct save_window_data, struct saved_window):
24193 * termhooks.h (struct terminal):
24194 * process.h (struct Lisp_Process):
24195 * frame.h (struct frame):
24196 * buffer.h (struct buffer):
24197 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24198 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24199 The size field of (pseudo)vectors is now unsigned.
24200 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24202 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24203 Turn `count' into an integer.
24205 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24206 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24207 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24208 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24209 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24211 * alloc.c (allocate_pseudovector): New fun.
24212 (ALLOCATE_PSEUDOVECTOR): New macro.
24213 (allocate_window, allocate_terminal, allocate_frame)
24214 (allocate_process): Use it.
24215 (mark_vectorlike): New function.
24216 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24217 (mark_terminals): Use it.
24218 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24219 (Fmake_byte_code): Use XSETPVECTYPE.
24221 * frame.c (Fframe_parameters): Minor simplification.
24223 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24225 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24227 * buffer.c (Fget_buffer_create, init_buffer_once):
24228 * lread.c (defsubr):
24229 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24231 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24232 defined differently in the m/*.h files.
24233 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24234 (XSETPVECTYPE): New macro.
24235 (XSETPSEUDOVECTOR): Use it.
24237 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24238 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24240 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24241 * lread.c (defvar_per_buffer):
24242 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24244 * window.c (candidate_window_p): Only consider as visible frames that
24245 are on the same terminal.
24247 * m/ibms390x.h (MARKBIT): Remove unused macro.
24249 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
24251 * lread.c (Fload): Fix typo in docstring.
24253 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24255 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24256 of a non-zero value can't yield zero.
24258 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24260 * term.c (term_clear_mouse_face, term_mouse_highlight)
24261 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24263 * print.c (safe_debug_print): Use XHASH.
24265 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24266 Lisp elements such as tags.
24267 (XHASH): New macro.
24269 (SREF, SSET, STRING_COPYIN): Use SDATA.
24270 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24272 * alloc.c (mark_terminal): Remove left-over declaration.
24273 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24274 (allocate_vectorlike): Remove type argument. Adjust callers.
24275 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24276 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24278 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24279 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24280 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24281 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24282 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24285 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24286 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24287 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24289 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24291 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24294 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24296 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24298 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24300 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24302 (handle_one_term_event): Use Gpm_DrawPointer.
24303 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24304 Signal errors instead of returning nil. Always return nil.
24305 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24306 Make it a noop if gpm-mouse was not activated.
24307 (syms_of_term): Update names.
24309 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24311 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24312 (init_sys_modes): Check that gpm_tty is the current tty.
24314 * alloc.c (allocate_terminal): Set the vector size to only count the
24315 lisp fields. Initialize those to nil.
24316 (mark_object): Don't treat terminals specially.
24317 (mark_terminal): Remove.
24318 (mark_terminals): Use mark_object instead.
24320 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24321 the GC to the beginning.
24324 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24326 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24328 2007-09-25 Jason Rumney <jasonr@gnu.org>
24330 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24332 * w32console.c (create_w32cons_output): Remove.
24334 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24336 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24337 (reset_sys_modes): Use reset_terminal_modes_hook.
24339 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24341 * eval.c (do_autoload): Don't output any message.
24343 2007-09-24 Juri Linkov <juri@jurta.org>
24345 * emacs.c (standard_args): Change priority of "--no-splash"
24346 from 40 to 3. Add "--no-desktop" with the same priority.
24348 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24350 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24351 and optimize the case where they are all 1.
24353 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
24355 * lisp.h (abs): Define if not defined.
24356 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24357 Don't define `abs', since it's defined in lisp.h.
24359 2007-09-22 Eli Zaretskii <eliz@gnu.org>
24361 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24362 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24363 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24364 (init_tty): Use DEV_TTY instead of "/dev/tty".
24365 [WINDOWSNT]: No need to protect from NAME arg being null.
24367 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24369 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24372 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24374 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24375 (gpm_tty): Change its type.
24376 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24377 (gpm_tty): Change its type and initialize it.
24378 (Fterm_open_connection): Check the frame is indeed a tty.
24379 Use the new gpm_tty.
24380 (Fterm_close_connection): Use the new gpm_tty.
24381 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24382 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24384 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
24386 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24387 underline_color, to draw strike-through.
24389 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24391 * lisp.h (allocate_terminal): Declare.
24393 * window.c (candidate_window_p): Consider frames that are being placed
24394 by the user as somewhere between visible and iconified.
24395 (window_loop): Prefer windows on the current frame.
24396 (Fselect_window): Move the use of select-frame to the beginning so we
24397 can just delegate all the work (it'll call us back anyway).
24399 * frame.c (Qdisplay_environment_variable):
24400 * frame.h (Qdisplay_environment_variable): Delete.
24402 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24403 of the first arg, since that value may be a union.
24405 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24406 parameter rather than Qdisplay_environment_variable. If all else
24407 fails, look for DISPLAY in initial-environment.
24409 2007-09-21 Glenn Morris <rgm@gnu.org>
24411 * Makefile.in (emacstool): Remove target.
24412 (lisp, shortlisp): Remove termdev.elc.
24414 2007-09-21 Markus Triska <markus.triska@gmx.at>
24416 * xterm.c (x_delete_display): Compile session management conditionally.
24418 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24420 * callproc.c (getenv_internal_1): New function.
24421 (getenv_internal): Use it.
24422 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24424 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24425 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24426 (Fset_terminal_parameter): Work with dead terminals as well.
24427 (Fmodify_terminal_parameters): Remove.
24429 * terminal.c (get_terminal): Handle terminals.
24430 Make sure the terminal returned is live.
24431 (create_terminal): Use allocate_terminal.
24432 (mark_terminals): Move to alloc.c.
24433 (delete_terminal): Use terminal->name as liveness status.
24434 NULL out fields after freeing their contents.
24435 Don't deallocate the object.
24436 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24437 rather than an int.
24438 (Fterminal_live_p): Accept non-integer arguments.
24439 (Fterminal_list): Return terminal objects rather than an ints.
24441 * alloc.c (enum mem_type): New member for `terminal' objects.
24442 (allocate_terminal): New function.
24443 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24445 (mark_terminal): New fun.
24446 (mark_terminals): Move from terminal.c.
24448 * term.c (get_tty_terminal): Don't treat output_initial specially.
24449 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24450 (delete_tty): Use terminal->name as liveness status.
24452 * termhooks.h (struct terminal): Make it into a pseudovector.
24453 Remove `deleted' replaced by checking `name's nullness.
24455 * print.c (print_object): Handle terminals.
24457 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24458 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24460 * frame.c (make_terminal_frame):
24461 * keyboard.c (tty_read_avail_input):
24462 * w32term.c (x_delete_terminal):
24463 * xfns.c (Fx_create_frame, x_create_tip_frame):
24464 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24466 2007-09-20 Glenn Morris <rgm@gnu.org>
24468 * process.c (Fmake_network_process): Doc fix.
24470 2007-09-19 Jason Rumney <jasonr@gnu.org>
24472 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24474 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24476 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24477 Fix a C warning regarding variable constness.
24479 * xterm.c (handle_one_xevent): Fix a C warning.
24481 2007-09-18 Jason Rumney <jasonr@gnu.org>
24483 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24485 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24487 * gtkutil.c (gdpy_def): New variable.
24488 (xg_initialize): Initialize gdpy_def.
24489 (xg_display_close): If no other display exists, set gdpy_def to a
24492 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24494 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24495 when we have no file name for the icon.
24496 (xg_tool_bar_expose_callback): Remove.
24497 (xg_create_tool_bar): Don't connect expose signal to
24498 xg_tool_bar_expose_callback.
24499 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24501 2007-09-16 Andreas Schwab <schwab@suse.de>
24503 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24504 values instead of zapping them.
24506 2007-09-14 Glenn Morris <rgm@gnu.org>
24508 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24509 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24510 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24511 scope and rename to omfib_buffer for clarity.
24512 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24514 2007-09-14 Kenichi Handa <handa@m17n.org>
24516 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24518 2007-09-13 Jason Rumney <jasonr@gnu.org>
24520 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24522 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24524 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24525 (mac_term_init): Call here instead, passing rif.
24527 2007-09-13 Glenn Morris <rgm@gnu.org>
24529 * s/hpux.h: No longer define `static' as nothing.
24531 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24533 * callint.c (Fcall_interactively): Remove unused var `fun'.
24535 2007-09-12 Romain Francoise <romain@orebokech.com>
24537 * window.c (prefer_window_split_horizontally, display_buffer):
24538 Revert 2007-09-08 change.
24540 2007-09-12 Glenn Morris <rgm@gnu.org>
24542 * alloca.c: Remove file.
24543 * Makefile.in (alloca): Do not undef.
24544 (allocaobj, alloca.o): Remove.
24545 (otherobj): Remove allocaobj.
24546 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24547 * regex.c (C_ALLOCA): Remove all references and code that was only
24548 used when this was defined.
24549 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24550 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24551 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24553 * Makefile.in (SOURCES, unlock, relock): Delete.
24555 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24556 (menu_grab_callback): All uses changed.
24558 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24559 (x_reply_selection_request): All uses changed.
24561 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24563 * lread.c (load_warn_old_style_backquotes): Change message to look
24564 better when it appears in the middle of byte-compiler messages.
24566 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24568 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24570 * xterm.c (x_create_terminal): Add comment.
24572 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24574 2007-09-10 Richard Stallman <rms@gnu.org>
24576 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24578 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24580 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24581 (DEFUN): Document `intspec', use it instead of `prompt'.
24583 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24585 * data.c (Finteractive_form): If the interactive specification starts
24586 with a `(', use it as a Lisp form.
24588 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24589 name and file modes.
24591 * callint.c (Fcall_interactively): Comment fixes.
24593 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24595 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24596 and compiled functions.
24598 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24600 * window.c (prefer_window_split_horizontally): New variable.
24601 (display_buffer): Consider splitting window horizontally depending
24602 on prefer_window_split_horizontally.
24604 2007-09-08 Eli Zaretskii <eliz@gnu.org>
24606 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24608 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24610 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24612 * frame.c (x_set_frame_parameters): Check number is positive before
24615 * window.c (freeze_window_start): Don't presume selected_window holds
24617 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24619 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24621 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24623 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24625 * window.c (Vsplit_window_preferred_function): New var.
24626 (Fdisplay_buffer): Use it.
24627 (syms_of_window): Export, and initialize it.
24629 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24631 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24633 2007-09-06 Glenn Morris <rgm@gnu.org>
24635 * gtkutil.c (menu_grab_callback) <cnt>:
24636 * xselect.c (x_reply_selection_request) <cnt>: Move static
24637 variable to file scope.
24639 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24641 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24642 consistent values of selected_frame and selected_window.
24644 2007-09-04 Jason Rumney <jasonr@gnu.org>
24646 * w32console.c (initialize_w32_display): Zero unused hooks.
24648 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24650 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24651 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24653 2007-09-04 Jason Rumney <jasonr@gnu.org>
24655 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24656 in w32console.c. Set up input. Remove XXX comments that have been
24657 confirmed as correct.
24659 * s/ms-w32.h (MULTI_KBOARD): Define.
24661 * w32console.c (one_and_only_w32cons): Remove.
24662 (initialize_w32_display): Take terminal argument.
24664 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24665 initialize_w32_display.
24666 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24668 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24670 * keyboard.c (discard_mouse_events): Discard it.
24671 (make_lispy_event): Translate it to a lisp event.
24672 (lispy_wheel_names): Add wheel-left and right events.
24673 (syms_of_keyboard): Enlarge wheel_syms.
24675 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24676 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24678 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24680 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24681 from WM_MOUSEHWHEEL.
24682 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24684 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24687 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24688 keyboard for the terminal.
24690 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24692 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24693 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24694 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24695 and resume-tty-function to resume-tty-hook.
24696 (Fsuspend_tty, Fresume_tty): Use new names.
24698 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24700 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24701 if it starts with "n:".
24703 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24705 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24707 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24710 * frame.c (Qterm_environment_variable): Remove.
24711 (syms_of_frame): Don't init and staticpro it.
24713 * callproc.c (getenv_internal): Remove special case for $TERM.
24715 * callproc.c (Vinitial_environment): New variable.
24716 (set_initial_environment): Initialize it.
24717 (syms_of_callproc): Declare it.
24718 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24719 TERM under which a process runs is never related to the TERM in which
24722 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24724 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24725 * s/darwin.h: ... do it here.
24727 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24729 * lisp.h (set_initial_environment): Rename from set_global_environment.
24731 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24732 removed by mistake on the multi-tty branch.
24734 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24735 (Fmodify_frame_parameters): Return a value.
24737 * image.c (png_load): Comment-out var only used in commented-out code.
24739 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24740 before passing it to mark_object.
24742 * xfaces.c (internal_resolve_face_name): Return a value.
24743 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24745 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24746 (x_icon): Comment-out var only used in commented-out code.
24748 2007-08-29 Romain Francoise <romain@orebokech.com>
24750 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24751 QUIT hasn't been provided.
24753 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24755 * callproc.c (child_setup, getenv_internal): Use the
24756 display-environment-variable and term-environment-variable frame params.
24757 (set_initial_environment): Initialise Vprocess_environment.
24759 * config.in: Disable multi-keyboard support on a mac.
24761 * frame.c (Qterm_environment_variable)
24762 (Qdisplay_environment_variable): New variables.
24763 (syms_of_frame): Intern and staticpro them.
24764 (Fmake_terminal_frame): Disable output method test.
24766 * frame.h: Declare them here.
24768 * macfns.c (x_set_mouse_color): Get rif from the frame.
24769 (x_set_tool_bar_lines): Don't use updating_frame.
24770 (mac_window): Add 2 new parameters for consistency with other systems.
24771 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24772 frame parameters following what is done in X11 and w32. Don't use
24773 FRAME_MAC_DISPLAY_INFO.
24774 (Fx_open_connection, start_hourglass): Remove window-system check.
24775 (x_create_tip_frame): Get the keyboard from the terminal.
24777 * macmenu.c: Reorder includes.
24778 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24780 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24781 terminal parameter.
24782 (x_clear_frame): Add a frame parameter.
24783 (note_mouse_movement): Get rif from the frame.
24784 (mac_term_init): Initialize the terminal.
24785 (mac_initialize): Make static and move terminal initialization ...
24786 (mac_create_terminal): ... to this new function.
24788 * macterm.h (struct mac_display_info): Add terminal.
24789 (mac_initialize): Delete declaration.
24791 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24793 * sysdep.c: Comment out text after #endif.
24795 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24796 is defined. Better initialize ttys in windows. Use terminal
24797 specific mouse_position_hook.
24799 * termhooks.h (union display_info): Add mac_display_info.
24801 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24802 Set the default minibuffer frame, window_system and the rest of the
24803 frame parameters following what is done in X11.
24805 * w32term.c (w32_initialize): Make static.
24807 * xselect.c (x_handle_selection_clear): Only access
24808 terminal->kboard when MULTI_KBOARD is defined.
24810 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24811 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24813 2007-08-29 Jason Rumney <jasonr@gnu.org>
24815 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24816 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24818 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24819 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24821 * keyboard.c (restore_kboard_configuration): Only define when
24822 MULTI_KBOARD defined.
24824 * makefile.w32-in: Update dependancies from Makefile.in.
24825 (OBJ1): Add terminal.$(O)
24827 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24828 Don't define function body.
24829 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24831 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24833 * w32.c (request_sigio, unrequest_sigio): Remove.
24835 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24836 (w32con_clear_frame, w32con_clear_end_of_line)
24837 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24838 (w32con_delete_glyphs, w32con_set_terminal_window)
24839 (scroll_line, w32_sys_ring_bell): Add frame arg.
24840 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24842 (PICK_FRAME): Remove.
24843 (w32con_write_glyphs): Use frame specific terminal coding.
24844 (one_and_only_w32cons): New global variable.
24845 (initialize_w32_display): Use it for storing hooks.
24846 (create_w32cons_output): New function.
24848 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24851 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24853 (x_set_tool_bar_lines): Don't use updating_frame.
24854 (Fx_create_frame): Set terminal and ref count.
24855 (Fx_open_connection): Remove window-system check.
24857 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24859 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24860 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24861 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24863 (x_delete_terminal, w32_create_terminal): New functions.
24864 (w32_term_init): Create a terminal.
24865 (w32_initialize): Move terminal specific initialization to
24866 w32_create_terminal.
24868 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24869 (w32_clear_rect, w32_clear_area): Use background from frame.
24870 (w32_display_info): Add terminal.
24871 (w32_sys_ring_bell, x_delete_display): Declare here.
24873 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24875 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24877 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24879 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24880 Fix get_named_tty calls for the controlling tty.
24882 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24884 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
24886 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24888 * term.c (tty_insert_glyphs): Add missing first parameter.
24890 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24892 * buffer.c (Fbuffer_list, Fbury_buffer):
24893 Take frame->buried_buffer_list into account.
24895 * cm.c (current_tty): New variable, for cmputc().
24897 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24898 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24899 (cmgoto): Add tty parameter. Pass it on to calccost().
24900 Use emacs_tputs() instead of tputs().
24902 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24904 (current_tty): New variable, for cmputc().
24905 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24907 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24908 (internal_condition_case, internal_condition_case_1)
24909 (internal_condition_case_2): Don't abort when x_catching_errors.
24911 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24912 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24913 prevent crashes caused by bogus longjmps in read_char.
24915 * keymap.h (Fset_keymap_parent): Add EXFUN.
24917 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24918 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24919 Remove redundant definition.
24921 * macfns.c (x_set_mouse_color, x_make_gc):
24922 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24924 * w32term.c (x_free_frame_resources):
24925 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24926 (w32_initialize): Use the accessor macros for terminal characteristics.
24928 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24929 Use the accessor macros for terminal characteristics.
24930 * msdos.c (internal_terminal_init): Use the accessor macros for
24931 terminal characteristics.
24932 (ScreenVisualBell, internal_terminal_init):
24933 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24935 * termopts.h (no_redraw_on_reenter): Declare.
24937 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24938 (mark_terminals, mark_ttys): Declare.
24939 (Fgarbage_collect): Call them.
24940 (mark_object): Mark buried_buffer_list.
24942 * prefix-args.c: Include stdlib.h for exit.
24944 * syssignal.h: Add comment.
24946 * indent.c: Include stdio.h.
24948 * window.h (Vinitial_window_system): Declare.
24949 (Vwindow_system): Delete declaration.
24951 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24953 * image.c (lookup_image): Don't initialize `c' until the xasserts
24956 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24957 FRAME_FOREGROUND_PIXEL.
24959 * print.c (print_preprocess): Don't lose print_depth levels while
24962 * widget.c (update_from_various_frame_slots):
24963 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24965 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24967 (window_internal_height): Remove bogus make_number call.
24968 (init_window_once): Call make_terminal_frame with two zero parameters.
24970 * fileio.c (Fread_file_name): Update comment.
24972 * callint.c (Fcall_interactively):
24973 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24974 Make sure it is correctly unwound.
24976 * xsmfns.c (x_session_close): New function.
24978 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24979 Delete declarations.
24981 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24982 (x_output): Remove background_pixel and foreground_pixel fields.
24983 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24984 (x_delete_device, x_session_close): Declare.
24986 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24987 (read_filtered_event): Call `read_char' with a local
24988 `wrong_kboard_jmpbuf'.
24990 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24991 Don't call single_kboard_state. Use FRAME_RIF.
24993 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24996 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24997 (Fframe_with_environment, Fset_input_meta_mode)
24998 (Fset_quit_char): EXFUN.
24999 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25000 (init_sys_modes, reset_sys_modes): Update prototypes.
25001 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25003 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25004 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25005 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25006 Delete declarations.
25007 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25008 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25011 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25012 already does that during init_display(). Call syms_of_keymap
25013 before syms_of_keyboard. Call `syms_of_terminal'.
25014 Call set_initial_environment, not set_process_environment.
25015 (shut_down_emacs): Call reset_all_sys_modes() instead of
25018 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25019 (internal_resolve_face_name, resolve_face_name_error): New functions.
25020 (resolve_face_name): Protect against loops and errors thrown by Fget.
25021 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25022 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25024 * scroll.c: Replace CURTTY() with local variables throughout the
25025 file (where applicable).
25026 (calculate_scrolling, calculate_direct_scrolling)
25027 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25030 * keymap.c (Vfunction_key_map): Remove.
25031 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25032 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25033 (Vkey_translation_map): Remove.
25034 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25035 (Fdescribe_buffer_bindings)
25036 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25037 Update for terminal-local key-translation-map.
25039 * Makefile.in (callproc.o): Update dependencies.
25040 (lisp, shortlisp): Add termdev.elc.
25041 (obj): Add terminal.o.
25042 (terminal.o): Add dependencies.
25043 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25044 (data.o, fns.o): Add termhooks.h dependency.
25045 (SOME_MACHINE_LISP): Add dnd.elc.
25046 (minibuf.o): Fix typo.
25047 Update dependencies.
25049 * data.c (do_symval_forwarding, store_symval_forwarding)
25050 (find_symbol_value): Use the selected frame's keyboard, not
25053 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25056 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25058 (syms_of_xmenu): Update defsubr.
25059 (mouse_position_for_popup, Fx_popup_menu)
25060 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25061 (set_frame_menubar, free_frame_menubar)
25062 (create_and_show_popup_menu, xmenu_show)
25063 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25066 * xselect.c (x_own_selection): Abort if not an X frame.
25067 (some_frame_on_display): Check if it is an X frame.
25068 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25070 * coding.c: Include frame.h and termhooks.h.
25071 (terminal_coding, keyboard_coding): Delete.
25072 (Fset_terminal_coding_system_internal)
25073 (Fset_keyboard_coding_system_internal)
25074 (Fkeyboard_coding_system)
25075 (Fterminal_coding_system): Add a terminal parameter.
25076 Get terminal_coding from the terminal.
25077 (init_coding_once): Don't call setup_coding_system here.
25079 * dispextern.h (set_scroll_region, turn_off_insert)
25080 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25081 (tty_clear_end_of_line, tty_setup_colors)
25082 (delete_tty, updating_frame)
25083 (produce_special_glyphs, produce_glyphs, write_glyphs)
25084 (insert_glyphs): Remove.
25085 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25086 (tty_turn_off_highlight, get_tty_size): Add declaration.
25087 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25089 * frame.h (enum output_method): Add output_initial.
25090 (struct x_output): Delete.
25091 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25092 Access foreground_pixel and background_pixel directly from the frame.
25093 (tty_display): Delete.
25094 (struct frame): Add buried_buffer_list, foreground_pixel,
25095 background_pixel and terminal. Delete kboard.
25096 (union output_data): Add tty.
25097 (FRAME_KBOARD): Get the kboard from the terminal.
25098 (FRAME_INITIAL_P): New macro.
25099 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25100 (Qterm_environment_variable, Qdisplay_environment_variable)
25101 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25104 * termchar.h (tty_output, tty_display_info): New structures.
25105 (tty_list): Declare.
25106 (FRAME_TTY, CURTTY): New macros.
25107 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25108 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25109 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25110 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25112 * callproc.c: Include frame.h and termhooks.h, for terminal
25114 (add_env): New function.
25115 (child_setup): Use it.
25116 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25117 (getenv_internal): Fix get_terminal_param call.
25118 (Fgetenv_internal, egetenv): Update doc.
25119 (syms_of_callproc): Initialize Vprocess_environment to nil.
25120 Register and initialize them. Remove obsolete defvars. Update doc
25122 (child_setup): Handle Vlocal_environment_variables.
25123 (getenv_internal): Add terminal parameter.
25124 Handle Vlocal_environment_variables.
25125 (Fgetenv_internal): Add terminal parameter.
25126 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25127 environment in a frame (not terminal) parameter. Update doc strings.
25128 (set_initial_environment): Rename from set_global_environment.
25129 Store Emacs environment in initial frame parameter.
25131 * xdisp.c (redisplay_internal): Update references to
25132 `previous_terminal_frame'.
25133 (display_mode_line, Fformat_mode_line): Replace calls to
25134 `push_frame_kboard' with `push_kboard'.
25135 (get_glyph_string_clip_rects): Add extra parentheses and
25136 braces to prevent compiler warnings.
25137 (calc_pixel_width_or_height): Add xassert to check that the
25138 frame is alive. Don't call `lookup_image' on a termcap frame.
25139 (message2_nolog, message3_nolog, redisplay_internal)
25140 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25141 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25142 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25143 (Fx_display_pixel_width, Fx_display_pixel_height)
25144 (Fx_display_planes, Fx_display_color_cells)
25145 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25146 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25147 (Fx_display_backing_store, Fx_display_visual_class)
25148 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25149 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25151 * xfns.c (x_set_foreground_color x_set_background_color)
25152 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25153 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25154 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25155 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25156 terminal that is being deleted.
25157 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25158 frame parameter, and make sure it overrides any user-supplied setting.
25159 (Fx_close_connection, Fx_synchronize): Unify argument names with
25160 the rest of the DEFUNs.
25162 * dispnew.c (Fsend_string_to_terminal): Update call to
25163 `get_tty_terminal'.
25164 (Fredraw_frame, Fsend_string_to_terminal)
25165 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25166 FRAME_TERMCAP_P and FRAME_TTY.
25167 (window_change_signal): Don't believe width/height values that are
25169 (Vinitial_window_system): Rename from Vwindow_system.
25170 (termscript, Wcm, rif): Delete.
25172 * termhooks.h (struct terminal): New struct containing the
25173 previously global text display hooks and new members NAME,
25174 DELETED and PARAM_ALIST.
25175 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25176 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25177 (FRAME_RIF): New macros.
25178 (get_terminal_param, get_device): New declarations.
25179 (termscript): Delete declaration.
25181 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25182 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25183 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25184 FRAME_FOREGROUND_PIXEL.
25185 (x_fully_uncatch_errors): Disable definition.
25186 (x_scroll_bar_expose): Fix reference to foreground pixel.
25187 (XTread_socket): Disable loop on all X displays.
25188 (x_delete_terminal): Don't set terminal->deleted and let
25189 delete_terminal delete the frames on the terminal.
25190 (x_delete_display): Doc update to reflect changes in
25192 (x_display_info) <terminal>: Move member earlier in the struct.
25193 (deleting_tty): Remove old variable.
25194 (Fsuspend_tty): Call clear_tty_hooks.
25195 (Fresume_tty, init_tty): Call set_tty_hooks.
25196 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25197 errors on X frames.
25198 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25199 (handle_one_xevent): Initialize `f' to NULL.
25200 (x_delete_terminal, x_create_terminal): New functions.
25201 (XTset_terminal_modes, XTreset_terminal_modes)
25202 (XTread_socket, x_connection_closed, x_term_init)
25203 (x_term_init, x_delete_display): Add terminal parameter.
25204 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25207 * frame.c: Include termchar.h.
25208 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25209 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25210 (Qdisplay_environment_variable): New vars.
25211 (Fframep): Deal with output_initial.
25212 (Fframe-live-p): Doc fix.
25213 (Fwindow-system): New function.
25214 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25215 (make_terminal_frame): Don't create frames on a terminal that is
25216 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25217 (store_frame_param): Check for found_for_frame before calling XFRAME.
25218 (Fmake_terminal_frame): Handle NULL tty names correctly.
25219 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25220 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25221 frames to refer to a deleted frame in their 'environment parameter.
25222 (Fframe_with_environment): New function.
25223 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25224 (get_future_frame_param): New function.
25225 (Fmake_terminal_frame): Use it.
25226 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25228 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25229 * sysdep.c (reset_sys_modes): Update for renames.
25231 * keyboard.c (tty_read_avail_input): New function.
25232 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25233 (syms_of_keyboard): Defsubr them.
25234 (Fset_input_meta_mode, Fset_quit_char): New functions.
25235 (Fset_input_mode): Split to above functions.
25236 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25237 parameter. Use it in call to `read_char'.
25238 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25239 Set wrong_kboard_jmpbuf correctly in recursive calls.
25240 Use current_kboard to access Vkeyboard_translate_table.
25241 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25242 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25243 Update longjmp invocations. Remember the original current_kboard,
25244 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25245 changes it. Comment out unnecessary calls to
25246 `record_single_kboard_state' and `any_kboard_state'.
25247 Update recursive calls.
25248 (wrong_kboard_jmpbuf): Remove global variable.
25249 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25250 Handle deleted interrupted_kboards correctly; that is a legal
25251 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25252 and read_char calls. Abort if interrupted_kboard died in read_char.
25253 (any_kboard_state, single_kboard_state)
25254 (push_frame_kboard): Remove function.
25255 (pop_kboard): Switch out of single_kboard mode if the kboard has
25256 been deleted. Remove unused variable. Help debugging by not
25257 changing current_kboard unnecessarily. Set current_kboard to the
25258 kboard of the selected frame when the stored kboard object has
25259 been deleted before pop_kboard.
25260 (temporarily_switch_to_single_kboard): Change first parameter to a
25261 frame pointer. Throw an error when caller wants to change kboards
25262 while in single_kboard mode. Don't push_kboard if we weren't in
25263 single kboard state. Don't pop_kboard if we popped into any
25265 (restore_kboard_configuration): Abort if pop_kboard changed the
25266 kboard in single_kboard mode. Call pop_kboard only after setting
25267 up single_kboard mode.
25268 (Frecursive_edit): Switch to single_kboard mode only in nested
25270 (cmd_error, command_loop, command_loop_1, timer_check):
25271 Comment out unnecessary call to `any_kboard_state' and
25272 `record_single_kboard_state'.
25273 (delete_kboard): Exit single_kboard mode if we have just deleted
25274 that kboard. Use FRAME_KBOARD.
25275 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25276 `fatal_error_signal'.
25277 (record_single_kboard_state): Don't push_kboard if we weren't in
25278 single kboard state. Don't pop_kboard if we popped into any
25280 (push_frame_kboard): Rename to push_kboard.
25281 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25282 (read_avail_input): Read input from all terminals.
25283 (mark_kboards): Also mark Vkeyboard_translate_table.
25284 (kbd_buffer_store_event_hold): Simplify condition.
25285 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25286 (Vkeyboard_translate_table): Move to struct kboard.
25287 (init_kboard): Initialize Vkeyboard_translate_table.
25288 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25289 Vkeyboard_translate_table. Update doc strings. Update docs of
25290 local-function-key-map and function-key-map.
25292 * terminal.c: New file.
25294 * term.c: Include errno.h.
25295 (Vring_bell_function, device_list, initial_device)
25296 (next_device_id, ring_bell, update_begin, update_end)
25297 (set_terminal_window, cursor_to, raw_cursor_to)
25298 (clear_to_end, clear_frame, clear_end_of_line)
25299 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25300 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25301 (syms_of_term): Move their initialization to terminal.c.
25302 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25303 (Ftty_display_color_cells)
25304 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25305 (clear_tty_hooks, set_tty_hooks)
25306 (init_tty, maybe_fatal): New functions.
25307 (Ftty_type): Return nil if terminal is not on a tty instead of
25308 throwing an error. Doc update.
25309 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25310 Doc update. Initialize new subrs and variables.
25311 (delete_tty): Use terminal->deleted.
25312 (tty_set_terminal_modes): Rename from set_terminal_modes.
25313 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25314 (set_scroll_region): Rename to `tty_set_scroll_region'.
25315 (turn_on_insert): Rename to `tty_turn_on_insert'.
25316 (turn_off_insert): Rename to `tty_turn_off_insert'.
25317 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25318 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25319 (toggle_highligh): Rename to `tty_toggle_highlight'.
25320 (background_highlight): Rename to `tty_background_highlight'.
25321 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25322 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25323 (tty_set_scroll_region, tty_background_highlight)
25324 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25325 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25326 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25327 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25328 Add static modifier.
25329 (tty_reset_terminal_modes, tty_set_terminal_window)
25330 (tty_set_scroll_region, tty_background_highlight)
25331 (tty_highlight_if_desired, tty_cursor_to)
25332 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25333 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25334 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25337 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25339 * keyboard.c: Qrtl is new.
25340 (parse_tool_bar_item): Handle :rtl keyword.
25341 (syms_of_keyboard): Intern :rtl keyword.
25343 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25345 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25346 so no Lisp code is executed.
25347 (file_for_image, find_rtl_image): New functions.
25348 (xg_get_image_for_pixmap): Use file_for_image.
25349 (update_frame_tool_bar): If direction is RTL, use RTL image if
25350 defined. Use Gtk stock images if defined.
25352 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25354 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25355 for nonexistent or zero-width glyph in composition glyph.
25357 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25359 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25361 * xdisp.c (Finvisible_p): New function.
25362 (syms_of_xdisp): defsubr it.
25364 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
25366 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25369 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25371 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25373 2007-08-24 Martin Rudalics <rudalics@gmx.at>
25375 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25376 whether decoding has modified buffer contents.
25378 2007-08-24 Jason Rumney <jasonr@gnu.org>
25380 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25381 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25382 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25383 (init_svg_functions) [HAVE_NTGUI]: New function.
25384 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25385 (svg_load_image): Use them.
25386 (svg_load_image) [HAVE_NTGUI]: Implement background.
25388 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25390 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25391 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25392 (LIBX): Remove @RSVG_LIBS@.
25393 (LIBES): Add $(RSVG_LIBS).
25395 * image.c (svg_load_image): Blend with specified background if exists.
25396 Use IMAGE_BACKGROUND. Add Mac OS Support.
25398 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25399 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25401 [MAC_OSX] (socket_callback): Do nothing.
25402 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25404 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25406 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25408 2007-08-22 Glenn Morris <rgm@gnu.org>
25410 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25412 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25414 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25416 * image.c: Add support for SVG images. Some additional comments
25417 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25418 (svg_image_p): New function to test for SVG image.
25419 (svg_load): New function to load SVG image.
25420 (svg_load_image): New function, helper for svg_load.
25421 (Qsvg): New Lisp_object.
25422 (svg_keyword_index): New enum.
25423 (svg_format): New static `image_keyword' struct.
25424 (svg_type): New static `image_type' struct.
25425 (librsvg/rsvg.h): Include it.
25427 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25429 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25431 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25433 * lread.c (Qold_style_backquotes): New var.
25434 (syms_of_lread): Init and staticpro it.
25435 (load_warn_old_style_backquotes): New fun.
25436 (Fload): Use them to warn about old style backquotes.
25437 (end_of_file_error, Fload): Remove unused vars.
25439 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25441 * lread.c (Vold_style_backquotes): New var.
25442 (syms_of_lread): Init and export it to Elisp.
25443 (read1): Set it when we find an old-style (back)quote.
25445 2007-08-22 Jason Rumney <jasonr@gnu.org>
25447 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25449 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25451 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25453 2007-08-19 Richard Stallman <rms@gnu.org>
25455 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25457 2007-08-19 Andreas Schwab <schwab@suse.de>
25459 * alloc.c (pure): Round PURESIZE up.
25461 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25463 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25466 2007-08-16 Richard Stallman <rms@gnu.org>
25468 * eval.c (Fcommandp): Add parens to clarify.
25470 * minibuf.c (Fall_completions): Use enum for type of table.
25472 * emacs.c (USAGE2): Improve text.
25474 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25476 * term.c (tty_default_color_capabilities): Declare static
25477 variables in file scope, to avoid HPUX compiler problem.
25479 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25481 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25482 to gtk_toolbar_insert.
25484 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25486 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25488 * insdel.c (reset_var_on_error): New fun.
25489 (signal_before_change, signal_after_change):
25490 Use it to reset (after|before)-change-functions to nil in case of error.
25491 Bind inhibit-modification-hooks to t.
25492 Don't bind (after|before)-change-functions to nil while they run.
25494 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25496 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25497 filling pixmap with stippled background.
25499 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25501 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25502 Don't use invisible frame as parent window for repositioning.
25504 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25506 * print.c (new_backquote_output): Rename from old_backquote_output.
25507 (print): Inverse its logic (according to its name) so as to match the
25508 behavior of new_backquote_flag in lread.c.
25510 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25512 * gmalloc.c (posix_memalign): New function.
25514 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25515 ActivateControl/DeactivateControl here.
25516 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25517 frame-notice-user-settings is non-nil.
25518 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25519 for kEventParamFMFontStyle.
25520 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25521 mac_pass_command_to_system and mac_pass_control_to_system here.
25522 (XTread_socket): Call ActivateControl/DeactivateControl here.
25523 (XTread_socket) [TARGET_API_MAC_CARBON]:
25524 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25525 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25526 for window repositioning.
25528 2007-08-08 Glenn Morris <rgm@gnu.org>
25530 * Replace `iff' in doc-strings and comments.
25532 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25534 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25536 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25538 * fileio.c (Finsert_file_contents): Run format-decode and
25539 after_insert_file_functions on entire buffer when REPLACE is
25540 non-nil and inhibit modification_hooks and point_motion_hooks.
25541 For consistency, run after_insert_file_functions iff something
25542 got inserted. Move signal_after_change and update_compositions
25543 after code running after_insert_file_functions. Make sure that
25544 undo_list doesn't record intermediate steps of the decoding process.
25546 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25549 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25550 Call malloc_enable_thread on interactive startup.
25552 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25553 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25554 [USE_PTHREAD]: Conditionalize with it.
25555 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25556 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25559 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25561 * xdisp.c (redisplay_window): When restoring original buffer
25562 position, make sure it is still valid.
25564 * image.c (png_load): Ignore png-supplied background color.
25566 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25568 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25569 Use kCFAbsoluteTimeIntervalSince1970.
25571 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25573 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25574 event loop should be quit.
25575 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25576 Quit dialog event loop if quit_dialog_event_loop is set.
25578 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25579 (Selection): New typedef. Use instead of ScrapRef.
25580 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25581 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25582 (mac_clear_selection): Rename from clear_scrap.
25583 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25584 scrap_has_target_type. All uses changed.
25585 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25586 (mac_selection_has_target_p): New functions.
25587 (mac_put_selection_value): Rename from put_scrap_string.
25588 (mac_get_selection_value): Rename from get_scrap_string.
25589 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25590 (put_scrap_private_timestamp, scrap_has_target_type)
25591 (get_scrap_private_timestamp): Remove functions.
25592 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25593 (x_own_selection, x_get_local_selection):
25594 Use mac_valid_selection_value_p.
25595 (x_own_selection): Don't use put_scrap_private_timestamp.
25596 Record OWNERSHIP-INFO into Vselection_alist instead.
25597 (x_get_local_selection): Don't check type if request is local.
25598 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25599 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25601 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25603 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25604 add comment explaining why.
25606 2007-08-03 Richard Stallman <rms@gnu.org>
25608 * fileio.c (Fvisited_file_modtime): Use make_time.
25610 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25612 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25615 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25617 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25619 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25621 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25623 2007-07-30 Richard Stallman <rms@gnu.org>
25625 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25627 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25629 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25631 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
25633 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25634 remote default-directory.
25636 * buffer.c (mode-line-format): Update doc string.
25638 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25640 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25642 (x_scroll_bar_create): Set bar->fringe_extended_p.
25643 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25644 on frame edge. Check fringe background extension. Don't clear
25645 extended fringe background area.
25647 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25648 (w32_fill_area): Enclose multiple statements with do ... while (0).
25650 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25651 Extend fringe background to scroll bar gap.
25652 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25653 Set bar->fringe_extended_p.
25654 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25655 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25656 background extension. Don't clear extended fringe background area.
25658 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25659 New member fringe_extended_p.
25661 2007-07-25 Glenn Morris <rgm@gnu.org>
25663 * Relicense all FSF files to GPLv3 or later.
25665 * COPYING: Switch to GPLv3.
25667 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25669 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25671 * data.c (Finteractive_form): Check for the presence of an
25672 `interactive-form' symbol property more thoroughly.
25674 * data.c (Finteractive_form): Use an `interactive-form' property if
25675 present, analogous to the function-documentation property.
25677 2007-07-24 Jason Rumney <jasonr@gnu.org>
25679 * w32fns.c (x_real_positions): Get real position from OS instead of
25682 2007-07-23 Jason Rumney <jasonr@gnu.org>
25684 * filelock.c (current_lock_owner): Allow for @ sign in username.
25686 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
25688 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25689 remote default-directory.
25691 * buffer.c (mode-line-format): Describe above case in doc string.
25693 2007-07-20 Eli Zaretskii <eliz@gnu.org>
25695 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25696 Define if not defined.
25698 2007-07-18 Jason Rumney <jasonr@gnu.org>
25700 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25702 2007-07-18 Richard Stallman <rms@gnu.org>
25704 * data.c (Fsetq_default): Doc fix.
25706 * eval.c (Fsetq): Doc fix.
25708 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
25710 * coding.c (Ffind_operation_coding_system):
25711 * eval.c (For, Fand): Doc fixes.
25712 Reported by Johan Bockgård.
25714 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25716 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25718 * xterm.h: Declare x_ewmh_activate_frame.
25720 * xterm.c (x_ewmh_activate_frame): New function.
25721 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25723 2007-07-17 Martin Rudalics <rudalics@gmx.at>
25725 * window.c (Fdisplay_buffer): If largest or LRU window is the
25726 only window, split it even if it is not eligible for splitting.
25727 This restores the original behavior broken by the 2007-07-15
25730 2007-07-17 Glenn Morris <rgm@gnu.org>
25732 * abbrev.c (abbrev_check_chars): New function.
25733 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25734 Call abbrev_check_chars to check abbrev characters are word
25735 constituents. Doc fix.
25737 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25739 * process.c (Fstart_process, Fmake_network_process)
25740 (read_process_output): Fix up last changes.
25742 2007-07-16 Eli Zaretskii <eliz@gnu.org>
25744 * makefile.w32-in (clean): Don't delete *~.
25746 2007-07-16 Andreas Schwab <schwab@suse.de>
25748 * window.c (Fdisplay_buffer): Use NILP.
25749 (Fset_window_scroll_bars): Likewise.
25751 2007-07-15 Martin Rudalics <rudalics@gmx.at>
25753 * window.c (window_min_size_2): New function.
25754 (window_min_size_1, size_window, Fdisplay_buffer)
25755 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25756 windows without mode- or header-lines when window-min-height is
25758 (size_window): Reset nodelete_p after testing it, following an
25759 earlier note by Kim F. Storm.
25760 (display_buffer): Do not set split_height_threshold to twice the
25761 value of window_min_height to avoid changing the value of a
25762 customizable variable. Rather explicitly check whether the
25763 height of the window that shall be splitted is at least as large
25764 as split_height_threshold.
25765 (Fwindow_full_width_p): New defun.
25766 (syms_of_window): Defsubr it.
25768 * window.h: Add EXFUN for Fwindow_full_width_p.
25770 2007-07-14 Jason Rumney <jasonr@gnu.org>
25772 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25774 2007-07-14 Richard Stallman <rms@gnu.org>
25776 * eval.c (maybe_call_debugger): New function.
25777 (find_handler_clause): Use maybe_call_debugger.
25778 Call it when the handler says `debug'.
25779 Eliminate DEBUGGER_VALUE_PTR.
25780 (Fsignal): Eliminate debugger_value.
25781 (Qdebug): New variable.
25782 (syms_of_eval): Initialize it.
25784 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
25787 * keyboard.c (Ftrack_mouse):
25788 * print.c (Fwith_output_to_temp_buffer):
25789 * window.c (Fsave_window_excursion): Doc fix.
25791 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25793 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25795 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25797 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25798 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25799 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25800 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25801 Remove unused encoding_carryover.
25802 * process.c: Adjust all functions accordingly.
25804 2007-07-12 Richard Stallman <rms@gnu.org>
25806 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25808 2007-07-11 Jason Rumney <jasonr@gnu.org>
25810 * makefile.w32-in (LIBS): Include OLE32.
25812 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25813 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25815 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25817 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25818 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25819 from a Lisp_Object into a bare pointer.
25820 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25821 Adjust the code correspondingly.
25823 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25825 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25826 (term_show_mouse_face): Remove unused var `j'.
25827 (handle_one_term_event): Remove unused vars `i' and `j'.
25828 Don't cast return value of ttyname since it's not necessary.
25830 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25832 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25833 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25835 * fns.c (map_char_table): Use an array of int for `indices' rather than
25836 an array of Lisp_Objects (which are only ever integers anyway).
25837 (Fmap_char_table): Update caller.
25838 * lisp.h: Update prototype.
25839 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25840 * fontset.c (Ffontset_info):
25841 * casetab.c (set_case_table): Update callers.
25843 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25845 * keymap.c (struct accessible_keymaps_data)
25846 (struct where_is_internal_data): New structures.
25847 (accessible_keymaps_1, where_is_internal_1): Use them to change
25848 interface to adhere to the one used by map_keymap.
25849 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25850 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25852 * keymap.h (map_keymap_function_t): More informative prototype.
25854 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25856 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25857 (looking_at_1): Don't change search_regs and last_thing_searched
25858 if `inhibit-changing-match-data' is non-nil.
25859 (string_match_1, search_buffer, set_search_regs): Likewise.
25860 (syms_of_search): Add Lisp level definition for
25861 `inhibit-changing-match-data' and set it to nil.
25862 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25863 start and end of the match, instead of using values in search_regs.
25865 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25867 * minibuf.c (Fcompleting_read): New value `confirm-only'
25868 for `require-match'.
25870 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25872 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25873 part of the 2007-06-27 change to syms_of_fileio.
25875 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25877 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25878 Check WINDOWP before using XWINDOW. Consolidate return statements.
25880 2007-06-27 Richard Stallman <rms@gnu.org>
25882 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25884 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
25886 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25888 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25890 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25891 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25892 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25893 (_free_internal, memalign): Use them.
25894 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25895 Initialize to PTHREAD_MUTEX_INITIALIZER.
25896 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25897 (morecore_nolock): Rename from morecore. All uses changed.
25898 Use only nolock versions of internal allocation functions.
25899 (_malloc_internal_nolock, _realloc_internal_nolock)
25900 (_free_internal_nolock): New functions created from
25901 _malloc_internal, _realloc_internal, and _free_internal.
25902 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25903 Copy hook value to automatic variable before its use.
25904 (memalign): Copy hook value to automatic variable before its use.
25906 2007-06-26 Kenichi Handa <handa@m17n.org>
25908 * coding.c (Ffind_operation_coding_system): Docstring improved.
25909 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25911 2007-06-25 David Kastrup <dak@gnu.org>
25913 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25914 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25915 cater for additional parameter.
25917 * keymap.h: Adjust number of parameters to `current-active-maps'.
25919 * doc.c (Fsubstitute_command_keys): Adjust call of
25920 `current-active-maps'.
25922 2007-06-25 David Kastrup <dak@gnu.org>
25924 * callint.c (Fcall_interactively): Make the parsing of interactive
25925 specs somewhat more readable.
25927 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25929 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25930 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25931 if extended background has already been filled.
25933 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25935 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25936 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25938 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25939 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25940 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25941 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25942 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25943 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25944 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25945 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25946 Run timers during dialog popup.
25947 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25949 2007-06-21 Jason Rumney <jasonr@gnu.org>
25951 * image.c (convert_mono_to_color_image): Swap fore and background.
25953 2007-06-20 Jason Rumney <jasonr@gnu.org>
25955 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25956 (w32_free_bdf_font): Unmap memory not handle.
25958 2007-06-20 Sam Steingold <sds@gnu.org>
25960 * gmalloc.c (__morecore): Fix the declaration to comply with the
25963 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
25965 * w32term.c (w32_delete_display): Remove leftover declaration.
25966 (w32_define_cursor, w32_initialize): Make static.
25968 * w32.c (_wsa_errlist): Fix typo in error message.
25969 (init_environment): Ignore any environment variable from the
25970 registry having a null value.
25972 2007-06-20 Glenn Morris <rgm@gnu.org>
25974 * Makefile.in (LIBGIF): Default to -lgif.
25976 2007-06-17 Jason Rumney <jasonr@gnu.org>
25978 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25981 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
25983 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25984 Fix typo in docstring.
25986 2007-06-16 Eli Zaretskii <eliz@gnu.org>
25988 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25989 and their keybindings.
25991 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
25993 * composite.c (update_compositions): Fix last fix.
25995 2007-06-14 Jason Rumney <jasonr@gnu.org>
25997 * w32.c (get_process_times_fn): New function pointer.
25998 (globals_of_w32): Intialize it if present in kernel32.dll.
25999 (w32_get_internal_run_time): New function.
26001 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26003 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26005 * composite.c (update_compositions): Check the validness of
26008 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26010 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26011 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26013 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26014 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26016 * macgui.h (USE_MAC_TOOLBAR): New define.
26018 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26019 Return immediately unless popup is activated.
26021 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26022 background to scroll bar gap.
26023 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26024 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26025 scroll bars on frame edge. Check fringe background extension.
26026 Don't clear extended fringe background area.
26027 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26028 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26029 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26030 [USE_MAC_TOOLBAR]: New macros.
26031 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26032 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26033 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26034 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26035 [USE_MAC_TOOLBAR]: New functions.
26036 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26037 manually if previous repositioning has failed.
26038 (mac_handle_keyboard_event): Use precomputed event kind.
26039 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26040 as tool bar item click. Handle mouse movement over tool bar items.
26042 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26043 toolbar_win_gravity.
26044 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26045 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26048 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26049 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26051 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
26053 * image.c (search_image_cache): Remove unused variable.
26055 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
26057 * xfns.c, xmenu.c: Link to xaw3d if available.
26059 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26061 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26062 frame_foreground and frame_background.
26064 * image.c (lookup_image): Save frame foreground and background colors.
26065 (search_image_cache): Check if saved and current frame colors match.
26067 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26069 * regex.c (regex_compile): Remove the `regnum' counter.
26070 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26072 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26074 * term.c: Include intervals.h to declare Fget_text_property.
26076 2007-06-10 Jason Rumney <jasonr@gnu.org>
26078 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26080 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
26082 * callint.c (Fcall_interactively):
26083 * editfns.c (Fdelete_and_extract_region):
26084 * fileio.c (Fread_file_name):
26085 * fns.c (Fmapconcat):
26086 * keyboard.c (cmd_error_internal):
26087 * keymap.c (Fkey_description):
26089 * minibuf.c (read_minibuf):
26090 * search.c (wordify):
26091 * sunfns.c (sel_read):
26092 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26093 * xfns.c (x_default_scroll_bar_color_parameter):
26094 * xmenu.c (menu_help_callback):
26095 * xselect.c (Fx_get_atom_name):
26096 * xterm.c (x_term_init): Use empty_unibyte_string.
26098 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26100 * alloc.c (init_strings): Initialize canonical empty strings.
26101 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26102 canonical empty string when the requested size is 0.
26104 * emacs.c (empty_unibyte_string): Rename from empty_string.
26105 (empty_multibyte_string): New canonical empty string.
26106 (syms_of_emacs): Don't initialize empty_string.
26108 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26109 string, if appropriate.
26110 (empty_unibyte_string, empty_multibyte_string): New externs.
26111 (empty_string): Remove extern.
26113 * lread.c (syms_of_lread): Use empty_unibyte_string.
26115 2007-06-07 Jason Rumney <jasonr@gnu.org>
26117 * s/ms-w32.h: Don't define HAVE_TZNAME.
26119 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26121 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26123 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26125 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26126 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26128 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26129 Don't call next handler.
26130 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26131 Remove argument. Install handler to application.
26132 (set_frame_menubar): Don't change deep_p.
26133 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26134 FRAME_OUTER_TO_INNER_DIFF_Y.
26135 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26136 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26137 [HAVE_DIALOGS]: New macros.
26138 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26140 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26142 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26143 init_service_handler. All callers changed. Return OSStatus value.
26145 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26146 All callers changed so as not to call SetPortWindowPort.
26147 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26148 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26149 mac_draw_string_common.
26150 (mac_draw_image_string_qd): Likewise.
26151 (mac_draw_string_common): Use them. Add INLINE.
26152 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26153 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26155 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26156 and FRAME_OUTER_TO_INNER_DIFF_Y.
26157 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26158 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26159 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26160 repositioning window to mac_handle_window_event.
26161 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26162 saving window location to mac_handle_window_event
26163 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26164 (install_menu_target_item_handler): Remove argument in extern.
26165 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26166 Also accept command events.
26167 (do_keystroke): New function created from XTread_socket.
26168 (init_command_handler): Remove functions.
26169 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26170 and save window location by kEventWindowShowing and kEventWindowHiding
26171 handlers here. Don't call next handler for window state change and
26173 (mac_handle_application_event, mac_handle_keyboard_event)
26174 [TARGET_API_MAC_CARBON]: New functions.
26175 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26176 kEventWindowShowing and kEventWindowHiding events. Move installation
26177 of mouse, font, text input and menu target item handlers to
26178 install_application_handler.
26179 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26180 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26182 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26184 (XTread_socket) [TARGET_API_MAC_CARBON]:
26185 Consolidate SendEventToEventTarget calls.
26186 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26187 Move application activation handler to mac_handle_application_event.
26188 Move keyboard handler to mac_handle_keyboard_event.
26189 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26190 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26191 init_command_handler. Call install_application_handler.
26193 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26194 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26196 2007-06-07 Glenn Morris <rgm@gnu.org>
26198 * emacs.c (main): Use `emacs-copyright' in --version output.
26200 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
26202 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26204 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26206 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26208 * macgui.h: Replace WindowPtr with WindowRef.
26210 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26211 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26212 Replace ControlHandle with ControlRef.
26213 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26215 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26216 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26217 Replace ControlHandle with ControlRef.
26218 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26219 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26221 * macterm.h (struct scroll_bar): Rename member control_handle_low
26222 and control_handle_high to control_ref_low and control_ref_high.
26224 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26225 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26226 respectively. All uses changed.
26227 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26228 (install_window_handler, remove_window_handler): Replace WindowPtr
26229 with WindowRef in externs.
26231 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
26233 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26235 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
26237 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26239 * frame.c (Fmouse_position, Fmouse_pixel_position):
26240 Condition on HAVE_GPM too.
26242 * term.c (term_mouse_highlight): Remove unused variables.
26243 (Fterm_open_connection): Set gpm_zerobased to 1.
26244 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26245 Use zero based co-ordinates.
26246 (handle_one_term_event): Report a drag as mouse movement too.
26248 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26250 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
26252 * image.c (search_image_cache): New function. Require background
26253 color match if background color is unspecified in the image spec.
26254 (uncache_image, lookup_image): Use it.
26256 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
26258 * window.c (Fshrink_window): Reflow docstring.
26260 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
26262 * Version 22.1 released.
26264 2007-06-01 Richard Stallman <rms@gnu.org>
26266 * xfns.c (x_encode_text): Add GCPRO.
26268 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26270 * xfns.c (x_set_name_internal): Save encoded name before
26271 x_encode_text in case string data is relocated.
26273 2007-05-31 Richard Stallman <rms@gnu.org>
26275 * buffer.c (syms_of_buffer): Doc fix.
26277 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
26279 * sysdep.c (init_sys_modes): Add rather than replace with
26282 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26285 * termhooks.h (term_mouse_moveto): New extern.
26287 * term.c (mouse_face_window): Rename...
26288 (Qmouse_face_window): ...to this.
26289 (term_show_mouse_face, term_clear_mouse_face)
26290 (term_mouse_highlight): Use Qmouse_face_window.
26291 (term_mouse_moveto): New function.
26292 (term_mouse_position): Make it work.
26293 (syms_of_term): Uncomment assignment to mouse_position_hook.
26294 Staticpro Qmouse_face_window.
26296 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26298 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26299 around current_column call.
26301 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26303 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26304 * xdisp.c (next_element_from_buffer):
26305 * window.c (delete_window):
26306 * term.c (term_mouse_highlight):
26307 * msdos.c (getdefdir):
26308 * macterm.c (mac_create_bitmap_from_bitmap_data)
26309 (init_font_name_table):
26311 * data.c (Fmake_local_variable):
26312 * ccl.c (ccl_driver): Likewise.
26314 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26316 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26317 Call mac_wakeup_from_rne on window size change.
26319 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
26321 * image.c (uncache_image): Fix typo.
26323 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26325 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26327 2007-05-22 Richard Stallman <rms@gnu.org>
26329 * xterm.c (x_connection_closed): Remove NO_RETURN.
26331 2007-05-22 Martin Rudalics <rudalics@gmx.at>
26333 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26335 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
26337 * image.c (uncache_image): New function.
26338 (Fimage_refresh): New function.
26340 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26342 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26344 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26346 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26347 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26349 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26351 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26352 conditional on [HAVE_GPM_H].
26354 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26356 * syntax.c (skip_chars): Update syntax-table only after we checked that
26357 the new location is valid.
26359 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26361 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26362 mac_get_window_bounds.
26364 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26366 * Makefile.in (LIBGPM): Allow it to be set from configure.
26367 If set then link Emacs with it.
26369 * config.in: Regenerate.
26371 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26374 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26376 (handle_one_term_event, term_gpm): New externs.
26378 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26379 and allow it to be interrupted by SIGIO.
26381 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26382 (wait_reading_process_output): Wait on gpm_fd too.
26383 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26384 (add_gpm_wait_descriptor_called_flag): New variable.
26385 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26387 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26388 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26389 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26390 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26391 (make_lispy_event): Add case GPM_CLICK_EVENT.
26392 (read_avail_input): Handle mouse input.
26394 * term.c (write_glyphs_with_face): New function.
26395 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26396 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26397 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26398 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26399 (last_mouse_x, last_mouse_y): New variables.
26400 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26401 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26402 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26403 (Fterm_close_connection): New functions.
26404 (term_init): Initialise mouse_face_window.
26406 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26408 * xdisp.c (redisplay_window): If first window line is a
26409 continuation line, recompute the new window start instead of
26412 2007-05-18 Glenn Morris <rgm@gnu.org>
26414 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26415 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26417 2007-05-17 Glenn Morris <rgm@gnu.org>
26419 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26421 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26423 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26424 dead key repeat and up events.
26426 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26428 * image.c (pbm_load): Check image size for monochrome pbm.
26430 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26432 * xterm.c (XTread_socket): Revert last change.
26434 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26436 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26438 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26440 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26442 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26445 2007-05-07 Andreas Schwab <schwab@suse.de>
26447 * keymap.c (Flookup_key): Fix typo in last change.
26449 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26451 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26452 mapping for unibyte strings.
26454 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26456 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26457 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26459 2007-04-29 Richard Stallman <rms@gnu.org>
26461 * insdel.c (replace_range): For undo, record insertion first.
26463 2007-04-29 Andreas Schwab <schwab@suse.de>
26465 * lisp.h (VECSIZE): Use OFFSETOF.
26467 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26469 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26472 2007-04-28 Richard Stallman <rms@gnu.org>
26474 * lread.c (read_escape): In a string, \s is always space.
26476 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26478 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26480 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26481 submenu for menu bar items.
26483 See ChangeLog.10 for earlier changes.
26485 ;; Local Variables:
26487 ;; add-log-time-zone-rule: t
26490 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26492 This file is part of GNU Emacs.
26494 GNU Emacs is free software: you can redistribute it and/or modify
26495 it under the terms of the GNU General Public License as published by
26496 the Free Software Foundation, either version 3 of the License, or
26497 (at your option) any later version.
26499 GNU Emacs is distributed in the hope that it will be useful,
26500 but WITHOUT ANY WARRANTY; without even the implied warranty of
26501 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26502 GNU General Public License for more details.
26504 You should have received a copy of the GNU General Public License
26505 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26507 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40