1 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
3 * lisp.h: Remove HAVE_SHM code, unused.
4 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
7 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
8 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
9 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
10 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
11 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
12 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
13 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
14 (Qwindow_scroll_functions, Vafter_load_alist)
15 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
16 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
17 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
18 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
19 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
20 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
21 (initial_argv, last_nonmenu_event, load_in_progress)
22 (noninteractive_need_newline, scroll_margin): Add declarations.
24 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
25 declarations, menu.h has them.
26 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
27 (Vinput_method_function, Qinput_method_function)
28 (Qevent_symbol_element_mask, last_event_timestamp):
29 * dispextern.h (Voverflow_newline_into_fringe):
30 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
31 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
32 (syms_of_w32font, syms_of_nsfont):
33 * fontset.h (find_font_encoding, Qlatin):
34 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
35 (Vtool_bar_mode, set_frame_menubar):
36 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
37 * xterm.h (Qx_gtk_map_stock):
38 * keymap.h (meta_prefix_char): Add declarations.
40 * term.c: Remove dead code.
42 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
43 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
44 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
45 which is what was there before BSD_PGRPS was removed.
47 2010-08-05 Eli Zaretskii <eliz@gnu.org>
49 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
51 * unexcoff.c: Renamed from unexec.c.
53 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
55 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
57 2010-08-03 Johan Bockgård <bojohan@gnu.org>
59 * data.c (Flocal_variable_p): Handle variable aliases correctly.
62 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
64 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
65 to TRUE if depth of screen is < 16.
67 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
69 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
70 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
71 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
73 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
75 * xterm.h (USE_GTK_TOOLTIP): New define.
76 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
78 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
79 to Control-D (Bug#6771).
81 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
83 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
84 Wording by Drew Adams <drew.adams@oracle.com>.
86 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
88 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
91 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
92 calling gtk_widget_queue_draw.
93 (x_free_frame_resources): Call xg_free_frame_widgets.
95 * xfns.c (x_gtk_use_system_tooltips): New variable.
96 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
97 new gtkutil tooltip functions to show the tooltip.
98 (Fx_hide_tip): Call xg_hide_tooltip.
99 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
101 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
102 (xg_show_tooltip, xg_hide_tooltip): Declare.
104 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
105 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
107 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
108 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
109 Remove code that is commented out.
111 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
113 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
115 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
117 * xselect.c (x_own_selection): Use list4.
119 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
121 * buffer.c (Qwindow): Do not define, already defined in data.c.
122 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
124 2010-07-29 Chad Brown <yandros@mit.edu>
126 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
127 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
128 * config.in: Undef HAVE_DIRENT_H.
129 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
130 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
132 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
134 Rename s/usg5-4.h -> s/usg5-4-common.h.
135 * s/usg5-4.h: Rename file to ...
136 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
139 * s/irix6-5.h: Update includes accordingly.
141 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
143 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
145 * xterm.h (struct x_output): Add toolbar_top_height,
146 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
147 Remove toolbar_height.
148 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
149 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
150 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
151 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
153 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
155 * xfns.c (x_set_tool_bar_position): New function.
156 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
157 (x_frame_parm_handlers): Add x_set_tool_bar_position.
158 (syms_of_xfns): If USE_GTK, provide move-toolbar.
160 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
161 and FRAME_TOOLBAR_LEFT_WIDTH.
163 * gtkutil.h (xg_change_toolbar_position): Declare.
165 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
166 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
167 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
168 (xg_create_frame_widgets): Create a hobox for placing widgets
169 vertically. Use gtk_box_pack_start.
170 (xg_height_or_width_changed): Renamed from xg_height_changed.
171 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
172 (xg_update_frame_menubar, free_frame_menubar): Change to
173 xg_height_or_width_changed.
174 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
175 size correctly. Remove hardcoded 4, instead use handlebox size -
177 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
178 size correctly. Use handlebox size + toolbar size as additional size.
179 (xg_pack_tool_bar): POS is a new parameter.
180 Set orientation of tool bar based on pos.
181 Only make handlebox_widget if NULL.
182 Check if tool bar goes to vbox or hbox depending on pos.
183 (xg_update_tool_bar_sizes): New function.
184 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
185 height, call xg_update_tool_bar_sizes instead.
186 (free_frame_tool_bar): Remove from hbox or vbox depending on
187 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
188 (xg_change_toolbar_position): New function.
190 * frame.h (struct frame): Add tool_bar_position.
193 * frame.c (Qtool_bar_position): New variable.
194 (make_frame): Set tool_bar_position to Qtop.
195 (frame_parms): Add tool-bar-position.
196 (x_report_frame_params): Store tool_bar_position.
197 (x_set_fringe_width): Reset wm size hint after fringe changes.
199 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
201 Make lisp_time_argument declaration work on all systems.
202 * lisp.h (lisp_time_argument): Move declaration ...
203 * systime.h (lisp_time_argument): ... here
204 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
206 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
208 * vm-limit.c (POINTER): Add typedef for it.
209 (start_of_data): Change return type from POINTER to char *.
211 * frame.h (Qtty_color_mode): Move declaration out of ifdef
214 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
216 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
217 Remove reference to __osf__, unused.
219 * mem-limits.h: Remove duplicated includes.
220 (NULL): Remove definition, unused.
221 (POINTER): Remove definition.
222 (start_of_data): Use char* in prototype, as the function
225 Remove extern declarations from .c files, and them to .h files.
226 * keyboard.h (Qhelp_echo, waiting_for_input)
227 (input_available_clear_time, ignore_mouse_drag_p)
228 (Vdouble_click_time, real_this_command, Vthis_original_command):
229 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
230 (Voverriding_local_map_menu_flag):
231 * lisp.h (Qinteractive_form, use_file_dialog)
232 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
233 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
234 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
235 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
236 (Qfunction, debug_on_next_call, Qfield)
237 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
238 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
239 (Qfile_directory_p, Qinsert_file_contents)
240 (Qcompletion_ignore_case, Qcompletion_ignore_case)
241 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
242 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
243 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
245 (Vtemporary_file_directory,char_ins_del_vector, Qface):
246 * xterm.h (gray_bitmap_width, gray_bitmap_height)
247 (gray_bitmap_bits, xic_create_fontsetname):
248 * coding.h (Vtranslation_table_for_input): Add extern declarations.
250 * xsmfns.c (Vuser_login_name):
251 * xrdb.c (Vdouble_click_time):
252 * xfaces.c (xic_create_fontsetname):
253 * w32select.c (waiting_for_input):
254 * print.c (minibuffer_auto_raise):
255 * msdos.c (Qhelp_echo):
256 * macros.c (real_this_command):
257 * keymap.c (Voverriding_local_map):
258 * xterm.c (poll_for_input_1, gray_bitmap_width)
259 (gray_bitmap_height, gray_bitmap_bits;
260 * xmenu.c ( Voverriding_local_map)
261 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
262 (use_file_dialog, Xt_app_con):
263 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
264 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
265 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
266 (Qtool_bar_lines, ignore_mouse_drag_p):
267 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
268 (Qrear_nonsticky, nconc2):
269 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
270 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
271 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
272 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
273 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
274 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
276 * doc.c (Voverriding_local_map, Qremap):
277 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
278 (Vcompletion_regexp_list):
279 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
280 (Qcompletion_ignore_case):
281 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
282 (Vhistory_length, Vthis_original_command, real_this_command)
283 (Qface, Qminibuffer_prompt, history_delete_duplicates):
284 * image.c (Qrisky_local_variable):
285 * fontset.c (QCname):
286 * fns.c (minibuffer_auto_raise, QCname):
287 * dispnew.c (char_ins_del_cost):
288 * composite.c (font_fill_lglyph_metrics):
289 * cmds.c (Qface, Vtranslation_table_for_input):
290 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
291 * ccl.c (charset_unicode):
292 * callproc.c (Vtemporary_file_directory):
293 * buffer.c (emacs_strerror): Remove extern declarations.
295 * data.c (Qwindow): Make non-static, used from other files too.
296 * frame.c (validate_x_resource_name): Remove shadow definition for i.
298 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
299 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
302 * s/msdos.h (COFF, NO_REMAP):
303 * s/ms-w32.h (NO_REMAP):
304 * s/hpux10-20.h (NO_REMAP):
305 * m/sparc.h (SEGMENT_MASK):
306 * m/m68k.h (NO_REMAP):
307 * m/intel386.h (SEGMENT_MASK):
308 * m/arm.h (NO_REMAP):
310 * m/template.h: Remove references to unused defines.
312 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
314 * xsettings.c (Ftool_bar_get_system_style): Also check for
317 * xdisp.c (Qtext_image_horiz): Define.
318 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
319 to documentation of tool-bar-style.
321 * lisp.h (Qtext_image_horiz): Declare.
323 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
324 style text_image_horiz.
326 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
328 * emacs.c (Fkill_emacs): Remove return statement.
330 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
331 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
332 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
333 local extern declarations.
335 * xmenu.c: Do not included lwlib.h, not needed.
337 * m/iris4d.h (XUINT, XSET): Remove, not needed.
339 * process.c: Move definitions earlier to minimize #ifdefs.
341 * xterm.h (x_get_customization_string, x_load_resources)
342 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
343 (x_check_errors, x_property_data_to_lisp, defined_color)
344 (xic_set_xfontset, x_defined_color): Use const.
346 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
347 (x_text_icon, x_check_errors, x_connection_closed): Use const.
349 * xselect.c (selection_data_to_lisp_data)
350 (x_property_data_to_lisp):
351 * xrdb.c (x_get_string_resource, file_p)
352 (x_get_customization_string, magic_file_p, search_magic_path)
353 (get_system_app, get_user_app, x_load_resources, x_get_resource)
354 (x_get_string_resource): Use const.
356 * xfns.c: Include xlwmenu.h when USE_LUCID.
357 (x_defined_color, xic_set_xfontset): Use const.
358 (Fx_hide_tip): Remove local extern declaration.
360 * xfaces.c (Qmouse_face): Remove declaration.
361 (face_color_gray_p, tty_defined_color, defined_color)
362 (face_color_gray_p, face_color_supported_p). Add const.
364 * xdisp.c (do_mouse_tracking): Remove declaration.
365 (add_to_log): Use const.
367 * minibuf.c (Qmouse_face): Remove declaration.
369 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
371 * keyboard.h (do_mouse_tracking): Add declaration.
373 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
374 (QCdata, QCtype, Qcenter): Remove declarations.
376 * frame.c (x_get_resource_string, x_get_string_resource)
377 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
378 (x_default_parameter): Use const.
380 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
381 (QCheight, QCsize, QCname): Remove declarations.
383 * emacs.c (main): Remove local extern declaration.
385 * editfns.c (region_limit, syms_of_editfns): Remove local extern
388 * dispnew.c: Remove duplicate #include <unistd.h>.
389 (update_window, update_frame_1, init_display): Remove local extern
392 * dispextern.h (add_to_log): Remove declaration.
393 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
394 (x_frame_get_and_record_arg, x_default_parameter): Add const.
396 * dired.c (scmp): Add const.
397 (directory_files_internal): Remove local extern declaration.
399 * data.c (Finteractive_form): Use const.
401 * composite.c (syms_of_composite): Remove local extern declarations.
403 * charset.c (add_to_log): Remove declaration.
405 * character.c (strwidth, parse_str_to_multibyte): Add const.
407 * character.h (strwidth, parse_str_to_multibyte): Likewise.
409 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
411 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
412 (Lisp_Subr): Make doc and intspec constant.
413 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
414 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
415 (QCheight, QCsize, QCname, QCwidth, QCforeground)
416 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
417 (display_arg): Add declarations.
419 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
421 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
423 * window.c (Fwindow_height): Doc fix (bug#6518).
425 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
427 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
429 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
431 * keyboard.c (Ftop_level, Fexit_recursive_edit)
432 (Fabort_recursive_edit): Remove return statements in NO_RETURN
435 * frame.h (Qtty_color_mode): Add declaration.
437 * lisp.h (Ftop_level, Fexit_recursive_edit)
438 (Fabort_recursive_edit): Mark as NO_RETURN.
440 2010-07-26 Kenichi Handa <handa@m17n.org>
442 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
443 number of glyphs gets smaller than the original length. (Bug#6621)
445 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
447 * lread.c (unreadpure, mapatoms_1): Make static.
449 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
451 * terminfo.c (tparam): Fix prototype of tparm.
453 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
455 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
456 find start of text segment.
457 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
460 * callproc.c (set_initial_environment): Avoid unbalanced braces.
462 2010-07-25 Ken Brown <kbrown@cornell.edu>
464 * vm-limit.c (check_memory_limits): Fix previous change;
465 accidentally reverted an earlier change.
467 2010-07-25 Ken Brown <kbrown@cornell.edu>
469 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
470 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
472 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
474 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
475 * dired.c (opendir, readdir): Fix prototypes.
476 * editfns.c (w32_get_internal_run_time): Fix prototypes.
477 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
478 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
479 (telldir): Remove declaration.
480 * ralloc.c (real_morecore, __morecore): Fix prototypes.
481 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
482 * syssignal.h (strsignal): Fix prototype.
483 * term.c (tparam): Fix prototype.
484 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
485 (term_get_fkeys): Set inside "#ifndef DOS_NT".
486 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
488 * w32gui.h (XParseGeometry): Fix prototype.
489 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
490 * w32term.c (my_set_focus): Declare inside #if 0.
491 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
492 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
493 (drain_message_queue, get_next_msg, post_msg, parse_button)
494 (ClipboardSequence_Proc): Fix prototypes.
495 (wait_for_sync): Remove declaration.
497 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
499 * w32fns.c (w32_to_x_color): Remove, unused.
501 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
503 * lisp.h: Remove leftover P_.
505 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
507 * ecrt0.c, unexalpha.c: Remove files, unused.
509 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
511 * cmds.c (internal_self_insert): Make static.
512 * lisp.h (internal_self_insert): Remove declaration.
514 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
516 * alloc.c (free_float):
517 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
518 * frame.c (delete_frame_handler):
519 * ralloc.c (reorder_bloc):
520 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
521 Remove unused static functions.
523 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
524 it is called only from NS code.
526 * w32term.c (my_set_focus): #ifdef away; it is called only from
529 * w32fns.c (x_edge_detection):
530 * xfaces.c (may_use_scalable_font_p):
531 Remove obsolete static declarations.
533 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
535 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
536 (emacs_blocked_realloc, uninterrupt_malloc):
537 * fringe.c (w32_reset_fringes):
538 * image.c (convert_mono_to_color_image, lookup_rgb_color)
539 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
540 * sound.c (be2hs, do_play_sound):
541 * vm-limit.c (get_lim_data, ret_lim_data):
542 * w32term.c (x_free_frame_resources):
543 * xfaces.c (x_create_gc, x_free_gc):
544 Convert definitions to standard C.
546 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
548 * eval.c (Feval, Ffuncall): Use the new names.
550 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
551 (DEFUN): Add braces around the union initialisation and use ## to
552 specify the right union alternative and avoid a cast.
554 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
556 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
558 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
560 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
562 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
564 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
565 is related to the menu bar (Bug#6499).
566 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
568 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
570 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
572 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
574 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
575 i.e. don't put back ButtonRelease (Bug#6608).
577 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
578 instead of Window. Call xg_event_is_for_menubar when
581 * gtkutil.h (xg_event_is_for_menubar): Declare.
583 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
585 2010-07-16 Eli Zaretskii <eliz@gnu.org>
587 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
588 when it's the same as the old foreground. (Bug#6609)
590 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
592 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
593 widget is non-null (Bug#6645).
595 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
597 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
598 Convert old-style definition.
600 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
603 2010-07-15 Eli Zaretskii <eliz@gnu.org>
605 * fringe.c (update_window_fringes): Restore mistakenly reverted
606 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
608 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
610 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
611 (SET_SAVED_KEY_EVENT): Remove (not used).
612 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
613 remove size parameter.
614 (handle_one_xevent): Check popup_activated () for menu for Xt also.
615 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
616 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
618 (x_set_window_size_1): scroll_bar_actual_width is always
619 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
621 * xdisp.c (pending_menu_activation): Remove extern declaration.
622 (prepare_menu_bars): Remove setting of pending_menu_activation.
624 * xmenu.c (pending_menu_activation): Remove.
625 (x_activate_menubar): Set popup_activated_flag for Xt also.
626 Remove setting of pending_menu_activation.
627 (set_frame_menubar): Remove check of pending_menu_activation.
628 Declare menubar_size before code. Correct spelling in comment.
630 2010-07-14 Kenichi Handa <handa@m17n.org>
632 * font.c (font_open_entity): Cancel previous change.
633 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
635 2010-07-13 Eli Zaretskii <eliz@gnu.org>
637 Remove subprocesses #ifdefs.
638 * process.c <inhibit_sentinels>: Move to the common part.
639 (Fwaiting_for_user_input_p): Move to the common part; return nil
640 if async subprocesses aren't supported.
641 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
642 MS-DOS. Remove "#ifdef subprocesses".
643 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
644 (gettimeofday): Remove "#ifdef subprocesses".
645 (wait_without_blocking): Remove function.
646 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
647 Remove "#ifdef subprocesses".
648 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
650 * callproc.c (Fcall_process) [!MSDOS]: Don't call
651 wait_for_termination on MS-DOS.
652 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
653 initialization of inhibit_sentinels.
654 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
655 subprocesses" conditional.
656 * callproc.c (Fcall_process) [!subprocesses]: Don't call
657 wait_for_termination, since `buffer' cannot be an integer when
658 async subprocesses are not supported
659 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
660 for ifdefing away the call to Fprocess_status.
662 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
663 away the entire body of the function.
665 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
667 Remove subprocesses #ifdefs from term.c.
668 * process.c (add_keyboard_wait_descriptor)
669 (delete_keyboard_wait_descriptor): Move to common section, do
670 nothing when subprocesses is not defined.
671 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
672 Remove subprocesses #ifdefs.
674 Convert maybe_fatal to standard C.
675 * lisp.h (verror): Declare.
676 * eval.c (verror): New function containing the code from ...
677 (error): ... this. Call verror.
678 * term.c (vfatal): New function containing the code from ...
679 (fatal): ... this. Call vfatal.
680 (maybe_fatal): Convert to standard C, use variable number of
681 arguments. Declare as non-return.
682 (init_tty): Fix maybe_fatal call.
684 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
686 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
687 (_scroll_bar_note_movement): Convert definitions to standard C.
688 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
689 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
691 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
693 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
694 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
695 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
696 (xaw_jump_callback, xaw_scroll_callback)
697 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
698 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
699 definitions to standard C.
700 * xmenu.c (menubar_id_to_frame, popup_get_selection)
701 (popup_activate_callback, popup_deactivate_callback)
702 (menu_highlight_callback, menubar_selection_callback)
703 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
704 (free_frame_menubar, popup_selection_callback, as)
705 (create_and_show_popup_menu, dialog_selection_callback)
706 (create_and_show_dialog):
707 * xfns.c (hack_wm_protocols, x_window):
708 * xfaces.c (x_update_menu_appearance):
709 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
710 (char_to_pixel_size, round_size_to_char, get_wm_shell)
711 (set_frame_size, update_wm_hints, setup_frame_gcs)
712 (update_various_frame_slots, update_from_various_frame_slots)
713 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
714 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
715 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
717 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
719 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
721 2010-07-12 Eli Zaretskii <eliz@gnu.org>
723 * process.c (setup_process_coding_systems): Move to the part
724 shared by non-subprocesses systems, and make its body empty when
725 subprocesses is not defined.
726 (close_process_descs): Move to the part shared by non-subprocesses
728 (wait_reading_process_output) [!subprocesses]: Convert arg list to
731 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
733 * editfns.c (transpose_markers): Convert old-style definition.
734 * emacs.c (abort, shut_down_emacs, fixup_locale)
735 (synchronize_system_time_locale)
736 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
737 * floatfns.c (extract_float, matherr, init_floatfns)
738 (syms_of_floatfns): Likewise.
739 * fns.c (make_hash_table): Likewise.
740 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
741 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
742 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
743 (ftfont_variation_glyphs): Likewise.
744 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
745 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
746 * lread.c (read_filtered_event): Likewise.
747 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
748 * process.c (wait_reading_process_output): Likewise.
749 * scroll.c (do_line_insertion_deletion_costs): Likewise.
750 * search.c (search_buffer, boyer_moore): Likewise.
751 * syntax.c (scan_sexps_forward): Likewise.
752 * xdisp.c (try_scrolling): Likewise.
753 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
754 (face_at_string_position): Likewise.
755 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
756 * xselect.c (x_get_window_property, receive_incremental_selection)
757 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
759 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
761 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
763 * callproc.c (child_setup): Remove subprocesses conditional.
764 Remove code dealing with SET_EMACS_PRIORITY, unused.
766 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
767 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
769 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
770 (__do_global_dtors, __main): Use void in definition.
771 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
772 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
773 the only users from ...
774 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
775 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
776 (HAVE_VOLATILE): Remove, unused.
778 Convert more function definitions to standard C.
779 * xdisp.c (window_box_edges, handle_single_display_spec)
780 (display_string): Convert definition to standard C.
781 * scroll.c (do_direct_scrolling, scrolling_1):
782 * dispnew.c (allocate_matrices_for_frame_redisplay)
783 (mirrored_line_dance):
784 * coding.c (code_convert_string):
785 * charset.c (map_charset_chars):
786 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
787 (Fregister_ccl_program, Fregister_code_conversion_map):
788 * keyboard.c (kbd_buffer_nr_stored): Likewise.
789 (head_table): Make static and const.
791 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
793 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
794 (PROFILING_LDFLAGS): Set from substitution.
795 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
798 2010-07-12 Kenichi Handa <handa@m17n.org>
800 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
801 (shortlisp): Likewise.
803 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
805 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
806 of FONT_ENTITY_INDEX.
807 (Ffont_get): If KEY is :otf and the font-object doesn't have the
808 property, get the property value dynamically.
809 (Ffont_put): Accept font-entity and font-object too.
810 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
811 return value changed.
812 (syms_of_font): Adjusted for the above change.
814 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
816 * blockinput.h: Remove obsolete comment.
818 * lisp.h: Include <stddef.h>.
819 (OFFSETOF): Don't define.
820 (VECSIZE): Use offsetof instead of OFFSETOF.
821 (PSEUDOVECSIZE): Likewise.
822 * process.c (conv_sockaddr_to_lisp): Likewise.
823 * alloc.c: Don't include <stddef.h>.
824 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
826 * process.c: Remove obsolete comment.
828 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
830 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
832 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
834 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
836 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
837 * editfns.c (Fuser_full_name, Fformat): Likewise.
838 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
839 * fileio.c (Ffile_symlink_p): Likewise.
840 * filelock.c (current_lock_owner): Likewise.
841 * font.c (font_parse_name, font_parse_family_registry): Likewise.
842 * fontset.c (fontset_pattern_regexp): Likewise.
843 * lread.c (read1): Likewise.
844 * sysdep.c (init_system_name): Likewise.
845 * xfns.c (select_visual): Likewise.
846 * s/hpux10-20.h (index, rindex): Don't define.
847 * s/ms-w32.h (index): Likewise.
848 * s/usg5-4.h: Likewise.
850 * callproc.c (relocate_fd): Use F_DUPFD if defined.
852 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
853 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
855 * doprnt.c (doprnt): Likewise.
856 * editfns.c (set_time_zone_rule, format2): Likewise.
857 * emacs.c (decode_env_path): Likewise.
858 * eval.c (signal_error, error): Likewise.
859 * insdel.c (replace_range_2): Likewise.
860 * keyboard.c (cmd_error_internal): Likewise.
861 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
862 * print.c (write_string, write_string_1, print_error_message):
864 * vm-limit.c (warn_function, memory_warnings): Likewise.
865 * xdisp.c (message1, message1_nolog, message_with_string)
866 (vmessage, message, message_nolog): Likewise.
867 * emacs.c: Remove duplicate declaration.
868 * keyboard.h: Likewise.
869 * lisp.h: Update prototypes.
871 * eval.c: Fix indentation problem.
873 * keyboard.c: Include "process.h"
875 * eval.c: Remove obsolete noinline declaration.
878 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
880 * doprnt.c (doprnt): Take a va_list argument instead of count and
882 * eval.c (error): Change to a standard-C variadic function.
883 * xdisp.c (vmessage): Renamed from message, made static, and
884 changed to take a va_list argument.
885 (message): New variadic wrapper.
886 (message_nolog): Now a variadic function, calling vmessage.
887 * lisp.h: Include stdarg.h for va_list.
888 (doprnt, error, message, message_nolog): Decls updated.
890 2010-07-11 Eli Zaretskii <eliz@gnu.org>
892 * process.c (syms_of_process) <delete-exited-processes>: Define
893 even if !subprocesses.
894 (delete_exited_processes): Ditto.
896 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
897 (delete_exited_processes): Don't define.
899 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
901 * frame.c (make_frame): Initialize menu_bar_lines and
902 tool_bar_lines members.
903 (make_initial_frame, make_terminal_frame): Initialize
904 menu_bar_lines using value of menu-bar-mode.
906 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
908 2010-07-10 Eli Zaretskii <eliz@gnu.org>
910 * process.c: Reshuffle #include's. Condition some of the global
911 and static variables on `subprocesses'.
912 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
913 Leave only one implementation.
914 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
915 (kill_buffer_processes, Flist_system_processes)
916 (Fprocess_attributes, init_process, syms_of_process): Unify the
917 implementations for with subprocesses and without them.
919 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
921 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
922 correct size for Motif.
923 (free_frame_menubar): Call x_set_window_size to update frame size.
925 * xfns.c (x_window): Set borderWidth to 0 for pane and
926 EmacsFrame. Frame size calculation is wrong otherwise.
928 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
930 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
931 allows to suppress errors when polling in Emacs' main loop.
932 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
933 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
934 (Fdbus_method_error_internal, Fdbus_send_signal)
935 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
936 (Fdbus_register_method): Use it. (Bug#6579)
938 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
940 * alloc.c: Convert DEFUNs to standard C.
1008 * xsmfns.c: Likewise.
1010 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1012 * process.c (kbd_is_on_hold, hold_keyboard_input)
1013 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1015 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1017 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1018 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1021 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1023 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1026 Clean up include guards.
1027 * tparam.c: Remove include guards for config.h, string.h and code
1028 that assumes #ifndef emacs.
1036 Remove prefix-args.c
1037 * prefix-args.c: Remove file.
1038 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1039 * Makefile.in (temacs${EXEEXT}): Remove references to
1040 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1041 (mostlyclean): Remove reference to prefix-args.
1042 (prefix-args): Remove.
1044 Simplify cstart_of_data, start_of_code and related code.
1045 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1046 (start_of_data): Merge into start_of_data function.
1047 * sysdep.c (start_of_text): Remove. Move simplified versions of
1048 it in the only users: unexaix.c and unexec.c.
1049 (read_input_waiting): Remove local declaration of quit_char.
1050 (start, etext): Remove declarations.
1051 (start_of_data): Merge with the version in mem-limits.h and move
1053 * vm-limit.c (start_of_data): Merged and simplified version of the
1054 code formerly in mem-limits.h and sysdep.c.
1055 * unexec.c (start): New declaration, moved from sysdep.c.
1056 (start_of_text): Simplified version of the code formerly in sysdep.c.
1057 * unexaix.c (start_of_text): Simplified version of the code
1058 formerly in sysdep.c.
1059 * m/alpha.h (HAVE_TEXT_START): Remove.
1060 (TEXT_START): Move ...
1061 * unexalpha.c (TEXT_START): ... here.
1062 * s/hpux10-20.h (TEXT_START): Remove.
1063 * s/darwin.h (TEXT_START):
1064 * m/mips.h (TEXT_START):
1065 * m/macppc.h (HAVE_TEXT_START):
1066 * m/m68k.h (TEXT_START):
1067 * m/iris4d.h (TEXT_START):
1068 * m/intel386.h (TEXT_START):
1069 * m/ibmrs6000.h (TEXT_START):
1070 * m/ia64.h (HAVE_TEXT_START):
1071 * s/msdos.h (TEXT_START): Likewise.
1073 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1075 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1076 (overrun_check_free, xstrdup, allocate_string)
1077 (allocate_string_data, compact_small_strings, Fmake_string)
1078 (make_unibyte_string, make_multibyte_string)
1079 (make_string_from_bytes, make_specified_string, make_float)
1080 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1081 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1082 memcpy, memmove, memset, memcmp.
1083 * atimer.c (start_atimer, set_alarm): Likewise.
1084 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1085 (mmap_realloc, init_buffer_once): Likewise.
1086 * callint.c (Fcall_interactively): Likewise.
1087 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1088 (getenv_internal_1): Likewise.
1089 * casefiddle.c (casify_object): Likewise.
1090 * ccl.c (ccl_driver): Likewise.
1091 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1092 * charset.c (load_charset_map_from_file)
1093 (load_charset_map_from_file, load_charset_map_from_vector)
1094 (Fdefine_charset_internal): Likewise.
1095 * cm.c (Wcm_clear): Likewise.
1096 * coding.c (decode_eol, decode_coding_object)
1097 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1098 * data.c (Faset): Likewise.
1099 * dired.c (directory_files_internal, file_name_completion_stat):
1101 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1102 (clear_glyph_row, copy_row_except_pointers)
1103 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1104 (save_current_matrix, restore_current_matrix)
1105 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1106 (mirror_line_dance, scrolling_window): Likewise.
1107 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1109 * doprnt.c (doprnt): Likewise.
1110 * editfns.c (Fuser_full_name, make_buffer_string_both)
1111 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1112 * emacs.c (sort_args): Likewise.
1113 * eval.c (Fapply, Ffuncall): Likewise.
1114 * fileio.c (Ffile_name_directory, make_temp_name)
1115 (Fexpand_file_name, search_embedded_absfilename)
1116 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1117 (auto_save_error): Likewise.
1118 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1119 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1120 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1121 (Fmake_hash_table): Likewise.
1122 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1123 * ftfont.c (ftfont_text_extents): Likewise.
1124 * getloadavg.c (getloadavg): Likewise.
1125 * image.c (define_image_type, make_image, make_image_cache)
1126 (x_create_x_image_and_pixmap, xbm_image_p)
1127 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1128 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1129 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1130 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1131 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1132 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1134 * indent.c (scan_for_column, compute_motion): Likewise.
1135 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1136 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1137 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1138 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1139 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1140 (store_user_signal_events, menu_bar_items, tool_bar_items)
1141 (process_tool_bar_item, append_tool_bar_item)
1142 (read_char_minibuf_menu_prompt, read_key_sequence)
1143 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1145 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1147 * lisp.h (STRING_COPYIN): Likewise.
1148 * lread.c (Fload, read1, oblookup): Likewise.
1149 * msdos.c (Frecent_doskeys): Likewise.
1150 * nsfns.m (Fx_create_frame): Likewise.
1151 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1153 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1154 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1156 * nsmenu.m (ns_update_menubar): Likewise.
1157 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1158 * print.c (print_unwind, printchar, strout, print_string)
1159 (print_error_message): Likewise.
1160 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1161 (Fmake_network_process, Fnetwork_interface_list)
1162 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1163 (init_process): Likewise.
1164 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1165 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1167 * scroll.c (do_scrolling, do_direct_scrolling)
1168 (scrolling_max_lines_saved): Likewise.
1169 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1170 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1171 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1172 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1173 (emacs_set_tty): Likewise.
1174 * term.c (encode_terminal_code, calculate_costs)
1175 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1177 * termcap.c (tgetst1, gobble_line): Likewise.
1178 * termhooks.h (EVENT_INIT): Likewise.
1179 * tparam.c (tparam1): Likewise.
1180 * unexalpha.c (unexec): Likewise.
1181 * unexec.c (write_segment): Likewise.
1182 * unexmacosx.c (unexec_write_zero): Likewise.
1183 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1184 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1185 * w32font.c (w32font_list_family, w32font_text_extents)
1186 (w32font_list_internal, w32font_match_internal)
1187 (w32font_open_internal, compute_metrics, Fx_select_font):
1189 * w32menu.c (set_frame_menubar, add_menu_item)
1190 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1191 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1192 * w32uniscribe.c (uniscribe_list_family): Likewise.
1193 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1194 * window.c (make_window, replace_window, set_window_buffer)
1195 (Fsplit_window): Likewise.
1196 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1197 (add_to_log, message3, x_consider_frame_title)
1198 (append_space_for_newline, extend_face_to_end_of_line)
1199 (decode_mode_spec_coding, init_glyph_string): Likewise.
1200 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1201 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1202 (face_attr_equal_p, make_realized_face, make_face_cache)
1203 (free_realized_faces, lookup_named_face, smaller_face)
1204 (face_with_height, lookup_derived_face)
1205 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1206 (Finternal_set_font_selection_order, realize_default_face)
1207 (compute_char_face, face_at_buffer_position)
1208 (face_for_overlay_string, face_at_string_position, merge_faces):
1210 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1211 (Fx_window_property, x_create_tip_frame)
1212 (Fx_backspace_delete_keys_p): Likewise.
1213 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1214 (xfont_text_extents): Likewise.
1215 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1216 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1217 * xselect.c (x_queue_event, x_get_window_property)
1218 (receive_incremental_selection): Likewise.
1219 * xsmfns.c (x_session_check_input): Likewise.
1220 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1221 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1223 * character.h (BCOPY_SHORT): Removed.
1224 * config.in: Regenerate.
1225 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1226 * emacs.c (main) [PROFILING]: Don't declare
1227 dump_opcode_frequencies.
1228 * lisp.h (safe_bcopy): Remove declaration.
1229 (memset) [!HAVE_MEMSET]: Declare.
1230 (memcpy) [!HAVE_MEMCPY]: Likewise.
1231 (memmove) [!HAVE_MEMMOVE]: Likewise.
1232 (memcmp) [!HAVE_MEMCMP]: Likewise.
1233 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1234 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1236 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1237 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1238 (BCOPY_DOWNWARD_SAFE): Don't define.
1239 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1240 (memcpy) [!HAVE_MEMCPY]: Define.
1241 (memmove) [!HAVE_MEMMOVE]: Define.
1242 (memcmp) [!HAVE_MEMCMP]: Define.
1244 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1246 * process.c (kbd_is_on_hold): New variable.
1247 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1249 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1250 select on empty input mask.
1251 (init_process): Initialize kbd_is_on_hold to 0.
1253 * process.h (hold_keyboard_input, unhold_keyboard_input)
1254 (kbd_on_hold_p): Declare.
1256 * keyboard.c (input_available_signal): Declare.
1257 (kbd_buffer_nr_stored): New function.
1258 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1259 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1260 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1261 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1262 (tty_read_avail_input): If input is on hold, return.
1263 Don't read more that free slots in kbd_buffer (Bug#6571).
1265 2010-07-07 Eli Zaretskii <eliz@gnu.org>
1270 * w16select.c: Convert function definitions to ANSI C.
1272 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1273 Remove unused prototypes.
1275 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1277 * coding.c, sysdep.c: Convert some more functions to standard C.
1279 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1281 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1282 (encode_coding_object): Use SPECPDL_INDEX.
1283 (syms_of_coding): Use DOS_NT.
1285 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1287 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1289 Make the function member of Lisp_Subr use standard C prototypes.
1290 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1291 (DECL_ALIGN): Add a cast for the function.
1292 * eval.c (Feval, Ffuncall): Use the proper type for each type
1295 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
1297 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1298 fringe face id, so face-remapping-alist works (Bug#6091).
1300 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
1302 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1303 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1304 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1306 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1308 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1309 * lisp.h: Declare x_get_keysym_name.
1310 * keyboard.c (modify_event_symbol): Don't declare
1311 x_get_keysym_name here.
1313 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1315 * ecrt0.c: Revert conversion to standard C.
1317 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1319 * vm-limit.c (memory_warnings):
1320 * keyboard.c (modify_event_symbol):
1321 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1322 (round2, emacs_rint):
1323 * process.c (send_process, old_sigpipe): Convert function
1324 definitions and declarations to standard C.
1326 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
1328 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1329 * xdisp.c: Convert function definitions to standard C.
1331 * cm.c (cmputc): Arg C is now int, not char.
1332 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1334 2010-07-05 James Cloos <cloos@jhcloos.com>
1336 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1338 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1339 _NET_WM_ICON_NAME atoms.
1341 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1342 and _NET_WM_ICON_NAME properties, too, matching what is
1343 done in the Gtk+ case.
1345 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1347 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1349 * xsmfns.c (SSDATA): New macro.
1350 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1351 passed to strlen/strcpy/strcat.
1352 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1353 7:th arg to XChangeProperty to (unsigned char *)
1355 * xsettings.c (something_changedCB, parse_settings)
1356 (apply_xft_settings): Reformat prototype.
1357 (something_changedCB, init_gconf): Remove unused variable i.
1358 (read_settings): Remove unused variable long_len.
1360 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1361 (xg_get_image_for_pixmap, create_dialog)
1362 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1363 (menuitem_highlight_callback, make_menu_item)
1364 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1365 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1366 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1367 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1368 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1369 (xg_tool_bar_item_expose_callback): Reformat prototype.
1370 (xg_update_menubar): GList *group => GSList *group.
1371 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1373 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1374 to GTK_IMAGE (wimage).
1376 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1378 * atimer.c: Use "" instead of <> for local includes for
1379 consistency with the rest of the code.
1381 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1382 * xrdb.c (get_system_name):
1383 * window.c (shrink_windows):
1384 * syntax.c (forw_comment):
1385 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1387 * mem-limits.h (start_of_data):
1388 * lread.c (readevalloop):
1389 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1390 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1391 * frame.c (x_get_focus_frame):
1392 * floatfns.c (fmod_float):
1393 * fileio.c (choose_write_coding_system):
1394 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1395 (malloc_initialize_hook, sort_args, synchronize_locale):
1396 * doprnt.c (doprnt):
1397 * dired.c (compile_pattern):
1398 * data.c (fmod_float):
1399 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1400 (map_char_table_for_charset):
1401 * charset.c (define_charset_internal):
1402 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1405 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1406 Stefan Monnier <monnier@iro.umontreal.ca>
1408 * lread.c (read1): Fix up last change to not mess up `c'.
1410 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1412 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1414 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1418 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
1419 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
1420 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1421 arg, as required by internal_condition_case_1.
1422 * print.c (strout): Use const char* for arg PTR.
1423 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1424 (analyse_first): Fix "const const".
1425 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
1426 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
1427 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
1429 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1431 * alloc.c: Convert function definitions to standard C.
1505 * xterm.c: Likewise.
1507 2010-07-03 Eli Zaretskii <eliz@gnu.org>
1509 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1510 frames other than the initial one. Fix reversal of colors when
1511 `reverse' is specified in the frame parameters. Call
1512 update_face_from_frame_parameter instead of
1513 internal-set-lisp-face-attribute. Initialize screen colors from
1514 initial_screen_colors[] when f->default_face_done_p is zero,
1515 instead of depending on being called with default-frame-alist as
1518 * xfaces.c (update_face_from_frame_parameter): Move out of
1519 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1520 with HAVE_WINDOW_SYSTEM.
1522 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1523 to menu-bar-mode, if not set in the frame parameters or in
1524 default-frame-alist.
1526 * w32console.c (sys_tputs): Adjust argument list to prototype in
1529 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
1531 * lisp.h (memory_warnings): Fix prototype.
1533 * cm.h (evalcost): Fix prototype.
1535 * cm.c (evalcost): Fix arg type.
1537 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1539 * term.c (term_clear_mouse_face, Fidentity):
1540 * syssignal.h (signal_handler_t):
1541 * lisp.h (memory_warnings):
1542 * coding.h (preferred_coding_system):
1544 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1546 2010-07-02 Eli Zaretskii <eliz@gnu.org>
1548 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1551 * msdos.h (load_pixmap): Don't define away.
1553 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1556 * atimer.h: Remove define for P_.
1558 * alloc.c: Remove __P and P_ from .c and .m files.
1620 * xterm.c: Likewise.
1622 Remove P_ and __P macros.
1623 * atimer.h: Remove P_ and __P macros.
1661 * xterm.h: Likewise.
1663 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1665 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1668 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1669 * syssignal.h: Remove code for Lynx, not supported anymore.
1670 * vm-limit.c: Remove unused code the depends on emacs not being
1671 defined and NO_LIM_DATA being defined.
1672 * mem-limits.h: Remove dead code.
1674 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1676 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1678 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1679 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1681 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1682 parameters, they are already absolute.
1684 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1685 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
1687 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1689 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1690 Update FRAME_TOOLBAR_HEIGHT.
1692 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1693 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1695 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
1697 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1698 check default-frame-alist.
1700 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1702 * process.c (create_process): Avoid using invalid file descriptors.
1704 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1706 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1708 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1709 Improve documentation. Return font regardless of use_system_font.
1710 (syms_of_xsettings): Improve documentation for font-use-system-font.
1712 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1714 * xfaces.c (realize_face): Garbage the frame if a face is removed
1717 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1719 * keyboard.c: Remove duplicate <setjmp.h>.
1720 (read_key_sequence): Remove volatile qualifiers.
1722 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1724 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1725 (struct glyph_row): New members left_fringe_offset and
1726 right_fringe_offset.
1728 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1730 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1731 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1733 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
1734 Take account of bitmap offset.
1735 (draw_window_fringes): Take account of window vscroll.
1736 (update_window_fringes): Likewise. Extend top-aligned top indicator
1737 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1738 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1739 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1741 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1743 * w32fns.c (Qtooltip): Declare.
1744 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1746 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1748 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1749 grab on just Press (Bug#6499).
1751 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
1753 * frame.c (Qtooltip): New var.
1754 (delete_frame): Use it. Fix faulty if statement. Don't update
1755 mode line for tooltip frames. Suggested by Martin Rudalics.
1757 * xfns.c (x_create_tip_frame):
1758 * w32fns.c (x_create_tip_frame): Use it.
1760 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
1762 * xftfont.c (xftfont_open): Check font width one by one also when
1765 * ftfont.c (ftfont_open): Ditto.
1767 2010-06-30 Glenn Morris <rgm@gnu.org>
1769 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1771 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1773 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1774 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1775 * s/darwin.h (SYSTEM_MALLOC):
1776 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1778 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1780 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1781 (ns_get_screen): Don't assign integer to f.
1782 (Fx_display_color_cells): Declarations before statements.
1784 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1786 * xfns.c (x_default_font_parameter): Remove got_from_system
1789 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1790 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1791 defines based on what configure finds.
1793 * xterm.c (XTflash): Use gtk_widget_get_window.
1794 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1795 gtk_adjustment_get_page_size.
1796 (handle_one_xevent): Use gtk_widget_get_mapped.
1797 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1800 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1802 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1803 HAVE_GTK_FILE_SELECTION_NEW.
1805 * gtkutil.c (xg_display_open, xg_display_close): Remove
1806 HAVE_GTK_MULTIDISPLAY, it is always defined.
1807 (xg_display_open): Return type is void.
1808 (gtk_widget_set_has_window)
1809 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1810 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1811 (gtk_adjustment_set_page_increment)
1812 (gtk_adjustment_get_step_increment): #define these if not found
1814 (remove_submenu): New define based on Gtk+ version.
1815 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1816 gtk_widget_get_window.
1817 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1818 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1819 (create_dialog): Use gtk_dialog_get_action_area and
1820 gtk_dialog_get_content_area.
1821 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1822 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1823 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1824 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1825 g_object_ref and g_object_unref.
1826 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1827 gtk_widget_get_sensitive.
1828 (xg_update_submenu): Use remove_submenu.
1829 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1830 properties instead to get old x and y position.
1831 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1832 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
1833 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
1834 (xg_get_tool_bar_widgets): New function.
1835 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1836 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1837 (toolbar_set_orientation): New #define based on if configure
1838 finds gtk_orientable_set_orientation.
1839 (xg_create_tool_bar): Call toolbar_set_orientation.
1840 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1841 instead of gtk_box_pack_start_defaults.
1843 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
1845 * cmds.c (Fdelete_backward_char): Move into Lisp.
1847 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1849 * s/freebsd.h (BSD4_2): Remove redundant definition.
1850 bsd-common.h defines it already.
1852 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
1854 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1855 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1856 tool-bar-mode, which are now set using these X resources at
1857 startup, to determine the defaults (Bug#2249).
1859 * w32fns.c (Fx_create_frame):
1860 * nsfns.m (Fx_create_frame): Likewise.
1862 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1864 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
1866 * gtkutil.c (xg_update_scrollbar_pos):
1867 Avoid C99 mid-block variable declaration.
1869 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1871 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1873 * gtkutil.h (xg_show_scroll_bar): Remove.
1875 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1876 if height is less than scroll bar min size.
1877 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1879 * xfns.c (x_default_font_parameter): Try to open font from system
1880 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1882 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1884 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1886 2010-06-20 Eli Zaretskii <eliz@gnu.org>
1888 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1889 most-positive-fixnum, be extra accurate when scrolling window
1890 start, to avoid missing the cursor line.
1892 2010-06-19 Eli Zaretskii <eliz@gnu.org>
1894 * xdisp.c (try_scrolling): Compute the limit for searching point
1895 in forward scroll from scroll_max, instead of an arbitrary limit
1896 of 10 screen lines. See
1897 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1899 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1902 2010-06-16 Glenn Morris <rgm@gnu.org>
1904 * editfns.c (Fbyte_to_string): Pacify compiler.
1906 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1908 * lread.c (read1): Phase out old-style backquotes a bit more.
1910 2010-06-12 Eli Zaretskii <eliz@gnu.org>
1912 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1915 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1917 * bidi.c (bidi_initialize): Remove explicit initialization of
1918 bidi_type_table; include biditype.h instead. Don't support
1919 entries whose second codepoint is zero. Initialize bidi_mirror_table.
1920 (bidi_mirror_char): Use bidi_mirror_table.
1922 * biditype.h: New file.
1924 * bidimirror.h: New file.
1926 * window.c (syms_of_window): Doc fix (bug#6409).
1928 2010-06-12 Romain Francoise <romain@orebokech.com>
1930 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1933 2010-06-10 Glenn Morris <rgm@gnu.org>
1935 * editfns.c (Fbyte_to_string): Pacify compiler.
1937 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1939 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1941 * alloc.c (Fmake_byte_code): Don't access undefined argument
1944 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
1946 * xdisp.c (next_element_from_image): Ensure that after-strings are
1947 read the next time we hit handle_stop (Bug#1336).
1949 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1951 * lread.c (read1): Signal error if #s is not followed by paren.
1953 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
1955 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1957 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1959 2010-06-15 Glenn Morris <rgm@gnu.org>
1961 * editfns.c (Fbyte_to_string): Pacify compiler.
1963 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1965 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1966 Check `object's type before accessing its guts.
1968 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1970 * s/usg5-4.h: Fix previous change.
1971 Suggested by Lawrence Mitchell <wence@gmx.li>
1973 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1975 * minibuf.c (Fall_completions): Add more checks.
1977 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
1979 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1981 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1983 * lread.c (X_OK): Remove, unused.
1985 * dispnew.c: Remove obsolete comment.
1987 Remove INCLUDED_FCNTL.
1988 * xterm.c (INCLUDED_FCNTL):
1989 * callproc.c (INCLUDED_FCNTL):
1990 * alloc.c (INCLUDED_FCNTL):
1991 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1992 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1994 2010-06-07 Martin Rudalics <rudalics@gmx.at>
1996 * window.c (Fselect_window): Move `record_buffer' up to the
1997 beginning of this function, so the buffer gets recorded
1998 even if the selected window does not change.
1999 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2001 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2003 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2004 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2006 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2008 Remove BSTRING related code, all platforms define it.
2009 * s/usg5-4.h (BSTRING): Remove definition.
2010 * s/template.h (BSTRING):
2011 * s/msdos.h (BSTRING):
2012 * s/ms-w32.h (BSTRING):
2013 * s/hpux10-20.h (BSTRING):
2014 * s/gnu-linux.h (BSTRING):
2015 * s/darwin.h (BSTRING):
2016 * s/cygwin.h (BSTRING):
2017 * s/bsd-common.h (BSTRING):
2018 * s/aix4-2.h (BSTRING): Likewise.
2019 * sysdep.c: Remove code depending on BSTRING not being defined.
2021 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2023 Remove obsolete macro BASE_LEADING_CODE_P.
2024 * character.h (BASE_LEADING_CODE_P): Remove.
2025 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2026 * buffer.c (Fset_buffer_multibyte):
2027 * indent.c (scan_for_column, compute_motion):
2028 * insdel.c (count_combining_before, count_combining_after):
2029 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2031 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2033 Turn `directory-sep-char' into a noop.
2035 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2036 (DIRECTORY_SEP): Define unconditionally.
2038 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2040 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2041 call dostounix_filename directly.
2043 * fileio.c (CORRECT_DIR_SEPS): Remove.
2044 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2045 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2046 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2047 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2049 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2050 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2052 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2054 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2057 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2059 * ccl.c (Fccl_program_p): Fix typo in docstring.
2061 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2063 Move UNEXEC definition to autoconf.
2064 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2065 * s/sol2-10.h (UNEXEC):
2066 * s/irix6-5.h (UNEXEC):
2067 * s/hpux10-20.h (UNEXEC):
2068 * s/gnu-linux.h (UNEXEC):
2069 * s/darwin.h (UNEXEC):
2070 * s/cygwin.h (UNEXEC):
2071 * s/bsd-common.h (UNEXEC):
2072 * s/aix4-2.h (UNEXEC):
2073 * m/alpha.h (UNEXEC): Likewise.
2074 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2076 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2078 Remove obsolete pre-unicode2 macros.
2079 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2080 * composite.c (composition_reseat_it):
2082 * fns.c (Ffillarray):
2083 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2084 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2086 2010-06-03 Juri Linkov <juri@jurta.org>
2088 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2089 (Fswitch_to_buffer): Remove unused variable `err'.
2091 2010-06-03 Glenn Morris <rgm@gnu.org>
2093 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2095 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2096 now that AH_BOTTOM does it.
2098 * m/hp800.h (HAVE_ALLOCA):
2099 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2101 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2102 Remove NOT_C_CODE tests, it is always true now.
2104 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2106 Fix config.h includes.
2114 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2117 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2119 * s/sol2-6.h: Remove obsolete comments.
2121 Remove unnecessary alloca.h includes.
2122 * keymap.c: Do not include alloca.h, config.h does that.
2123 * sysdep.c: Likewise. Do not define fwrite, not used.
2125 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2127 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2128 the HAVE_TERMIO where it belongs (bug#6149).
2130 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2132 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2135 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2137 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2138 state is always cached (bug#6306).
2140 2010-05-29 Eli Zaretskii <eliz@gnu.org>
2142 Fix cursor motion in bidi-reordered continued lines.
2143 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2144 only after finding point's row. Fix the logic. Rewrite the loop
2145 over continuation lines in bidi-reordered buffers. Return
2146 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2147 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2149 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
2151 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2153 2010-05-28 Kenichi Handa <handa@m17n.org>
2155 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2156 Don't sheck SPEC if it is nil.
2157 (font_list_entities): Call font_delete_unmatched if
2158 Vface_ignored_fonts is non-nil. (Bug#6287)
2160 2010-05-28 Glenn Morris <rgm@gnu.org>
2162 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2164 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2166 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2168 (internal_delete_file, Frename_file): Callers changed.
2169 (delete_by_moving_to_trash): Doc fix.
2170 (Fdelete_directory_internal): Don't move to trash.
2172 * callproc.c (delete_temp_file):
2173 * buffer.c (Fkill_buffer): Callers changed.
2175 * lisp.h: Update prototype.
2177 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2179 * xdisp.c (redisplay_window): After redisplay, check if point is
2180 still valid before setting it (Bug#6177).
2182 2010-05-27 Glenn Morris <rgm@gnu.org>
2184 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2185 Convert comments to Makefile format.
2187 * Makefile.in (bootstrap-clean): No more Makefile.c.
2189 2010-05-26 Glenn Morris <rgm@gnu.org>
2191 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2192 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2194 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2196 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2198 2010-05-26 Kenichi Handa <handa@m17n.org>
2200 * composite.c (composition_compute_stop_pos): Fix condition for
2203 2010-05-25 Glenn Morris <rgm@gnu.org>
2205 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2206 Move before TEMACS_LDFLAGS.
2207 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2208 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2210 * Makefile.in (NOT_C_CODE): No longer define.
2211 (config.h): No longer include.
2213 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2214 variables it may reference.
2216 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2217 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2219 2010-05-25 Kenichi Handa <handa@m17n.org>
2221 * dispextern.h (struct composition_it): New members rule_idx and
2224 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2225 that the character positions of IT point the last character of the
2226 current grapheme cluster.
2227 (next_element_from_composition): Don't change character positions
2229 (append_composite_glyph): Set glyph->charpos to
2232 * composite.c (autocmp_chars): Change the first argument to RULE,
2233 and try composition with RULE only.
2234 (composition_compute_stop_pos): Record the index number of the
2235 composition rule in CMP_IT->rule_idx.
2236 (composition_reseat_it): Call autocmp_chars repeatedly until the
2237 correct rule of the composition is found.
2238 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2239 is at the last character of the current grapheme cluster when
2240 CMP_IT->reversed_p is nonzero.
2242 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2244 * editfns.c (Fbyte_to_string): New function.
2246 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2248 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2249 Suggested by Masatake YAMATO <yamato@redhat.com>.
2251 2010-05-23 Eli Zaretskii <eliz@gnu.org>
2253 * dispextern.h (init_iterator): Sync prototype with changed definition.
2255 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2257 * s/netbsd.h: If terminfo is found, use it in preference to
2258 termcap. (Bug#6190) [Backport from trunk]
2260 2010-05-19 Eli Zaretskii <eliz@gnu.org>
2262 Redesign and reimplement bidi-aware edge positions of glyph rows.
2264 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2265 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2266 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2267 and maxpos members instead of start.pos and end.pos, respectively.
2269 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2270 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2271 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2272 (try_window_reusing_current_matrix, try_window_id):
2273 Use ROW->minpos rather than ROW->start.pos.
2274 (init_from_display_pos, init_iterator): Use EMACS_INT for
2275 character and byte positions.
2276 (find_row_edges): Rename from find_row_end. Accept additional
2277 arguments for minimum and maximum buffer positions seen by
2278 display_line for this row. Don't use iterator to find the
2279 position following the maximum one; instead, increment the
2280 position found by display_line directly. Fix logic; eol_pos
2281 should be tested before the rest. Handle the case of characters
2282 delivered from display vector (bug#6036). Fix tests related to
2283 it->method. Handle the truncated_on_right_p rows.
2284 (RECORD_MAX_MIN_POS): New macro.
2285 (display_line): Use it to record the minimum and maximum buffer
2286 positions for glyphs in the row being assembled. Record the
2287 position of the newline that terminates the line. If word wrap is
2288 in effect, restore minimum and maximum positions seen up to the
2289 wrap point, when iterator returns to it.
2290 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2291 row and cursor not already at point. Restore original pre-bidi
2292 code for unidirectional buffers.
2294 * dispnew.c (increment_row_positions, check_matrix_invariants):
2295 Increment and check row->start.pos and row->end.pos, in addition
2296 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2298 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2299 Display truncated_on_left_p and truncated_on_right_p flags.
2301 (pmtxrows): Display the ordinal number of each row. Don't display
2302 rows beyond the last one.
2304 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2305 it is not copied by bidi_copy_it.
2307 2010-05-22 Eli Zaretskii <eliz@gnu.org>
2309 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2312 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
2314 * image.c (Fimage_flush): Rename from image-refresh.
2316 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
2318 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2321 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2322 (clear_image_cache): If the number of cached images is unusually
2323 large, decrease the cache eviction delay (Bug#6230).
2325 2010-05-21 Glenn Morris <rgm@gnu.org>
2327 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2328 Move these rules to ns.mk.
2331 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2333 * Makefile.in (CANNOT_DUMP): New, set by configure.
2334 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2336 2010-05-20 Juri Linkov <juri@jurta.org>
2338 * fileio.c (Fdelete_file): Change interative spec to use
2339 `read-file-name' like in `find-file-read-args' where the default
2340 value is `default-directory' instead of `buffer-file-name'.
2341 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2343 2010-05-20 Kevin Ryde <user42@zip.com.au>
2345 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2346 (Voverriding_terminal_local_map, Vsystem_key_alist)
2347 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2349 2010-05-20 Glenn Morris <rgm@gnu.org>
2351 * Makefile.in (DEPDIR): New constant.
2352 (DEPFLAGS): Set with configure, not cpp.
2353 (MKDEPDIR): New, set by configure.
2354 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2355 (clean): Use $DEPDIR.
2356 (deps_frag): Include from configure.
2357 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2358 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2360 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2361 reallocation of the cache. (Bug#6210)
2363 2010-05-19 Glenn Morris <rgm@gnu.org>
2365 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2367 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2368 (GNULIB_VAR): Remove.
2369 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2371 * m/ibms390x.h (LINKER):
2372 * m/macppc.h (LINKER) [GNU_LINUX]:
2373 * s/aix4-2.h (ORDINARY_LINK):
2374 * s/cygwin.h (LINKER):
2375 * s/darwin.h (ORDINARY_LINK):
2376 * s/gnu.h (ORDINARY_LINK):
2377 * s/netbsd.h (LINKER):
2378 * s/usg5-4.h (ORDINARY_LINK):
2381 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2383 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
2385 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2386 prevent stack overflow if number of arguments is too large
2389 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
2391 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2393 2010-05-18 Glenn Morris <rgm@gnu.org>
2395 * s/gnu-linux.h: Combine two conditionals.
2397 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
2400 * Makefile.in (RALLOC_OBJ): New, set by configure.
2401 (rallocobj): Replace with the previous variable.
2402 (otherobj): Use $RALLOC_OBJ.
2404 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2405 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2407 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2408 (gmallocobj, vmlimitobj): Replace with previous two variables.
2409 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2411 2010-05-17 Glenn Morris <rgm@gnu.org>
2413 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2414 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2416 2010-05-16 Glenn Morris <rgm@gnu.org>
2418 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2420 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2422 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2425 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2426 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2428 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2429 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2430 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2431 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2432 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2434 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2435 Remove ${STARTFLAGS}, nothing ever sets it.
2437 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2439 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2441 2010-05-16 Glenn Morris <rgm@gnu.org>
2443 * Makefile.in (LIBX_BASE): Always define.
2445 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2447 * Makefile.in (LIBXT): Always define.
2449 2010-05-15 Glenn Morris <rgm@gnu.org>
2451 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
2453 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2454 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2456 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
2458 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
2459 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2461 * emacs.c (main): Initialize initial-environment and
2462 process-environment before generating from env, not after.
2464 Handle --version reasonably in CANNOT_DUMP configuration.
2465 * emacs.c (emacs_version, emacs_copyright): New string variables.
2466 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2467 (syms_of_emacs): Defvar them, and initialize them from the C
2469 (main): If initialization hasn't been done, print initial version
2470 info from the C strings, instead of starting an interactive session.
2472 2010-05-15 Eli Zaretskii <eliz@gnu.org>
2474 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2475 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2476 (bidi_paragraph_init): Remove redundant assertion that we are at
2477 the beginning of a line after call to bidi_find_paragraph_start.
2479 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2480 (syms_of_xdisp): Defsubr it.
2482 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2484 * Makefile.in: Fix MSDOS-related comments.
2486 2010-05-15 Glenn Morris <rgm@gnu.org>
2488 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2489 (really-lwlib, really-oldXMenu): Always define.
2490 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2492 * Makefile.in: Simplify cpp conditional.
2494 * Makefile.in (${ns_appdir}): Simplify using umask.
2496 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2498 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2500 * eval.c (specbind): Remove left-over duplicate test.
2501 Disallow let-binding frame-local vars. Add comment.
2503 2010-05-14 Eli Zaretskii <eliz@gnu.org>
2505 Make the cache of bidi iterator states dynamically allocated.
2506 * bidi.c (bidi_cache_shrink): New function.
2507 (bidi_init_it): Call it.
2508 (bidi_cache_iterator_state): Enlarge the cache if needed.
2510 * bidi.c (bidi_move_to_visually_next): Rename from
2511 bidi_get_next_char_visually. All callers changed.
2513 2010-05-14 Kenichi Handa <handa@m17n.org>
2515 * dispextern.h (struct composition_it): New member reversed_p.
2517 * composite.c (composition_compute_stop_pos): Search backward if
2519 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2520 Set CMP_IT->reversed_p.
2521 (composition_update_it): Pay attention to CMP_IT->reversed_p.
2523 * xdisp.c (set_iterator_to_next):
2524 Call composition_compute_stop_pos with negative ENDPOS if we are
2525 scanning backward. Call composition_compute_stop_pos if scan
2526 direction is changed.
2527 (next_element_from_buffer): Call composition_compute_stop_pos with
2528 negative ENDPOS if we are scanning backward.
2529 (next_element_from_composition): Pay attention to
2530 IT->cmp_it.reversed_p.
2532 2010-05-14 Kenichi Handa <handa@m17n.org>
2534 * font.c (font_range): Return the range for the font found at first.
2536 2010-05-14 Glenn Morris <rgm@gnu.org>
2538 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2540 * Makefile.in (mktime, X11, register): Move undefs to configure.
2542 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2543 (MSDOS_X_OBJ): New variable.
2544 (MSDOS_SUPPORT_REAL): New constant.
2545 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2546 (obj): Use MSDOS_X_OBJ.
2547 (lisp): Use MSDOS_SUPPORT as a variable.
2549 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2550 (GPM_MOUSE_SUPPORT): Now it's a constant.
2551 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2554 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
2555 (ns_appresdir): Remove, unused.
2557 * Makefile.in (SHELL): Move outside cpp section.
2559 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2561 2010-05-13 Glenn Morris <rgm@gnu.org>
2563 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2564 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2566 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2567 HAVE_WINDOW_SYSTEM must be too.
2569 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2570 (lisp): Remove WINNT_SUPPORT.
2572 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2573 Let configure set these variables (to empty) in this case as well.
2575 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2576 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2578 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2579 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2580 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2581 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2582 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
2583 the values output by configure.
2584 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2586 2010-05-12 Glenn Morris <rgm@gnu.org>
2588 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2589 (LINKER_WAS_SPECIFIED): Remove.
2591 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2592 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2593 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2594 * s/cygwin.h (LIB_GCC):
2595 * s/freebsd.h (LIB_GCC):
2596 * s/gnu-linux.h (LIB_GCC):
2597 * s/msdos.h (LIB_GCC):
2598 * s/netbsd.h (LIB_GCC):
2601 2010-05-11 Karel Klic <kklic@redhat.com>
2603 * ftfont.c: Fix incorrect parentheses of #if condition for
2604 definining M17N_FLT_USE_NEW_FEATURE.
2606 2010-05-11 Glenn Morris <rgm@gnu.org>
2608 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2609 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2611 2010-05-10 Eli Zaretskii <eliz@gnu.org>
2613 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2614 unibyte buffers. See
2615 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2617 2010-05-10 Glenn Morris <rgm@gnu.org>
2619 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2620 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2621 (LIBES): Use LIBS_SYSTEM as a variable.
2622 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2623 * s/aix4-2.h (LIBS_SYSTEM):
2624 * s/freebsd.h (LIBS_SYSTEM):
2625 * s/hpux10-20.h (LIBS_SYSTEM):
2626 * s/sol2-6.h (LIBS_SYSTEM):
2627 * s/unixware.h (LIBS_SYSTEM):
2630 * s/aix4-2.h (MAIL_USE_LOCKF):
2631 * s/bsd-common.h (MAIL_USE_FLOCK):
2632 * s/darwin.h (MAIL_USE_FLOCK):
2633 * s/gnu-linux.h (MAIL_USE_FLOCK):
2634 * s/irix6-5.h (MAIL_USE_FLOCK):
2635 * s/template.h (MAIL_USE_FLOCK):
2638 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
2640 * Version 23.2 released.
2642 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
2644 * composite.c (autocmp_chars): Save point as marker before calling
2645 auto-composition-function (Bug#5984).
2647 * lisp.h (restore_point_unwind): Add prototype.
2649 * fileio.c (restore_point_unwind): Remove static attribute.
2651 2010-05-08 Kenichi Handa <handa@m17n.org>
2653 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2654 new feature of libotf and m17n-flt.
2655 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2656 Call OTF_check_features even if no specific feature is given.
2657 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2658 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2659 that OUT is NULL. Use OTF_drive_gsub_with_log and
2660 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2662 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
2663 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2664 Setup mflt_enable_new_feature and mflt_try_otf.
2666 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2668 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2670 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2671 box and toolbar (Bug #6139).
2672 (xg_create_tool_bar): Remove comment (Bug #6139).
2673 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2674 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2676 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
2678 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2679 Update dependencies.
2681 2010-05-08 Eli Zaretskii <eliz@gnu.org>
2683 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2686 2010-05-08 Glenn Morris <rgm@gnu.org>
2688 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2690 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2691 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2692 (termcapobj): Replace with TERMCAP_OBJ.
2693 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2694 (LIBES): Use LIBS_TERMCAP as a variable.
2696 * s/freebsd.h (osreldate.h): No longer include, since this file
2697 does not use __FreeBSD_version any more.
2699 * s/aix4-2.h (TERMINFO):
2700 * s/cygwin.h (TERMINFO):
2701 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2702 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2703 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2704 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2705 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2706 * s/irix6-5.h (TERMINFO):
2707 * s/netbsd.h (LIBS_TERMCAP):
2708 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2709 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2710 * s/usg5-4.h (TERMINFO):
2713 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2715 * eval.c (unbind_to): Don't unbind a local binding into the global
2716 binding when the local binding disappeared. Inversely, don't unbind
2717 a global binding into a newly created local binding.
2718 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2719 can specify the frame to use, when applicable. Adjust callers.
2721 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
2722 Stefan Monnier <monnier@iro.umontreal.ca>
2724 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2726 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2728 * w32fns.c: Include w32.h.
2729 (Fw32_shell_execute): Decode the error message before passing it
2730 to `error'. (Bug#6126)
2732 * msdos.c (dos_set_window_size):
2733 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2734 instead of `XSYMBOL (foo)->value'.
2736 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2738 Fix the MS-DOS build, broken by autoconfiscation.
2740 * Makefile.in: Don't use Make-style comments past the "start of
2742 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2744 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2745 edited directly by msdos/sed1v2.inp).
2747 2010-05-07 Glenn Morris <rgm@gnu.org>
2749 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2750 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2751 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2752 move out of cpp section.
2753 * s/freebsd.h (LD_SWITCH_SYSTEM):
2754 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2755 * s/netbsd.h (LD_SWITCH_SYSTEM):
2756 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2758 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2760 Define LIB_STANDARD and START_FILES using autoconf.
2761 * s/usg5-4.h (LIB_STANDARD):
2762 * s/netbsd.h (START_FILES):
2763 * s/irix6-5.h (LIB_STANDARD):
2764 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2765 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2766 * s/freebsd.h (START_FILES):
2767 * s/darwin.h (START_FILES):
2768 * s/cygwin.h (START_FILES):
2769 * s/aix4-2.h (LIB_STANDARD):
2770 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2771 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2774 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2776 Remove NEED_BSDTTY and NEED_UNISTD_H.
2777 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2778 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2779 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2780 <sys/ptyio.h> and <unistd.h>.
2782 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2784 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2785 * s/gnu.h (START_FILES): Remove empty definition.
2787 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2789 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2791 2010-05-06 Glenn Morris <rgm@gnu.org>
2793 * Makefile.in (CPP, LN_S): Remove unused variables.
2795 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2797 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2799 2010-05-05 Lawrence Mitchell <wence@gmx.li>
2801 * m/sparc.h: Fix typo in earlier change.
2803 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2806 * eval.c (Fdefvaralias): Remove unintended nested if.
2807 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2809 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
2811 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2813 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2816 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2817 * s/gnu-linux.h (BSD_PGRPS): Remove.
2818 * term.c (dissociate_if_controlling_tty):
2819 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2820 (init_sys_modes, reset_sys_modes):
2822 * callproc.c (Fcall_process, child_setup): Remove code depending
2825 Remove POSIX_SIGNALS.
2826 * s/usg5-4.h (POSIX_SIGNALS):
2827 * s/netbsd.h (POSIX_SIGNALS):
2828 * s/msdos.h (POSIX_SIGNALS):
2829 * s/ms-w32.h (POSIX_SIGNALS):
2830 * s/hpux11.h (POSIX_SIGNALS):
2831 * s/gnu.h (POSIX_SIGNALS):
2832 * s/gnu-linux.h (POSIX_SIGNALS):
2833 * s/freebsd.h (POSIX_SIGNALS):
2834 * s/darwin.h (POSIX_SIGNALS):
2835 * s/cygwin.h (POSIX_SIGNALS):
2836 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2838 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2839 * process.c (create_process):
2841 * sysdep.c (wait_for_termination, init_signals):
2842 * process.c (create_process):
2843 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2844 remove all code that assumes the contrary.
2846 2010-05-04 Glenn Morris <rgm@gnu.org>
2848 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2850 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2851 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2852 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2853 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2854 LD_SWITCH_SYSTEM_tmp.
2855 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2856 New variables, set by configure.
2858 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2859 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2860 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2861 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2862 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2864 * s/aix4-2.h (C_SWITCH_SYSTEM):
2865 * m/alpha.h (C_SWITCH_MACHINE):
2866 Move to configure.in.
2867 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2868 New variables, set by configure.
2869 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2870 $c_switch_machine and $c_switch_system.
2872 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2874 * s/hpux10-20.h (LIB_STANDARD): New definition.
2875 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2876 on it, not used anymore.
2878 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
2880 * eval.c (internal_condition_case_n): Rename from
2881 internal_condition_case_2.
2882 (internal_condition_case_2): New function.
2884 * xdisp.c (safe_call): Use internal_condition_case_n.
2886 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2887 (internal_delete_file, Frename_file): Callers changed.
2889 * buffer.c (Fkill_buffer):
2890 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2892 * lisp.h: Update prototypes.
2894 2010-05-03 Glenn Morris <rgm@gnu.org>
2896 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2897 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2898 (LIBXT): Set with configure, not cpp.
2900 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2902 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2904 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2905 The FreeBSD is not needed, the default works, Solaris version is
2906 not needed, and the remaining case is not supported by configure.
2908 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2910 * xsmfns.c (CHDIR_OPT): New define.
2911 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2914 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2917 * emacs.c (USAGE1): Mention --chdir.
2918 (main): Handle --chdir.
2919 (standard_args): Add --chdir.
2920 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2923 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2925 Remove LD_SWITCH_MACHINE.
2926 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2927 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2930 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2931 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2934 * m/ibmrs6000.inp: Remove file, unused.
2935 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2936 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2938 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2940 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2943 2010-05-01 Eli Zaretskii <eliz@gnu.org>
2945 Emulate POSIX_SIGNALS on MS-Windows.
2947 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2948 (SIG_SETMASK, SIG_UNBLOCK): Define.
2950 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2951 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2952 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2954 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2957 Miscellaneous fixes of bidi display.
2959 * xdisp.c (find_row_end): New function, refactored from display_line.
2960 (display_line): Use it.
2961 (extend_face_to_end_of_line): In almost-filled rows, extend only
2962 if the row is R2L and not continued.
2963 (display_line): Fix prepending of truncation glyphs to R2L rows.
2964 Preserve overlay and string info in row->end.
2965 (insert_left_trunc_glyphs): Support addition of left truncation
2967 (set_cursor_from_row): Don't place cursor on the vertical border
2968 glyph between adjacent windows. Fix a crash when a display string
2969 is continued to the next line. Don't return zero if cursor was
2970 found by `cursor' property of a display string.
2971 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2972 test for that explicitly.
2974 2010-05-01 Glenn Morris <rgm@gnu.org>
2976 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2978 (OTHER_OBJ): Remove.
2979 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2980 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2982 2010-05-01 Karel Klíč <kklic@redhat.com>
2984 * fileio.c (Ffile_selinux_context): Context functions may return null.
2986 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2988 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
2990 2010-04-30 Glenn Morris <rgm@gnu.org>
2992 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2993 (OTHER_OBJ): Define as a separate variable, for clarity.
2995 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2997 * xsettings.c: include limits.h and update file comment.
2999 2010-04-30 Glenn Morris <rgm@gnu.org>
3001 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3002 Set with configure, not cpp.
3003 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3005 * Makefile.in (mallocobj): Remove.
3006 (otherobj): Simplify using @OTHER_OBJ@.
3008 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3009 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3010 Don't bother making nsgui.h dependency platform-specific.
3012 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3014 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3016 * process.c (read_process_output, exec_sentinel): Don't burp if the
3017 sentinel/filter kills the current buffer (bug#6060).
3019 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3020 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3021 Remove unused var `args'.
3022 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3023 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3024 * doc.c (store_function_docstring): Use XSETCAR.
3026 2010-04-28 Glenn Morris <rgm@gnu.org>
3028 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3029 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3031 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3033 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3034 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3036 * Makefile.in (FONT_OBJ): New, set by configure.
3037 (FONT_DRIVERS): Use $FONT_OBJ.
3039 * Makefile.in (LIBXMU): Set with configure, not cpp.
3040 * s/aix4-2.h (LIBXMU):
3041 * s/hpux10-20.h (LIBXMU):
3042 Remove definition, now set in configure.
3044 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3046 * m/amdx86-64.h [i386]: Move this test to configure.in.
3048 2010-04-27 Glenn Morris <rgm@gnu.org>
3050 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3051 * s/unixware.h (NEED_LIBW): Remove definition.
3053 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3054 (TOOLKIT_LIBW): New, set by configure.
3055 (@X_TOOLKIT_TYPE@): No longer define it.
3057 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3058 (MOTIF_LIBW): Set with configure, not cpp.
3059 * s/aix4-2.h (LIB_MOTIF):
3060 * s/gnu-linux.h (LIB_MOTIF):
3061 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3063 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3066 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3067 (obj): Use autoconf for unexec instead of cpp.
3068 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3069 definitions and undefs. Inline definitions in the only user.
3070 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3072 2010-04-27 Glenn Morris <rgm@gnu.org>
3074 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3075 since the defaults (set by the system file) are fine in most cases.
3076 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3077 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3078 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3079 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3080 Remove definitions, since they are set correctly in s/gnu-linux.h.
3081 * s/freebsd.h (START_FILES, LIB_STANDARD):
3082 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3083 * s/hpux10-20.h (START_FILES):
3084 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3085 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3087 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3088 (MOTIF_LIBW): Use $LIBXP.
3089 (otherobj): Use $WIDGET_OBJ.
3091 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3093 * Makefile.in (LIBS_MACHINE): Remove, unused.
3095 Use autoconf instead of cpp for LIB_MATH.
3096 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3097 * s/cygwin.h (LIB_MATH): Likewise.
3098 * Makefile.in (LIB_MATH): Do not define with cpp.
3099 (LIBES): Use autoconf for LIB_MATH.
3101 2010-04-26 Kenichi Handa <handa@m17n.org>
3103 * composite.c (Ffind_composition_internal): Fix the return value
3104 for an automatic composition.
3106 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3108 Remove all NO_ARG_ARRAY uses.
3109 * fns.c (concat2, concat3, nconc2):
3110 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3111 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3112 * m/xtensa.h (NO_ARG_ARRAY):
3113 * m/template.h (NO_ARG_ARRAY):
3114 * m/sparc.h (NO_ARG_ARRAY):
3115 * m/sh3.h (NO_ARG_ARRAY):
3116 * m/mips.h (NO_ARG_ARRAY):
3117 * m/macppc.h (NO_ARG_ARRAY):
3118 * m/iris4d.h (NO_ARG_ARRAY):
3119 * m/intel386.h (NO_ARG_ARRAY):
3120 * m/ibms390x.h (NO_ARG_ARRAY):
3121 * m/ibms390.h (NO_ARG_ARRAY):
3122 * m/ibmrs6000.h (NO_ARG_ARRAY):
3123 * m/ia64.h (NO_ARG_ARRAY):
3124 * m/hp800.h (NO_ARG_ARRAY):
3125 * m/arm.h (NO_ARG_ARRAY):
3126 * m/amdx86-64.h (NO_ARG_ARRAY):
3127 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3129 2010-04-25 Eli Zaretskii <eliz@gnu.org>
3131 * xdisp.c (display_line): Don't assume 2nd call to
3132 get_next_display_element cannot return zero. (Bug#6030)
3133 (iterate_out_of_display_property): New function, body from pop_it.
3136 2010-04-24 Glenn Morris <rgm@gnu.org>
3138 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3139 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3140 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3141 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3143 2010-04-24 Eli Zaretskii <eliz@gnu.org>
3145 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3146 use `get_next_display_element' and `set_iterator_to_next' to
3147 advance to the next character, when looking for the character that
3148 begins the next row.
3150 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3151 definition of "struct Lisp_Symbol".
3153 2010-04-24 Glenn Morris <rgm@gnu.org>
3155 * Makefile.in (CRT_DIR): New variable, set by configure.
3156 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3157 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3159 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3161 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3163 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3165 Remove redundant flags.
3166 * s/freebsd.h (C_SWITCH_SYSTEM):
3167 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3168 * s/netbsd.h (C_SWITCH_SYSTEM):
3169 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3172 Simplify m/intel386.h.
3173 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3175 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3176 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3177 the only user: s/unixware.h.
3178 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3180 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3181 moved here from m/intel386.h.
3183 * m/mips.h: Remove #if 0 code.
3185 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3187 Fix display of composed characters from L2R scripts in bidi buffers.
3188 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3189 After advancing IT past the composition, resync the bidi iterator
3190 with IT's position. (Bug#5977)
3192 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3194 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3195 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3197 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3199 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3201 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3203 Support `display' text properties and overlay strings in bidi buffers.
3204 * xdisp.c (pop_it): When the stack is popped after displaying
3205 from a string, bidi-iterate to exit from the text portion covered
3206 by the `display' property or overlay. (Bug#5988, bug#5920)
3208 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3210 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3211 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3213 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3214 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3216 Simplify STARTFILES definition.
3217 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3218 relying on Makefile.in to define it.
3219 * s/cygwin.h (START_FILES): Likewise.
3220 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3222 Clean up Solaris code.
3223 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3224 (LIB_MOTIF): Remove, configure takes care of this.
3225 (NOT_USING_MOTIF): Remove, unused.
3226 * xrdb.c: Remove #if 0-ed #include.
3227 (SYSV): Remove conditional for old SysV.
3228 * sysdep.c (closedir): Remove conditional code for Solaris,
3229 Solaris has closedir.
3231 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3233 * xsettings.c (read_and_apply_settings): Check if current_font is
3234 NULL before strcmp (Bug#6001).
3236 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3238 Clean up HP-UX files.
3239 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3240 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3241 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3242 * s/hpux10-20.h: ... to the only user, here.
3244 2010-04-21 Eli Zaretskii <eliz@gnu.org>
3246 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3247 use buffer-local values of paragraph-start and paragraph-separate.
3248 <paragraph_start_re, paragraph_separate_re>: Rename from
3249 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3252 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3254 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3255 current_tool_bar_style are new.
3256 (store_config_changed_event): Rename from store_font_changed_event.
3257 (XSETTINGS_TOOL_BAR_STYLE): New define.
3258 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3259 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3261 (something_changedCB): store_font_changed_event is now
3262 store_config_changed_event.
3263 (parse_settings): Rename from parse_xft_settings. Read
3264 non-xft xsettings outside #ifdef HAVE_XFT.
3265 (read_settings): Renamed from read_xft_settings.
3266 (apply_xft_settings): Take current settings as parameter. Do not
3267 call read_(xft)_settings.
3268 (read_and_apply_settings): New function.
3269 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3270 read_and_apply_settings if there are settings to be read.
3271 (init_xsettings): Renamed from init_xfd_settings.
3272 Call read_and_apply_settings unconditionally.
3273 (xsettings_initialize): Call init_xsettings.
3274 (Ftool_bar_get_system_style): New function.
3275 (syms_of_xsettings): Define Qmonospace_font_name and
3276 Qtool_bar_style. Initialize current_tool_bar_style to nil.
3277 defsubr Stool_bar_get_system_style. Fprovide on
3279 Move misplaced HAVE_GCONF
3281 * xsettings.h (Ftool_bar_get_system_style): Declare.
3283 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3284 Qtext, Qboth, Qboth_horiz are new.
3285 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3286 Vtool_bar_style, tool_bar_max_label_size.
3288 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3290 * keyboard.c: QClabel is new.
3291 (parse_tool_bar_item): Take out QClabel from tool bar items.
3292 Try to construct a label if ther is no QClabel.
3293 (syms_of_keyboard): Intern :label as QClabel.
3295 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3296 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3299 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3302 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3303 (xg_make_tool_item, xg_show_toolbar_item): New function.
3304 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3305 Call xg_make_tool_item to make a tool bar item.
3306 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3308 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3309 into account for toolbars.
3311 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3313 * data.c (make_blv): Declarations before code (Bug#5993).
3315 2010-04-21 Glenn Morris <rgm@gnu.org>
3317 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3318 Define using autoconf, not cpp.
3319 (LIBXSM): New variable, set by autoconf.
3320 (LIBXT): Use $LIBXSM.
3322 2010-04-21 Dan Nicolaescu <local_user@dannlt>
3324 Remove NOMULTIPLEJOBS, unused.
3325 * s/template.h (NOMULTIPLEJOBS):
3326 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3328 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3329 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3330 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3331 detects -znocombreloc and passes it to the linker
3332 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3334 2010-04-21 Glenn Morris <rgm@gnu.org>
3336 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3338 2010-04-21 Karel Klíč <kklic@redhat.com>
3340 * Makefile.in (LIBSELINUX_LIBS): New.
3341 (LIBES): Add $LIBSELINUX_LIBS.
3342 * eval.c, lisp.h (call7): New function.
3343 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3344 (Ffile_selinux_context, Fset_file_selinux_context):
3346 (Fcopy_file): New parameter preserve-selinux-context.
3347 (Frename_file): Preserve selinux context when renaming by copy-file.
3349 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
3350 Eli Zaretskii <eliz@gnu.org>
3352 Don't depend on cm.c or termcap.c on Windows, use stubs.
3353 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3354 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3355 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3356 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3357 (sys_tputs, sys_tgetstr): New stubs.
3358 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3359 (tputs, tgetstr): New; define to sys_*.
3361 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
3363 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3365 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3367 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3368 Just signal a warning rather than an error when inside a let.
3369 (Fmake_variable_frame_local): Add the same test.
3371 * font.c (syms_of_font): Make the style table vars read-only.
3373 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3374 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3376 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3378 2010-04-20 Eli Zaretskii <eliz@gnu.org>
3380 Fix R2L paragraph display on TTY.
3382 * xdisp.c (unproduce_glyphs): New function.
3383 (display_line): Use it when produced glyphs are discarded from R2L
3385 (append_composite_glyph): In R2L rows, prepend the glyph rather
3388 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3389 rather than append it. Set up the resolved_level and bidi_type
3390 attributes of the appended glyph.
3391 (produce_special_glyphs): Mirror the backslash continuation
3392 character in R2L lines.
3394 Implement display of R2L paragraphs in GUI sessions.
3396 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3397 append_stretch_glyph.
3398 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3399 off-by-one error in computing x at end of text in the row.
3400 (append_stretch_glyph): In reversed row, prepend the glyph rather
3401 than append it. Set resolved_level and bidi_type of the glyph.
3402 (extend_face_to_end_of_line): If the row is reversed, prepend a
3403 stretch glyph whose width is such that the rightmost glyph will be
3404 drawn at the right margin of the window. Fix off-by-one error on
3405 TTY frames in testing whether a line needs face extension. Fix
3406 face extension at ZV. If this is the last glyph row, use
3407 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3409 (set_cursor_from_row, display_line): Use
3410 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3411 row->continuation_lines_width.
3412 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3413 are at ZV. Fixes a crash when reseated to ZV by
3414 try_window_reusing_current_matrix.
3415 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3416 which happens with R2L glyph rows. Fixes a crash when inserting a
3417 character at end of an R2L line.
3418 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3419 treat them as having zero-width characters. Improve comments.
3420 Don't reverse pos_before and pos_after for reversed glyph rows.
3421 Set cursor.x to negative value when the cursor might be on the
3423 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3424 left fringe, not the right one.
3425 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3426 (erase_phys_cursor): For reversed cursor_row, support cursor on
3429 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3430 of continuation indicators on the fringes.
3431 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3434 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3435 draw cursor on the left fringe.
3437 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3438 cursor on the left fringe.
3440 * dispnew.c (update_text_area): Handle reversed desired rows when
3441 the cursor is on the left fringe.
3442 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3443 below, not by 0, for when the cursor is on the left fringe.
3445 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3447 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3448 widget is a scrollbar.
3450 2010-04-20 Kenichi Handa <handa@m17n.org>
3452 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3453 only when the arg CHARSET_LIST is nil.
3455 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3457 Make variable forwarding explicit rather the using special values.
3458 Basically, this makes the structure of buffer-local values and object
3459 forwarding explicit in the type of Lisp_Symbols rather than use
3460 special Lisp_Objects for that. This tends to lead to slightly more
3461 verbose code, but is more C-like, simpler, and makes it easier to make
3462 sure we handled all cases, among other things by letting the compiler
3464 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3465 Removing forwarding objects.
3466 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3467 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3468 explicit rather than hiding them inside Lisp_Object "values".
3469 (XFWDTYPE): New macro.
3470 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3471 (XBUFFER_LOCAL_VALUE): Remove.
3472 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3473 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3474 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3475 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3476 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3477 Remove the Lisp_Misc_* header.
3478 (struct Lisp_Buffer_Local_Value): Redefine.
3479 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3480 (struct Lisp_Misc_Any): Add filler to get the right size.
3481 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3483 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3484 (DEFVAR_KBOARD): Allocate a forwarding object.
3485 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3486 (let_shadows_global_binding_p): New function.
3487 (union Lisp_Val_Fwd): New type.
3488 (make_blv): New function.
3489 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3490 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3491 (swap_in_symval_forwarding, find_symbol_value, Fset)
3492 (let_shadows_buffer_binding_p, set_internal, default_value)
3493 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3494 (Fkill_local_variable, Fmake_variable_frame_local)
3495 (Flocal_variable_p, Flocal_variable_if_set_p)
3496 (Fvariable_binding_locus):
3497 * xdisp.c (select_frame_for_redisplay):
3498 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3499 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3500 * frame.c (store_frame_param):
3501 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3502 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3504 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3505 (clone_per_buffer_values): Only adjust markers into the current buffer.
3506 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3507 (Fbuffer_local_value, set_buffer_internal_1)
3508 (swap_out_buffer_local_variables):
3509 Adapt to the new symbol value structure.
3510 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3511 (defvar_per_buffer): Take a new arg for the fwd object.
3512 (buffer_lisp_local_variables): Return a proper alist (different fix
3514 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3515 (Fgarbage_collect): Don't handle buffer_defaults specially.
3516 (mark_object): Handle new symbol value structure rather than the old
3517 special Lisp_Misc_* objects.
3518 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3519 * term.c (set_tty_color_mode):
3520 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3521 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3522 a buffer_local_flags.
3523 * print.c (print_object): Get rid of impossible forwarding objects.
3525 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3527 * bidi.c (bidi_get_type, bidi_get_category)
3528 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
3529 (bidi_type_of_next_char, bidi_level_of_next_char):
3530 Declare static. Use `INLINE' rather than `inline'.
3532 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
3534 * dired.c (Ffile_attributes): Fix typo in docstring.
3536 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3538 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3539 NSInteger (Bug#5811).
3541 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3543 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3544 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3546 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3548 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3550 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
3552 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3553 terminal frames (Bug#5837).
3555 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3557 * .gdbinit (xsubchartable): New command.
3559 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3561 * xdisp.c (display_line): Don't write beyond the last glyph row in
3562 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
3563 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3565 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3567 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3569 * alloc.c (Fpurecopy): Hash-cons if requested.
3570 (syms_of_alloc): Update purify-flag docstring.
3572 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3574 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3575 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3577 2010-04-17 Eli Zaretskii <eliz@gnu.org>
3579 Fix a crash when an NSM character is inserted at BEGV.
3581 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3582 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3583 NEUTRAL_B or UNKNOWN_BT.
3585 2010-04-16 Eli Zaretskii <eliz@gnu.org>
3587 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3588 other rows with cursor unless they are different from this row and
3589 this row is part of a continued line. (Bug#5943)
3591 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3593 * s/freebsd.h: Restore osreldate.h include.
3594 Suggested by Naohiro Aota.
3596 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3598 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3600 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3602 * s/cygwin.h: Avoid linking against static libgcc.
3604 2010-04-15 Juri Linkov <juri@jurta.org>
3606 * window.c: Add Qscroll_command.
3607 Remove Vscroll_preserve_screen_position_commands.
3608 (window_scroll_pixel_based, window_scroll_line_based): Check the
3609 `scroll-command' property on the last command instead of searching
3610 the last command in Vscroll_preserve_screen_position_commands.
3611 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3612 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3613 (scroll-preserve-screen-position): Doc fix.
3614 (Vscroll_preserve_screen_position_commands): Remove variable.
3616 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3618 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3620 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3622 Reduce cpp use in Makefile.in.
3623 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3624 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3625 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3626 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3627 (CRT0_COMPILE): Remove, inline it in the only user.
3629 2010-04-14 Juri Linkov <juri@jurta.org>
3631 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3632 `scroll-up-command' and `M-v' from `scroll-down' to
3633 `scroll-down-command'.
3635 2010-04-14 Juri Linkov <juri@jurta.org>
3637 * window.c (Vscroll_preserve_screen_position_commands): New variable
3638 with the default value as the list of Qscroll_down and Qscroll_up.
3639 (window_scroll_pixel_based, window_scroll_line_based): Search the
3640 last command in the list Vscroll_preserve_screen_position_commands
3641 instead of comparing with Qscroll_up and Qscroll_down.
3643 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3645 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3646 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3649 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3652 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3654 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3656 Try to solve the problem of spurious EOF chars in long lines of text
3657 sent to interactive subprocesses.
3658 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3659 (system_process_attributes): Remove unused var `ttotal'.
3660 * process.c (send_process): Don't bother breaking long line with EOF
3661 chars when talking to ttys any more.
3662 (wait_reading_process_output): Output a warning when called in such
3663 a way that it could block without being interruptible.
3665 Try to detect file modification within the same second.
3666 * buffer.h (struct buffer): New field modtime_size.
3667 * buffer.c (reset_buffer): Initialize it.
3668 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3669 (Fverify_visited_file_modtime): Check it.
3670 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3671 (Fset_visited_file_modtime): Set (or clear) it.
3673 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3675 * process.c (status_notify): Remove unused var `ro'.
3677 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3679 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3680 more than one visual (Bug#5938).
3682 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3684 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3687 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3689 Remove C_SWITCH_SYSTEM_TEMACS.
3690 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3691 (malloc, realloc, free): Use emacs, not temacs for conditional
3694 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3695 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3697 Use autoconf, not cpp for some variables.
3698 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3699 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3700 (ALL_CFLAGS): Use them as make variables.
3701 (really-lwlib, really-oldXMenu): Do not pass them.
3703 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3705 * xmenu.c (apply_systemfont_to_dialog): New.
3706 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3708 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3710 * process.c (exec_sentinel): Preserve current-buffer.
3712 * process.c (read_process_output): Move the save-current-buffer to
3713 apply to both the filter and the non-filter branches.
3715 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3717 * s/msdos.h (UNEXEC): New definition.
3719 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3721 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3722 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3724 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3725 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3726 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3727 TRY_WINDOW_CHECK_MARGINS.
3729 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
3730 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3731 width only when it is for padding.
3733 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3735 * xfns.c (Fx_show_tip): Call try_window in a loop until
3736 fonts_changed_p is zero (Bug#2423).
3738 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3740 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3741 the end of TEXT_AREA. (Bug#5856)
3743 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3745 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3748 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3750 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3751 prev.orig_type, for resolving type of NSM. (Bug#5858)
3753 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3755 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3756 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3758 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
3759 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3761 (syms_of_xsettings): Initialize current_font.
3762 defsubr Sfont_get_system_normal_font.
3764 * xsettings.h (Ffont_get_system_normal_font,
3765 xsettings_get_system_normal_font): Declare.
3767 * xfns.c (extern xlwmenu_default_font): Remove.
3768 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3771 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3772 menu items in UTF-8.
3774 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3775 (apply_systemfont_to_menu): New function.
3776 (set_frame_menubar, create_and_show_popup_menu): Call
3777 apply_systemfont_to_menu.
3779 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3781 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3782 FRAME_LINE_TO_PIXEL_Y.
3784 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3787 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3789 Simplify code for HP machines.
3790 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3791 for GNU_LINUX, not needed.
3792 (UNEXEC, NEED_BSDTTY): Move definitions...
3793 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3795 * m/iris4d.h (UNEXEC): Move definition ...
3796 * s/irix6-5.h (UNEXEC): ... here.
3798 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3800 * xfns.c (set_machine_and_pid_properties): New function.
3801 (Fx_create_frame): Call set_machine_and_pid_properties.
3803 2010-04-03 Eli Zaretskii <eliz@gnu.org>
3805 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3806 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3807 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3809 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3810 in this function. (Bug#5703)
3812 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
3814 * nsterm.h: Fix last change.
3816 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3818 * m/intel386.h (NO_REMAP): Move definition ...
3819 * s/msdos.h (NO_REMAP): ... here.
3821 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3823 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3824 used on those platforms.
3826 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3828 Remove extern errno declarations.
3845 * buffer.c: Remove errno extern declarations.
3846 * s/netbsd.h (NEED_ERRNO): Remove.
3848 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3850 Remove all uses of LIBX11_SYSTEM.
3851 * Makefile.in (LIBX11_SYSTEM): Remove.
3852 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3855 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3857 Remove support for DJGPP v1.x (bug#5813).
3859 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
3861 * unexec.c (make_hdr, copy_text_and_data):
3862 * sysdep.c (wait_for_termination, sys_subshell):
3863 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
3864 (IT_set_terminal_modes, __write, _rename, gethostname)
3865 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3866 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3867 the value of __DJGPP__.
3868 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3871 * gmalloc.c (memalign):
3872 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3874 * dosfns.c (init_dosfns):
3875 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3877 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3879 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3880 string with `cursor' property comes from an `after-string'
3883 2010-04-01 Glenn Morris <rgm@gnu.org>
3885 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3886 Define as Makefile variables.
3887 (LIBX): Use above variables rather than directly using autoconf.
3889 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3891 Clean up BSD_SYSTEM use.
3894 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3895 for including <sys/ioctl.h>.
3896 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3897 code is only used for MSDOS.
3899 2010-03-31 Juri Linkov <juri@jurta.org>
3901 * image.c: Add `Qextension_data'.
3902 (syms_of_image): Initialize and staticpro `Qextension_data'.
3903 (Fimage_metadata): Rename from `Fimage_extension_data'.
3904 (gif_load): Put GIF extension data to the property
3907 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3909 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3910 * nsterm.h: Fix prototype.
3912 2010-03-31 Eli Zaretskii <eliz@gnu.org>
3914 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3915 trailing whitespace in right-to-left rows.
3917 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3919 Get rid of the direct_output optimizations.
3920 * keyboard.c (nonundocount): Remove extern declaration.
3921 (command_loop_1): Remove brittle optimisation for cheap and
3923 * xdisp.c (redisplay_internal): Don't bother checking
3924 redisplay_performed_directly_p any more.
3925 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3927 * dispnew.c (redisplay_performed_directly_p)
3928 (direct_output_for_insert, direct_output_forward_char):
3929 * dispextern.h (redisplay_performed_directly_p)
3930 (direct_output_for_insert, direct_output_forward_char): Remove.
3931 * cmds.c (nonundocount): Make it static.
3933 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
3935 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3937 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
3939 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3940 invisible (Bug#5766).
3942 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
3944 * xdisp.c (x_consider_frame_title, update_window_cursor):
3945 Remove HAVE_NS conditionals.
3946 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
3948 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3949 filename for the title.
3950 (ns_set_doc_edited): Do nothing if the selected window is a
3953 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3956 * nsterm.m: Remove unneeded prototype.
3958 2010-03-31 Glenn Morris <rgm@gnu.org>
3960 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3961 in the DOC file. (Bug#5336)
3963 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3965 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3967 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3969 * window.c (keys_of_window): Remove redundant/overridden bindings.
3971 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3973 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3974 Restore original behavior when the iterator is not bidi_p.
3976 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3978 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3980 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3982 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3983 are outside the range of cached character positions.
3985 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
3987 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3989 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3991 Initial support for bidirectional editing.
3993 * Makefile.in (obj): Include bidi.o.
3994 (bidi.o): New target.
3996 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3997 ($(BLD)/bidi.$(O)): New target.
4001 * buffer.h (struct buffer): New members bidi_display_reordering
4002 and bidi_paragraph_direction.
4004 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4005 and bidi_paragraph_direction.
4006 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4007 and bidi-paragraph-direction.
4008 (Fbuffer_swap_text): Swap the values of
4009 bidi_display_reordering and bidi_paragraph_direction.
4011 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4012 (bidi_type_t, bidi_dir_t): New types.
4013 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4014 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4015 prev_stop, base_level_stop, and eol_pos.
4016 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4017 (IT_STACK_SIZE): Enlarge to 5.
4018 (struct glyph_row): New member reversed_p.
4019 <string_buffer_position>: Update prototype.
4020 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4021 glyph_row if bidi_it.paragraph_dir == R2L.
4022 (struct glyph): New members resolved_level and bidi_type.
4024 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4025 processing or buffer's direction is right-to-left.
4026 (prepare_desired_row): Preserve the reversed_p flag.
4027 (row_equal_p): Compare the reversed_p attributes as well.
4029 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4030 bidi_init_it and set it->paragraph_embedding from the current
4031 buffer's value of bidi_paragraph_direction.
4032 (reseat_1): Initialize bidi_it.first_elt.
4033 (set_iterator_to_next, next_element_from_buffer): Use the value of
4034 paragraph_embedding to determine the paragraph direction.
4035 (set_iterator_to_next): Under bidi reordering, call
4036 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4037 new_paragraph flag is set in the bidi iterator.
4038 (next_element_from_buffer): If bidi_it.first_elt is set,
4039 initialize paragraph direction and find the first character to
4040 display in the visual order. If reseated to a middle of a line,
4041 prime the bidi iterator starting at the line's beginning. Handle
4042 the situation where we overstepped stop_charpos due to
4043 non-linearity of the bidi iteration. Likewise for when we back up
4044 beyond the previous stop_charpos. When moving across stop_charpos,
4045 record it in prev_stop.
4046 (display_line): Set row->end and it->start for the next row to the
4047 next character in logical order. Always extend reversed_p rows to
4048 the end of line, even if they end at ZV. Copy the reversed_p flag
4049 to the next glyph row. Keep calling set_cursor_from_row for
4050 bidi-reordered rows even if we already have a possible candidate
4051 for cursor position. Set row_end after all the row's glyphs have
4052 been produced, by looping over the glyphs. Record the position
4053 after EOL in it->eol_pos, and use it to set end_pos of the last
4054 row produced for a continued line.
4055 <Qright_to_left, Qleft_to_right>: New variables.
4056 (syms_of_xdisp): Initialize and staticpro them.
4057 (string_buffer_position_lim): New function.
4058 (string_buffer_position): Most of code moved to
4059 string_buffer_position_lim. Last argument and return value are
4060 now EMACS_INT; all callers changed.
4061 (set_cursor_from_row): Rewritten to support bidirectional text and
4062 reversed glyph rows.
4063 (text_outside_line_unchanged_p, try_window_id): Disable
4064 optimizations if we are reordering bidirectional text and the
4065 paragraph direction can be affected by the change.
4066 (append_glyph, append_composite_glyph)
4067 (produce_image_glyph, append_stretch_glyph): Set the
4068 resolved_level and bidi_type members of each glyph.
4069 (append_glyph): If the glyph row is reversed, prepend the glyph
4070 rather than appending it.
4071 (handle_stop_backwards): New function.
4072 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4073 (reseat): call handle_stop_backwards to recompute prev_stop and
4074 base_level_stop for the new position.
4075 (handle_invisible_prop): Under bidi iteration, skip invisible text
4076 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4077 paragraph direction. Update IT->prev_stop after skipping
4079 (move_it_in_display_line_to): New variables prev_method
4080 and prev_pos. Compare for strict equality in
4081 BUFFER_POS_REACHED_P.
4082 (try_cursor_movement): Examine all the candidate rows that occlude
4083 point, to return the best match. If rows are bidi-reordered
4084 and point moved backwards, back up to the row that is not a
4085 continuation line, and start looking for a suitable row from
4088 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4089 rather than appending, if the glyph_row's reversed_p flag is set.
4090 Set the resolved_level and bidi_type members of each glyph.
4092 * .gdbinit (pbiditype): New command.
4093 (pgx): Use it to display bidi level and type of the glyph.
4094 (pitx): Display some bidi information about the iterator.
4095 (prowlims, pmtxrows): New commands.
4097 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4099 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4100 * s/usg5-4.h (LIBS_DEBUG):
4101 * s/irix6-5.h (C_DEBUG_SWITCH):
4102 * s/gnu-linux.h (LIBS_DEBUG):
4103 * s/darwin.h (LIBS_DEBUG):
4104 * s/bsd-common.h (LIBS_DEBUG):
4105 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4106 * m/iris4d.h (LIBS_DEBUG):
4107 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4109 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4110 (LIBS_DEBUG): Remove definition.
4112 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4114 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4117 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4119 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4120 `connect' (Bug#5723).
4122 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4124 * process.c (Fmake_network_process): Call `select' for interrupted
4125 `connect' rather than creating new socket (Bug#5173).
4127 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
4129 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4131 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4133 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4135 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4137 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4140 2010-03-24 Kenichi Handa <handa@m17n.org>
4142 * coding.c (decode_coding_ccl): Fix previous change for the
4144 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4145 case that the output buffer is fullfilled.
4146 (encode_coding): Setup ccl program here.
4148 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4150 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4152 Simplify LIBS_MACHINE definitions.
4153 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4154 * m/iris4d.h (LIBS_MACHINE): Likewise.
4155 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4156 * s/aix4-2.h (LIBS_SYSTEM): ... here.
4157 * s/netbsd.h: Remove commented out code.
4159 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4161 Remove dead code dealing with POSIX_SIGNALS.
4162 * atimer.c (set_alarm): Remove dead code, all USG systems define
4164 * data.c (arith_error): Likewise.
4165 * keyboard.c (input_available_signal, handle_user_signal)
4166 (interrupt_signal): Likewise.
4167 * process.c (sigchld_handler): Likewise.
4168 (create_process): Remove if 0 code. Remove HPUX conditional when
4169 !defined (POSIX_SIGNALS), it cannot be true.
4170 * syssignal.h: Remove USG5_4 and USG conditionals when
4171 !POSIX_SIGNALS, they cannot be true.
4173 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4174 NO_SOCK_SIGIO, not used anymore.
4176 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4178 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4179 support vax on BSDs.
4181 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4182 * s/aix4-2.h (ORDINARY_LINK): ... here.
4184 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4186 * Makefile.in (abs_builddir): Define.
4187 (bootstrap_exe): Use it.
4188 (VPATH): Use $(srcdir) instead of @srcdir@.
4190 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4192 * Makefile.in (bootstrap_exe): Use an absolute name.
4194 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4196 Remove support for old GNU/Linux using libc version 5.
4197 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4198 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4200 Consolidate redundant definitions in s/bsd-common.h.
4201 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4202 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4203 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4204 doing it in all files that include this one.
4205 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4206 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4207 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4208 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4209 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4210 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4211 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4212 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4213 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4215 Consolidate redundant definitions.
4216 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4217 it's undefined in all files that include this one.
4218 (POSIX_SIGNALS): Define here instead of doing it in all files that
4220 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4221 (POSIX_SIGNALS): Do not define.
4222 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4223 (POSIX_SIGNALS): Do not define.
4224 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4225 (POSIX_SIGNALS): Do not define.
4227 Remove support for old UNIX System V systems.
4228 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4229 * s/usg-5-4-2.h: Remove.
4231 Remove support for Solaris on PPC and for old versions.
4232 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4233 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4234 that cancel each other.
4237 * s/sol2-5.h: Remove.
4238 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4239 (NO_REMAP): Remove, unused.
4240 (UNEXEC): Move definition ...
4241 * s/aix4-2.h (UNEXEC): ... here.
4243 * s/openbsd.h: Remove support for non-ELF and for systems that do
4244 not support shared libraries.
4246 * s/freebsd.h: Likewise.
4248 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4250 Remove non-working support for lynxos 3.0.
4251 * s/lynxos.h: Remove file.
4253 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4254 COFF_BSD_SYMBOLS, nothing defines it anymore.
4256 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4258 Remove obsolete uses of HAVE_SHM.
4259 * emacs.c (standard_args):
4261 (syms_of_emacs): Remove code depending on HAVE_SHM.
4263 * alloc.c: Remove HAVE_SHM dependent definition.
4265 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4267 2010-03-18 Glenn Morris <rgm@gnu.org>
4269 * emacs.c (USAGE4): Hard-code bug address.
4270 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4271 (bug_reporting_address): Remove.
4272 (main): Don't call bug_reporting_address.
4274 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4275 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4277 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
4279 * xfns.c (Fx_create_frame):
4280 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4283 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4285 * editfns.c (Fformat): Account for string precision when computing
4286 field width (Bug#5710).
4288 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
4290 * xfns.c (Fx_create_frame): Set default to Qright.
4292 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4295 2010-03-12 Eli Zaretskii <eliz@gnu.org>
4297 These changes remove termcap.c from the build on Posix platforms.
4298 * Makefile.in (termcapobj): Move termcap.o from here...
4299 (MSDOS_OBJ): ...to here.
4300 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4301 now identical to when LIBS_TERMCAP is defined.
4303 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4305 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4307 * config.in: Regenerated. (See top-level ChangeLog.)
4309 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
4313 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4315 Cleanup setup of gl_state in various parts of the code.
4316 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4317 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4318 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4320 * regex.c (regex_compile): Use it.
4321 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4322 it's now set in regex_compile when/if we need it.
4324 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4326 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4327 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4328 (QUIT): Use it to consolidate code and remove redundancy.
4329 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4331 * regex.c (regex_compile): Setup gl_state as well.
4333 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4334 (in_classes): Use CONSP before XCAR/XCDR.
4336 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
4338 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4339 definitions, so that keyboard macros are correctly handled
4342 2010-03-02 Eli Zaretskii <eliz@gnu.org>
4344 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4345 text that could be relocated inside the call to emacs_mule_char.
4346 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4347 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4349 2010-03-02 Kenichi Handa <handa@m17n.org>
4351 * character.c (parse_str_as_multibyte): Fix handling of the
4352 multibyte form of raw-bytes.
4353 (str_as_multibyte): Likewise.
4355 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4358 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
4360 * charset.c (load_charset_map_from_file)
4361 (load_charset_map_from_vector): Zero out allocated
4362 charset_map_entries before using them.
4364 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4366 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4368 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
4370 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4371 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
4373 2010-02-26 Kenichi Handa <handa@m17n.org>
4375 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4377 * xdisp.c (reseat_to_string): Fix previous change.
4379 2010-02-26 David Reitter <david.reitter@gmail.com>
4381 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4382 Lisp_Object (Bug#4736).
4384 2010-02-25 Kenichi Handa <handa@m17n.org>
4386 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4388 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4390 * xterm.c (XTflash): Move declarations before statements.
4392 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4393 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4394 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4395 (xg_create_tool_bar): Remove unused variables.
4396 (x_wm_set_size_hint): Move declarations before statements.
4397 (xg_create_frame_widgets): Remove variable grav.
4399 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
4401 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4403 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4405 * term.c (fatal): Add a final \n if needed (bug#5596).
4407 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
4409 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4411 2010-02-18 Glenn Morris <rgm@gnu.org>
4413 * callint.c (Finteractive): Doc fix.
4415 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4417 * coding.c (record_conversion_result):
4418 Handle CODING_RESULT_INSUFFICIENT_DST.
4419 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4420 memory allocation error.
4422 2010-02-17 Kenichi Handa <handa@m17n.org>
4424 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4425 Fix for the case that the output buffer is fullfilled.
4426 (decode_coding): Setup ccl program here. Keep looping when the
4427 decoder stopped because the output buffer is
4428 fullfilled (bug#5534).
4430 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4432 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4434 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
4436 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
4439 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4441 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4442 doing_interact here.
4443 (ice_connection_closed): New function.
4444 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4445 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4446 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4448 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4451 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
4453 * nsfont.m (nsfont_open): The system's value for the font descent
4454 is negative, so round it down to avoid clipping.
4456 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
4458 * charset.c (load_charset_map_from_file)
4459 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
4460 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
4462 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
4464 * charset.c (load_charset_map_from_file): Allocate large
4465 charset_map_entries structure on the heap rather than the stack.
4468 2010-01-31 Kenichi Handa <handa@m17n.org>
4470 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
4471 size in NAME is invalid, return -1 (Bug#5396).
4473 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
4475 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4476 <deactivated@gmail.com> (Bug#3605).
4478 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
4480 * fileio.c (Frename_file): Correctly rename symlinks to
4481 directories (Bug#5496).
4483 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4485 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4487 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4489 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4491 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
4493 * frame.c (DEFAULT_ROWS): Change default to 35.
4495 * xfns.c (x_default_font_parameter): Change default XFT font to
4496 monospace-10 (Bug#3643).
4498 2010-01-29 Eli Zaretskii <eliz@gnu.org>
4500 * w32inevt.c (key_event): Remove unnecessary comparison of
4501 event->uChar.AsciiChar with 128.
4503 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
4505 * fileio.c (Frename_file): Fix last change (Bug#5487).
4507 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4509 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4511 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4513 * xfns.c (Fx_create_frame): Remove window size matching code from
4515 (x_get_current_desktop, x_get_desktop_workarea): Remove.
4517 2010-01-27 Jason Rumney <jasonr@gnu.org>
4519 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
4520 (key_event): Use unicode for characters 128 and higher (Bug#4567).
4522 2010-01-27 Kenichi Handa <handa@m17n.org>
4524 * regex.c (analyse_first): Fix setting of fastmap for unibyte
4525 pattern string (Bug#4209).
4527 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
4529 * fileio.c (Frename_file): Call copy-directory and
4530 delete-directory for directories, in order to handle cross-device
4531 renaming (Bug#3353).
4533 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4535 * xfns.c (Fx_create_frame): If frame height is too big, try
4536 sizes 24 and 10. Bug #3643.
4538 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4540 Try and fix bug#788, hopefully for real this time.
4541 * keymap.c (shadow_lookup): Add `remap' arg.
4542 (describe_map, describe_vector): Update calls to shadow_lookup.
4543 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4544 `remapped' so this flag is applicable to `sequence'. Be careful to
4545 perform remapping during shadow_lookup check of remapped_sequences.
4547 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4549 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4550 png_check_sig, which has been removed in libpng 1.4.
4552 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4554 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4555 lacks this header file).
4557 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4559 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4562 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4564 * lisp.h (make_pure_string): String pointer arg now points to const.
4566 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4567 args now point to const.
4569 2010-01-22 Eli Zaretskii <eliz@gnu.org>
4571 * lread.c (Fload): Don't treat files without .elc extension as
4572 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4575 2010-01-20 Kenichi Handa <handa@m17n.org>
4577 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4578 treat the source as actual byte sequence.
4580 2010-01-19 Alan Mackenzie <acm@muc.de>
4582 Fix spurious before-change-functions invocation from (insert ?\n).
4583 * textprop.c (set_text_properties): Rename parameter
4584 `signal_after_change_p' to `coherent_change_p', and make the
4585 invocation of `modify_region' conditional on it.
4587 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4589 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4591 (syms_of_xsettings): Declare xft-settings.
4593 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
4595 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4597 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4599 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4601 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
4603 * emacs.c (standard_args): Adjust arg priorities to reflect how
4604 they are processed in startup.el.
4606 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4608 * Makefile.in (lisp, shortlisp): Update.
4610 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4612 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4613 code, link the new kboard into all_kboard before running Lisp code,
4614 and protect the new terminal with GCPRO (Bug#5365).
4615 (x_term_init): Remove unused var `atom'.
4616 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4618 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4620 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4621 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4622 to find out usable size of the desktop. Don't make frames larger than
4625 2010-01-15 Kenichi Handa <handa@m17n.org>
4627 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4629 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
4631 * nsterm.m (Qnone): Define.
4633 * nsfns.m (Qnone): Move definition to nsterm.m.
4635 2010-01-14 Kenichi Handa <handa@m17n.org>
4637 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4640 2010-01-14 Kenichi Handa <handa@m17n.org>
4642 Make auto-composition work on all buffers even if they are
4645 * composite.c (Vauto_composition_mode): New variable.
4646 (composition_compute_stop_pos): Check Vauto_composition_mode
4647 instead of Vauto_composition_function.
4648 (composition_adjust_point, Ffind_composition_internal): Likewise.
4649 (syms_of_composite): Declare Lisp variable
4650 "auto-composition-mode" here.
4652 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
4654 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4655 during call to vendor-specific-keysyms (Bug#5365).
4657 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4659 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4660 Call SIGNAL_THREAD_CHECK (Bug#5333).
4662 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4663 Call SIGNAL_THREAD_CHECK.
4665 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4667 Try to fix bug#5314. This is probably not the final word, tho.
4668 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4669 recent-auto-save-p as a side-effect.
4670 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4671 * buffer.c (Fkill_buffer, reset_buffer):
4672 * editfns.c (Fsubst_char_in_region):
4673 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4674 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4676 2010-01-13 Kenichi Handa <handa@m17n.org>
4678 Display buffer name, etc. in mode line by composing correctly.
4680 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4682 (display_mode_element): Adjust for the change of
4683 decode_mode_spec and display_line.
4684 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4685 (display_string): Handle the case that STRING is non-null and
4686 LISP_STRING is not nil.
4688 * xterm.c (x_draw_composite_glyph_string_foreground):
4689 Pay attention to s->face->overstrike.
4691 * composite.c (composition_reseat_it): Don't check PT if STRING is
4694 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4696 * keyboard.c (read_char): Don't apply previous change when current
4697 buffer is unchanged by command execution.
4699 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4701 * keyboard.c (read_char): Return after executing from special map.
4703 2010-01-12 Glenn Morris <rgm@gnu.org>
4705 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4706 bug-gnu-emacs rather than emacs-pretest-bug.
4708 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
4710 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4711 initializing the Lisp variables that depend on them.
4713 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4715 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4716 Clear areas that will not be updated after change of menu bar lines.
4717 Clear the menu bar window's current matrix when the window gets empty.
4719 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
4721 * intervals.h, textprop.c (extend_property_ranges): Return value
4722 and args changed. Discard properties that begin at or after the
4725 * editfns.c (Fformat): Caller changed.
4727 * nsterm.m (ns_set_default_prefs): Delete function.
4728 (syms_of_nsterm): Initialize ns_command_modifier,
4729 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4730 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4732 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4733 position (Bug#4040).
4735 2010-01-09 Eli Zaretskii <eliz@gnu.org>
4737 * editfns.c (Ffloat_time): Doc fix.
4739 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4741 * xfns.c (Fx_create_frame): Don't create frame larger than display
4742 by default bug#3643.
4744 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4746 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4747 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4748 windows above internal border.
4750 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4751 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4752 windows above internal border.
4754 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4755 tool bar windows specially.
4757 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4759 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4761 (XTflash): Take account of menu bar height.
4763 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4766 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4768 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
4769 also be true before we can return early (bug #5339).
4771 2010-01-06 David Reitter <david.reitter@gmail.com>
4773 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4774 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4777 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4779 * font.c (font_open_entity): Enable chache and call cached_font_ok
4780 for the driver if defined.
4781 (QCuser_spec): New symbol.
4782 (font_spec_from_name): Save name as user-spec.
4783 (font_load_for_lface): Keep user-spec instead of name.
4784 (font_open_by_name): Save name as user-spec.
4785 (syms_of_font): Initialize QCuser_spec.
4786 (font_clear_prop): Clear name if it exists in font (bug#5157).
4788 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4789 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4790 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4792 * font.h (struct font_driver): Add cached_font_ok.
4794 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4796 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4798 * xterm.c (x_new_font): Move code for setting rows/cols before
4800 (x_set_window_size): ... to here. Bug #2568.
4802 * gtkutil.c (xg_clear_under_internal_border): New function.
4803 (xg_frame_resized, xg_frame_set_char_size):
4804 Call xg_clear_under_internal_border.
4805 (xg_update_scrollbar_pos): Clear under old scroll bar position.
4807 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
4809 * keyboard.c (read_key_sequence): Catch keyboard switch after
4810 making a new tty frame (Bug#5095).
4812 2010-01-05 Kenichi Handa <handa@m17n.org>
4814 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4816 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4818 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4819 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4820 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4822 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
4824 * dbusbind.c (xd_add_watch): Improve debug message.
4825 (xd_remove_watch): Improve debug message. If DATA is the session
4826 bus, unset D-Bus session environment.
4827 (Fdbus_init_bus): Pass the bus as argument to
4828 dbus_connection_set_watch_functions. (Bug#5283)
4830 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
4832 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4834 * lread.c (syms_of_lread): Make it clearer that these are the
4835 names of loaded files (Bug#5068).
4837 * eval.c (run_hook_with_args): Handle the case where the global
4838 value has the obsolete single-function form (Bug#5026).
4840 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
4842 * minibuf.c (Fall_completions): Minor optimization.
4844 2009-12-26 Eli Zaretskii <eliz@gnu.org>
4846 * .gdbinit (pgx): Fix display of composite glyphs.
4847 Display cmp.from and cmp.to as well.
4848 (pitx): Fix last change.
4850 2009-12-25 Kenichi Handa <handa@m17n.org>
4852 * composite.h (composition_adjust_point): Update prototype.
4854 * composite.c (composition_reseat_it): Don't make a composition
4855 spanning over point.
4856 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4857 composable characters.
4858 (composition_adjust_point): New arg NEW_PT. Callers changed.
4860 * keyboard.c (command_loop_1): Force redisplay if the last point
4861 was within a composition.
4862 (adjust_point_for_property): Don't adjust point for automatic
4863 composition when called after buffer modification.
4865 2009-12-19 Eli Zaretskii <eliz@gnu.org>
4867 * .gdbinit (pitx): Don't use enum names, use their values.
4868 Remove reference to non-existing value GET_FROM_COMPOSITION.
4869 (pgx): Don't use enum names, use their values.
4870 (pitmethod): New helper command.
4871 (pitx): Use it to display iteration method.
4872 (pgrowit): New command.
4874 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4876 Update dependencies in Makefile.in.
4878 * Makefile.in (alloc.o): Depend on termhooks.h.
4879 (atimer.o): Depend on blockinput.h.
4880 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4882 (callint.o): Depend on systime.h, coding.h, and composite.h.
4883 (callproc.o): Depend on buffer.h.
4884 (casefiddle.o): Don't depend on charset.h.
4885 (casetab.o): Depend on character.h.
4886 (ccl.o): Depend on composite.h.
4887 (chartab.o): Depend on ccl.h.
4888 (cm.o): Depend on dispextern.h.
4889 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4890 (coding.o): Don't depend on $(INTERVALS_H).
4891 (composite.o): Don't depend on dispextern.h explicitly (it's in
4892 $(INTERVALS_H)). Depend on ccl.h.
4893 (data.o): Depend on systime.h, coding.h, composite.h,
4894 dispextern.h, font.h, and ccl.h.
4895 (dired.o): Depend on composite.h.
4896 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4897 composite.h (it's in $(INTERVALS_H)).
4898 (doc.o): Depend on systime.h, coding.h, and composite.h.
4899 (editfns.o): Don't depend explicitly on dispextern.h.
4900 (emacs.o): Depend on frame.h and coding.h.
4901 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4902 (fileio.o): Depend on frame.h and commands.h. Don't depend
4903 explicitly on dispextern.h.
4904 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4906 (fns.o): Don't depend on termhooks.h.
4907 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4908 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4909 coding.h, $(INTERVALS_H), window.h, xterm.h.
4910 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4911 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4912 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4913 fontset.h, ccl.h, and ftfont.h.
4914 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4915 (gtkutil.o): Depend on dispextern.h and composite.h.
4916 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4917 termhooks.h, and ccl.h.
4918 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4919 (intervals.o): Depend on systime.h and coding.h.
4920 (keyboard.o): Depend on composite.h and coding.h.
4921 (keymap.o): Depend on coding.h and frame.h.
4922 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4923 (macros.o): Depend on systime.h, coding.h, and composite.h.
4924 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4926 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4927 dispextern.h explicitly.
4928 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4929 Don't depend explicitly on dispextern.h and composite.h.
4930 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4931 (regex.o): Don't depend on charset.h.
4932 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4933 (search.o): Don't depend explicitly on composite.h.
4934 (sound.o): Depend on atimer.h and systime.h.
4935 (syntax.o): Don't depend explicitly on composite.h.
4936 (sysdep.o): Depend on coding.h and composite.h.
4937 (term.o): Depend on xterm.h and buffer.h.
4938 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4939 (textprop.o): Don't depend on dispextern.h explicitly.
4940 (undo.o): Depend on dispextern.h.
4941 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4942 dispextern.h and composite.h explicitly.
4943 (xdisp.o): Depend on ccl.h.
4944 (xfaces.o): Depend on coding.h and ccl.h.
4945 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4946 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4947 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4949 (xgselect.o): New dependency.
4950 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4951 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4952 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4953 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4954 (xsmfns.o): Depend on frame.h and dispextern.h.
4955 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4958 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4960 * font.c (Fclear_font_cache): Pass correct cache argument to
4963 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4965 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4968 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
4970 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4971 calling file-remote-p. Reported by Jim Meyering.
4973 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
4975 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
4976 avoid compiler warnings. (Bug #5217)
4978 2009-12-14 Kenichi Handa <handa@m17n.org>
4980 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4983 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
4985 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4988 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4990 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4991 Xatom_net_window_type.
4993 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4994 Xatom_net_window_type.
4996 * xterm.c (my_log_handler): New function.
4997 (x_term_init): Set my_log_handler as log handler during gtk_init
4998 so we can filter out buggy messages. (Bug #5120).
5000 * xterm.c (xg_scroll_callback): Parameter list changed,
5001 use parameter GtkScrollType to determine scroll/line/page.
5002 Only allow dragging if a button < 4 is grabbed (bug #5177).
5003 (xg_end_scroll_callback): New function.
5004 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5005 xg_create_scroll_bar.
5007 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5008 (scroll_end_callback): Remove.
5009 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5010 button-release-event. Replace value-changed event with change-value,
5012 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5015 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5016 (xg_create_scroll_bar): Add GCallback end_callback.
5018 * xftfont.c (QClcdfilter): New variable.
5019 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5020 (syms_of_xftfont): Initialize QClcdfilter.
5022 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5024 * xsettings.c (struct xsettings): Add member seen.
5025 (parse_xft_settings): Update member seen with what we have read.
5026 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5027 (apply_xft_settings): Only update Xft settings with what member seen
5030 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5032 * dispextern.h (struct text_pos): Use EMACS_INT.
5033 (struct glyph): Use EMACS_INT for charpos.
5034 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5035 region_beg_charpos, region_end_charpos,
5036 redisplay_end_trigger_charpos, and also for
5037 iterator_stack_entry.end_charpos and
5038 iterator_stack_entry.stop_charpos.
5040 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5042 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5043 (xg_create_scroll_bar): Call scroll_end_callback on button release
5045 (xg_event_is_for_scrollbar): != replaced with ==.
5047 2009-12-12 Kenichi Handa <handa@m17n.org>
5049 * ftfont.c (struct ftfont_info): New member matrix.
5050 (ftfont_open): Setup xftfont_info->matrix.
5051 (MFLTFontFT): New member matrix.
5052 (FLOOR, CEIL, ROUND): New macros.
5053 (ftfont_get_metrics): Handle matrix transformation.
5054 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5056 * xftfont.c (struct xftfont_info): New member matrix.
5057 (xftfont_open): Setup xftfont_info->matrix.
5059 2009-12-10 Kenichi Handa <handa@m17n.org>
5061 * xdisp.c (append_space_for_newline): Consider face-remapping.
5063 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5065 * xsettings.c: Include "keyboard.h".
5067 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5069 Fix implicit function declarations.
5070 * cmds.c: Include "frame.h".
5071 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5072 * frame.h: Move declaration of delete_frame outside of
5075 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5077 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5079 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5082 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5084 * unexelf.c (unexec): Don't search for .data twice.
5086 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5088 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5090 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5091 of push_display_prop (Bug#5000).
5093 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5094 value of font_list_entities (Bug#5085).
5096 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5098 Fix `string-to-number' to deal consistently with integers and floats.
5099 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5100 trailing characters, not just whitespace.
5101 (read1): Pass new arg 0 to keep old behavior.
5102 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5103 trailing chars, as it is already done for integers. Doc fixes.
5104 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5106 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5108 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5109 Delete unused enumeration value.
5111 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5113 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5115 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5117 * process.c (Fmake_network_process): Fix up the tests for
5118 "connectionless socket", so they DTRT for seqpacket sockets as well.
5120 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5122 * process.c (Qseqpacket): New symbol.
5123 (HAVE_SEQPACKET): New macro.
5124 (Fmake_network_process): Accept new :type `seqpacket'.
5125 (init_process): Add `seqpacket' feature when applicable.
5126 (syms_of_process): Initialize Qseqpacket.
5128 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5130 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5133 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5135 * print.c (print_preprocess): Preprocess the key_and_value table of
5136 hashtables, even tho they're "hidden" (bug#5082).
5138 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5140 * frame.c (frame_make_pointer_invisible)
5141 (frame_make_pointer_visible): Declare f before statements.
5143 2009-11-28 Eli Zaretskii <eliz@gnu.org>
5145 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5146 omitted dependencies on lisp.h.
5148 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5150 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5153 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5155 * frame.c (frame_make_pointer_invisible)
5156 (frame_make_pointer_visible): Just return if there isn't any selected
5159 * search.c (simple_search): Remove warning by making *p const.
5161 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5163 * xdisp.c (power_letter): Remove duplicate const.
5165 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5167 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5169 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
5170 defaults (bug #5025).
5172 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5174 * insdel.c (adjust_markers_for_delete): Move it in the
5175 right direction! (bug#4803)
5177 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5179 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5181 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5183 2009-11-24 Glenn Morris <rgm@gnu.org>
5185 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5187 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5189 * Makefile.in: Must create deps for ecrt0.o in its rule.
5191 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5192 because that is what Gtk+ font dialog understands.
5194 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5196 (font_open_by_name): Put name given into QCname for font-object returned.
5198 * frame.c (x_set_font): Save original font name as frame parameter
5201 * xsettings.c (set_default_xft_settings): New function.
5202 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5205 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5207 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5208 searching backwards through multibyte buffer.
5210 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5212 * xterm.c: #include xgselect.h.
5213 (x_initialize): Call xgselect_initialize.
5215 * xsettings.c (something_changedCB): C++ comments => C comments.
5216 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5219 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5220 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5221 (scroll_bar_button_cb): Remove.
5222 (create_menus): C++ comments => C comments. Don't bind grab-notify
5224 (xg_create_scroll_bar): Don't bind button-press-event and
5225 button-release-event.
5227 * process.c: Include xgselect.h if defined (USE_GTK) ||
5228 defined (HAVE_GCONF).
5229 (wait_reading_process_output): Call xg_select for the same condition.
5231 * xgselect.c (xg_select): New function to better integrate with
5232 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5234 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5236 * Makefile.in (XOBJ): Add xgselect.o.
5238 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5240 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5241 Remove ignored second argument. All callers changed.
5242 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5243 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5244 * xdisp.c (string_char_and_length): Likewise.
5246 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5248 * xterm.c (x_new_font):
5249 * print.c (print_object):
5250 * cmds.c (Fself_insert_command): Move declarations before statements.
5252 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5254 * s/cygwin.h: Remove unneeded linker flags.
5256 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5258 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5260 * xsettings.h: Declare xsettings_get_system_font.
5262 * xsettings.c (xsettings_get_system_font): New function.
5263 (init_gconf): No use initiating gconf unless we have Xft also.
5264 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5267 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5268 add a blank entry so it doesn't collapse into nothing.
5270 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5272 * lread.c (Funintern): Comment out last change.
5274 2009-11-19 Richard Stallman <rms@gnu.org>
5276 * lread.c (Funintern): Error if symbol is t or nil.
5278 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5280 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5281 representation of Lisp integers.
5282 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5284 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5286 * lisp.h: Remove declaration of Ffont_get_system_font.
5287 * xfns.c: Move include of "xsettings.h".
5288 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5290 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5292 * xsettings.c (something_changedCB, Ffont_get_system_font):
5293 Check use_system_font.
5294 (syms_of_xsettings): DEFVAR font-use-system-font.
5296 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5298 * xfns.c (x_default_font_parameter): Remove dead assignment.
5300 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5302 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5304 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5305 not have FC_LCD_*. #define them if not there.
5307 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5309 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5311 * xterm.c (handle_one_xevent): Call xft_settings_event for
5312 ClientMessage, PropertyNotify and DestroyNotify.
5313 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5314 Call xsettings_initialize.
5316 * xftfont.c (xftfont_fix_match): New function.
5317 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5318 Call xftfont_fix_match after XftFontMatch.
5320 * xfont.c (xfont_driver): Initialize all members.
5322 * xfns.c (x_default_font_parameter):
5323 Try font from Ffont_get_system_font.
5324 Do not get font from x_default_parameter if we got one from
5325 Ffont_get_system_font.
5326 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5328 * w32font.c (w32font_driver): Initialize all members.
5330 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5332 * lisp.h: Declare syms_of_xsettings.
5334 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5335 Handle CONFIG_CHANGED_EVENT.
5337 * ftfont.c (ftfont_filter_properties): New function.
5339 * frame.c (x_set_font): Remove unused variable lval.
5341 * font.h (struct font_driver): Add filter_properties.
5343 * font.c (font_put_extra): Don't return if val is nil, it means
5344 boolean option is off.
5345 (font_parse_fcname): Collect all extra properties in extra_props
5346 and call filter_properties for all drivers with extra_props and
5348 (font_open_entity): Do not use cache, it does not pick up new
5349 fontconfig settings like hinting.
5350 (font_load_for_lface): If spec had a name in it, store it in entity.
5352 * emacs.c (main): Call syms_of_xsettings.
5354 * config.in: HAVE_GCONF is new.
5356 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5359 2009-11-17 Kenichi Handa <handa@m17n.org>
5361 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5362 back to the default font in case that no suitable font is found.
5364 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5366 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5367 Suggested by Chad Brown <yandros@mit.edu>.
5368 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5370 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5372 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5374 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5376 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5378 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5380 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5383 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5384 dependency files in deps/. Include those files into Makefile.
5386 * config.in: Generated (AUTO_DEPEND).
5388 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
5390 * dbusbind.c (Vdbus_registered_objects_table): Rename from
5391 Vdbus_registered_functions_table, because it contains also
5392 properties. Fix docstring.
5393 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
5395 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5397 * alloc.c (mark_object): Don't reprocess marked strings.
5398 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5399 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5401 2009-11-13 Kenichi Handa <handa@m17n.org>
5403 * category.c (word_boundary_p): Adjust for the change of the
5404 semantics of Vword_combining_categories.
5405 (Vword_combining_categories): Describe the slight change of the
5408 2009-11-13 Eli Zaretskii <eliz@gnu.org>
5410 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5412 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5414 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5416 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5418 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
5420 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5422 2009-11-11 David Reitter <david.reitter@gmail.com>
5424 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5425 variables to fix 2009-11-09 change.
5427 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5429 * process.c (ifflag_def): Make flag_sym constant.
5430 (Fnetwork_interface_info): Use a constant pointer.
5432 * xfns.c (cursor_bits):
5433 * xdisp.c (power_letter):
5434 * termcap.c (speeds, esctab):
5435 * sysdep.c (baud_convert):
5436 * keyboard.c (lispy_accent_codes, modifier_names):
5437 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5438 (jpeg_format, tiff_format, gif_format, svg_format)
5439 (interlace_start, interlace_increment, gs_format):
5440 * gtkutil.c (separator_names):
5441 * fringe.c (swap_nibble):
5442 * fns.c (base64_value_to_char, base64_char_to_value):
5443 * fileio.c (make_temp_name_tbl):
5444 * coding.c (suffixes): Make constant.
5446 * frame.c (make_initial_frame):
5447 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5449 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5452 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5454 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5455 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5457 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5458 * xterm.c (syms_of_xterm):
5459 * xfaces.c (syms_of_xfaces):
5460 * xdisp.c (syms_of_xdisp):
5461 * lread.c (syms_of_lread):
5462 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5465 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5467 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5469 * fns.c (Fplist_get): Merge the active and the commented out code.
5471 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5473 * keyboard.h: Declare timer_check.
5475 * keyboard.c (timer_check_2): New function that does what the old
5477 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5478 returned, i.e. don't return -1 with timers pending.
5480 * process.c: Remove extern declaration of timer_check.
5482 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5483 even if timer_check returned -1.
5485 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5487 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5489 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5490 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5491 Destroy the dialog after xg_dialog_run.
5493 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5495 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5497 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5499 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5501 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
5503 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5505 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5507 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5508 w32menu.c, and nsmenu.m.
5509 Simplify the obsolete case where position is nil.
5510 (cleanup_popup_menu): New function, moved from nsmenu.m.
5511 (struct skp): Remove slot `notreal'.
5512 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5514 (single_menu_item): Adjust call to parse_menu_item.
5515 (syms_of_menu): Defsubr x-popup-menu.
5516 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5517 (keymap_panes): Don't export any more.
5518 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5519 (xmenu_show): Declare.
5520 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5521 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5522 * keyboard.h (parse_menu_item): Update declaration.
5523 * xmenu.c (Fx_popup_menu): Remove.
5524 (syms_of_xmenu): Don't defsubr x-popup-menu.
5525 * w32menu.c (Fx_popup_menu): Remove.
5526 (syms_of_w32menu): Don't defsubr x-popup-menu.
5527 * nsmenu.m (cleanup_popup_menu): Remove.
5528 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5529 moved to menu.c's Fx_popup_menu.
5530 (Fx_popup_menu): Remove.
5531 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5532 menu_items (it's done in menu.c already).
5534 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5536 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5537 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5539 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
5541 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
5542 xmenu_show. Hide any tooltip before opening a menu.
5543 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5544 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5546 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5548 Let integers use up 2 tags to give them one extra bit and thus double
5550 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5551 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5553 (enum Lisp_Type): Use them. Give explicit values.
5554 (Lisp_Type_Limit): Remove.
5555 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5556 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5557 Pay attention to USE_2_TAGS_FOR_INTS.
5558 (INTEGERP): Use LISP_INT_TAG_P.
5559 * fns.c (internal_equal): Simplify the default case.
5560 (sxhash): Use case_Lisp_Int.
5561 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5563 (Ftype_of): Use case_Lisp_Int.
5564 (store_symval_forwarding): Take into account the fact that Ints can
5565 now have more than one tag.
5566 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5567 buffer_slot_type_mismatch):
5568 * xfaces.c (face_attr_equal_p):
5569 * print.c (print_object):
5570 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5573 2009-11-06 Eli Zaretskii <eliz@gnu.org>
5575 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5577 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5580 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5582 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5584 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5586 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5587 ButtonPressRelease and MotionNotify (bug#4870).
5589 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5591 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5593 * xterm.c (syms_of_xterm):
5594 * xselect.c (syms_of_xselect):
5595 * xmenu.c (syms_of_xmenu):
5596 * xfns.c (syms_of_xfns):
5597 * xfaces.c (syms_of_xfaces):
5598 * xdisp.c (syms_of_xdisp):
5599 * window.c (syms_of_window):
5600 * w32fns.c (syms_of_w32fns):
5601 * undo.c (syms_of_undo):
5602 * textprop.c (syms_of_textprop):
5603 * terminal.c (syms_of_terminal):
5604 * syntax.c (syms_of_syntax):
5605 * sound.c (syms_of_sound):
5606 * search.c (syms_of_search):
5607 * print.c (syms_of_print):
5608 * minibuf.c (syms_of_minibuf):
5609 * macros.c (syms_of_macros):
5610 * keymap.c (syms_of_keymap, initial_define_key)
5611 (initial_define_lispy_key):
5612 * keyboard.c (syms_of_keyboard):
5613 * insdel.c (syms_of_insdel):
5614 * image.c (syms_of_image):
5615 * fringe.c (syms_of_fringe):
5616 * frame.c (syms_of_frame):
5617 * fontset.c (syms_of_fontset):
5618 * fns.c (syms_of_fns):
5619 * fns.c (syms_of_fns):
5620 * fileio.c (syms_of_fileio):
5621 * fileio.c (syms_of_fileio):
5622 * eval.c (syms_of_eval):
5623 * doc.c (syms_of_doc):
5624 * dispnew.c (syms_of_display):
5625 * dired.c (syms_of_dired):
5626 * dbusbind.c (syms_of_dbusbind):
5627 * data.c (syms_of_data):
5628 * composite.c (syms_of_composite):
5629 * coding.c (syms_of_coding):
5630 * cmds.c (syms_of_cmds):
5631 * charset.c (define_charset_internal, syms_of_character):
5632 * ccl.c (syms_of_ccl):
5633 * category.c (syms_of_category, init_category_once):
5634 * casetab.c (syms_of_casetab):
5635 * casefiddle.c (syms_of_casefiddle):
5636 * callint.c (syms_of_callint):
5637 * bytecode.c (syms_of_bytecode):
5638 * buffer.c (keys_of_buffer, syms_of_buffer):
5639 * alloc.c (syms_of_alloc):
5640 * process.c (syms_of_process, init_process):
5641 * lread.c (syms_of_lread, init_obarray):
5642 * font.c (build_style_table):
5643 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5644 intern_c_string, calls to make_pure_string with
5645 make_pure_c_string. Use pure_cons instead of Fcons.
5647 * process.c (socket_options): Make it const.
5648 (set_socket_option, init_process): Use a const pointer.
5650 * lread.c (intern_c_string): New function.
5651 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5652 (defvar_int): Uset it. Make the name const char*.
5654 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5655 (defvar_int): Update prototypes.
5656 (DEFUN, EXFUN): Support for prototypes is now required.
5657 (intern_c_string): New prototype.
5658 (struct Lisp_Subr): Make symbol_name constant.
5660 * font.c (struct table_entry): Remove unused member. Make NAMES
5662 (weight_table, slant_table, width_table): Make constant.
5664 * emacs.c (struct standard_args): Make name and longname constant.
5666 * character.h (DEFSYM): Use intern_c_string.
5668 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5670 * alloc.c (make_pure_c_string): New function.
5672 * eval.c (Fautoload): Purecopy all arguments.
5674 2009-11-05 Kenichi Handa <handa@m17n.org>
5676 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5677 the buffer in case of replace.
5679 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5681 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5683 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5685 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5686 when applicable (bug#4851).
5688 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5689 (P_): Support for prototypes is now required.
5691 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
5693 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5696 2009-10-30 Eli Zaretskii <eliz@gnu.org>
5698 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
5700 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5702 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5704 * lread.c (Fload): Purecopy the file name when building
5705 Vpreloaded_file_list.
5707 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5709 * w32fns.c (syms_of_w32fns): Change default value of
5710 w32-scroll-lock-modifier to nil. (Bug#2827)
5712 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5714 * minibuf.c (Fall_completions): Fix typos in docstring.
5716 2009-10-26 Andreas Schwab <schwab@redhat.com>
5718 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5720 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5722 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5723 For delta < 0, skip check that only makes sense when the mini-window
5724 is going to be enlarged. (Bug#4534)
5726 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
5728 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5729 string in menu maps (Bug#4471).
5731 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
5733 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5734 FRAME_NS_VIEW on terminal frames (Bug#4765).
5736 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5738 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5739 DBUS_TYPE_UINTnn separately to get proper sign extension.
5741 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5742 can properly handle unsigned types.
5743 (make_uid, make_gid): Remove.
5745 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5748 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
5749 (system_process_attributes): Likewise.
5751 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5753 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5755 * eval.c (Fautoload): Purecopy the filename. Simplify.
5757 * category.c (Fdefine_category): Purecopy docstring.
5759 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5761 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5763 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5765 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
5767 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5768 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5771 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5773 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5775 * lisp.h (init_fileio_once): Remove.
5776 * emacs.c (main): Don't call init_fileio_once.
5778 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5780 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5782 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5784 * doprnt.c (doprnt): Fix overflow check.
5786 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5788 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5790 * xterm.h (x_wait_for_event): Declare it.
5792 * xterm.c (pending_event_wait): New variable.
5793 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5794 see pending_event_wait.eventtype.
5795 (handle_one_xevent): Don't change gravity when parent changes.
5796 (x_new_font): Call change_frame_size with new rows/columns before we
5797 try to resize the frame.
5798 (x_wait_for_event): New function.
5799 (x_set_window_size_1): Don't change gravity unless change_gravity
5801 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5802 don't change frame size, instead wait for the ConfigureNotify.
5803 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5804 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5805 (x_initialize): Initialize pending_event_wait.
5807 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5810 * widget.c (EmacsFrameSetValues): Add comment.
5811 (EmacsFrameSetCharSize): Just call x_set_window_size.
5813 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5815 (flush_and_sync): Remove again.
5816 (xg_get_font_name): Suggest monospace if no previous font is known.
5818 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5820 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
5821 8th bit, since that only made sense in the ASCII world (bug#4751).
5823 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5825 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5826 processing pending events when event is filtered for input method.
5829 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
5831 * fns.c: Add #endif accidentally removed in previous change.
5833 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5835 * fns.c: Remove code for unsupported system: MAC_OS.
5836 * image.c: Likewise. Include setjmp.h.
5838 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5840 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5841 pixel -1 (bug #4742).
5843 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5845 * process.c (create_pty): Remove conditionals for no longer
5846 supported systems: UNIPLUS and RTU.
5849 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5851 * alloc.c: Do not define struct catchtag.
5852 * eval.c: Move struct catchtag definition ...
5855 * image.c: Move png.h #include earlier to avoid warnings.
5956 * atimer.c: Include setjmp.h. (Bug#4643)
5958 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5960 Remove leftover table unibyte_to_multibyte_table.
5961 * character.c (unibyte_to_multibyte_table): Remove.
5962 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5963 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5964 * character.h (UNIBYTE_TO_CHAR): New macro.
5965 (MAKE_CHAR_MULTIBYTE): Use it.
5966 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5967 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5968 (message_dolog, set_message_1):
5969 * search.c (Freplace_match):
5970 * editfns.c (Fcompare_buffer_substrings):
5971 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5973 * insdel.c (copy_text, count_size_as_multibyte):
5974 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5975 * term.c (produce_glyphs):
5976 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5977 * regex.c (RE_CHAR_TO_MULTIBYTE):
5978 * cmds.c (internal_self_insert):
5979 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5981 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5983 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5985 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5987 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
5989 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5991 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5993 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5994 still needed under Tiger.
5996 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5998 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6001 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6003 2009-10-15 Kenichi Handa <handa@m17n.org>
6005 * print.c (print_object): Escape a symbol like "2E10" too.
6007 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6009 Cleanups and changes for 64-bit compile under Snow Leopard.
6010 Based on suggestions by Erik Charlebois.
6012 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6014 * nsfont.m (ns_char_width): Replace deprecated call.
6015 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6017 (nsfont_open): Use ns_char_width() everywhere.
6018 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6020 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6022 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6025 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6027 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6028 Use stringWithUTF8String.
6029 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6031 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6032 Add formal protocol mention to inheritance.
6033 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6035 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6037 (ns_query_color): Use CGFloat where appropriate.
6038 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6039 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6042 * config.in (NS_HAVE_NSINTEGER): Drop.
6044 * dbusbind.c (dbus-method-return-internal)
6045 (dbus-method-error-internal): Use long format in printf, and cast
6048 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6049 in printf, and cast argument.
6051 * process.c (list_processes_1): Use long format in printf, and
6054 2009-10-11 Glenn Morris <rgm@gnu.org>
6056 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6058 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6060 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6061 menu bar with a small width so it doesn't enlarge the frame.
6063 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6065 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6067 2009-10-06 Glenn Morris <rgm@gnu.org>
6069 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6070 SOME_MACHINE_LISP (this enters indirectly via DOC).
6072 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6074 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6076 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6078 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6081 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6083 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6085 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6087 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6088 used anymore outside fileio.c.
6090 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6092 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6094 * lisp.h (Qdelete_directory_internal):
6095 Declare, instead of Qdelete_directory.
6097 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6099 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6101 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6103 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6105 * fileio.c (Fdelete_directory_internal): Rename from
6106 Fdelete_directory. It is not a command anymore. It has no file
6109 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6111 * xdisp.c (get_next_display_element): Use an enum in last change.
6113 2009-09-28 Kenichi Handa <handa@m17n.org>
6115 * xdisp.c (get_next_display_element): Pay attention to
6116 unibyte_display_via_language_environment in handling
6117 Vnobreak_char_display.
6119 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6121 * nsterm.h (ns_app_name): New extern variable.
6123 * nsterm.m (ns_app_name): New variable.
6124 (ns_term_init): Set and use it.
6125 (ns_term_shutdown): Use it.
6127 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6128 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6130 * nsfns.m (ns_set_name_iconic, ns_set_name)
6131 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6132 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6134 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6135 Remove double-casting in client_data comparison.
6137 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6139 * keyboard.c (make_lispy_event): Remember last wheel direction.
6140 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6142 2009-09-26 Glenn Morris <rgm@gnu.org>
6144 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6145 internal.elc. Add term/pc-win.elc.
6146 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6148 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6151 (lisp): Add NS_SUPPORT.
6152 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6154 2009-09-25 David Reitter <david.reitter@gmail.com>
6156 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6157 on Mac OS X 10.6+ (bug#4513).
6159 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6161 * frame.c (xrdb_get_resource): Return nil for empty string resources;
6162 some parts of Emacs code (like font selection) don't grok them.
6163 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6165 2009-09-24 Andreas Schwab <schwab@redhat.com>
6167 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6169 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6171 * dired.c (Fdirectory_files): Fix typo in docstring.
6173 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6175 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6176 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6177 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6179 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6181 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6184 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6186 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6187 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6189 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6190 deleted (bug #4492).
6192 * nsfont.m (Vns_reg_to_script): New lisp variable.
6193 (syms_of_nsfont): Declare it.
6194 (ns_registry_to_script): New function.
6195 (ns_get_req_script): Call it.
6196 (ns_findfonts): Don't give up on non-unicode registry.
6198 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6200 2009-09-20 Tom Tromey <tromey@redhat.com>
6202 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6203 batch mode (bug#4228).
6205 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
6207 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6208 carefully. (Bug #4339)
6210 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
6212 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6214 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6216 * emacs.c (inhibit_x_resources): Update doc string for NS.
6217 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
6218 legacy code for -NXHost. Fix error printf in daemon case.
6220 * nsterm.h (ns_no_defaults): Remove.
6222 * nsterm.m (ns_no_defaults): Remove.
6223 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6224 (ns_use_qd_smoothing): Remove legacy variable.
6225 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6226 don't update the NSWindow itself.
6227 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6228 state detection and store user rect ourselves. (Bug #3581)
6230 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6231 ns_use_qd_smoothing.
6233 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6234 platform versions. Drop support for emacs-20-style face specs.
6235 (x-close-connection): Drop PSFlush() under OS X.
6236 (x-focus-frame): Activate the app first. (Bug #4180)
6238 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
6240 * emacs.c (inhibit_x_resources): New variable.
6241 (main) [HAVE_NS]: Don't process --quick command line option.
6242 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6244 * lisp.h (inhibit_x_resources): Declare it extern.
6246 * w32reg.c (x_get_string_resource):
6247 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6249 2009-09-17 Eli Zaretskii <eliz@gnu.org>
6251 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6252 Add lisp/term/internal.elc.
6254 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6256 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6259 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6261 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6263 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6264 (OBJECTS_MACHINE): Remove, unused.
6266 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6268 * frame.c (x_get_resource_string): Remove unused.
6270 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6272 * xterm.c (x_new_font): Call change_frame_size before calling
6273 x_set_window_size, in case frame size won't change.
6275 * frame.c (x_set_font): Remove dead code.
6277 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6279 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6281 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6283 * lread.c (Fload): Don't output a message after loading an obsolete
6284 package any more (done in Lisp now).
6286 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
6288 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6290 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6292 * keymap.c (Fwhere_is_internal): Use nconc2.
6294 2009-09-11 Alan Mackenzie <acm@muc.de>
6296 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6299 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6301 * xdisp.c (display_mode_element): Detect cycles.
6303 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6305 * keymap.c (where_is_internal): Don't erroneously return nil right after
6307 (where_is_internal_1): Fix up typo.
6309 2009-09-11 Glenn Morris <rgm@gnu.org>
6311 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6312 share a common doc-string.
6314 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6316 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6317 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6319 * keymap.c (QCadvertised_binding): New constant.
6320 (syms_of_keymap): Initialize it.
6321 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6324 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6326 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6327 (parse_menu_item): Streamline since bindings are recomputed all the
6328 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6329 more and don't support lmenu's menu-alias any more either.
6331 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6332 (where_is_internal): Strip it down to only traverse the keymaps.
6333 Move the cache handling from Fwhere_is_internal to here.
6334 (Fwhere_is_internal): Move the handling of remapping and the choice of
6335 the best binding from where_is_internal to here.
6336 Unify the cached/noncached paths, so remapping is also handled
6337 correctly when the cache is used, and so the cache can be used to
6338 speed up remap-handling when applicable.
6339 Give preference to non-remapped bindings.
6340 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6341 non-remapped bindings.
6342 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6345 * xdisp.c (display_mode_element): Move list length limit from 50 to
6346 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6348 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
6350 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6352 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6354 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6357 * keymap.c (where_is_internal): Filter out shadowed remappings.
6358 Assume that where_is_internal returns unshadowed bindings to simplify
6359 the code and get rid of the gotos. Use ASIZE.
6361 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6363 * xterm.c (x_focus_changed): If we get a focusout and pointer
6364 is invisible, make it visible.
6366 * xterm.h: Remove condition for declaration of
6367 x_*_window_to_frame.
6369 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6371 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6372 initial terminal as well.
6374 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6376 * xterm.h: Rename x_non_menubar_window_to_frame to
6377 x_menubar_window_to_frame.
6379 * xterm.c: Remove declarations also in xterm.h.
6380 (XTmouse_position): Do not return valid positions
6381 for clicks in the menubar and the toolbar for Gtk+.
6383 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6384 if the widget for the event has the same top level as a frame,
6386 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6387 internal windows, bug #4122.
6388 (x_non_menubar_window_to_frame): Remove.
6390 2009-09-02 Glenn Morris <rgm@gnu.org>
6392 * buffer.c (default-major-mode): Move most of the doc from here...
6393 (major-mode): ... to here.
6395 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
6397 * process.c (wait_reading_process_output): Keep the descriptor
6398 when pty is used by a non-child process, e.g., in I/O buffer of
6399 GDB this allows inferior to be restarted.
6401 2009-08-29 Eli Zaretskii <eliz@gnu.org>
6403 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6404 both branches into one.
6406 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6408 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6409 (main): Use enable-multibyte-characters rather than
6410 default-enable-multibyte-characters. Output a warning message when
6411 running a unibyte session.
6413 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6415 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6416 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6417 (copy_data_segment): Also copy __program_vars section.
6418 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6419 (dump_it) [LC_DYLD_INFO]: Use it.
6421 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6423 2009-08-28 Eli Zaretskii <eliz@gnu.org>
6425 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6427 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6428 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6430 (clean): Add buildobj.h.
6432 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6434 * print.c (print_object): Set escapeflag to 1 when printing
6435 hashtable keys and values.
6437 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6439 * lread.c (read_integer): Use doubles (and potentially return a float
6440 number) as we do in string-to-number.
6441 (read1): Use strtol to read integers, signal errors on strtol's
6442 overflow and use floats if strtol's output is too large for
6445 2009-08-27 Eli Zaretskii <eliz@gnu.org>
6447 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6448 (make-buildobj-SH): Fix last change.
6449 (SRC): Move to before where it's first used.
6451 2009-08-27 Kenichi Handa <handa@m17n.org>
6453 * process.c (send_process): Use encode_coding_object instead of
6454 encode_coding_string to perform eol-conversion even if the string
6457 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6460 * cmds.c (Fself_insert_command): Avoid unnecessay
6461 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
6463 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6465 * callproc.c (Fcall_process): Remove always true #if.
6467 * lisp.h: Replace #if 0 code for checking with text pointing to
6468 the --enable-checking configure flag.
6470 * emacs.c (main): Mention the --enable-profiling configure flag
6471 instead of using CFLAGS.
6473 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
6475 * Makefile.in (buildobj.h): New target.
6476 (doc.o): Depend on it.
6477 (temacs${EXEEXT}): Don't generate buildobj.lst.
6478 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6479 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6480 ($(BLD)/doc.$(O)): Depend on it.
6481 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6482 provided by Eli Zaretskii.)
6483 ($(TEMACS)): Don't generate buildobj.lst.
6484 * doc.c: Include buildobj.h.
6485 (buildobj): New static variable.
6486 (Fsnarf_documentation): Use it, instead of opening and reading
6489 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
6491 * dbusbind.c (Fdbus_call_method)
6492 (Fdbus_call_method_asynchronously): Use English numeric format for
6493 timeout values in doc string.
6495 2009-08-25 Kenichi Handa <handa@m17n.org>
6497 * alloc.c (mark_char_table): New function.
6498 (mark_object): Use mark_char_table for a char-table.
6500 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6501 (CHAR_TABLE_REF): Use it.
6503 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
6505 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6506 before invoking the newly build emacs to check for load-path
6509 2009-08-22 Glenn Morris <rgm@gnu.org>
6511 * Makefile.in (bootstrap_exe): New variable.
6512 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6513 Use ${bootstrap_exe}.
6515 2009-08-22 Eli Zaretskii <eliz@gnu.org>
6517 * coding.h (encode_coding_string): Don't encode unibyte strings.
6520 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
6522 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6524 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6525 intended as hotfix only.
6526 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6528 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6530 * nsterm.m (ns_get_color): Update documentation properly for last
6531 change, and clean up loose ends in the code left by it. Fix
6532 longstanding bug with 16-bit hex parsing, and add support for
6533 yet another X11 format (rgb:r/g/b) for compatibility.
6534 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6535 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6537 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6539 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6541 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
6543 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6544 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6545 (xd_initialize, xd_pending_messages): Check, whether
6546 $DBUS_SESSION_BUS_ADDRESS is set.
6548 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6550 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6552 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6554 2009-08-20 Glenn Morris <rgm@gnu.org>
6556 * emacs.c (system-type): Doc fix.
6558 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6560 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6561 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6563 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
6565 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6567 (xd_initialize): Revert change from 2009-08-16.
6569 2009-08-18 Kenichi Handa <handa@m17n.org>
6571 * fontset.c (Ffontset_font): If a nil element is found in a
6572 font-group vector, return nil.
6574 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
6576 * process.c (status_notify): Don't perform redisplay.
6577 (Fdelete_process, list_processes_1, process_send_signal):
6578 Expliticly perform redisplay.
6579 (wait_reading_process_output): Always check process status, but
6580 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6582 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
6584 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
6585 (XFLOAT_INIT): New macro for storing a float value.
6586 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6587 * fns.c (sxhash): Copy out the value of a float in order to
6589 * dbusbind.c (xd_append_arg): Likewise.
6591 * emacs.c (main): Don't call syms_of_data twice.
6593 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
6595 * dbusbind.c (xd_initialize): Add connection file descriptor to
6596 input_wait_mask, in order to let select() detect, whether a new
6597 message has been arrived.
6598 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
6600 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
6602 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6605 * lisp.h (xd_pending_messages): Declare.
6607 * keyboard.c (readable_events): Call xd_pending_messages.
6609 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
6611 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
6613 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6615 * buffer.c (set_buffer_internal_1)
6616 (swap_out_buffer_local_variables): Check for unbound local
6617 variables (Bug#4138).
6619 2009-08-14 Eli Zaretskii <eliz@gnu.org>
6621 * process.c (create_pty): Fix last change.
6623 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
6625 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6626 (xbm_load_image): Caller changed.
6627 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
6629 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
6631 * process.c (create_pty): New function.
6632 (Fstart_process): Use it to allow Emacs to just associate a pty
6633 with the buffer. See associated change in gdb-mi.el.
6634 (list_processes_1): Deal with no program name.
6635 (start_process_unwind): Use pid == -2 to mean no process.
6637 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6639 * cmds.c (nonundocount): New global variable.
6640 (keys_of_cmds): Initialize it.
6641 (Fself_insert_command): Use it to combine upto 20 sequential chars
6642 into a single undo entry, just like the Qself_insert_command code in
6644 Call frame_make_pointer_invisible, also like the Qself_insert_command
6645 code in keyboard.c does.
6646 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6647 than its own local replacement for it.
6649 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
6651 * fns.c (concat): Don't re-set string length to its current value.
6653 * coding.h (decode_coding_string, encode_coding_string):
6656 * doprnt.c (doprnt_lisp): Delete unused function.
6657 (doprnt): Merge with doprnt1, discarding lispstrings code.
6658 * lisp.h (doprnt_lisp): Don't declare.
6660 2009-08-07 Juri Linkov <juri@jurta.org>
6662 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6664 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6666 * print.c (syms_of_print): Undo previous change.
6668 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6670 * lread.c (read1, syms_of_lread): Read hashtables back from the
6673 * print.c (print_preprocess, print_object): Print hashtables fully
6675 (syms_of_print): Provide 'hashtable-print-readable.
6677 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6679 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6681 (nsfont_open): Handle case when entity has no family.
6683 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6685 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6686 element, not a list, for match case.
6688 2009-07-28 Kenichi Handa <handa@m17n.org>
6690 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6693 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6694 font_parse_xlfd. Check font properties more rigidly.
6696 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6698 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6701 2009-07-27 Kenichi Handa <handa@m17n.org>
6703 * xfaces.c (face_with_height): Call font_clear_prop.
6705 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
6707 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6709 * xterm.c (x_term_init): Use Qx.
6711 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6713 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
6714 (ns_get_color): Revert 2009-07-16 change.
6716 2009-07-25 Eli Zaretskii <eliz@gnu.org>
6718 * lread.c (syms_of_lread) <force_load_messages>: New variable.
6719 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
6721 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
6723 * coding.h (decode_coding_string, encode_coding_string):
6726 * lread.c: Rewrite 2009-07-21 changes.
6727 (load_depth): Delete.
6728 (Qload_in_progress): New variable.
6729 (load_unwind): Don't reference load_depth or load_in_progress.
6730 (Fload): Likewise; specbind Qload_in_progress instead.
6731 (init_lread): Don't initialize load_depth.
6732 (syms_of_lread): Initialize and protect Qload_in_progress.
6734 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6736 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6738 2009-07-23 Yavor Doganov <yavor@gnu.org>
6740 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6742 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6744 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
6745 Bugs 3792, 3720, 2402.
6746 (ns_lookup_indexed_color): Check for bad index.
6747 (ns_index_color): Init unused slot to 0.
6748 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6749 Bug 3714, possibly 3082.
6751 2009-07-22 Jason Rumney <jasonr@gnu.org>
6753 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6754 Position IME window at cursor (Bug#2570).
6755 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6756 (globals_of_w32fns): Dynamically load functions required above.
6758 * w32term.c (w32_draw_window_cursor): Send message to reposition
6761 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6763 * fileio.c: Revert 2009-07-16 changes.
6764 (Vauto_save_include_big_deletions): New variable.
6765 (Fdo_auto_save): Disable auto-save only if
6766 auto-save-include-big-deletions is nil.
6768 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6770 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6771 the overflowed pixels into account (Bug#3879).
6773 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
6775 * lread.c (load_depth): New variable.
6776 (Fload, load_unwind, init_lread): Set it to the load recursion
6777 depth; set load_in_progress as a simple boolean based on the
6778 current load_depth. (Bug#3892)
6780 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6782 * nsfont.m (ns_has_attribute): Remove.
6783 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6785 2009-07-18 Juri Linkov <juri@jurta.org>
6787 * process.c (Fset_process_query_on_exit_flag): Mention killing
6788 a buffer in docstring.
6790 2009-07-17 Kenichi Handa <handa@m17n.org>
6792 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6794 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6796 * nsfns.m (Fns_set_alpha): Remove function.
6797 (syms_of_nsfns): Don't defsubr it.
6799 * nsterm.m (ns_get_color): Remove incompatible color formats.
6800 (ns_color_to_lisp): Generate #rrggbb color format string.
6802 2009-07-16 Richard Stallman <rms@gnu.org>
6804 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6805 (Fset_buffer_auto_saved): Handle save_length = -2.
6807 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
6809 * xterm.c (Qx_gtk_map_stock): New var.
6811 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6812 of calling intern each time.
6814 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6816 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6819 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6821 2009-07-14 Kenichi Handa <handa@m17n.org>
6823 * font.c (font_vconcat_entity_vectors): New function.
6824 (struct font_sort_data): New member font_driver_preference.
6825 (font_compare): Check font_driver_preference.
6826 (font_sort_entities): The format of the first argument changed.
6827 (font_delete_unmatched): Likewise.
6828 (font_list_entities): The return type changed.
6829 (font_select_entity): The format of the second argument changed.
6830 (font_find_for_lface): Adjuste for the above changes.
6831 Don't suppress the checking of C even if the repertory supports it.
6832 (Flist_fonts): Adjust for the above changes.
6834 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6835 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
6836 Reject a font who has adstyle property that is different from a
6837 langname derived from registry property.
6838 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
6840 2009-07-13 Eli Zaretskii <eliz@gnu.org>
6842 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6843 local copy of dirfilename.
6845 2009-07-13 Kenichi Handa <handa@m17n.org>
6847 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6850 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6851 calling XSYMBOL (sym).
6853 2009-07-11 Eli Zaretskii <eliz@gnu.org>
6855 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6857 (directory_files_internal) [WINDOWSNT]:
6858 Bind w32-get-true-file-attributes to either t or nil, depending whether
6859 the filesystem of the directory is fast or slow.
6861 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6863 (is_slow_fs): New function.
6864 (stat): Use it to determine whether to issue more system calls to
6865 get accurate file attributes, when w32-get-true-file-attributes is
6868 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6870 * xfns.c (Fx_select_font): Remember last font selected in
6871 x_last_font_name and use that the next time. Also try the frame
6872 parameter font-parameter as default to the font dialog.
6874 2009-07-10 Kenichi Handa <handa@m17n.org>
6876 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6878 2009-07-09 Eli Zaretskii <eliz@gnu.org>
6880 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6882 * w32.c (stat): Treat UNC file names as residing on remote
6885 2009-07-09 Kenichi Handa <handa@m17n.org>
6887 * fontset.c (fontset_find_font): Fix previous change.
6889 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
6891 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6892 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6895 2009-07-08 Kenichi Handa <handa@m17n.org>
6897 * fontset.c (fontset_find_font): Fix the logic of handling
6899 (font_for_char): Delete unused var.
6900 (generate_ascii_font_name): Delete it.
6902 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6904 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6905 (encode_coding_sjis): Fix the code range check.
6907 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
6909 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6910 (Fexpand_file_name): Copy string data properly (Bug#3772).
6912 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6914 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6917 2009-07-07 Kenichi Handa <handa@m17n.org>
6919 * character.h (unibyte_has_multibyte_table): Delete extern.
6920 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6922 * charset.c (Fset_charset_priority): Update charset_unibyte.
6923 (syms_of_charset): Initialize charset_unibyte.
6925 * character.c (unibyte_has_multibyte_table): Delete it.
6926 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6928 (multibyte_char_to_unibyte_safe): Likewise.
6929 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6931 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6932 (x_produce_glyphs): Likewise.
6934 * .gdbinit (xcharset): Fix the treating $arg0.
6936 2009-07-04 Eli Zaretskii <eliz@gnu.org>
6938 Emulation of `getloadavg' on MS-Windows.
6939 * w32.c: Include float.h.
6940 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6941 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6942 (get_native_system_info, get_system_times): New functions.
6943 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6944 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6945 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6946 g_b_init_get_system_times, and num_of_processors.
6948 2009-07-03 Jason Rumney <jasonr@gnu.org>
6950 * w32term.c (w32_initialize): Use standard types.
6952 2009-07-03 Eli Zaretskii <eliz@gnu.org>
6954 * dired.c (Ffile_attributes): Decode user and group names by the
6955 locale's encoding. (Bug#3443)
6957 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6959 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6960 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6962 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6964 * term.c (init_tty): Remove spurious #ifdef.
6966 * m/mips.h: Mention this file is also used for netbsd.
6967 * m/pmax.h: Remove file.
6969 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6971 * xterm.h (struct x_display_info): Add invisible_cursor.
6972 (struct x_output): Add current_cursor.
6974 * xterm.c (XTtoggle_invisible_pointer): New function.
6975 (x_define_frame_cursor): Don't define cursor if invisible or the
6976 same as before. Set current_cursor.
6977 (x_create_terminal): Set toggle_invisible_pointer_hook.
6979 * xfns.c (make_invisible_cursor): New function.
6980 (x_set_mouse_color): Call make_invisible_cursor.
6982 (x_window): Set current_cursor.
6984 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6986 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6987 inserting a character.
6988 (read_avail_input): Call frame_make_pointer_visible.
6990 * frame.c (Vmake_pointer_invisible): New variable.
6991 (frame_make_pointer_invisible, frame_make_pointer_visible):
6993 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6995 * frame.h: Declare frame_make_pointer_invisible and
6996 frame_make_pointer_visible.
6997 (struct frame): Add pointer_invisible.
6999 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7001 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7002 frame isn't visible.
7003 (xg_frame_resized): If width/height is -1, get size of window
7006 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7009 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7010 here or call change_frame_size. Just call flush_and_sync.
7011 (flush_and_sync): Reintroduce.
7013 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7015 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7017 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7018 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7020 * frame.h: Declare Qsticky.
7022 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7024 * nsfns.m (ns_frame_parm_handlers): Ditto.
7026 * frame.c: Declare Qsticky.
7027 (frame_parms): Add sticky.
7029 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7031 * xterm.h: Declare x_set_sticky.
7033 * xterm.c (x_set_sticky): New function.
7035 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7036 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7037 xg_tool_bar_proxy_help_callback.
7039 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7041 * frame.c: Qmaximized is new.
7042 (x_set_frame_parameters): Do not handle fullscreen specially.
7043 Only set width and height if explicitly set.
7044 (x_set_fullscreen): Handle Qmaximized.
7045 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7046 (syms_of_frame): Initialize Qmaximized.
7048 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7049 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7051 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7052 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7053 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7054 set gravity to NorthWestGravity when USE_GTK.
7055 (set_wm_state): New function.
7056 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7057 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7058 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7059 or the case when no window manager is running. That means remove calls
7060 to x_real_positions and x_fullscreen_adjust.
7062 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7063 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7065 (xg_height_changed): New function.
7066 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7067 and gtk_window_set_policy. Set frame gravity after parsing the
7069 (xg_update_frame_menubar, free_frame_menubar)
7070 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7071 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7072 Remove calls to xg_frame_set_char_size.
7074 2009-07-01 Kenichi Handa <handa@m17n.org>
7076 * keyboard.c (decode_keyboard_code): New function.
7077 (tty_read_avail_input): Decode the input bytes if necessary.
7079 * coding.c (setup_coding_system):
7080 Initialize coding->carryover_bytes to 0.
7081 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7084 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7086 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7088 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7090 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7092 2009-06-30 Jason Rumney <jasonr@gnu.org>
7094 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7096 Set user model ID if supported (bug#1849).
7098 2009-06-29 Jim Meyering <meyering@redhat.com>
7100 Remove useless if-before-xfree test.
7101 * nsfont.m (nsfont_close): Remove useless test.
7102 * term.c (delete_tty): Likewise.
7103 * w32.c (system_process_attributes): Likewise.
7104 * w32font.c (w32font_close): Likewise.
7105 * xfaces.c (x_free_gc): Likewise.
7106 * xselect.c (buffer): Likewise.
7108 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7110 * process.c (send_process): Keep decoded string in a local
7111 variable and protect it from GC. (Bug#3521)
7113 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7115 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7116 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7118 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7120 * xdisp.c (start_display, handle_face_prop)
7121 (move_it_vertically_backward, cursor_row_fully_visible_p)
7122 (redisplay_window, try_window_id, produce_image_glyph):
7123 Delete some #ifdef-ed out code chunks that are now obsolete.
7125 * xterm.c (x_update_window_begin, x_new_focus_frame)
7126 (x_scroll_bar_handle_click, handle_one_xevent)
7127 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7128 (x_make_frame_visible, x_make_frame_invisible)
7129 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7130 code chunks that are now obsolete.
7132 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
7134 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7135 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7136 for hours, when optimzation is enabled.
7137 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7138 (xd_read_message): Make them static.
7140 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7142 * term.c (turn_on_face): Allow simultaneously bold and dim
7143 terminal faces (Bug#3530).
7145 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
7147 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7149 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7150 truncation glyphs (Bug#3686).
7152 2009-06-27 Glenn Morris <rgm@gnu.org>
7154 * m/pmax.h: Restore file, with only netbsd portions.
7156 2009-06-26 David Reitter <david.reitter@gmail.com>
7158 * nsterm.m (keydown): Avoid infinite loop.
7160 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7162 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7163 the arg FORCE_SYMBOL.
7165 2009-06-25 Kenichi Handa <handa@m17n.org>
7167 * fontset.c (fontset_find_font): When a usable rfont_def is found
7168 in a fallback font-group, make it the first element of the group.
7170 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
7172 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7174 2009-06-24 Kenichi Handa <handa@m17n.org>
7176 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7178 (fontset_font): Record the availability of a font for C both in
7179 the realized fontsets of the current one and the default one.
7181 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7183 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7184 conditional, it is always defined on AIX.
7186 2009-06-23 Miles Bader <miles@gnu.org>
7188 * window.c (Vrecenter_redisplay): New variable.
7189 (syms_of_window): Initialize it.
7190 (Qtty): New extern declaration.
7191 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7193 2009-06-23 Jim Meyering <meyering@redhat.com>
7195 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7196 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7197 pointer dereferences are guaranteed to be valid.
7199 2009-06-23 Kenichi Handa <handa@m17n.org>
7201 * emacs.c (main): Call init_font ().
7203 * font.h (Vfont_log): Extern it.
7204 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7206 * font.c (font_sort_entities, font_list_entities)
7207 (font_matching_entity, font_open_entity)
7208 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7209 (Vfont_log): Delete static.
7210 (font_log_env_checked): Delete this variable.
7211 (font_add_log): Don't check font_log_env_checked.
7212 (font_deferred_log): Check Vfont_log.
7213 (init_font): New function.
7215 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7217 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7219 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7221 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7223 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7224 (face_for_char): Don't call font_deferred_log here.
7225 (font_for_char): Likewise.
7227 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
7229 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7230 rather than its background_width for drawing the overline and
7231 underline (Bug#489).
7233 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7234 rather than its background_width for drawing the overline and
7235 underline (Bug#489).
7236 (xg_default_icon_file): New variable.
7237 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7238 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7240 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7241 (load_overlay_strings): Remove externs.
7242 (fast_find_position): Function deleted.
7243 (mouse_face_from_buffer_pos): New function, based on
7244 fast_find_position. Correctly handle before-strings,
7245 display-strings, and after-strings (Bug#1220).
7246 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7248 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7250 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7251 (move_it_in_display_line_to, move_it_in_display_line_to)
7252 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7254 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7258 2009-06-21 Jason Rumney <jasonr@gnu.org>
7260 * w32term.c (keyboard_codepage): New static variable.
7261 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7262 (w32_read_socket) [WM_CHAR]: Use it to decode character
7264 (w32_initialize): Initialize it.
7265 (codepage_for_locale): New function.
7267 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
7269 * process.c (status_message): Pass Faset index argument as a lisp
7270 object, so as to work with USE_LISP_UNION_TYPE.
7272 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7274 * coding.c (Ffind_coding_systems_region_internal):
7275 Cache checked characters.
7277 2009-06-18 Kenichi Handa <handa@m17n.org>
7279 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7281 2009-06-18 Andreas Schwab <aschwab@redhat.com>
7283 * xdisp.c (redisplay_internal): Check that the frame is still
7284 live after redisplay of its windows.
7285 (redisplay_windows): Check that the window is still live.
7287 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7289 * coding.c (detect_coding_utf_16): Fix previous change.
7291 2009-06-16 Kenichi Handa <handa@m17n.org>
7293 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7294 UTF-16 by checking the dispersion of Eth and Oth bytes.
7296 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7298 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7300 2009-06-15 Kenichi Handa <handa@m17n.org>
7302 * process.c (status_message): Fix previous change. Be sure to
7303 decode a localized string.
7305 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7307 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7308 add comment explaining why.
7310 2009-06-14 Sidney Markowitz <sidney@sidney.com>
7312 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7314 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7316 * nsfont.m (ns_attribute_value): Remove.
7317 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7318 (ns_has_attribute): Shrink the normal range.
7319 (ns_findfonts): Don't worry about requested spec in determining
7321 (ns_get_covering_families): Retain scriptToFamilies.
7323 2009-06-14 Seiji Zenitani <zenitani@mac.com>
7325 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7327 2009-06-11 Kenichi Handa <handa@m17n.org>
7329 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7330 overhang for the static composition case.
7332 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7334 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7335 overhang for the automatic composition case.
7337 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7340 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
7342 * xdisp.c (get_next_display_element): When handling wrap-prefix
7343 and line-prefix, treat \n as a control character (bug#3502).
7345 2009-06-10 Kenichi Handa <handa@m17n.org>
7347 * font.c (font_parse_family_registry): Fix for one-char foundry.
7348 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7350 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7352 * process.c (status_message): Fix handling of multibyte signal
7355 2009-06-09 Jim Meyering <meyering@redhat.com>
7357 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7358 color name is missing.
7360 2009-06-09 Kenichi Handa <handa@m17n.org>
7362 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7363 FROM-CODE and TO-CODE are codepoints of CHARSET.
7365 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7367 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7369 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7371 Changes to support :script/:lang/:otf in NS font driver.
7372 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7373 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7374 indicate not part of font driver interface, and change callers.
7375 (ns_get_family): Remove pointless null check.
7376 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7377 ns_spec_to_descriptor, ns_descriptor_to_entity.
7378 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7379 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7380 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7381 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7382 (ns_get_req_script, ns_accumulate_script_ranges)
7383 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7385 (nsfont_list, nsfont_match): Use ns_findfonts.
7386 (nsfont_open): Use font descriptor instead of traits.
7387 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7388 (dump_glyphstring): Rename to ns_dump_glyphstring.
7390 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7392 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7394 * fontset.c (fontset_from_font): Remove NS-specific code.
7396 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
7398 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7401 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
7403 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
7405 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7407 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7409 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
7411 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7412 account for the overflowing of newlines into the last glyph on the
7413 display line (Bug#3482).
7415 2009-06-05 David Reitter <david.reitter@gmail.com>
7417 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7418 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
7419 Fns_selection_exists_p, Fns_selection_owner_p.
7421 2009-06-03 Jason Rumney <jasonr@gnu.org>
7423 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7424 available. (Bug#3379)
7426 2009-05-29 Kenichi Handa <handa@m17n.org>
7428 * coding.c (get_translation_table):
7429 Check Venable_character_translation.
7431 2009-05-26 David Reitter <david.reitter@gmail.com>
7433 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7434 (x_make_frame_visible): Move frame to front rather than calling
7436 (keyDown:): Do not swallow events that aren't re-sent if frame
7438 (drawRect:): Do not set visibility/iconified flags because
7439 drawRect may be called by NSView even if the frame is hidden.
7441 * nsfns.m (Fx_create_frame): Follow other ports in
7442 determining visibility; default to t. Ensure async_visible is set.
7444 2009-05-23 Eli Zaretskii <eliz@gnu.org>
7446 * dired.c (Ffile_attributes): Doc fix.
7448 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
7450 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7452 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7454 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7455 and xfont_scratch_props.
7456 (syms_of_xfont): Do it here instead.
7457 (xfont_find_ccl_program): Delete, unused.
7458 (xfont_open): Delete unused var `i'.
7460 2009-05-21 Kenichi Handa <handa@m17n.org>
7462 * fontset.c (Qlatin): Don't make it static.
7464 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7466 (xfont_scripts_cache, xfont_scratch_props): New variables.
7467 (Qlatin, Vscalable_fonts_allowed): Extern it.
7468 (xfont_list_pattern): Argument changed. Callers changed.
7469 Check Vscalable_fonts_allowed. Check the support of a script.
7470 (xfont_list): Don't reject a font spec with :script property.
7471 (xfont_has_char): Fix setting of encoding.
7472 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7473 xfont_scratch_props.
7475 2009-05-19 Kenichi Handa <handa@m17n.org>
7477 * font.c (font_sort_entities): Rename from font_sort_entites.
7480 2009-05-18 Kenichi Handa <handa@m17n.org>
7482 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7484 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7486 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7487 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7489 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7491 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7492 (x_delete_terminal): Dissociate resource database from display and
7493 then call XrmDestroyDatabase before closing display.
7495 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7497 * nsterm.m (ns_read_socket): Remove unused variable.
7498 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7499 whether selected frame is viable before raising it (based on patch
7500 by David Reitter), and improve commentary.
7501 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
7503 2009-05-15 Kenichi Handa <handa@m17n.org>
7505 * font.c (Ffont_spec): Check arguments.
7507 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
7509 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7510 weight when testing attributes (Bug#3282).
7512 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7514 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7515 what we expect to get in the next ConfigureNotify event.
7517 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7518 before Xft one (Bug#1696).
7520 2009-05-07 David Reitter <david.reitter@gmail.com>
7522 * nsfns.m (Fx_display_planes): Compute bitplanes using
7523 NSBitsPerPixelFromDepth (Bug#3207).
7525 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
7527 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7529 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
7531 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7533 2009-05-07 David Reitter <david.reitter@gmail.com>
7535 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7536 Respect mouse face background.
7538 2009-05-07 David Reitter <david.reitter@gmail.com>
7540 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7541 Mouse movement/highlight: bracket drawing operations
7542 in ns_update_begin and ns_update_end.
7544 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7546 * nsfns.m (ns_get_screen): Rewrite.
7547 Don't presume selected-frame is of type `ns'.
7549 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7552 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7554 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7556 * keyboard.h (add_user_signal): Fix typo in extern.
7558 * lisp.h (add_user_signal): Remove extern.
7560 * unexelf.c (unexec): Consider a section to precede the .bss section
7561 if its addresses overlap that of .bss.
7562 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7563 instead of dumping process.
7565 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7567 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7569 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7571 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7573 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7575 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7578 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7580 * process.c (read_process_output): Make sure the current buffer is
7583 * coding.c (record_conversion_result): Don't modify
7584 Vlast_code_conversion_error for successful result.
7585 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7587 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7589 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
7590 (load_charset_map): Remove unnecessary code.
7592 2009-04-30 David Reitter <david.reitter@gmail.com>
7594 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
7597 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
7599 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7601 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7602 face_at_buffer_position.
7603 (face_before_or_after_it_pos, get_next_display_element)
7604 (note_mouse_highlight): Update face_at_buffer_position call.
7606 * term.c (term_mouse_highlight):
7607 * msdos.c (IT_note_mouse_highlight):
7608 * fontset.c (Finternal_char_font):
7609 * font.c (font_at, font_range): Update face_at_buffer_position call.
7611 * dispextern.h (face_at_buffer_position): Update prototype.
7613 2009-04-30 Kenichi Handa <handa@m17n.org>
7615 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
7617 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7619 * callproc.c (Fcall_process): Fix GC protection. Make sure
7620 current buffer is always restored.
7622 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7624 * atimer.c (init_atimer): Also clear stopped_atimers.
7626 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7628 * process.c (create_process): Clean up merger residues of
7631 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
7633 * lread.c (Vread_circle): New variable.
7634 (read1): Disable recursive read if Vread_circle is nil.
7636 2009-04-29 Kenichi Handa <handa@m17n.org>
7638 * fontset.h (set_default_ascii_font): Delete extern.
7640 * fontset.c (set_default_ascii_font): Delete this unused function.
7642 * frame.c (x_set_font): When ARG is a font-object, check if the
7643 font-object matches with the ASCII font-spec of the frame's
7644 fontset. If not, create a new fontset for the frame. (Bug #3075)
7646 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7648 * fns.c (Flocale_info): Protect vector from GC during decoding.
7650 * process.c (Fstart_process): Protect argv strings from GC during
7653 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7655 * sysdep.c: Include <ctype.h>.
7657 2009-04-27 David Reitter <david.reitter@gmail.com>
7659 * nsfont.m (nsfont_open): Remove unused variable shrink.
7660 Remove commented-out code.
7662 2009-04-26 Johan Bockgård <bojohan@gnu.org>
7664 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7666 2009-04-25 Jason Rumney <jasonr@gnu.org>
7668 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7670 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7672 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7673 Swap bytes in short integer if fringe bitmap width > 8.
7675 2009-04-23 Kenichi Handa <handa@m17n.org>
7677 * xfaces.c (Fx_list_fonts): If a font size is specified in
7678 PATTERN, set it in returned scalable fonts.
7680 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
7682 * keyboard.c (Fset_input_meta_mode): Doc fix.
7684 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7686 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
7688 * coding.c (Fterminal_coding_system): Doc fix.
7690 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7691 (Fx_display_pixel_height, Fx_display_planes)
7692 (Fx_display_color_cells, Fx_server_max_request_size)
7693 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7694 (Fx_display_mm_height, Fx_display_mm_width)
7695 (Fx_display_backing_store, Fx_display_visual_class)
7696 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7697 Doc fixes, replacing "terminal id" with "terminal object".
7698 (check_x_display_info): Handle terminal objects instead of
7701 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7702 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
7703 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7704 Doc fixes, replacing "terminal id" with "terminal object".
7706 2009-04-21 Kenichi Handa <handa@m17n.org>
7708 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
7709 (font_score): Check AVGWIDTH too.
7711 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7713 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7714 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
7716 2009-04-19 Jason Rumney <jasonr@gnu.org>
7718 The following changes fix Bug#3005 for wide glyphs on each platform,
7719 without reintroducing Bug#1258 for stretch glyphs.
7721 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7722 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7723 get_phys_cursor_geometry.
7725 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
7726 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7727 using get_phys_cursor_geometry.
7729 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7730 correctly calculated.
7732 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7734 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7735 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
7736 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7739 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7741 * font.c (font_put_frame_data): Use xfree instead of free.
7743 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
7745 * w32font.c (Qja, Qko): Remove declarations.
7746 (syms_of_w32font): Don't DEFSYM them.
7748 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
7750 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7752 * font.h (Qja, Qko): Extern them.
7754 * ftfont.c (Qja, Qko): Remove declarations.
7756 * xfont.c (Qja, Qko): Remove declarations.
7758 2009-04-17 Kenichi Handa <handa@m17n.org>
7760 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7761 string from a vector to handle Latin-1 characters correctly.
7763 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7764 entity even if the cache hits.
7766 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7768 * search.c (boyer_moore): Use zero as marker value for a possible
7769 match instead of depending on overflow behavior. (Bug#2844)
7771 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7772 * lisp.h: Adjust prototypes.
7774 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
7776 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7779 2009-04-16 Kenichi Handa <handa@m17n.org>
7781 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
7783 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7786 * ftfont.c (Qja, Qko): Don't make them static.
7787 (enum ftfont_cache_for): New enum.
7788 (fc_charset_table): Undo the previous change.
7789 (ftfont_get_latin1_charset): Delete it.
7790 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7791 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
7792 non-scarable font, try to get AVERAGE_WIDTH.
7793 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7794 Change ft_face_cache from a list of a hash-table. Don't check
7795 `ja' and `ko' adstyle here.
7796 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7797 FTFONT_CACHE_FOR_CHARET.
7798 (ftfont_get_charset): Undo the previous change.
7799 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
7800 (ftfont_close): Likewise.
7801 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7803 * font.c (font_sort_entites): Change the meaning of the arg
7804 BEST-ONLY. Don't optimize for VEC of lenght 1.
7805 (font_select_entity): Just return the value of font_sort_entites.
7807 * xfaces.c (merge_face_vectors): Reflect font properties in
7808 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7809 font_clear_prop if a face attribute doesn't change.
7811 * charset.h (charset_ksc5601): Extern it.
7813 * charset.c (charset_ksc5601): New variable.
7814 (Fdefine_charset_internal): Set charset_ksc5601.
7815 (init_charset_once): Initialize charset_ksc5601 to -1.
7817 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7819 * fileio.c (history_delete_duplicates): Remove unused declaration.
7821 * callint.c (history_delete_duplicates): New declaration.
7822 (Fcall_interactively): Remove command history duplicates when
7823 history_delete_duplicates is true.
7825 2009-04-14 Eli Zaretskii <eliz@gnu.org>
7827 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7829 2009-04-14 Kenichi Handa <handa@m17n.org>
7831 * font.c (Ffont_info): Fix docstring. Fix the second element of
7832 the returned value (bug#2949).
7834 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
7836 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7838 2009-04-14 Kenichi Handa <handa@m17n.org>
7840 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7841 encoding charset is ascii_compatible.
7843 * charset.c (Fdefine_charset_internal): Make charset
7844 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7845 code_offset is 0, and covers all ASCII characters.
7847 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7849 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7850 (ns_string_to_pasteboard_internal):
7851 * nsmenu.m (process_dialog):
7852 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7853 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7854 * lisp.h (Fx_load_color_file): Declare.
7856 2009-04-13 Kenichi Handa <handa@m17n.org>
7858 * font.c (font_delete_unmatched): Preserve the order of list elements.
7859 (font_select_entity): Suppress the code to optimize for the same
7861 (font_load_for_lface): Get a font that supports at least ASCII
7864 * ftfont.c (Qja, Qko): New variables.
7865 (fc_charset_table): Delete uniquifier data for iso8859-1.
7866 (ftfont_get_latin1_charset): New function.
7867 (get_adstyle_property): New function.
7868 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7870 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7871 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7873 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
7874 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
7875 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7877 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7878 (syms_of_ftfont): DEFSYM Qja and Qko.
7880 2009-04-09 Kenichi Handa <handa@m17n.org>
7882 * charset.c (map_charset_chars): For a charset of `superset'
7883 method, fix calculation of code range.
7885 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7886 from the list of extra properties.
7887 (font_clear_prop): Be sure to delete `:name' font property.
7889 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7891 * dispnew.c (redraw_overlapping_rows): Fix detection of
7892 overlapping for topmost and bottommost rows.
7894 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
7896 2009-04-06 Jason Rumney <jasonr@gnu.org>
7898 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7900 2009-04-06 Kenichi Handa <handa@m17n.org>
7902 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7904 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7906 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7908 * ftfont.c (ftfont_open): Fix checking of the return value of
7909 FT_Load_Char. Fix setting font->underline_thickness.
7911 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
7913 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7914 (Fterminal_parameters, Fterminal_parameter)
7915 (Fset_terminal_parameter): In doc string, refer to terminal
7916 objects rather than terminal ids.
7918 2009-04-04 Eli Zaretskii <eliz@gnu.org>
7920 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7921 ret_lim_data. (Bug#2867)
7923 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
7925 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7926 so they don't get wider than the window, matching 2006-01-23
7927 change to the partner function in xdisp.c (Bug#2800).
7929 2009-04-03 Kenichi Handa <handa@m17n.org>
7931 * print.c (print_object): Make each lowest sub_char_table start a
7932 new line (Bug#2866).
7934 2009-04-02 Kenichi Handa <handa@m17n.org>
7936 * fontset.c (fontset_font): Record no-font when a fontset
7937 explicitly tells not to try another font-specs.
7939 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7941 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7943 2009-03-30 Kenichi Handa <handa@m17n.org>
7945 * fontset.c (fontset_from_font): Specify only registry in a
7946 font-spec for all characters supported by that registry.
7948 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7949 even if HAVE_M17N_FLT is not defined.
7951 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7953 * ftfont.c: Conditionalize prototyping and use of
7954 ftfont_variation_glyphs.
7956 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7958 * frame.c (delete_frame): Work around compiler bug.
7960 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7961 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7962 Some more EMACS_INT.
7963 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7965 * xdisp.c (dump_glyph): Fix typo.
7967 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7968 (adjust_markers_gap_motion, adjust_markers_for_delete)
7969 (adjust_markers_for_insert, adjust_point)
7970 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7971 (make_gap, copy_text, count_size_as_multibyte, insert)
7972 (insert_and_inherit, insert_before_markers)
7973 (insert_before_markers_and_inherit, insert_1)
7974 (count_combining_before, count_combining_after, insert_1_both)
7975 (insert_from_string, insert_from_string_before_markers)
7976 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7977 (insert_from_buffer_1, adjust_after_replace)
7978 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7979 (replace_range_2, del_range, del_range_1, del_range_byte)
7980 (del_range_both, del_range_2, modify_region)
7981 (prepare_to_modify_buffer, signal_before_change)
7982 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7983 for buffer positions and sizes.
7984 * lisp.h: Adjust prototypes accordingly.
7986 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7987 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7988 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7990 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7992 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7994 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7995 lines and columns so we keep the same pixel height and width.
7997 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7998 the property _NET_WM_STATE has changed.
7999 (x_handle_net_wm_state): New function to update frame parameter
8001 (x_term_init): Initialize atoms for _NET_WM_STATE.
8003 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8005 2009-03-27 Kevin Ryde <user42@zip.com.au>
8007 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8008 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8009 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8010 (Fgpm_mouse_stop): Pass that new parameter.
8011 * termhooks.h (close_gpm): Adjust prototype.
8013 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8015 * lisp.h (Fx_focus_frame): Declare.
8017 * callint.c (Fcall_interactively): For '^' just delegate the work to
8018 handle-shift-selection.
8019 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8021 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8023 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8025 * data.c (Qinteractive_form): New variable.
8026 (Finteractive_form): Use it.
8028 * eval.c (Fcommandp): Use Qinteractive_form.
8030 2009-03-24 Jason Rumney <jasonr@gnu.org>
8032 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8033 Calculate total size precisely. Decode environment variables
8034 before substituting. (Bug#38)
8036 2009-03-24 Kenichi Handa <handa@m17n.org>
8038 * font.c (find_font_encoding): Return Qnil for unsupported
8039 encoding (Bug#2722).
8041 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8043 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8046 2009-03-22 Alan Mackenzie <acm@muc.de>
8048 * callint.c (Finteractive): Clarify the doc string - even
8049 promptless elements need \n separators.
8051 2009-03-22 Jason Rumney <jasonr@gnu.org>
8053 * w32term.c (syms_of_w32term): Doc fix for
8054 x-use-underline-position-properties.
8056 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8058 * w32.c (getpwuid): Change argument type to unsigned.
8059 (struct w32_id): Change type of `rid' member to unsigned.
8060 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8061 argument ID to unsigned. All callers changed.
8062 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8064 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8066 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8067 negative, produce a float value.
8069 * dired.c (make_uid, make_gid): New functions.
8070 (Ffile_attributes): Use them to avoid negative UID and GID.
8072 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8074 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8075 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8076 Fix typos in docstrings.
8078 2009-03-19 Kenichi Handa <handa@m17n.org>
8080 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8081 changed, use font_load_for_lface to get a new font object.
8082 Call free_realized_fontset after handling ASCII font change.
8084 * frame.c (x_set_font): Handle the case that ARG is a cons.
8086 2009-03-19 Glenn Morris <rgm@gnu.org>
8088 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8090 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8092 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8094 2009-03-19 Kenichi Handa <handa@m17n.org>
8096 * charset.c (load_charset_map_from_file): When a mapfile can't be
8097 loaded, signal an error.
8099 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8101 * dired.c (Ffile_attributes): Make sure UID and GID are always
8102 positive, even if the value is too large for a positive EMACS_INT.
8105 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8107 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8109 * xmenu.c (xdialog_show): Move Fredisplay call ...
8110 (Fx_popup_dialog): ... here.
8112 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8114 * dired.c (file_name_completion): Disable the first optimization just
8115 installed, since it is not implemented correctly.
8117 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8119 * dired.c (file_name_completion): Check completion-ignored-extensions
8120 only if the entry can affect bestmatch.
8121 Stop the search early, as Ftry_completion already does.
8123 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
8125 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8127 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
8129 * keyboard.c (parse_menu_item): Don't display remappings as menu
8130 equivalent bindings (Bug#788).
8132 2009-03-15 Jason Rumney <jasonr@gnu.org>
8134 * w32term.h (WM_EMACS_PAINT): New message.
8135 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8136 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8137 before passing to lisp thread. (Bug#950)
8139 2009-03-14 David Reitter <david.reitter@gmail.com>
8141 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8142 variable as it was never reset.
8143 (ns_term_init): Remove initialization of Lisp-settable defaults
8144 and ns_expand_space.
8145 (-setPanelFromDefaultValues): Remove ns_expand_space.
8146 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8147 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8148 i.e. no additional spacing, similar to Carbon port.
8150 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8151 * nsfns.m (ns-popup-prefs-panel): Remove.
8153 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8155 * sound.c (alsa_configure): Remove call to deprecated
8156 snd_pcm_sw_params_set_xfer_align.
8158 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
8160 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8161 after clicking in a detached tool bar.
8162 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8164 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8166 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8167 int/Lisp_Object mixup).
8169 2009-03-13 Kenichi Handa <handa@m17n.org>
8171 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8172 Handle NAME nil and t correctly. Callers changed.
8173 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8174 (set_fontset_font): Change ARG to a vector. Handle range_list in
8176 (Fset_fontset_font): Fix the case that TARGET is both a script
8177 name and charset name. Adjust the arg to set_fontset_font for
8179 (fontset_from_font): Fix previous change.
8180 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8181 entry. If FONTSET is the default fontset, don't set the extra
8182 slot of the returning char-table.
8184 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
8186 * nsfns.m (Fx_close_connection): Doc fix.
8187 (Fns_do_applescript): Reflow docstring.
8188 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8189 (Fx_display_pixel_width, Fx_display_pixel_height)
8190 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8191 Fix typos in docstrings.
8192 (Fns_set_alpha): Fix typos in error messages.
8194 2009-03-12 David Reitter <david.reitter@gmail.com>
8196 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8197 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8198 were used for such events.
8200 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8201 (toggleToolbar, performDragOperation, runHelp): Use it.
8203 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8204 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8206 2009-03-11 Kenichi Handa <handa@m17n.org>
8208 * font.h (font_open_by_spec): Extern it.
8210 * font.c (font_open_by_spec): New function.
8211 (font_open_by_name): Use font_open_by_spec.
8213 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8214 fontset of the frame.
8216 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8217 modify the default font of frames that use this fontset.
8218 (num_auto_fontsets): New variable.
8219 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8220 name. Be sure to set FONTSET_ASCII to the correct font name.
8221 (update_auto_fontset_alist): New function.
8223 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
8225 * makefile.w32-in: Update dependencies.
8227 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8229 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8231 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8233 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8235 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
8237 * lread.c (Feval_buffer): Doc fix.
8239 2009-03-09 Kenichi Handa <handa@m17n.org>
8241 * charset.c (Qfile_name_handler_alist): Extern it.
8242 (load_charset_map_from_file): Temporarily bind
8243 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8245 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8247 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8248 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
8250 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8252 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8253 (x_set_window_size): Change back to calculated method of setting
8254 toolbar height under Cocoa. (Bug#2546)
8255 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8256 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8258 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8260 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8261 accelerator in parens under GNUstep.
8263 2009-03-06 Kenichi Handa <handa@m17n.org>
8265 These changes are to detect incorrect composition sequence without
8266 looking ahead the source. (Bug#2370)
8268 * coding.h: Include "composite.h".
8269 (enum compisition_state): New enum.
8270 (struct compisition_status): New struct.
8271 (struct iso_2022_spec): New member cmp_status.
8272 (struct emacs_mule_spec): New struct.
8273 (struct coding_system): New members ctext_extended_segment_len and
8274 embedded_utf_8. Change the union member
8275 spec.emacs_mule_full_support to spec.emacs_mule.
8277 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8278 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8279 (MAX_ANNOTATION_LENGTH): Define to 5.
8280 (ADD_COMPOSITION_DATA): New arg nbytes.
8281 (emacs_mule_char): New arg cmp_status.
8282 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8283 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8284 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8285 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8286 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8287 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8288 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8289 (EMACS_MULE_COMPOSITION_END): New macro.
8290 (emacs_mule_finish_composition): New function.
8291 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8292 (decode_coding_emacs_mule): Avoid long looking ahead while
8293 handling composition.
8294 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8295 (ENCODE_COMPOSITION_RULE): New macro.
8296 (finish_composition): New function.
8297 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8298 (DECODE_COMPOSITION_START): New implementation.
8299 (DECODE_COMPOSITION_END): Likewise.
8300 (STORE_COMPOSITION_RULE): New macro.
8301 (decode_coding_iso_2022): Avoid long looking ahead while handling
8302 composition, CTEXT extended segment, and embedded UTF-8.
8303 (setup_coding_system): For a coding of type iso-2022, reset
8304 CODING_ISO_EXTSEGMENT_LEN (coding) and
8305 CODING_ISO_EMBEDDED_UTF_8 (coding).
8306 (get_translation): Delete arguments last_block, from_nchars,
8307 to_nchars. Callers changed.
8308 (produce_chars): Don't modify charbuf. Adjusted for the change of
8310 (produce_composition): Adjust for the new annotation sequence.
8311 (handle_composition_annotation): Likewise.
8312 (consume_chars): Adjust for the change of get_translation.
8314 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8316 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
8318 2009-03-05 Kenichi Handa <handa@m17n.org>
8320 * font.c (font_select_entity): New function.
8321 (font_find_for_lface): Use font_select_entity to select a font.
8323 * fontset.c (fontset_find_font): If a font found without
8324 restricting to the characters C doesn't support C, try to find a
8325 font with C restriction.
8327 2009-03-04 Nikolaj Schumacher <me@nschum.de>
8329 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8331 2009-03-04 Jason Rumney <jasonr@gnu.org>
8333 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8334 characters that have already been read. (Bug#2569)
8336 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8337 Log an error message if check_image_size failed.
8338 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8339 (gs_load): Mention max-image-size in size error message. (Bug#2560)
8341 2009-03-02 Eli Zaretskii <eliz@gnu.org>
8343 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8344 when decoding process output.
8346 2009-03-01 Richard M Stallman <rms@gnu.org>
8348 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8350 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8352 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8354 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8355 (decode_coding_emacs_mule, decode_coding_iso_2022)
8356 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8357 (decode_coding_raw_text, decode_coding_charset)
8358 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8359 Honor inhibit-eol-conversion. (Bug #2186)
8361 2009-02-28 Jason Rumney <jasonr@gnu.org>
8363 * coding.c (detect_coding_charset): If not checking latin extra,
8364 fail on characters between 0x80 and 0xA0. (Bug#2354)
8366 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8368 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
8369 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
8371 2009-02-27 Glenn Morris <rgm@gnu.org>
8373 * callint.c (Finteractive): Doc fix.
8375 2009-02-27 Kenichi Handa <handa@m17n.org>
8377 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8379 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
8381 * font.c (font_style_to_value): Set value for unknown symbols to
8383 (weight_table, slant_table, width_table): Treat "unspecified" as
8386 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
8388 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8390 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
8392 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8393 error as soon as a recursive load is detected.
8395 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8397 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8400 2009-02-24 Kenichi Handa <handa@m17n.org>
8402 * fontset.c (fontset_find_font): Fix the condition for checking
8405 2009-02-24 Glenn Morris <rgm@gnu.org>
8407 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8408 whitespace that confuses documentation.
8410 2009-02-23 Miles Bader <miles@gnu.org>
8412 * process.c (Flist_system_processes, Fprocess_attributes)
8413 (syms_of_process): Rename `system-process-attributes' to
8414 `process-attributes'.
8416 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8418 * coding.h (struct coding_system): Make safe_charsets a pointer to
8420 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8422 (SAFE_CHARSET_P): Likewise.
8423 (setup_iso_safe_charsets): Properly setup safe_charsets.
8424 (Fdefine_coding_system_internal): Likewise.
8425 (setup_coding_system): Likewise. Remove unneeded casts.
8426 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8427 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8430 * insdel.c (del_range_2): Don't modify gap contents when called
8431 from decode_coding_object. (Bug#1809)
8433 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
8435 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8437 (Ftype_of): Recognize font objects.
8439 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8441 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8444 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8446 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8447 async_iconified. Based on a patch by Christian Lynbech
8448 <christian.lynbech@tieto.com>.
8449 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8451 2009-02-20 Glenn Morris <rgm@gnu.org>
8453 * syntax.c (Fskip_chars_forward): Fix doc typo.
8455 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
8457 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8459 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
8461 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8463 2009-02-19 Kenichi Handa <handa@m17n.org>
8465 * coding.c (detect_coding): Preserve coding->mode.
8466 Don't overflow coding->carryover. (Bug#2370)
8468 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8470 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8472 2009-02-18 Kenichi Handa <handa@m17n.org>
8474 * font.c (font_check_otf_features): Fix handling of `nil' element.
8475 (Ffont_spec): Describe :lang and :otf in the docstring.
8477 2009-02-16 Andreas Schwab <schwab@suse.de>
8479 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8482 2009-02-16 Kenichi Handa <handa@m17n.org>
8484 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
8487 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
8489 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8491 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8492 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8494 2009-02-14 Eli Zaretskii <eliz@gnu.org>
8496 * msdos.c (MAX_SCREEN_BUF): New macro.
8497 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8498 Encode the entire run of glyphs sharing the same face, instead of
8499 doing that one glyph at a time (fixes a bug with displaying
8500 double-size characters).
8502 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8504 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8506 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8507 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
8508 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
8510 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
8511 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
8513 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8515 * keyboard.c (adjust_point_for_property): Allow stopping between two
8518 2009-02-12 Jason Rumney <jasonr@gnu.org>
8520 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8521 (add_font_entity_to_list): Call check_face_name even when family
8524 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8525 Release DC when finished. Use NULL window to refer to desktop.
8526 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
8528 * w32font.c (add_font_entity_to_list): Fix check for substituted
8529 raster fonts. (Bug#2219)
8531 2009-02-12 Kenichi Handa <handa@m17n.org>
8533 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8534 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8535 (autocmp_chars): Use fast_looking_at. Don't compose more
8536 characters than MAX_COMPOSITION_COMPONENTS.
8537 (find_automatic_composition): While looking forward and backward,
8538 check static composition. Fix where to stop looking forward.
8539 (composition_adjust_point): Fix checking of static composition.
8540 (Fcomposition_get_gstring): Pay attention to
8541 MAX_COMPOSITION_COMPONENTS.
8543 * lisp.h (fast_looking_at): Extern it.
8545 * search.c (fast_looking_at): New function.
8547 * term.c (encode_terminal_code): Adjust for the change of
8548 <struct glyph>.u.cmp.to.
8549 (append_composite_glyph): Likewise.
8551 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
8552 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8554 (append_composite_glyph): Adjust for the change of
8555 <strcut glyph>.u.cmp.to.
8557 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
8559 * casetab.c (init_casetab_once):
8560 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8561 * font.c (font_update_lface):
8562 * fontset.c (Fnew_fontset):
8563 * ftfont.c (ftfont_drive_otf):
8564 * xfont.c (xfont_open):
8565 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8567 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8569 * fileio.c (Fwrite_region): !NILP -> CONSP.
8571 2009-02-10 Andreas Schwab <schwab@suse.de>
8573 * process.c (send_process): Properly relocate pointer into data
8574 when using encoded data. (Bug#2272)
8576 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8578 * coding.c (detect_coding_charset): Fix previous change.
8580 2009-02-08 Jason Rumney <jasonr@gnu.org>
8582 * w32fns.c (w32_hide_hourglass): Handle case where frame
8583 disappeared while hourglass was displayed. (Bug #2193)
8585 2009-02-07 Andreas Schwab <schwab@suse.de>
8587 * unexelf.c (unexec): Fix error message.
8589 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8591 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
8592 when modal window is active. (Bug #2152)
8593 (applicationShouldTerminate:): Remove now-unneeded while loop
8594 around NSRunAlertPanel.
8596 * nsmenu.m (popupSession): New file-global variable.
8597 (pop_down_menu): End the popupSession before closing dialog.
8598 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8599 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8600 don't query NSApp for events (just sleep instead).
8602 2009-02-07 Eli Zaretskii <eliz@gnu.org>
8604 * coding.c (syms_of_coding) <translation-table-for-input>:
8605 Modify doc string to discourage use for character code unification.
8607 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8609 * atimer.c (run_timers): Update pending_atimers.
8611 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
8613 * image.c (svg_load_image): Fix last change.
8615 * xfns.c (Fx_create_frame): Signal an error if no font is
8618 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
8620 * character.c (syms_of_character) <script-representative-chars>:
8621 Fix typo in docstring.
8623 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8625 * nsmenu.m (pop_down_menu): New function.
8626 (ns_popup_dialog): Call it on unwind.
8627 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8628 call timer_check() (Bug#2154).
8629 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8630 handling_signal is set.
8631 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8633 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
8635 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8637 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8639 * keyboard.c (poll_for_input_1, handle_async_input):
8640 Set handling_signal under HAVE_NS.
8642 2009-02-04 Glenn Morris <rgm@gnu.org>
8644 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8646 2009-02-04 Kenichi Handa <handa@m17n.org>
8648 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8650 * charset.c (Fchar_charset): New optional arg restriction.
8652 * coding.h (coding_system_charset_list): Extern it.
8654 * coding.c (coding_system_charset_list): New function.
8656 * composite.c: Include coding.h and termhooks.h.
8657 (composition_gstring_p): Fix for the terminal case.
8658 (composition_gstring_width): Likewise.
8659 (fill_gstring_body): Likewise.
8660 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8662 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8663 is within a composition.
8664 (Fcomposition_get_gstring): Fix the terminal case.
8666 * term.c (encode_terminal_code): Fix handling of composition.
8667 (produce_composite_glyph): For static composition, get pixel_width
8668 from struct composition.
8670 2009-02-02 Andreas Schwab <schwab@suse.de>
8672 * unexelf.c (unexec): Handle unaligned bss offset.
8674 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8676 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8677 XT,w32read_socket changes to ns_read_socket.
8679 * keyboard.c (handle_interrupt): Don't call
8680 quit_throw_to_read_char() under NS.
8682 * blockinput.h: Remove NS-specific code.
8684 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8686 * dispnew.c (window_change_signal): Don't try to get the size of a
8687 suspended tty frame.
8688 * term.c (Fresume_tty): Resize if the size has changed while the
8691 * alloc.c (mark_stack): Properly conditionalize previous change.
8693 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8695 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8696 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8697 Remove; this code is not used on Windows.
8699 2009-01-30 Eli Zaretskii <eliz@gnu.org>
8701 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8702 EOLs that also has stray ^M characters.
8704 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8706 * atimer.c (run_timers, alarm_signal_handler):
8707 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8708 * w32inevt.c (w32_console_read_socket):
8709 * w32term.c (w32_read_socket):
8710 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8712 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
8714 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8715 Initialize it as a relative filename pattern.
8716 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8717 (Fcall_process_region): Simplify temp file creation using
8718 temporary-file-directory.
8720 2009-01-29 Eli Zaretskii <eliz@gnu.org>
8722 * msdos.c: Rename pending_signals to msdos_pending_signals.
8723 (sig_suspender, sigprocmask): Adjust.
8725 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
8727 * keyboard.c (pending_signals): New var.
8728 (poll_for_input, input_available_signal, init_keyboard): Set it.
8729 (process_pending_signals): New function.
8731 * lisp.h (QUIT): Check pending_signals instead of
8732 interrupt_input_pending. Use process_pending_signals.
8734 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
8736 * process.c (wait_reading_process_output): Use process_pending_signals.
8738 * sysdep.c (emacs_write): Use process_pending_signals.
8740 * xterm.c (XTread_socket): Update pending_signals.
8742 * w32term.c (w32_read_socket): Update pending_signals.
8744 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8746 2009-01-29 Kenichi Handa <handa@m17n.org>
8748 * xftfont.c (xftfont_has_char): New function.
8749 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8751 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8753 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8755 (ns_query_color): New declaration.
8757 * nsterm.m (ns_confirm_quit): New variable.
8758 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8759 (EmacsApp-applicationShouldTerminate:): Use it.
8760 (EmacsPrefsController): Let user set it.
8761 (ns_query_color): New function.
8762 (ns_defined_color): Use it.
8763 (ns_initialize): Drop.
8764 (ns_term_init): Add two lines from ns_initialize(), and set
8765 input_interrupt_mode to nil.
8767 * image.c (svg_load_image): Don't right-shift background RGB when
8768 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
8770 2009-01-28 Kenichi Handa <handa@m17n.org>
8772 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8773 (fontset_get_font_group): Remember that no font-group is specified
8776 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
8778 * fns.c (concat): Check for string overflow (bug#1787).
8780 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8781 Quadruple undo limits (bug#1501).
8783 2009-01-27 Kenichi Handa <handa@m17n.org>
8785 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8786 directly use GT_Get_Char_index.
8788 * xftfont.c (struct xftfont_info): New member `index'.
8790 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8791 (Ffontset_font): Adjust for the change of fontset entry.
8793 2009-01-26 Kenichi Handa <handa@m17n.org>
8795 * fontset.c (fontset_find_font): Fix handling of non-cons return
8796 value of fontset_get_font_group.
8797 (fontset_font): Revert last change.
8799 2009-01-26 Jason Rumney <jasonr@gnu.org>
8801 * w32font.c (w32font_list_internal): Return quickly if registry is
8802 unknown. Simplify final return.
8803 (add_font_entity_to_list): Break complex logic down into more
8804 manageable chunks. Move unknown registry check to
8805 w32font_list_internal.
8807 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8809 Changes to remove Feval calls from GUI under NS.
8811 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8812 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8813 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8815 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8816 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8817 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8818 instead of NON_ASCII_KEYSTROKE_EVENT.
8819 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8820 (EmacsApp-applicationShouldTerminate:): Query user.
8821 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8824 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8826 * keyboard.c (kbd_buffer_get_event): Check for it.
8827 (keys_of_keyboard): Define lispy keys for
8828 ns-put/unput-working-text.
8830 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8832 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8834 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
8836 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
8837 setting current_buffer directly. (Bug#2044)
8839 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
8841 * fontset.c (fontset_font): If we know there is no font, don't do
8842 any work. (Bug#1952, bug#1990).
8844 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
8846 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8848 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
8849 (ns_no_defaults): New declaration.
8852 * nsterm.h (ns_no_defaults): New declaration.
8854 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
8856 * nsterm.m (ns_no_defaults): New variable.
8857 (ns_initialize): Don't read defaults when ns_no_defaults.
8858 (EmacsView-readSelectionFromPasteboard:)
8859 (writeSelectionToPasteboard:types:): New stubbed-out methods for
8860 NSServicesRequests protocol. (Bug#1435)
8861 (ns_dumpglyphs_stretch): New function.
8862 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
8863 of 2008-11-15 to other terms. (Bug#615)
8865 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8867 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8869 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8872 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8879 * nsterm.m: Remove '23' comments that indicated code added during
8880 update from emacs-20 -> emacs-23.
8882 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8884 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
8885 ns_alternate_modifier. (Bug#1217)
8887 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8888 Display all shortcuts, including those w/o super modifier.
8890 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8892 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
8894 * fileio.c (Vwrite_region_post_annotation_function)
8895 (Vwrite_region_annotation_buffers): New vars.
8896 (build_annotations_unwind): Just reset
8897 Vwrite_region_annotation_buffers.
8898 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8899 Call write-region-post-annotation-function.
8900 (build_annotations): Add to Vwrite_region_annotation_buffers if
8903 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8905 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8907 * nsfns.m (ns_do_applescript):
8908 Conditionalize typeUTF16ExternalRepresentation on Tiger.
8910 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8912 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8914 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8916 * nsmenu.m (NSMENUPROFILE): Change #if style.
8918 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8920 * nsterm.m (x_set_frame_alpha): Add prototype.
8921 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8922 handle Ctrl-tab. (Bug#1841)
8923 (ns_get_color): Use unsigned long long for scanned hex string value.
8924 (ns_term_shutdown): Abort on non SIGTERM signals.
8925 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
8926 (EmacsPrefsController-setPanelFromDefaultValues): New function.
8927 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
8928 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
8929 (ns_defined_color): Fix settings of the XColor variable fields:
8930 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
8932 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
8934 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8935 values in onTiger section.
8937 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
8939 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8940 Check return value of font_spec_from_name.
8941 (Fx_list_fonts): Doc fix. (Bug#1951)
8943 * font.c (font_spec_from_name): Return Qnil if font name could not
8945 (font_parse_name): Treat a `?' character as part of an XLFD.
8947 * fns.c (Fsubstring): Doc fix.
8949 2009-01-19 Kenichi Handa <handa@m17n.org>
8951 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
8952 (ftfont_list): Likewise.
8954 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
8956 * dbusbind.c (Fdbus_register_signal):
8957 * process.c (conv_sockaddr_to_lisp):
8958 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8960 * callproc.c (Fgetenv_internal): Doc fix.
8962 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
8964 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8965 it is not even used.
8967 2009-01-16 Glenn Morris <rgm@gnu.org>
8969 * font.c (Ffont_variation_glyphs): Silence compiler.
8971 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
8973 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8974 Reported by David Robinow <drobinow@gmail.com>.
8976 2009-01-15 Kenichi Handa <handa@m17n.org>
8978 * coding.c (detect_coding_system): Fix handling of null_byte_found.
8980 2009-01-14 Jason Rumney <jasonr@gnu.org>
8982 * frame.c (x_set_font): Always store a font to the font parameter,
8983 never a fontset. (Bug#1562)
8985 2009-01-14 Kenichi Handa <handa@m17n.org>
8987 * coding.c (TWO_MORE_BYTES): New macro.
8988 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
8990 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
8992 * font.c (font_clear_prop): If clearing the family, clear the font
8995 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
8997 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
8999 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9000 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9001 functions, use sizeof.
9003 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9005 * keyboard.c (read_char): Fix case where last_nonmenu_event
9006 returned a bad value with submenus. (Bug#447)
9008 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9010 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9011 family, clear the font width index too.
9013 2009-01-11 Jason Rumney <jasonr@gnu.org>
9015 * keyboard.c (cmd_error_internal): Exit when errors occur before
9016 frame creation and not in daemon mode. (Bug#1836)
9018 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9020 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9021 of a display vector, backtrack.
9022 (try_window_reusing_current_matrix): Check glyph type before
9023 referencing charpos member.
9025 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9029 * coding.c (inhibit_null_byte_detection): New variable.
9030 (detect_coding, detect_coding_system): Don't pay attention to null
9031 bytes if inhibit_null_byte_detection is non-zero.
9032 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9033 <inhibit-iso-escape-detection>: Doc fix.
9035 2009-01-09 Jason Rumney <jasonr@gnu.org>
9037 * w32font.c (add_font_entity_to_list): Don't report unknown
9038 Windows charset as any unrecognized registry. (Bug#1548)
9039 Only report Unicode Plane 2 fonts as unicode-sip.
9041 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9043 * xfaces.c (Fx_font_family_list): Delete function.
9044 Move compatibility version to faces.el.
9046 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9048 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9050 * frame.c (x_set_frame_parameters): Remember requested value for
9051 fullscreen before it's reset by the parameter handler.
9053 2009-01-09 Glenn Morris <rgm@gnu.org>
9055 * keyboard.c (last_command_char): For clarity, rename to...
9056 (last_command_event): ... and update all users.
9057 (last_input_char): For clarity, rename to...
9058 (last_input_event): ... and update all users.
9059 (last-command-char, last-input-char): Move to subr.el as aliases.
9060 * cmds.c, commands.h: Update for last_command_char rename.
9062 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9064 * font.c (font_open_for_lface): Handle unspecified height attribute.
9066 2009-01-08 Jason Rumney <jasonr@gnu.org>
9068 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9069 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9070 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9072 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9073 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9075 2009-01-07 Kenichi Handa <handa@m17n.org>
9077 * fileio.c (Finsert_file_contents): In the case of replace,
9078 remember the coding system used for decoding in
9079 coding_system (Bug#1039).
9081 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9082 breaking the loop. (Bug#870)
9083 (decode_coding_utf_16, decode_coding_emacs_mule)
9084 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9085 (decode_coding_charset): Likewise.
9087 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9089 * frame.c (x_set_frame_parameters): Make sure height (width) get
9090 applied when fullwidth (fullheight) is set. (Bug#1522)
9092 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9094 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9095 (utc_base): Declare as ULONGLONG, not long double.
9096 (convert_time_raw): Delete.
9097 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9098 (initialize_utc_base): New function.
9099 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9100 (convert_from_time_t): Use initialize_utc_base; compute result with
9102 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9104 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9106 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9107 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9108 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9109 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9110 [!subprocesses]: Define.
9111 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9112 (Flist_system_processes, Fsystem_process_attributes)
9113 [!subprocesses]: Call list_system_processes and
9114 system_process_attributes instead of returning Qnil.
9116 * dosfns.c (system_process_attributes, list_system_processes):
9119 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9121 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9122 Don't use the default (no-op) implementation.
9124 2009-01-03 Jason Rumney <jasonr@gnu.org>
9126 * keyboard.c (parse_modifiers_uncached): Wheel events are
9129 * w32term.c (x_query_colors, x_query_color): New functions.
9131 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9132 (svg_load_image): Cast returned pointers from dynamically loaded
9133 functions. Eliminate W32 specific code.
9135 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9137 * nsfns.m (x_set_foreground_color, x_set_background_color)
9138 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9139 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9140 x_ prefix instead of ns_. Update references.
9141 (syms_of_nsfns): Add a FIXME comment.
9143 * nsterm.m (x_set_cursor_type): New prototype.
9144 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9146 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9147 for Solaris instead of incorrectly providing Qutime and Qcutime.
9149 2009-01-02 Eli Zaretskii <eliz@gnu.org>
9151 * w32.c (process_times): Compute sum of utime and stime.
9152 (system_process_attributes): Add Qtime to the alist.
9154 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9155 and add them to the alist.
9157 * process.c (top level) <Qtime, Qctime>: New variables.
9158 (syms_of_process): staticpro them.
9159 (Fsystem_process_attributes): Add their documentation to the doc
9162 * process.h: Declare Qtime and Qctime.
9164 2009-01-02 Jason Rumney <jasonr@gnu.org>
9166 * image.c (Qgobject): New symbol.
9167 (syms_of_image): Initialize it.
9168 (init_svg_functions): Load some functions from gobject library.
9170 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9172 * frame.c (make_terminal_frame): Remove redundant code and useless
9175 2009-01-01 Andreas Schwab <schwab@suse.de>
9177 * process.c (conv_sockaddr_to_lisp): Add workaround for
9178 getsockname bug on BSD.
9180 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
9182 * xfns.c (x_create_tip_frame): Set border width of the X window.
9184 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9186 2009-01-01 Jason Rumney <jasonr@gnu.org>
9188 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
9189 Don't block input, as per earlier xterm.c changes.
9191 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9193 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9194 (ns_appkit_version_int): New function.
9195 (x-server-version): Use ns_appkit_version_int and follow 21+
9196 convention of returning 3 integers.
9198 2008-12-30 Kenichi Handa <handa@m17n.org>
9200 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9201 (CHAR_SURROGATE_PAIR_P): New macro.
9203 * font.h (struct font_driver): New member get_variation_glyphs.
9205 * font.c (font_range): Don't require a font for a variation selector.
9206 (Ffont_variation_glyphs): New function.
9207 (syms_of_font): Defsubr it.
9209 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9210 ftfont_variation_glyphs.
9211 (setup_otf_gstring): New function.
9212 (ftfont_drive_otf): Use it.
9213 (ftfont_shape_by_flt): Handle variation selector.
9214 (ftfont_variation_glyphs): New function.
9216 2008-12-30 Martin Rudalics <rudalics@gmx.at>
9218 * frame.c (Vemacs_iconified): Remove.
9220 2008-12-30 Jason Rumney <jasonr@gnu.org>
9222 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9223 WINDOWSNT too, as related changes have already been synced. (Bug#117)
9225 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
9227 * indent.c (Fvertical_motion): Don't advance iterator if we have
9228 reseated to the desired position.
9230 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9231 checking for pos match.
9233 2008-12-30 Kenichi Handa <handa@m17n.org>
9235 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9236 just get the low 8-bit of the code.
9238 * font.c (font_intern_prop): Validate str as multibyte.
9240 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9242 * dispextern.h (struct face): Move lface and hash from the middle
9245 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9247 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9249 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9250 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9251 instead of intervals.h.
9253 2008-12-26 Andreas Schwab <schwab@suse.de>
9255 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9258 2008-12-26 Martin Rudalics <rudalics@gmx.at>
9260 * textprop.c (Qminibuffer_prompt): New variable.
9261 (syms_of_textprop): Initialize it.
9262 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9263 in minibuffer-prompt face. (Bug#1662)
9265 2008-12-25 Jason Rumney <jasonr@gnu.org>
9267 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9269 2008-12-24 Jason Rumney <jasonr@gnu.org>
9271 * ralloc.c (r_alloc_reset_variable): New function.
9273 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9274 record of what points where. (Bug#716)
9276 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9278 * minibuf.c (read_minibuf): Follow the non-interactive case when
9279 running as a daemon, before detaching.
9281 2008-12-22 Andreas Schwab <schwab@suse.de>
9283 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9284 * gtkutil.c (free_widget_value): Use xfree instead of free.
9286 2008-12-22 Martin Rudalics <rudalics@gmx.at>
9288 * frame.c (delete_frame): New function derived from
9289 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9290 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9291 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9292 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9293 * frame.h: Extern delete_frame.
9294 * window.c (window_loop):
9295 * terminal.c (delete_terminal):
9296 * xterm.c (x_connection_closed):
9297 * xfns.c (Fx_hide_tip):
9298 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9300 2008-12-21 Jason Rumney <jasonr@gnu.org>
9302 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9303 when character maps to .notdef character.
9305 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9307 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9309 2008-12-20 Jason Rumney <jasonr@gnu.org>
9311 * frame.c (Fmake_terminal_frame): Raise an error when called from
9312 a graphical frame on Windows. (Bug#1325)
9314 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9316 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9318 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
9320 * minibuf.c (Fread_buffer): Doc fix.
9322 2008-12-20 Jason Rumney <jasonr@gnu.org>
9324 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9325 server name in UNC paths. (Bug#719)
9327 * coding.c (decode_coding): Clear chars_at_source flag when using
9330 2008-12-19 Daniel Engeler <engeler@gmail.com>
9332 * sysdep.c (serial_configure): Fix typo.
9334 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9336 * sysdep.c: Include alloca.h.
9337 (system_process_attributes): Add implementation for Solaris.
9339 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9341 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9343 Reorganize implementation of Flist_system_processes and
9344 Fsystem_process_attributes. No functional changes.
9345 * process.c: Don't #include pwd.h, grp.h and limits.h.
9346 (Flist_system_processes): Just call list_system_processes.
9347 (Fsystem_process_attributes): Just call system_process_attributes.
9348 (procfs_list_system_processes, time_from_jiffies)
9349 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9350 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9352 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9353 (list_system_processes): Rename from
9354 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9355 Provide a do nothing implementation.
9356 (system_process_attributes): Rename from
9357 procfs_list_system_processes.
9358 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9359 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9361 * w32.c (list_system_processes): Rename from
9362 w32_list_system_processes.
9363 (system_process_attributes): Rename from
9364 w32_system_process_attributes.
9366 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9368 * process.h (w32_list_system_processes)
9369 (w32_system_process_attributes): Remove.
9370 (list_system_processes, system_process_attributes):
9373 2008-12-19 Kenichi Handa <handa@m17n.org>
9375 * xfont.c (xfont_decode_coding_xlfd): New function.
9376 (xfont_encode_coding_xlfd): New function.
9377 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9378 (xfont_list): Decode and encode XLFD by iso-8859-1.
9379 (xfont_match): Likewise.
9380 (xfont_list_family): Likewise.
9381 (xfont_open): Likewise.
9383 * ftfont.c (ftfont_open): Generate a multibyte string if given
9386 * xftfont.c (xftfont_open): Generate a multibyte string if given
9389 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9391 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9393 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9394 clicked on a detached tool bar button.
9396 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9398 * emacs.c (main): Print and error and exit when no data is read
9401 2008-12-17 Jason Rumney <jasonr@gnu.org>
9403 * w32font.c (w32font_has_char): Always return -1.
9405 2008-12-16 Kenichi Handa <handa@m17n.org>
9407 * font.c (font_open_entity): Fix previous change.
9409 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9411 * process.c: Include <limits.h>.
9413 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
9415 * font.c (font_update_drivers): Fix mistake in reconstructing the
9418 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
9420 * font.c (font_clear_cache): Fix format of font cache data.
9422 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
9424 * xftfont.c (xftfont_open): Free Xft font pattern if
9425 XftFontOpenPattern fails.
9427 * xterm.c (x_free_frame_resources): Remove extraneous call to
9430 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9432 * xterm.c (x_delete_display): Move xim_close_dpy call to
9434 (x_delete_terminal): Call xim_close_dpy.
9436 2008-12-13 Jason Rumney <jasonr@gnu.org>
9438 * w32font.c (intern_font_name): New function.
9439 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9440 (w32font_open_internal, Fx_select_font): Decode font name.
9441 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9443 * w32font.h (intern_font_name): Declare new function.
9445 * w32uniscribe.c (add_opentype_font_name_to_list):
9446 Use intern_font_name.
9448 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9450 * frame.c (Fdelete_frame): Call free_font_driver_list.
9452 * font.c (free_font_driver_list): Implement missing function.
9454 * w32term.c (w32_term_init): Don't initialize the image cache
9455 here; it will be done in init_frame_faces.
9457 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9458 (struct x_display_info): Remove unused member null_pixel. New
9459 member xim_callback_data.
9461 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9462 (xim_initialize): Save pointer to callback function data.
9463 (xim_close_dpy): Free callback function data. Call XCloseIM,
9464 reverting 2008-11-04 change by David Smith.
9465 (x_term_init): Don't initialize the image cache here; it will be
9466 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9467 (x_delete_display): Free x_dnd_atoms member.
9469 2008-12-13 Kenichi Handa <handa@m17n.org>
9471 * font.c (font_rescale_ratio): Moved from xfaces.c.
9472 Argument type changed. Handle a font-spec too.
9473 (font_score): Check Vface_font_rescale_alist.
9474 (font_open_entity): Likewise. (Bug#1547)
9476 * xfaces.c (font_rescale_ratio): Moved to font.c.
9478 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9480 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9482 2008-12-12 Jason Rumney <jasonr@gnu.org>
9484 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9485 Vwindow_system_version to the real w32 major version.
9487 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9489 * term.c (init_tty): Move setting the terminal name before the
9490 potential user: maybe_fatal.
9492 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
9494 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9495 all callers changed. Call free_frame_faces to free the face cache.
9497 2008-12-11 Jason Rumney <jasonr@gnu.org>
9499 * w32font.c (fill_in_logfont): Don't assume symbol script means
9500 SYMBOL_CHARSET. (Bug#547)
9502 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9503 size for surrogates. (Bug#1096, bug#872)
9505 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9507 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9509 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9511 * process.c (Fsystem_process_attributes, syms_of_process):
9512 Fix typo in name of Ssystem_process_attributes.
9513 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9515 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9517 * syntax.c (Fmodify_syntax_entry): Doc fix.
9519 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9521 * font.c (Ffont_spec): Move usage to end of docstring.
9523 2008-12-10 Jason Rumney <jasonr@gnu.org>
9525 * w32font.c (Qcham): New symbol.
9526 (font_supported_scripts): Add cham, and comments for other new
9527 scripts in bitfield from OpenType spec.
9528 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9529 contain characters beyond the bmp.
9531 2008-12-10 Kenichi Handa <handa@m17n.org>
9533 * ftfont.c (fc_charset_table): Add "unicode-sip".
9534 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
9537 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9539 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9540 (Fcoding_system_put): Use QCdefault_char.
9541 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9543 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
9545 * xftfont.c (syms_of_xftfont): Fix typo.
9547 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9549 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9551 * emacs.c (main): Close daemon_pipe on exec.
9553 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
9555 * termchar.h (struct tty): New members termcap_term_buffer and
9556 termcap_strings_buffer.
9558 * term.c (encode_terminal_code): Free any previous memory blocks
9559 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
9560 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9561 All callers changed.
9562 (init_tty): Store termcap data and string buffers in new struct
9563 tty members termcap_term_buffer and termcap_strings_buffer.
9564 (delete_tty): Free them.
9565 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
9567 2008-12-07 Seiji Zenitani <zenitani@mac.com>
9569 * nsfns.m (ns_set_background_color): Remove code duplication.
9570 It was a substitute for face-transparency on OS X 10.3.
9572 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
9574 * coding.c (make_conversion_work_buffer): Disable buffer
9575 modification hooks in the work buffer.
9577 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9579 * process.c (procfs_system_process_attributes): If `nread' has a
9580 negative value, assign zero to it.
9582 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
9584 * eval.c (Vdebug_on_error): Doc fix.
9586 2008-12-05 Kenichi Handa <handa@m17n.org>
9588 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9589 second character is a combining character.
9591 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9593 * process.c (procfs_system_process_attributes): Don't use cmd,
9594 cmdsize, and q without initializing them first.
9596 2008-12-04 Jason Rumney <jasonr@gnu.org>
9598 * w32font.c (w32font_draw): Initialize orig_clip before getting
9599 it, and delete it when finished.
9601 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9603 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9604 case when running as a daemon before detaching.
9606 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
9608 * w32.c (init_environment): Don't unload library shell32.dll.
9610 2008-12-03 Kenichi Handa <handa@m17n.org>
9612 * font.c (font_at): Set `multibyte' at first.
9614 * coding.c (decode_coding_charset): Check type of an element of
9616 (encode_coding_emacs_mule): Be sure to set `code'.
9618 * fontset.c (face_for_char): Handle invalid charset property correctly.
9619 (font_for_char): Likewise.
9621 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
9623 * font.c (Fopen_font): Compute pixel size correctly.
9624 (font_update_lface): Handle fonts with corrupted size specs,
9625 i.e. non-int and non-float.
9627 * ftfont.c (ftfont_match): Initialize entity variable.
9628 (ftfont_resolve_generic_family): Avoid using uninitialized var.
9629 (ftfont_list_family): Initialize list var earlier.
9631 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9633 * xterm.c (x_draw_glyph_string): Fall back on
9634 underline_minimum_offset for underline position.
9636 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9638 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9640 * character.c (c_string_width): Specify the type for LEN.
9642 2008-12-03 Kenichi Handa <handa@m17n.org>
9644 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
9645 (decode_coding_utf_8): Likewise.
9646 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
9647 (produce_chars): Initialize consumed_chars to 0.
9649 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9651 * keyboard.c (make_lispy_position): Only use PT if the selected
9654 2008-12-02 Andreas Schwab <schwab@suse.de>
9656 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9658 * doprnt.c (doprnt1): Fix size of charbuf.
9660 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9662 * keyboard.c (timer_check): Revert last change.
9664 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
9666 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9668 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
9670 * makefile.w32-in: Update dependencies.
9671 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9673 2008-12-01 Andreas Schwab <schwab@suse.de>
9675 * font.c (register_font_driver): Use xmalloc.
9676 (font_put_frame_data): Likewise.
9678 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
9680 * xfaces.c (realize_x_face): Make abort condition clearer.
9682 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9684 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
9686 * keyboard.c (timer_check): After a timer runs, ensure that the
9687 selected window's buffer is current.
9689 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
9691 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9692 It was accidentally restored by the Unicode merge.
9694 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9696 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
9698 * w32proc.c: Include "coding.h".
9699 (Fw32_short_file_name): Encode filename passed to Windows API.
9700 (Fw32_long_file_name): Encode filename passed to Windows API and
9701 decode back the result. (Bug#1433)
9703 2008-11-29 Kenichi Handa <handa@m17n.org>
9705 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9706 not before accessing it.
9708 * charset.c (Fdefine_charset_internal): After calculating
9709 min_char, max_char, and fastmap, copy the charset structure again.
9710 (encode_char): Fix the previous change.
9712 2008-11-28 Seiji Zenitani <zenitani@mac.com>
9714 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9716 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9718 * nsterm.m (x_set_frame_alpha): New function.
9720 2008-11-27 Eli Zaretskii <eliz@gnu.org>
9722 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9724 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
9726 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9727 pointer to check_face_name.
9729 2008-11-27 Kenichi Handa <handa@m17n.org>
9731 * category.h (SET_CATEGORY_SET): Call set_category_set.
9732 (set_category_set): Extern it.
9734 * category.c (hash_get_category_set): New function.
9735 (Fmodify_category_entry): Adjusted for the change of
9736 char_table_ref_and_range. Call hash_get_category_set to get a
9737 category set to store in the table.
9739 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9742 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
9743 (DECODE_CHAR): Check if the decoder vector is ready.
9744 (ENCODE_CHAR): Check if the encoder char-table is ready.
9745 (maybe_unify_char): Extern it.
9747 * charset.c (Vchar_unified_charset_table): Delete it.
9748 (inhibit_load_charset_map): New variable.
9749 (temp_charset_work): New variable.
9750 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9751 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9753 (load_charset_map): Meaning of control_flag changed. If
9754 inhibit_load_charset_map is nonzero, setup a table in
9756 (load_charset): New argument control_flag.
9757 (map_charset_for_dump): New function.
9758 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9759 map_charset_for_dump.
9760 (Fdefine_charset_internal): If the charset method is MAP, load
9761 mapping tables by calling load_charset.
9762 (Funify_charset): Don't load a mapping table but directly set
9764 (maybe_unify_char): New function.
9765 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9766 Handle the case of inhibit_load_charset_map being nonzero.
9767 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9768 Handle the case of inhibit_load_charset_map being nonzero.
9769 (Fclear_charset_maps): Just free temp_charset_work.
9770 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9773 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9774 change of char_table_ref_and_range.
9775 (char_table_ref_and_range): Change the meaning of argument FROM
9776 and TO. Now the caller must provide initial values for *FROM
9779 * fontset.c (fontset_add): Adjusted for the change of
9780 char_table_ref_and_range.
9781 (fontset_get_font_group): Likewise.
9782 (Ffontset_info): Likewise.
9784 * keymap.c (describe_vector): Adjusted for the change of
9785 char_table_ref_and_range. For char-table, put boundary between
9786 non-ASCII and 8-bit characters.
9788 * print.c (print_object): For bool-vector, delete unnecessary
9789 check of ASCII_BYTE_P.
9791 2008-11-26 Jason Rumney <jasonr@gnu.org>
9793 * w32font.c (w32font_open_internal): Don't include external
9794 leading in font height. (Bug#879)
9796 2008-11-26 Glenn Morris <rgm@gnu.org>
9798 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9799 redefinition with ifdef. (Bug#1383)
9801 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9803 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9805 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9807 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9808 New EmacsView methods.
9809 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9810 Fixes bug #1048,1357,1414.
9812 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9815 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9816 is not an indexed color.
9817 * nsterm.m (free_indexed_color): Add argument checking.
9818 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9820 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
9822 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9823 Document confirm-after-completion value for
9824 minibuffer-completion-confirm.
9826 2008-11-24 Jason Rumney <jasonr@gnu.org>
9828 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9831 2008-11-23 Jason Rumney <jasonr@gnu.org>
9833 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9834 restored before returning.
9836 * w32font.c (check_face_name): New function.
9837 (add_font_entity_to_list): Use it to filter out common substituted
9840 2008-11-22 Martin Rudalics <rudalics@gmx.at>
9842 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9843 confirm-nonexistent-file-or-buffer in doc-string.
9845 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9847 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9848 Fix copy/paste typo. Add checks.
9850 2008-11-21 Kenichi Handa <handa@m17n.org>
9852 * coding.c (detect_coding_iso_2022): Reject invalid composition
9854 (DECODE_COMPOSITION_START): If the current source is the last
9855 block, and the current composition doesn't end, regard this
9856 sequence as invalid.
9857 (decode_coding_iso_2022): Handle invalid composition sequence.
9859 2008-11-20 Martin Rudalics <rudalics@gmx.at>
9861 * window.c (coordinates_in_window): Don't return
9862 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9863 line when the window is not the rightmost one. (Bug#1372)
9865 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9867 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9869 2008-11-15 Eli Zaretskii <eliz@gnu.org>
9871 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9872 and bright_bg if noninteractive is non-zero.
9874 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9876 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9877 x_draw_glyph_string_background.
9879 * w32term.c (x_draw_glyph_string): Likewise.
9881 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
9883 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9884 the next glyph string once past the overhang width.
9886 * nsterm.m (ns_draw_glyph_string): Likewise.
9888 * w32term.c (x_draw_glyph_string): Likewise.
9890 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9892 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9895 2008-11-14 Martin Rudalics <rudalics@gmx.at>
9897 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9898 dedicated status of window before attempting to display another
9901 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
9903 * msdos.c (Fmsdos_long_file_names):
9904 (syms_of_msdos) <dos-unsupported-char-glyph>:
9905 * dosfns.c (Fint86): Fix typos in docstrings.
9907 2008-11-14 Eli Zaretskii <eliz@gnu.org>
9909 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9911 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9913 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9915 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9917 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9919 * frame.h: Negative alpha means "don't touch".
9921 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9923 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9925 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9929 * acldef.h: Remove files used only for systems no longer supported.
9931 * Makefile.in: Fix .o alphabetical ordering.
9932 (hftctl.o): Remove dependency, file removed.
9933 (keymap.o, print.o): Depend on charset.h.
9935 2008-11-10 Kenichi Handa <handa@m17n.org>
9937 * character.c (Fget_byte): Fix and make it faster for unibyte target.
9939 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
9941 * dired.c (file_name_completion): If completion_ignore_case is
9942 enabled, ignore case when checking completion-regexp-list.
9944 2008-11-08 Eli Zaretskii <eliz@gnu.org>
9946 * vm-limit.c (get_lim_data): Fix last change.
9948 2008-11-08 Kenichi Handa <handa@m17n.org>
9950 * character.c (Fget_byte): New function.
9951 (syms_of_character): Defsubr Fget_byte.
9953 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
9955 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9956 cursor position is valid after scrolling.
9958 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
9960 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9962 2008-11-06 Glenn Morris <rgm@gnu.org>
9964 * xterm.c (handle_one_xevent): Don't let popup menus cause
9965 mouse-autoselect-window related window switching. (Bug#1261)
9967 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9969 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9971 2008-11-04 Andreas Schwab <schwab@suse.de>
9973 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9975 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
9977 * xfns.c (Fx_wm_set_size_hint): New function.
9979 2008-11-03 Martin Rudalics <rudalics@gmx.at>
9981 * textprop.c (Fprevious_single_char_property_change): Return 0
9982 when there's no change in a string. (Bug#1301)
9984 2008-11-02 Martin Rudalics <rudalics@gmx.at>
9986 * frame.c (do_switch_frame): New argument NORECORD passed to
9988 (Fselect_frame): New argument NORECORD passed to
9990 (Fset_frame_selected_window): New argument NORECORD passed to
9992 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9993 in call of do_switch_frame.
9994 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9995 Handle NORECORD argument in call of Fselect_frame.
9996 * lisp.h (do_switch_frame, Fselect_frame)
9997 (Fset_frame_selected_window): Adjust declarations.
9998 * window.c (select_frame_norecord): New function.
9999 (run_window_configuration_change_hook): Use it and call
10000 Fselect_frame with NORECORD set.
10001 (Fselect_window): Pass NORECORD to Fselect_frame.
10002 (Fset_window_configuration): Handle NORECORD argument in call of
10004 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10005 Fset_frame_selected_window.
10006 * keyboard.c (command_loop_1): Handle NORECORD in call of
10007 Fselect_frame (currently ifdefd).
10009 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10011 * emacs.c (USAGE2): Untabify.
10013 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10015 * composite.c (fill_gstring_header): Fix copy/paste typo.
10017 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10019 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10020 (Fother_window): Rename argument and rewrite doc-string.
10021 (select_window_norecord): Fix return value. (Bug#1276)
10023 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10025 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10026 new frames overriding foreground for tooltips. Based on similar patch
10027 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10029 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10031 * emacs.c (Fdaemon_initialized): Initialize nfd.
10033 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10035 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10036 (Fwindow_text_height): Clarify doc-strings.
10037 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10038 doc-string of window-scroll-functions.
10040 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10042 * category.c (syms_of_category): Fix typo in docstring.
10044 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10046 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10047 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10048 Fix typos in docstrings.
10050 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10052 * emacs.c (daemon_pipe): Make non-static.
10053 (IS_DAEMON): Move definition ...
10054 * lisp.h (IS_DAEMON): ... here.
10055 (daemon_pipe): Declare.
10056 (is_daemon): Remove.
10057 * dispnew.c (init_display): Use IS_DAEMON.
10059 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10061 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10062 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10064 * emacs.c (is_daemon): Remove.
10065 (main): Don't set is_daemon.
10066 (IS_DAEMON): New macro.
10067 (Fdaemonp, Fdaemon_initialized): Use it.
10068 (Fdaemon_initialized): Write a char into the pipe to make sure the
10070 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10072 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10074 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10075 over-sized glyph, draw it with the default glyph width.
10077 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10078 glyph, draw it with the default glyph width.
10080 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10081 glyph, draw it with the default glyph width.
10083 * xdisp.c (try_scrolling): When computing the distance from the
10084 scroll margin to PT, try moving some distance past the window
10085 bottom before giving up.
10087 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10089 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10090 (Fset_window_buffer): Explain in doc-string that a window can be
10091 "strongly" dedicated to its buffer.
10093 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10095 * emacs.c (daemon_name): New variable.
10096 (main): Deal with --daemon=SERVER_NAME.
10097 (Fdaemonp): Return a name if one was passed to --daemon.
10099 2008-10-26 Romain Francoise <romain@orebokech.com>
10101 * emacs.c (daemon_pipe): New variable.
10102 (main): Create a pipe before forking, make the parent exit only after
10103 the child has closed its end of the pipe. Move closing the
10105 (Fdaemon_initialized): ... here. New function.
10107 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10109 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10110 the previous unoptimized table.
10112 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10113 the distinction between non-nil and non-t value of `dedicated'.
10115 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10117 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10118 read_char_minibuf_menu_text is large enough to hold the menu string.
10120 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10122 * window.c (Fget_buffer_window, Fdelete_windows_on)
10123 (Freplace_buffer_in_windows): Make buffer argument optional and
10124 rename to buffer_or_name.
10126 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
10128 * xdisp.c (handle_single_display_spec, handle_display_prop):
10129 Undo 2005-05-16 change.
10130 (handle_stop): Pop iterator if it's loaded with an empty string.
10131 (get_overlay_strings_1): Don't save iterator if it's loaded with
10132 an empty string (bug#1201).
10134 2008-10-24 Kenichi Handa <handa@m17n.org>
10136 * ftfont.c (ftfont_otf_features): Fix previous change.
10137 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10138 calling ftfont_otf_features.
10140 2008-10-24 Kenichi Handa <handa@m17n.org>
10142 * font.c (font_match_p): Fix for the case that a vector of
10143 characters is in script-representative-chars.
10145 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
10147 * dbusbind.c (xd_in_read_queued_messages): New variable.
10148 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
10149 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10150 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10153 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
10155 * s/sol2-10.h: New file.
10157 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10159 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10160 poor beast has survived 9+ years and the jump from xterm.c!).
10162 2008-10-23 Martin Rudalics <rudalics@gmx.at>
10164 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10166 (Fbury_buffer): In doc-string say what happens to the buffer's window.
10168 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10170 * character.c (syms_of_character) <script-representative-chars>:
10171 <unicode-category-table>: Doc fixes.
10173 2008-10-23 Noah Friedman <friedman@splode.com>
10175 * coding.c (make_conversion_work_buffer): Check that
10176 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10177 Fget_buffer_create.
10179 2008-10-23 Kenichi Handa <handa@m17n.org>
10181 * font.c (font_add_log): Check the values of extra properties.
10183 2008-10-22 Martin Rudalics <rudalics@gmx.at>
10185 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10187 (Fset_window_parameter): Use NILP.
10188 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10189 (Frecenter): Use "selected" instead of "current" window in doc-strings.
10191 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10193 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10195 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10197 * nsfns.m (ns_appkit_version): New function.
10198 (x-server-version): Use it.
10199 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10200 (x-server-vendor): Don't check_ns().
10202 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10204 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10206 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10207 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10209 2008-10-22 Kenichi Handa <handa@m17n.org>
10211 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10214 * category.c (word_boundary_p): Check scripts instead of charset.
10215 Handle nil value in word-separating-categories and
10216 word-combining-categories.
10217 (syms_of_category): Fix docstrings of word-separating-categories
10218 and word-combining-categories.
10220 2008-10-21 Eli Zaretskii <eliz@gnu.org>
10222 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10223 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10225 2008-10-21 Martin Rudalics <rudalics@gmx.at>
10227 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10228 Rename arg "buffer" to "buffer_or_name".
10229 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10231 (no_switch_window): Remove since the return value is not used.
10232 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10233 Consider window as dedicated when Fwindow_dedicated_p returns a
10235 * lisp.h: Remove prototype for no_switch_window.
10237 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10239 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10240 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10242 2008-10-21 Kenichi Handa <handa@m17n.org>
10244 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10245 check Vlatin_extra_code_table.
10247 2008-10-20 Eli Zaretskii <eliz@gnu.org>
10249 * fileio.c (Fset_file_modes): Doc fix.
10251 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
10253 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10256 2008-10-19 Martin Rudalics <rudalics@gmx.at>
10258 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10259 Mention kill-buffer in doc-string.
10260 (Fset_window_buffer): Reinsert tem check removed in last commit.
10261 (Fenlarge_window, Fshrink_window): Have argument names and
10262 doc-string follow Elisp manual more closely.
10264 2008-10-18 Eli Zaretskii <eliz@gnu.org>
10266 * fileio.c (Fset_file_modes): Doc fix.
10268 2008-10-18 Martin Rudalics <rudalics@gmx.at>
10270 * window.c (Fwindow_width, Fset_window_start)
10271 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10272 (Fdelete_windows_on, Freplace_buffer_in_windows):
10273 Make doc-strings follow code and Elisp manual more closely.
10274 (Fwindow_dedicated_p): Make window argument optional.
10275 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10276 (Fset_window_buffer): Respect any non-nil dedicated value for
10277 window. Rename "buffer" argument to "buffer_or_name".
10279 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
10281 * m/sh3.h: New file, machine description for SuperH.
10283 2008-10-17 Martin Rudalics <rudalics@gmx.at>
10285 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10287 2008-10-17 Kenichi Handa <handa@m17n.org>
10289 * ftfont.c (ftfont_otf_features): Fix indexing
10290 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10292 2008-10-16 Magnus Henoch <mange@freemail.hu>
10294 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10295 (Fdbus_call_method_asynchronously): Ditto.
10296 This change makes C-h f display the argument list.
10298 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
10300 * fileio.c (Fexpand_file_name): Doc fix.
10302 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10303 of :foreground and :background equivalent to unspecified (20.x
10306 2008-10-15 Eli Zaretskii <eliz@gnu.org>
10308 * buffer.c (syms_of_buffer): Doc fix.
10310 2008-10-14 Kenichi Handa <handa@m17n.org>
10312 * font.c (font_clear_prop): When clearing font width, clear the
10313 average width field too.
10315 2008-10-12 Andreas Schwab <schwab@suse.de>
10317 * ftfont.c (ftfont_shape_by_flt): Make static.
10318 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10320 * font.c: Don't include <m17n-flt.h>.
10322 2008-10-10 Eli Zaretskii <eliz@gnu.org>
10324 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10326 2008-10-09 Eli Zaretskii <eliz@gnu.org>
10328 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10331 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
10333 * dispnew.c (update_text_area): Avoid looping due to large glyph
10334 overhangs (bug#1070).
10336 2008-10-09 Kenichi Handa <handa@m17n.org>
10338 * fontset.c (face_for_char): If face->fontset is negative, just
10341 * font.c (font_delete_unmatched): Fix previous change.
10342 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10344 2008-10-09 Martin Rudalics <rudalics@gmx.at>
10346 * frame.c (Fraise_frame): On text-only terminals select frame in
10347 order to make it visible. (Bug#1061)
10349 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
10351 * fontset.c (fontset_find_font): Check frame validity.
10353 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
10355 * gtkutil.c (xg_display_open): Reset default display if none exists.
10356 (xg_display_close): Allow Emacs to close all displays (bug#985).
10358 2008-10-06 Andreas Schwab <schwab@suse.de>
10360 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10362 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
10364 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
10366 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
10368 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10369 during initialization.
10371 2008-10-04 Eli Zaretskii <eliz@gnu.org>
10373 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10374 whole thing on MSDOS frames as well as on a TTY.
10376 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10378 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10381 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10382 as well as for TTY.
10384 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10386 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10387 MSDOS frames as well.
10389 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10391 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10393 * menu.c (find_and_return_menu_selection): Add cast.
10395 2008-10-03 Glenn Morris <rgm@gnu.org>
10397 * emacs.c (USAGE1): Add --daemon.
10399 2008-10-02 Eli Zaretskii <eliz@gnu.org>
10401 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10402 100, so it's in percents as advertised.
10404 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10406 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10407 (ns_output.current_cursor, ns_output.desired_cursor)
10408 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10409 (FRAME_NEW_CURSOR_COLOR): Remove.
10411 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
10412 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
10413 enumeration (HOLLOW_BOX_CURSOR, etc.).
10415 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10416 (draw_window_cursor): Simplify code.
10417 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10418 Don't change cursor type. In latter, call rehighlight instead of doing
10420 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10421 Use core Emacs cursor types.
10423 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
10425 2008-10-02 Martin Rudalics <rudalics@gmx.at>
10427 * process.c (Faccept_process_output): Fix doc-string.
10429 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10431 * gmalloc.c (__sbrk): Also define for uClibc.
10433 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10436 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10438 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10440 (nsfont_open): Reenable the cache.
10442 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10444 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10445 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10447 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10449 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10450 a suspended terminal.
10452 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
10454 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10456 2008-09-30 Eli Zaretskii <eliz@gnu.org>
10458 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10460 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
10462 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10463 in a continued line coincides with a line beginning.
10465 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10467 * nsfont.m (nsfont_trait_distance): Fix bug.
10468 (nsfont_list): Return a list rather than a vector (syncs with Handa
10469 changes of 2008-05-14).
10470 (nsfont_open): Improve logging.
10472 2008-09-29 Andreas Schwab <schwab@suse.de>
10474 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10476 2008-09-28 Martin Rudalics <rudalics@gmx.at>
10478 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10479 name as char-resolve-modifiers.
10480 Reported by: Markus Triska <markus.triska@gmx.at>
10482 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10484 * dispnew.c (init_display): Return earlier when running as a daemon.
10486 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10488 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10490 2008-09-27 Eli Zaretskii <eliz@gnu.org>
10492 * composite.c (Fcomposition_get_gstring)
10493 (Fcompose_region_internal, Fcompose_string_internal)
10494 (Ffind_composition_internal): Doc fix.
10495 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10496 (syms_of_composite) <auto-composition-function>: Doc fix.
10497 (syms_of_composite) <composition-function-table>: Doc fix.
10499 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
10501 * search.c (wordify): New argument for lax word-ends.
10502 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10504 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10506 * lisp.h (is_daemon): Declare.
10507 * dispnew.c (init_display): Do not try to initialize the terminal
10508 when running as a daemon.
10510 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
10512 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10513 x_display_pixel_height.
10515 2008-09-22 Martin Rudalics <rudalics@gmx.at>
10517 * undo.c (record_point): Don't call Fundo_boundary for first
10520 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
10522 * emacs.c (Fdaemonp): Doc fix.
10524 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10526 * emacs.c (main): Place #ifdef in the proper place.
10528 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10530 * emacs.c (standard_args): Add --daemon.
10531 (main): Disconnect from the terminal when --daemon is passed.
10532 (is_daemon): New variable.
10533 (Fdaemonp): New function.
10534 (syms_of_emacs): Defsubr it.
10536 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
10538 * xdisp.c (get_next_display_element): Handle string display
10539 correctly when checking for the end of a box run.
10541 2008-09-20 Glenn Morris <rgm@gnu.org>
10543 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10544 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10545 (Frename_file): Avoid copying to trash if a rename involves
10546 a delete. (Bug#964).
10548 2008-09-20 Eli Zaretskii <eliz@gnu.org>
10550 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10551 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10552 frames as well as termcap frames.
10553 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10556 2008-09-19 Eli Zaretskii <eliz@gnu.org>
10558 * process.c (procfs_system_process_attributes): Fix cmdline in
10559 case /proc/PID/cmdline is empty.
10561 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10562 x_display_pixel_height.
10564 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
10566 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10568 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10569 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10571 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10573 * dispextern.h (struct it): Move line_wrap away from the middle of
10574 bitfields. Move voffset in struct iterator_stack_entry after the
10575 bitfields. Move tab_width near after another short.
10577 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10579 * frame.h (struct frame): Move alpha from the middle of bitfields.
10581 * window.h (struct window): Move frozen_window_start_p after the
10582 rest of the bitfields to reduce padding.
10584 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
10586 * xterm.h (x_display_info): Remove `height' and `width' members.
10588 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10590 * w32term.h (w32_display_info): Remove `height', `width',
10591 `height_in', and `width_in' members.
10593 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10595 (x_calc_absolute_position): Use them.
10596 (x_term_init): Omit removed `height' and `width' members.
10598 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10600 (w32_read_socket, x_calc_absolute_position): Use them.
10601 (w32_initialize_display_info, w32_term_init): Omit removed members
10602 of w32_display_info.
10604 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10606 (ns_initialize_display_info): Omit removed members of ns_display_info.
10608 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10610 (x_calc_absolute_position): Use them.
10611 (x_term_init): Omit removed `height' and `width' members.
10613 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10615 * frame.c (x_fullscreen_adjust):
10616 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10617 x_display_pixel_width.
10619 2008-09-18 Kenichi Handa <handa@m17n.org>
10621 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10622 (composition_compute_stop_pos): Fix handling of static composition.
10623 (Fcomposition_get_gstring): Check FROM and TO at first.
10625 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10627 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
10630 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
10632 * indent.c (Fvertical_motion): Use position reported by iterator
10633 instead of PT for determining screen motion (bug#943).
10635 2008-09-17 Romain Francoise <romain@orebokech.com>
10637 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10639 2008-09-17 Kenichi Handa <handa@m17n.org>
10641 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10643 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10646 2008-09-16 Kenichi Handa <handa@m17n.org>
10648 * coding.c (make_conversion_work_buffer): Avoid calling
10649 Fget_buffer_create if it is not necessary.
10651 2008-09-15 Martin Rudalics <rudalics@gmx.at>
10653 * window.c (Fselect_window): Don't update window_select_count and
10654 use_time when norecord is not nil.
10656 2008-09-14 Kenichi Handa <handa@m17n.org>
10658 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10661 2008-09-12 Kenichi Handa <handa@m17n.org>
10663 * indent.c (scan_for_column): Don't handle automatic composition
10664 if the current buffer is not associated with a window.
10666 * composite.c (composition_reseat_it): If the current buffer is
10667 not associated with a window, ignore the automatic composition.
10668 (find_automatic_composition): Likewise.
10670 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10672 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10673 (Fgpm_mouse_stop): Use it.
10674 * termhooks.h (close_gpm): Declare.
10675 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10676 connection if Gpm_GetEvent fails.
10678 * window.c (set_window_buffer): Always preserve current-buffer.
10680 2008-09-12 Glenn Morris <rgm@gnu.org>
10682 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10684 2008-09-11 Glenn Morris <rgm@gnu.org>
10686 * charset.c (charset-map-path): Doc fix.
10688 2008-09-10 Kenichi Handa <handa@m17n.org>
10690 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10692 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10693 compose a grapheme cluster with the preceding base glyph.
10695 * composite.c (composition_compute_stop_pos): Fix previous change.
10696 Reset cmp_it->id to -1 at first.
10698 2008-09-10 Glenn Morris <rgm@gnu.org>
10700 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10702 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
10704 * keyboard.c (read_key_sequence): Reapply translation maps when
10705 switching keyboards.
10707 2008-09-09 Kenichi Handa <handa@m17n.org>
10709 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10712 * composite.c (FORWARD_CHAR): Fix calculation
10713 of (POSITION).pos_byte.
10714 (composition_compute_stop_pos): Limit the search of composition to
10715 at most 500 characters ahead. If we reach the limit or find a
10716 newline, set cmp_it->ch to -2 and return 0.
10717 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10719 2008-09-08 Kenichi Handa <handa@m17n.org>
10721 * indent.c (Fvertical_motion): Be sure to set
10722 it_overshoot_expected if it.cmp_it.id is non-negative.
10724 2008-09-07 Andreas Schwab <schwab@suse.de>
10726 * callproc.c (Fcall_process): Don't hold references to string data
10727 across garbage collection. Move initialisation of new_argv down
10728 to avoid compiler bug.
10730 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10732 * process.c (Fsystem_process_attributes): Doc fix.
10734 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
10736 * callproc.c (Fcall_process): Canonicalize current directory name.
10738 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10739 iterator advances to the next line if the current line ends in a
10742 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10744 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10745 member to point to cmp_from.
10747 * xdisp.c: Doc fix for references to gidx data member.
10749 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10751 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10753 2008-09-07 Kenichi Handa <handa@m17n.org>
10755 * composite.c (FORWARD_CHAR): Check STOP after
10756 incrementing (POSITION).pos.
10758 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10760 * process.c (Fsystem_process_attributes): Doc fix.
10762 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
10764 * keyboard.c (Ftop_level): Doc fix.
10766 2008-09-06 Eli Zaretskii <eliz@gnu.org>
10768 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10769 minibuffer, don't let lower part of menu invade the echo area.
10771 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10772 "char *q" to access menu text and advance through it. Revert the
10773 change that displayed ">" instead of ASCII character 0x10.
10775 2008-09-05 Eli Zaretskii <eliz@gnu.org>
10777 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10778 toggle boxes and radio buttons on MS-DOS as well.
10780 2008-09-05 Kenichi Handa <handa@m17n.org>
10782 * composite.c (autocmp_chars): Check lookback count.
10783 (composition_compute_stop_pos): Set cmp_it->lookback.
10784 (composition_reseat_it): Check lookback count.
10785 (struct position_record): New struct.
10786 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10787 (find_automatic_composition): New function.
10788 (composition_adjust_point): Use find_automatic_composition.
10790 * dispextern.h (struct composition_it): New member lookback.
10792 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
10794 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10795 if moving by a single line.
10797 2008-09-02 Andreas Schwab <schwab@suse.de>
10799 * xterm.c (x_delete_display): Fix merge error.
10801 * fileio.c (Fexpand_file_name): Remove unused variables.
10803 2008-09-02 Eli Zaretskii <eliz@gnu.org>
10805 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10806 storage on all platforms, not just on DOS_NT.
10808 2008-09-02 Jason Rumney <jasonr@gnu.org>
10810 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10811 Ensure mouse is not grabbed after menu is finished.
10813 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
10815 * xfaces.c (Finternal_set_alternative_font_family_alist)
10816 (Finternal_set_alternative_font_registry_alist): Properly copy
10817 entire alist structure.
10819 2008-09-01 Kenichi Handa <handa@m17n.org>
10821 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
10822 representative chars of the script is a vector.
10823 (ftfont_list): Handle the case where the representative chars of
10824 the script is a vector.
10826 * character.c (syms_of_character): Docstring of
10827 script-representative-chars fixed.
10829 2008-08-31 Eli Zaretskii <eliz@gnu.org>
10831 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10832 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10833 the menu. Allocate larger buffer for `text', to account for
10834 possible ^C characters.
10836 2008-08-31 Martin Rudalics <rudalics@gmx.at>
10838 * xdisp.c (prepare_menu_bars): Don't call
10839 Vwindow_size_change_functions with arg Qt.
10841 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10843 * font.h (font_range):
10844 * fileio.c (report_file_error):
10845 * composite.c (composition_update_it): Yet another int/Lisp_Object
10848 2008-08-30 Glenn Morris <rgm@gnu.org>
10850 * data.c (Fmake_variable_frame_local): Doc fix.
10852 * frame.c (Fmodify_frame_parameters): Doc fix.
10854 2008-08-30 Eli Zaretskii <eliz@gnu.org>
10856 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10857 needed by GetTokenInformation.
10858 (w32_system_process_attributes): Check return values of all system
10861 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10862 only when the state changes.
10863 (IT_update_begin, IT_update_end): Add termscript trace.
10865 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10866 clipboard is unavailable. Set dst to NULL if it doesn't point to
10868 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10869 passing random values to xfree.
10871 * dispnew.c (init_display): Set `tty's association in frame's
10872 parameters alist to the name of the terminal device, if that is known.
10874 2008-08-29 Jason Rumney <jasonr@gnu.org>
10876 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10878 2008-08-29 Eli Zaretskii <eliz@gnu.org>
10880 * composite.c (fill_gstring_body): Avoid compiler warnings.
10882 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10883 LGLYPH_SET_CODE to avoid compiler warnings.
10885 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
10887 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10889 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10892 2008-08-29 Kenichi Handa <handa@m17n.org>
10894 * fileio.c (report_file_error): Don't downcase the first character
10895 of errstring if it is still unibyte.
10897 2008-08-29 Kenichi Handa <handa@m17n.org>
10899 These changes are to re-implement the automatic composition so
10900 that it doesn't use text properties.
10902 * Makefile.in (ftfont.o): Depend on composite.h.
10903 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10905 * character.h (Vunicode_category_table): Extern it.
10907 * character.c (Vunicode_category_table): New variable.
10908 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10910 * chartab.c (optimize_sub_char_table): Perform more greedy
10913 * composite.h (enum composition_method):
10914 Delete COMPOSITION_WITH_GLYPH_STRING.
10915 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10916 (Vcomposition_function_table): Extern it.
10917 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10918 (composition_gstring_put_cache, composition_gstring_from_id)
10919 (composition_gstring_p, composition_gstring_width)
10920 (composition_compute_stop_pos, composition_reseat_it)
10921 (composition_update_it, composition_adjust_point): Extern them.
10922 (Fcomposition_get_gstring): EXFUN it.
10924 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
10925 (Vcomposition_function_table)
10926 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
10927 (gstring_hash_table, gstring_work, gstring_work_headers):
10929 (gstring_lookup_cache, composition_gstring_put_cache)
10930 (composition_gstring_from_id, composition_gstring_p)
10931 (composition_gstring_width, fill_gstring_header)
10932 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10933 (composition_reseat_it, composition_update_it)
10934 (composition_adjust_point, Fcomposition_get_gstring): New functions.
10935 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10936 and gstring_work_headers. DEFVAR_LISP composition-function-table.
10937 Defsubr composition_get_gstring.
10939 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10941 (struct glyph_string): Delete the member gidx. New members
10942 cmp_id, cmp_from, and cmp_to.
10943 (enum it_method): Delete GET_FROM_COMPOSITION.
10944 (struct composition_it): New struct.
10945 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10946 Delete c, len, cmp_id, cmp_len in u.comp.
10948 * font.h (enum lgstring_indices): Delete it.
10949 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
10950 (enum lglyph_indices): Likewise.
10951 (font_range): Adjust extern.
10952 (font_fill_lglyph_metrics): Extern it.
10954 * font.c (QCf): New variable.
10955 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10956 (font_prepare_composition): Delete this function.
10957 (font_range): Type and arguments changed.
10958 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10959 (font_fill_lglyph_metrics): New function.
10960 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
10961 (syms_of_font): DEFSYM QCf. Delete defsubr for
10962 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10963 Defsubr Sfont_shape_gstring.
10965 * fontset.h (font_for_char): Extern it.
10967 * fontset.c (font_for_char): New function.
10969 * ftfont.c: Include composite.h.
10970 (ftfont_resolve_generic_family): Add langset "en" to pattern.
10971 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10973 * indent.c: Include composite.h and dispextern.h.
10974 (check_composition): Delete this function.
10975 (scan_for_column): Handle composition by
10976 composition_compute_stop_pos, composition_reseat_it, and
10977 composition_update_it.
10978 (compute_motion): Likewise.
10979 (Fvertical_motion): Fix checking of composition.
10981 * keyboard.c (adjust_point_for_property): Check composition by
10982 composition_adjust_point.
10984 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
10985 struct glyph_string.
10987 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10988 (append_composite_glyph): Adjust for the change of struct it and
10990 (produce_composite_glyph): Likewise.
10992 * w32term.c (x_draw_composite_glyph_string_foreground):
10993 Adjust for the change of struct glyph_string.
10994 (x_draw_glyph_string): Likewise.
10996 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10997 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10999 * xdisp.c: Include font.h.
11000 (it_props): Delete the entry for Qauto_composed.
11001 (init_iterator): Initialize it->cmp_it.id to -1.
11002 (compute_stop_pos): Call composition_compute_stop_pos.
11003 (face_before_or_after_it_pos): Adjust for the change of struct it.
11004 (handle_auto_composed_prop): Delete it.
11005 (handle_composition_prop): Handle only static composition.
11006 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11007 from xassert. Initialize it->cmp_it.stop_pos.
11008 (push_it): Adjust for the change of struct it.
11009 (pop_it): Likewise.
11010 (get_next_element): Delete next_element_from_composition.
11011 (CHAR_COMPOSED_P): New macro.
11012 (get_next_display_element): For automatic composition, get a face
11013 from the font in the glyph-string.
11014 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11015 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11016 (next_element_from_string): Check if the character at the current
11017 position is composed by CHAR_COMPOSED_P.
11018 (next_element_from_buffer): Likewise.
11019 (next_element_from_composition): Adjust for the change of struct it.
11021 (dump_glyph): Adjust for the change of struct glyph.
11022 (fill_composite_glyph_string): Adjust for the change of struct
11023 it and struct glyph. Don't handle automatic composition here.
11024 (fill_gstring_glyph_string): New function.
11025 (x_get_glyph_overhangs): Handle automatic composition.
11026 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11027 (BUILD_GSTRING_GLYPH_STRING): New macro.
11028 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11029 automatic composition.
11030 (append_composite_glyph): Adjust for the change of struct it and
11032 (x_produce_glyphs): Adjust for the change of struct it.
11034 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11035 the change of struct glyph_string.
11036 (x_draw_glyph_string): Likewise.
11038 2008-08-29 Glenn Morris <rgm@gnu.org>
11040 * buffer.c (word-wrap): Doc fix.
11041 * xdisp.c (truncate-partial-width-windows): Doc fix.
11042 Increase default to 50.
11044 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11046 * xdisp.c (update_tool_bar_unwind): New function.
11047 (update_tool_bar): Temporarily set selected frame before building
11050 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11052 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11053 snprintf, respectively.
11054 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11056 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11058 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11059 LDFLAGS to GNUstep CC invocation.
11061 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11063 * indent.c (Fvertical_motion): Revert last change. Handle the
11064 general case where we are moving forward, and PT spans multiple
11067 * eval.c (find_handler_clause): Temporarily increase
11068 max-lisp-eval-depth while printing the backtrace buffer, to
11069 guarantee that help-mode code can run.
11071 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11073 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11075 (IT_set_frame_parameters): Don't swap foreground and background
11076 colors if `(reverse . t)' is present in the frame properties.
11077 (internal_terminal_init): Call init_frame_faces only for the
11080 2008-08-27 Andreas Schwab <schwab@suse.de>
11082 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11084 2008-08-27 Andreas Schwab <schwab@suse.de>
11086 * search.c (search_buffer): Set char_base to zero only at the end.
11088 2008-08-27 Kenichi Handa <handa@m17n.org>
11090 * fileio.c (report_file_error): Fix handling of multibyte error string.
11092 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11094 * xterm.c (x_term_init): Temporarily hide the partially
11095 initialized terminal while calling vendor-specific-keysyms.
11097 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11099 * msdos.c (internal_terminal_init): Most initializations done only
11100 once, especially initial_screen_colors[] and termscript open.
11102 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11104 * eval.c (Fcondition_case): Doc fix.
11106 * widgetprv.h (EmacsFramePart): Change font member to the new font
11109 * widget.c: Include character.h and font.h for XSETFONT.
11110 (setup_frame_gcs): Compute X font id from font struct, just once.
11112 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11114 * term.c (get_named_tty): Fix last change.
11116 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11118 * indent.c (Fvertical_motion): If moving forward starting from a
11119 multi-line string, move the iterator to the last line of that string.
11121 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11123 * frame.c (do_switch_frame): Mark previously displayed frame as
11124 obscured for FRAME_MSDOS_P frames as well.
11126 2008-08-24 Eli Zaretskii <eliz@gnu.org>
11128 * frame.c (make_terminal_frame): Initialize f->terminal,
11129 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11130 Set the top frame to newly created frame.
11131 (Fmake_terminal_frame): Reuse the_only_display_info.
11133 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11134 estimating available memory.
11136 2008-08-23 David Reitter <david.reitter@gmail.com>
11138 * nsterm.m (ns_draw_window_cursor): Don't call
11139 NSDisableScreenUpdates and NSEnableScreenUpdates on
11140 non-NS_IMPL_COCOA systems.
11142 2008-08-23 Andreas Schwab <schwab@suse.de>
11144 * process.c (procfs_system_process_attributes): Fix use of
11145 uninitialized variables.
11147 2008-08-23 Eli Zaretskii <eliz@gnu.org>
11149 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11151 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11152 calling tty-set-up-initial-frame-faces.
11154 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11155 Allow MSDOS frames along with X frames.
11157 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11158 addition to output_termcap.
11160 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11162 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11163 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11166 * process.c [!subprocesses]: Define QCname.
11167 (syms_of_process): Intern and staticpro it.
11169 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11170 Adjust for changes in encoding/decoding routines.
11171 Use encode_coding_object and decode_coding_object instead of
11172 encode_coding and decode_coding.
11174 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11176 * dosfns.c: Include frame.h before termhooks.h.
11177 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11178 variable termscript.
11180 * s/msdos.h (USER_FULL_NAME): Define.
11181 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11183 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11184 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11187 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11188 SELECTED_FRAME as additional (1st) argument.
11189 (tty_read_avail_input): Handle output_msdos_raw in
11190 addition to output_termcap.
11192 * msdos.c: Include frame.h before termhooks.h.
11193 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11194 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11195 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11196 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11197 (IT_set_terminal_modes, IT_reset_terminal_modes)
11198 (IT_set_frame_parameters): Use tty->termscript instead of a global
11199 variable termscript.
11200 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11201 global variable terminal_coding. Don't refer to
11202 Vnonascii_translation_table.
11203 (internal_terminal_init): Set Vwindow_system in current_kboard.
11204 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11205 Announce date and time of session start, if termscript is open.
11206 Don't zero out the_only_display_info (it is done in
11207 term.c:init_tty). Open termscript only of not already open.
11208 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
11209 here instead of dos_ttraw. Don't initialize display if this is an
11210 initial tty. Don't set FRAME_FONT.
11211 (Vwindow_system_version): Bump to 23.
11212 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11213 is available, set up mouse_position_hook.
11214 (dos_ttraw, IT_set_terminal_modes): If called with initial
11215 terminal, do nothing.
11216 (IT_set_frame_parameters): Handle the Qtty_type frame
11217 parameter by calling internal_terminal_init.
11218 (dos_set_window_size, show_mouse_face)
11219 (clear_mouse_face, IT_note_mode_line_highlight)
11220 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11221 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11222 (initialize_msdos_display): New function.
11223 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11224 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11225 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11226 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11227 Accept additional argument: a pointer to a frame. Update all callers.
11228 (request_sigio, unrequest_sigio): Don't define, now defined on
11230 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11232 * term.c [MSDOS]: Include msdos.h.
11233 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11234 conditional to DOS_NT. Allow only one call to this function in a
11235 session. Don't allocate a new struct tty_display_info; instead,
11236 reuse the_only_display_info. Call get_tty_size to get screen
11237 dimensions. Call init_baud_rate to set bad_rate.
11238 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11239 (Fsuspend_tty) [MSDOS]: Don't close input and output.
11240 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11241 (get_tty_terminal, get_named_tty, Ftty_type)
11242 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11244 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11245 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11246 only when subprocesses are supported.
11248 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11250 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11253 * msdos.h: Remove definition of struct x_display_info and struct
11255 (FRAME_FONT): Use output_data.tty.
11256 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11257 (struct x_display_info): Rename from display_info. Update all users in
11259 (struct x_output): Remove background_pixel and foreground_pixel.
11260 (the_only_display_info): Rename from the_only_x_display.
11261 (dos_ttraw): Update prototype.
11263 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11264 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11266 2008-08-23 Jason Rumney <jasonr@gnu.org>
11268 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11269 (fn_TIFFSetDirectory): New library function used.
11270 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11271 (tiff_load): Use :index to select among multiple images. Set count
11272 property when multiple images exist.
11273 (gif_format): Use :index, not :image.
11275 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11277 * xdisp.c (try_scrolling): Check INT_MAX instead of
11278 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11281 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11283 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11285 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11287 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11288 GNUstep library location.
11290 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
11292 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11295 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11297 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11299 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11300 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11301 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11302 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11303 (EmacsApp-cursor_blink_handler): Remove declaration.
11304 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11305 match 01 Feb 2008 changes in xterm.c.
11306 (ns_read_socket): Add cast to avoid warning.
11307 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11310 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
11312 * xselect.c (x_get_foreign_selection): Return nil if desired
11313 selection could not be obtained, instead of signalling an error.
11315 2008-08-20 David Reitter <david.reitter@gmail.com>
11317 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11318 * nsterm.m: Remove ns-specific code for cursor blinking.
11319 (ns_draw_window_cursor): Clear cursor properly rather than
11320 redrawing the area. Respect width of bar cursors.
11321 These changes enable the use of generic blink-cursor-mode and
11322 generic cursor types in NS and support smooth cursor movements (do
11323 not blink off after command).
11324 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11327 2008-08-19 Kenichi Handa <handa@m17n.org>
11329 * font.c (Vfont_log_deferred): New variable.
11330 (font_add_log): Check Vfont_log_deferred.
11331 (font_deferred_log): New function.
11333 * font.h (font_deferred_log): Extern it.
11335 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11337 (face_for_char): Use deferred log.
11339 2008-08-18 Kenichi Handa <handa@m17n.org>
11341 * fontset.c (face_for_char): Add font log.
11343 * font.c (font_add_log): Add the font properties :script, :lang,
11344 and :otf in the log.
11346 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
11348 * xdisp.c: Remove dead code.
11349 (handle_invisible_prop, next_overlay_string): Defer call to
11350 setup_for_ellipsis.
11351 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11353 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
11355 * xfaces.c (lookup_derived_face): Properly handle possible zero
11356 return value of get_lface_attributes.
11357 (merge_faces): Don't tell lookup_derived_face to signal an error
11358 if face is not found.
11360 * dired.c (Fdirectory_files): Doc fix.
11362 * process.c (make_process): Initialize kill_without_query struct
11365 2008-08-15 Eli Zaretskii <eliz@gnu.org>
11367 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11368 Alternative calculation of totphys for Visual Studio 6.
11370 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11372 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11373 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11375 (stat): Only root directory passed to GetDriveType. Allow RAM
11376 disk as well as local fixed disk when w32-get-true-file-attributes
11378 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11379 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11380 (w32_cached_id, w32_add_to_cache): New functions.
11381 (get_name_and_id): Look account names in the cache before calling
11382 lookup_account_sid.
11383 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11384 New initialization flags.
11385 (globals_of_w32): Initialize them to zero.
11386 (w32_system_process_attributes): Use w32_cached_id and
11389 2008-08-14 Lawrence Mitchell <wence@gmx.li>
11391 * lread.c (Fread_char, Fread_char_exclusive): If no character
11392 event is read before timeout is reached, return nil, rather than
11393 converting to a number.
11395 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
11397 * fns.c (use_dialog_box): Doc fix.
11399 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11402 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
11404 * frame.c (Qns_parse_geometry): New var.
11405 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11407 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
11409 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11410 space character in calculating tabs.
11412 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11414 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11416 2008-08-10 Glenn Morris <rgm@gnu.org>
11418 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11419 silence gcc "limited range of data type" warnings in some
11420 make_fixnum_or_float calls.
11422 2008-08-09 Eli Zaretskii <eliz@gnu.org>
11424 * w32.c (w32_system_process_attributes): If the process does not
11427 * w32.c: Include thelp32.h, psapi.h and coding.h.
11428 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11430 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11431 (Process32Next_Proc): New typedefs.
11432 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11433 (g_b_init_process32_next, g_b_init_open_thread_token)
11434 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11435 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11436 (g_b_init_get_process_working_set_size)
11437 (g_b_init_global_memory_status_ex): New static variables.
11438 (globals_of_w32): Initialize them.
11439 (create_toolhelp32_snapshot, process32_first, process32_next)
11440 (open_thread_token, impersonate_self, revert_to_self)
11441 (get_process_memory_info, get_process_working_set_size)
11442 (global_memory_status, global_memory_status_ex): New wrapper
11444 (w32_list_system_processes, w32_system_process_attributes)
11445 (enable_privilege, restore_privilege, ltime, process_times):
11447 (convert_time_raw): New function.
11448 (convert_time): Remove conversion of FILETIME into time in 100
11449 nsec units, call convert_time_raw instead.
11451 * process.h (w32_list_system_processes, w32_system_process_attributes):
11453 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11454 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11455 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11456 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11458 * process.c (Fsystem_process_attributes): Doc fix.
11460 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
11462 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11463 a continued multi-char glyph; if so, advance to the actual glyph.
11465 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11467 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11469 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11471 * config.in: Regenerate.
11473 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
11475 * xdisp.c (redisplay_window): Revert last change.
11476 (try_window): Check bottom scroll margin too.
11478 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11480 * config.in: Regenerate.
11482 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11483 -list-load-path-shadows'.
11484 (nsgui.h): Reduce number of things depending on it.
11486 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
11488 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11489 instead of window-end which does the wrong thing at eob.
11490 (try_cursor_movement): Minor optimization.
11491 (redisplay_window): If scroll margin is defined, don't assume
11492 window doesn't need scrolling.
11494 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11496 * config.in: Regenerate.
11498 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11499 (mostlyclean): Don't delete *.d under NS.
11501 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11503 2008-08-06 Kenichi Handa <handa@m17n.org>
11505 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11507 2008-08-06 Andreas Schwab <schwab@suse.de>
11509 * config.in: Regenerate.
11511 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
11513 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11514 forcing a window start.
11516 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11517 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11519 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11521 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11524 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
11526 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11527 <scroll-down-aggressively, before-change-functions>:
11528 <after-change-functions>: Reflow docstrings.
11530 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11531 Ken Raeburn <raeburn@gnu.org>
11533 Dock menu customization, based on a patch by Ken Raeburn, plus some
11535 * nsmenu.m (dockMenu): New variable.
11536 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11538 * nsterm.h (dockMenu): Declare.
11540 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11541 (ns_term_init): Initialize dockMenu.
11542 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11543 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11546 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11548 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11550 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11552 * config.in: Regenerate.
11554 2008-08-04 Seiji Zenitani <zenitani@mac.com>
11556 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11558 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11560 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11562 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11564 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11566 * keyboard.h: Comment an #endif.
11568 * lisp.h (have_menus_p): Adjust comment.
11570 * menu.c (find_and_return_menu_selection): Fix comparison with
11573 * nsmenu.m (popup_activated_flag): New variable.
11574 (popup_activated): New function.
11575 (menu-or-popup-active-p): New exported lisp definition.
11576 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11578 (ns_popup_dialog): Set popup_activated_flag.
11580 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11581 version for GNUstep (handled by conditional typedef in nsterm.m).
11582 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11585 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11587 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11589 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11591 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11592 shortcircuit if popup_activated like GTK and X toolkit.
11594 * m/inter386.h: Change DARWIN to DARWIN_OS.
11596 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11597 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11598 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11599 comment on NO_SOCK_SIGIO.
11601 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
11603 * nsterm.m (windowDidResize): Remove stopModal call.
11605 2008-08-03 Andreas Schwab <schwab@suse.de>
11607 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11608 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11610 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
11612 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11613 Don't use uninitialized pointer variable when using getrlimit.
11615 2008-08-02 Jason Rumney <jasonr@gnu.org>
11617 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11619 2008-08-02 Eli Zaretskii <eliz@gnu.org>
11621 * alloc.c (NSTATICS): Bump to 0x640.
11623 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11625 * lisp.h: Add prototype for directory_files_internal.
11627 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11629 (syms_of_process): Defsubr them. Add initializations for various
11630 Q* symbols used in procfs_system_process_attributes.
11631 (procfs_list_system_processes, procfs_system_process_attributes)
11632 [HAVE_PROCFS]: New functions.
11633 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11634 (procfs_get_total_memory): New functions.
11636 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11638 * xfaces.c (Fx_load_color_file): Fix previous change;
11639 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11641 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
11643 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11645 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11647 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11649 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
11651 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11653 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11654 define NSApplicationDelegateReplySuccess.
11655 (EmacsView -converstationIdentifier): Use long instead of
11656 NSInteger for GNUstep, since it doesn't have NSInteger.
11658 * xmenu.c: Revert last change.
11660 * keyboard.h: Fix last change.
11662 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11664 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11667 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11669 Warning clearing and clean-up in NS port.
11670 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11672 * nsgui.h (FACE_DEFAULT): Remove, unused.
11673 (XGCValues): Change colors to unsigned long.
11674 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11676 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11677 (ns_list_fonts): Remove, unused.
11678 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11679 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11680 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11681 (nsfont_draw): Compare face colors to 0, not nil.
11682 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11683 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11684 (-addSubmenuWithTitle:): Use NSMenuItem class.
11685 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11686 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11687 (ns_clip_to_row): Make gc arg a BOOL.
11688 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11689 ns_clip_to_row() call.
11690 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11691 used). Cast FRAME_FONT assignments.
11692 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11693 (ns_string_to_lispmod): Change arg to const char.
11694 (ns_term_init): Use NSMenuItem class.
11695 (EmacsApp -openFile:): Move to different section of file.
11696 (EmacsApp -application:openFiles:): Don't return a value, call
11697 -replyToOpenOrPrint:.
11698 (EmacsView -keyDown:): Fix up cast.
11699 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11700 (EmacsView -menuDown:): Cast tag in call to
11701 find_and_call_menu_selection().
11702 (ns_list_fonts): Remove, unused.
11703 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11704 (ns_fontname_to_xlfd): Make static.
11705 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11706 Remove prototypes (now in keyboard.h).
11707 (next_menubar_widget_id): Remove, unused.
11708 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11709 Remove prototypes (now in keyboard.h).
11710 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11712 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11714 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11715 (floatfns.o): Depend on syssignal.h.
11716 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11718 * systty.h: Fix previous change that removed BSD_TERMIOS.
11719 Add comments to #ifdefs.
11721 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11723 * w32fns.c (w32-load-color-file): Remove.
11724 (x-open-connection): Use renamed Fx_load_color_file.
11725 * xfaces.c (x-load-color-file): Add.
11726 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11728 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11730 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
11732 * dbusbind.c (Fdbus_call_method_asynchronously)
11733 (Fdbus_method_error_internal): New defuns.
11734 (xd_read_message): Handle also reply messages.
11735 (Vdbus_registered_functions_table): Extend docstring.
11737 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
11739 * keyboard.c (gobble_input): Fix previous change.
11741 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11772 * m/vax.h: Remove VMS support.
11778 * ioctl.h: Remove file.
11780 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11782 * s/ms-w32.h (MULTI_KBOARD): Remove.
11797 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11798 * config.in: Regenerate.
11800 2008-07-30 Jason Rumney <jasonr@gnu.org>
11802 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11804 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11805 (w32font_open_internal): Get unicode version of textmetrics.
11806 Don't enable or disable glyph indices here.
11807 (w32font_open): Disable use of glyph indices.
11809 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11811 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
11813 * minibuf.c (Vread_buffer_function): Doc fix.
11815 2008-07-30 John Paul Wallington <jpw@pobox.com>
11817 * minibuf.c (read_buffer_completion_ignore_case): New var.
11818 (Fread_buffer): Use it.
11820 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11822 * systty.h (sensemode): Remove empty #if. Remove reference to
11823 BSD_TERMIOS, unused.
11825 * sysdep.c: Remove reference to DGUX.
11826 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11828 * config.in: Regenerate.
11830 2008-07-30 Jason Rumney <jasonr@gnu.org>
11832 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11834 2008-07-29 Jason Rumney <jasonr@gnu.org>
11836 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11838 (uniscribe_encode_char): Always use uniscribe.
11839 Avoid using context if cache is populated.
11841 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11843 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11846 * gtkutil.c (menu_nav_ended): Remove.
11847 (create_menus): Remove signal connect for menu_nav_ended.
11849 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
11851 * xdisp.c (redisplay_window): Check return value of
11852 compute_window_start_on_continuation_line before forcing a window
11855 2008-07-28 Jason Rumney <jasonr@gnu.org>
11857 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11859 * w32term.c (w32_enable_unicode_output, cleartype_active):
11860 Remove obsolete display options.
11861 (x_draw_glyph_string_background): Don't use old cleartype_active
11863 (w32_initialize): Remove cleartype_active initialization.
11864 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11866 2008-07-28 Andreas Schwab <schwab@suse.de>
11868 * lisp.h (init_weak_hash_tables, syms_of_font)
11869 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11870 (remove_hash_entry): Don't declare.
11871 * eval.c (maybe_call_debugger): Make static and move before use.
11872 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11873 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11874 * xterm.h (x_set_frame_alpha): Declare.
11876 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11878 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11879 (create_menus): Connect selection-done to menu_nav_ended.
11881 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11883 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11884 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11885 parameter with read of 'alpha' one.
11886 (Qns_frame_parameter): Remove.
11887 * nsselect.m (selection-coding-system)
11888 (next-selection-coding-system, Vselection_coding_system)
11889 (Vnext_selection_coding_system): Drop.
11891 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11893 * nsfns.m (do-applescript, do_applescript): Rename to
11894 ns-do-applescript, ns_do_applescript, and move within file.
11896 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11898 Remove support for Mac Carbon.
11906 * mac.c: Remove file.
11937 * Makefile.in: Remove code for Carbon.
11939 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11941 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11943 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11945 * macterm.h (kCGBitmapByteOrder32Host): New define for
11946 non-universal SDKs.
11948 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11949 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11951 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11952 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11954 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11956 * w32inevt.c: Include dispextern.h.
11958 2008-07-26 Andreas Schwab <schwab@suse.de>
11960 * print.c (print_object): Fix off-by-one in last change.
11962 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
11964 * term.c (syms_of_term): Don't initialize default_orig_pair,
11965 default_set_foreground and default_set_background on Windows.
11967 2008-07-25 Jason Rumney <jasonr@gnu.org>
11969 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11970 ScriptItemize. Clean up return value checking. Remove unused
11972 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11975 * w32font.c (w32font_has_char): Handle the case where we can't
11976 determine the script for a character.
11978 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
11980 * term.c (syms_of_term): Initialize default_orig_pair,
11981 default_set_foreground, and default_set_background.
11983 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11985 (getloadavg): Callers changed.
11987 * image.c (svg_load_image): Fix last change.
11988 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11989 image size is valid. Use g_object_unref instead of deprecated
11990 rsvg_handle_free to free rsvg handle.
11991 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11993 2008-07-25 Jason Rumney <jasonr@gnu.org>
11995 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11996 surrogates before looking up glyph index.
11997 (w32font_text_extents): Encode as surrogates if falling back to
11998 functions that need UTF-16 wide chars.
12000 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12001 BMP as surrogates before looking up glyph index.
12003 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12005 * image.c (svg_load_image): Check for failure in return value of
12006 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12008 2008-07-25 Jason Rumney <jasonr@gnu.org>
12010 * w32font.c (Fx_select_font): Reverse sense of second arg.
12012 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12014 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12015 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12017 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12018 (PURESIZE): Use it.
12020 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12022 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12023 * m/alpha.h (TEXT_END):
12024 * m/ibmrs6000.h (TEXT_END):
12025 * m/macppc.h (TEXT_END):
12026 * s/darwin.h (TEXT_END):
12027 * s/msdos.h (TEXT_END): Remove, unused.
12028 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12029 * s/cygwin.h: Remove comment.
12031 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12032 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12033 * m/intel386.h (DOT_GLOBAL_START):
12034 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12035 (USG): Remove, file not used on USG platforms.
12037 * Makefile.in (HAVE_X11): Remove empty #else.
12039 2008-07-24 Andreas Schwab <schwab@suse.de>
12041 * fileio.c (Finsert_file_contents): Properly adjust undo list
12042 after format conversion.
12044 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12046 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12047 (menu_nav_ended): Remove.
12048 (create_menus): Remove signal connect for menu_nav_ended.
12049 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12051 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12053 2008-07-23 Jason Rumney <jasonr@gnu.org>
12055 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12057 (w32font_open): Set font type to gdi.
12059 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12061 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12063 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12064 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12066 * unexec.c (ADDR_CORRECT): Define unconditionally.
12068 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12070 * unexec.c: Remove code depending on !COFF and USG, the file is
12071 not used for such systems.
12073 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12074 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12075 (LD_SWITCH_SYSTEM_1): Remove, update users.
12077 * s/darwin.h (DATA_END):
12078 * m/intel386.h (DATA_END):
12079 * m/ibmrs6000.h (DATA_END):
12080 * m/alpha.h (DATA_END): Remove, unused.
12082 * config.in: Regenerate.
12083 * s/ms-w32.h (subprocesses): Define unconditionally.
12084 * s/template.h (subprocesses): Update comment.
12085 * s/vms.h (subprocesses):
12086 * s/usg5-4.h (subprocesses):
12087 * s/hpux10-20.h (subprocesses):
12088 * s/gnu-linux.h (subprocesses):
12089 * s/cygwin.h (subprocesses):
12090 * s/bsd-common.h (subprocesses):
12091 * s/aix4-2.h (subprocesses):
12092 * s/darwin.h (subprocesses): Do not define, defined by default now.
12094 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12095 Remove all references.
12096 (temacs): Add GNUstep specific ld flags.
12098 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12099 similarly to what X does.
12101 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12103 * nsfns.m (x-list-fonts): Remove.
12104 (syms_of_nsfns): Drop the x-list-fonts declaration.
12105 * nsterm.m: Get rid of remaining "//" comments.
12107 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12109 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12111 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12112 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12113 (Fns_own_selection_internal, Fx_disown_selection_internal)
12114 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12116 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12117 ... */' style of docstrings. Doc fixes.
12119 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12121 * terminfo.c (UP, BC, PC): Undo previous change.
12123 * nsfns.m: Rename ns prefixed functions/variables to the
12124 corresponding x versions. Update references.
12126 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12128 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12130 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12132 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12133 Remove forwarding functions.
12134 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12136 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12138 (ns_frame_parm_handlers): Use the new names.
12139 (syms_of_nsfns): Move to the end of file.
12141 * nsterm.m (syms_of_nsterm): Move to the end of file.
12143 * dispnew.c (init_display): Remove code for X10.
12145 2008-07-22 Jason Rumney <jasonr@gnu.org>
12147 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12150 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12152 * nsterm.m (syms_of_nsterm): Remove debugging println.
12154 2008-07-22 David Reitter <david.reitter@gmail.com>
12156 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12157 Carbon implementation of the same functionality: execute arbitrary
12160 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12162 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12163 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12164 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12165 (Fx_display_mm_height, Fx_display_mm_width)
12166 (Fx_display_backing_store, Fx_display_visual_class)
12167 (Fx_display_save_under, Fx_open_connection)
12168 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12169 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12170 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12171 (Fx_display_pixel_width, Fx_display_pixel_height)
12172 (Fx_display_usable_bounds, Fx_display_planes)
12173 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12174 ... */' style of docstrings.
12176 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12178 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12181 * m/iris4d.h (mips): Do not define.
12182 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12184 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12190 * nsterm.m: Rename ns prefixed functions/variables to the
12191 corresponding x versions. Update references.
12193 * m/ibms390x.h (NO_REMAP): Do not undefine.
12195 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12197 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
12199 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12200 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12201 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12202 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12203 (Fns_display_mm_height, Fns_display_mm_width)
12204 (Fns_display_backing_store, Fns_display_visual_class)
12205 (Fns_display_save_under, Fns_open_connection)
12206 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12207 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12208 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12209 (Fns_display_pixel_width, Fns_display_pixel_height)
12210 (Fns_display_usable_bounds, Fx_display_planes)
12211 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12213 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12215 * print.c (print_object): Check print_depth before searching for
12218 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
12220 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12223 2008-07-21 Kenichi Handa <handa@m17n.org>
12225 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12227 2008-07-20 Andreas Schwab <schwab@suse.de>
12229 * syntax.c (find_start_pos, find_start_value)
12230 (find_start_value_byte, find_start_begv, find_defun_start)
12231 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12233 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12235 * s/sol2-3.h: Insert contents of s/sol2.h.
12236 (LD_SWITCH_SYSTEM): Remove redundant definition.
12237 * s/sol2.h: Remove, unused.
12239 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12241 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12243 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12245 * Makefile.in (ns_appdir): Fix typo in find command.
12247 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12249 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12251 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12252 added not supported anymore.
12254 * s/usg5-4-2.h (LIBS_SYSTEM):
12255 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12257 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12258 * s/lynxos.h (GETPGRP_NO_ARG):
12259 * s/hpux10-20.h (NO_SIOCTL_H):
12260 * s/gnu.h (GETPGRP_NO_ARG):
12261 * s/gnu-linux.h (NO_SIOCTL_H):
12262 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12263 * s/cygwin.h (GETPGRP_NO_ARG):
12264 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12265 (C_DEBUG_SWITCH): Remove duplicate definition.
12267 * m/ibms390.h: Remove boilerplate comments.
12269 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12271 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12272 (wait_reading_process_output): Remove code for SunOS, platform not
12273 supported anymore. Use SOLARIS2 instead of sun.
12275 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12277 * font.c (font_open_by_name): Under NS, default lface height to zero.
12278 (font_open_for_lface): Under NS, set size based on frame fontsize.
12279 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12280 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12282 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12284 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12285 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12286 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12288 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12289 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12290 * Makefile.in (clean): Clear out build destination dir.
12292 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12294 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12296 * lisp.h: Remove declaration of hash_remove.
12297 * nsgui.h: Remove redefinitions of hash_remove.
12298 * fns.c (hash_remove): Rename to hash_remove_from_table.
12300 2008-07-19 Seiji Zenitani <zenitani@mac.com>
12302 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12303 strdup() the family UTF8String before modifying it.
12305 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12307 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12308 NS_FACE_BACKGROUND with 0 instead of nil.
12309 * nsfont.m (nsfont_draw): Same.
12311 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
12313 * nsfns.m (ns_set_background_color): Fix crash.
12315 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
12317 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12319 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12321 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12323 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12325 * gtkutil.c: Include <config.h> instead of "config.h".
12327 * lisp.h (Foverlay_buffer): Add EXFUN.
12329 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12330 child process to complete child_setup. Undo 2005-09-21 change.
12332 * s/darwin.h: Mention setsid after vfork.
12334 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12336 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12337 Depend on macgui.h.
12339 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12340 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12342 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12344 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12346 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12347 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12348 Remove enumerators.
12350 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12351 Check if FACE_FROM_ID returns NULL.
12353 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12355 * w32inevt.c (change_frame_size): Remove extern declaration.
12356 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12359 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12361 * getloadavg.c: Revert last change (2008-07-15).
12363 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12365 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
12366 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
12369 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12372 * s/sol2-4.h: Reorganize conditionals.
12374 * ecrt0.c: Remove code depending on m68000, not used anymore.
12376 * fns.c (hash_remove): Make static.
12377 * lisp.h (hash_remove): Don't prototype.
12381 * m/macppc.h: Remove boilerplate comments.
12383 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12384 Solaris, which does not need them.
12386 * m/vax.h: Remove comments about unsupported systems.
12388 * s/darwin.h: Reorganize ifdefs.
12390 2008-07-17 Andreas Schwab <schwab@suse.de>
12392 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12394 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12396 Use SDATA. Follow coding convention of placing operators at
12397 beginning of next line rather than end of previous line, and placing
12398 spaces around infix operators.
12400 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12401 in case it was defined already.
12402 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12403 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12405 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12407 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12408 (ns_defined_color, ns_color_to_lisp): Declare.
12409 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12410 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12411 it's accepted even with USE_LISP_UNION_TYPE.
12412 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12413 (update_frame_tool_bar): Remove apparently obsolete tests for
12414 non-integerness of f->tool_bar_lines.
12415 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12416 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12417 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12418 (nsfont_open): Don't confuse NULL for Qnil.
12419 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12420 * menu.h (find_and_call_menu_selection):
12421 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12422 (find_and_return_menu_selection): Always return something.
12423 * frame.h: Include dispextern.h for Display_Info.
12424 (display_x_get_resource): Declare.
12426 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12428 * syntax.c: Remove stdio.h include accidentally introduced in
12430 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12432 * keyboard.c (handle_async_input, input_available_signal): Remove
12433 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12435 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12437 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12438 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12439 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12442 * keymap.c: Remove all NS-specific code.
12443 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12444 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12445 where_is_preferred_modifier, return a different value depending on how
12446 preferred is the binding.
12447 (where_is_internal): Adjust accordingly.
12448 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12449 Adjust to new preferred_sequence_p.
12450 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12451 * keyboard.c (parse_solitary_modifier): Not static any more.
12452 * keyboard.h (parse_solitary_modifier): Declare.
12454 2008-07-16 Andreas Schwab <schwab@suse.de>
12456 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12459 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
12461 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12462 that we don't move off the line.
12464 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12466 * keyboard.c (Qsuper): Remove.
12467 (parse_menu_item): Don't call where_is_internal specially for NS.
12469 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12471 * s/gnu-linux.h: Remove boilerplate comments.
12473 * m/alpha.h (__ELF__): Consolidate conditions.
12475 * m/m68k.h (linux): Use GNU_LINUX instead.
12476 Remove boilerplate comments.
12478 * m/intel386.h: Undo refactoring from previous change.
12479 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12480 too, remove dead code.
12481 (linux): Use GNU_LINUX instead.
12483 2008-07-16 Jason Rumney <jasonr@gnu.org>
12485 * w32gui.h: Repeat 26 June changes lost by last change.
12487 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12489 * systty.h: Remove code for Aix on 386, unsupported platform.
12491 * s/ms-w32.h: Remove boilerplate comments.
12492 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12494 * s/gnu-linux.h (TERM): Remove support.
12495 (HAVE_SYSVIPC): Remove, unused.
12496 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12499 * process.c: Remove support for IRIS, unused.
12500 Remove support for TERM, not relevant anymore.
12502 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12503 used with the definition.
12505 * s/aix4-2.h (static): Do not undef.
12507 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12509 (HAVE_SYSVIPC): Remove, unused.
12511 * m/hp800.h (CANNOT_DUMP): Do not undef.
12513 * m/alpha.h: Fix comment.
12515 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12516 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12517 used by this configuration.
12518 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12519 * unexec.c: Remove code depending on HPUX and
12520 USG_SHARED_LIBRARIES, not used with this file. Remove code
12521 depending on IRIS, unused. Remove if 0-ed code.
12523 * s/template.h: Remove comments about static.
12525 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12526 Remove if 0-ed code.
12527 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12528 were the same as the default.
12529 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12530 Remove boilerplate comments.
12531 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12532 (HAVE_SYSVIPC): Remove, unused.
12533 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12535 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12536 Remove boilerplate comments.
12537 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12538 Remove boilerplate comments.
12539 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12540 Remove boilerplate comments.
12541 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12543 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12544 USG systems which do not use DATA_SEG_BITS.
12545 Refactor code. Remove boilerplate comments.
12554 * s/msdos.h: Remove boilerplate comments.
12556 * m/iris4d.h: Remove boilerplate comments and code for systems that
12557 do not use this file.
12558 (IRIS_4D): Remove, unused.
12560 * m/mips.h: Remove boilerplate comments and code for systems that
12561 do not use this file.
12562 (SIGN_EXTEND_CHAR):
12563 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12564 * unexmips.c: Remove file, unused.
12566 * editfns.c (Fuser_full_name): Replace the only use of
12567 USER_FULL_NAME with its value.
12568 * config.in: Regenerate.
12570 2008-07-16 David Reitter <david.reitter@gmail.com>
12572 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12573 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12575 2008-07-16 Glenn Morris <rgm@gnu.org>
12577 * emacs.c (system-type): Doc fix.
12579 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12581 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12582 If the cache doesn't work, let's fix it, rather than work around it.
12584 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12586 * Makefile.in: Correct additions for nsfont.o in last commit.
12587 * nsfont.m: New file (forgot last commit).
12589 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12591 * callproc.c (set_initial_environment): Initialize
12592 Vprocess_environment under CANNOT_DUMP (fixes crash when
12593 batch-compiling for bootstrap).
12595 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12596 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12598 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12599 CANNOT_DUMP case -- fix crash due to different init order.
12601 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12603 Changes and additions for NeXTstep windowing system (Cocoa and
12607 * config.in: Support defines and build commands for NS port.
12608 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12609 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12610 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12612 (struct face): Add synth_ital field.
12613 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12614 (init_display): Initialize Vinitial_window_system to "ns" when so
12616 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12617 (display_arg): Use under NS.
12618 (main): Under NS, allocate autorelease pool and handle command line
12619 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12620 (standard_args): Add NS-specific args.
12621 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12622 * font.c (DEFAULT_ENCODING): New variable.
12623 (font_find_for_lface): Use it.
12624 (syms_of_font): Load syms_of_nsfont under NS.
12625 * font.h: Declare nsfont_driver when compiled under NS.
12626 * fontset.c: When compiling under NS, include nsterm.h.
12627 (fontset_from_font): Autoconstruct fontset under NS.
12628 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12629 symbol, document and use it.
12630 (do_switch_frame): When for_deletion under Cocoa, add
12631 Fraise_frame(Qnil).
12632 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12633 (x_get_arg): Allow "yes" and "no" as boolean values.
12634 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12635 Qright under Cocoa.
12636 (focus-follows-mouse): Default to 0 under NS.
12637 * frame.h (enum output_method): Add output_ns.
12638 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12639 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12640 (FRAME_WINDOW_P): NS-specific definition.
12641 * fringe.c (max_used_fringe_bitmap): Make public.
12642 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12643 (getloadavg): Use NeXT code under descendant OS's.
12644 * image.c (includes and header section, x_create_bitmap_from_data)
12645 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12646 (image_background_transparent, x_clear_image_1)
12647 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12648 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12649 (x_to_xcolors, x_from_xcolors, x_disable_image)
12650 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12651 other GUIs, including XPM support using code originally written for
12653 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12655 (image_ascent): Use font metrics macros instead of direct struct field
12657 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12658 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12659 Also, handle NS as GTK for menu bar purposes.
12660 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12661 toolkit where they differ.
12662 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12663 use cachelist, still needed under NS.
12664 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12665 (struct widget_value): Define it here for menu.c.
12666 * keymap.c (includes): Include modifier internals.
12667 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12669 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12670 support for preferring sequences using certain modifiers, specified by
12671 the FIRSTONLY argument.
12672 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12673 under NS GNUstep implementation.
12674 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12675 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12676 * menu.c: Include nsterm.h under NS.
12677 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12678 (free_menubar_widget_tree_value, update_submenu_strings)
12679 (find_and_call_menu_selection): Treat NS as X and NT.
12680 (find_and_return_menu_selection): New function, used for popup menus.
12687 * nsterm.m: New files.
12688 * process.c (wait_reading_process_output): Under NS, call ns_select()
12689 instead of plain select().
12690 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12691 beginning of buffer.
12692 * sysselect.h (init_process): Rename when compiling under Cocoa to
12693 avoid name conflict.
12694 * termhooks.h (display_info): Add ns_display_info to union.
12695 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12696 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12698 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12699 unexec() signature. (Note, this will dump, but the resulting file
12700 crashes; unexosx is used instead; keeping around for reference and
12701 possible aid in getting dump working under GNUstep.)
12702 * w32gui.h (button_type, widget_value): Remove definitions (now in
12704 * window.c: Include nsterm.h when compiling under NS.
12705 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12706 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12707 other GUI windowing systems.
12708 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12710 (x_consider_frame_title): Under NS, set icon type and frame
12711 modified-state indicator; use ns_set_name_as_filename() when using
12713 (update_window_cursor): Make public when compiling under NS.
12714 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12715 (hourglass_atimer, Vhourglass_delay
12716 * xfaces.c (header section, init_frame_faces, clear_font_table)
12717 (defined_color, unload_color, x_face_list_fonts)
12718 (prepare_face_for_display): Add NS support parallel to other GUIs.
12719 Emulate GCs like other non-X GUIs.
12720 (split_font_name): Don't lowercase font name under NS.
12721 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12723 * s/darwin.h: Add support for compilation under NS.
12725 2008-07-15 Jason Rumney <jasonr@gnu.org>
12727 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12728 (w32_show_hourglass): Rename from show_hourglass.
12729 (w32_hide_hourglass): Rename from hide_hourglass.
12730 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12731 (Vhourglass_delay): Declare extern.
12732 (hourglass_started): Remove.
12734 * xdisp.c (Vhourglass_delay): Remove static.
12735 (hourglass_started, start_hourglass, cancel_hourglass):
12736 Don't include these versions on WINDOWSNT.
12738 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12740 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12741 variables (formerly in xfns.c).
12742 (show_hourglass, hide_hourglass): New prototypes (same).
12743 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12744 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12746 (syms_of_xdisp): Declare/initialize display-hourglass,
12747 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12748 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12749 formerly in xfns.c.
12750 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12751 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12752 (start_hourglass, cancel_hourglass): Remove.
12753 (show_hourglass, hide_hourglass): Remove prototypes and static
12755 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12756 hourglass_atimer, hourglass_shown_p declaration/initialization.
12757 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12758 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12759 (start_hourglass, cancel_hourglass): Remove.
12760 (show_hourglass, hide_hourglass): Remove prototypes and static
12762 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12763 hourglass_atimer, hourglass_shown_p declaration/initialization.
12764 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12765 (DEFAULT_HOURGLASS_DELAY): Remove.
12766 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12767 hourglass_shown_p declaration/initialization.
12769 2008-07-14 Jason Rumney <jasonr@gnu.org>
12771 * w32fns.c (w32_get_arg): Remove wrapper function.
12772 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12774 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12776 2008-07-14 Kenichi Handa <handa@m17n.org>
12778 * xfont.c (xfont_open): Add workaround for X's bug.
12780 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12782 * fontset.c: Include <stdio.h> unconditionally.
12784 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
12786 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12789 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12791 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12794 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12796 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
12797 (SPECIAL_EMACS_INT):
12798 * m/ia64.h (SPECIAL_EMACS_INT):
12799 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12800 * s/gnu.h (NLIST_STRUCT):
12801 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12802 * s/gnu-linux.h (LINUX):
12803 * s/msdos.h (HAVE_FACES):
12804 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12807 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12810 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12812 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12813 always defined as int.
12815 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12816 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12817 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12818 * s/freebsd.h (HAVE_WAIT_HEADER):
12819 * s/bsd-common.h (HAVE_UNION_WAIT):
12820 * s/aix4-2.h (HAVE_WAIT_HEADER):
12821 * m/mips.h (HAVE_UNION_WAIT):
12822 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12823 (COFF, static): Do not define, they are undefined later in the file.
12825 * process.c (update_status): Don't use a union.
12827 (sigchld_handler): Use int instead of WAITTYPE.
12829 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
12831 * indent.c (Fvertical_motion): Restore hscroll before moving to
12834 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12836 * lisp.h: Remove left over code.
12838 2008-07-11 Andreas Schwab <schwab@suse.de>
12840 * lisp.h: Fix logic in last change.
12842 * menu.h: New file.
12843 * menu.c: Include it.
12844 * xmenu.c: Likewise.
12845 * Makefile.in: Update dependencies.
12847 2008-07-11 Kenichi Handa <handa@m17n.org>
12849 * fontset.c (fontset_from_font): Cancel the previous change.
12851 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12856 * alloc.c: Replace all references of NO_UNION_TYPE with
12857 USE_LISP_UNION_TYPE.
12859 * m/xtensa.h (NO_UNION_TYPE):
12860 * m/vax.h (NO_UNION_TYPE):
12861 * m/template.h (NO_UNION_TYPE):
12862 * m/sparc.h (NO_UNION_TYPE):
12863 * m/mips.h (NO_UNION_TYPE):
12864 * m/macppc.h (NO_UNION_TYPE):
12865 * m/m68k.h (NO_UNION_TYPE):
12866 * m/iris4d.h (NO_UNION_TYPE):
12867 * m/intel386.h (NO_UNION_TYPE):
12868 * m/ibms390x.h (NO_UNION_TYPE):
12869 * m/ibms390.h (NO_UNION_TYPE):
12870 * m/ibmrs6000.h (NO_UNION_TYPE):
12871 * m/ia64.h (NO_UNION_TYPE):
12872 * m/hp800.h (NO_UNION_TYPE):
12873 * m/arm.h (NO_UNION_TYPE):
12874 * m/amdx86-64.h (NO_UNION_TYPE):
12875 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12876 defining it the same.
12878 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
12880 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12882 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12899 * s/vms.h: Remove references to unused variables.
12901 2008-07-10 Andreas Schwab <schwab@suse.de>
12903 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12904 pattern before matching the generic family.
12906 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12913 * s/darwin.h: Remove dead code.
12926 * m/amdx86-64.h: Remove dead code and references to unused
12927 and compiler defined symbols.
12930 * unexelf.c: Remove references to desupported systems.
12932 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12934 * m/powermac.h: Remove boilerplate comments.
12935 (NO_REMAP): Remove unused definition.
12937 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12940 2008-07-10 Kenichi Handa <handa@m17n.org>
12942 * xfont.c (xfont_open): Log the reason of failure.
12944 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12946 * fontset.c (fontset_get_font_group):
12947 * font.c (font_check_otf): Specify argument types.
12949 2008-07-09 Kenichi Handa <handa@m17n.org>
12951 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12952 non-ASCII char is found.
12954 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12955 (reorder_font_vector): Change the arg preferred_family to font.
12956 Prefer the spec matching with font.
12957 (fontset_get_font_group): New function.
12958 (fontset_find_font): Change the format of an element of a realized
12959 fontset. Use fontset_get_font_group.
12960 (fontset_font): Try the current fontset, the default fontset, the
12961 fallbacks of the current fontset, and the fallbacks of the default
12962 fontset in this order.
12963 (face_for_char): Delete the shortcut to use the current font.
12964 (fontset_from_font): Don't set fonts for Latin in the fontset.
12966 * font.h (font_make_object, font_match_p): Adjust prototypes.
12968 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12970 * font.c (font_make_object): New arg entity and pixelsize.
12971 (font_check_otf_features, font_check_otf): New functions.
12972 (font_match_p): Check :lang, :script, and :otf properties.
12974 * xfont.c (xfont_open): Adjust it for the change of
12976 (xfont_text_extents): Fix initial setting of metrics.
12978 * ftfont.c (struct ftfont_info): New member index, delete member
12979 fc_charset_idx. Make the member order compatible with struct
12981 (fc_charset_table): Change charset names to registry names.
12982 (ftfont_pattern_entity): Delete the args registry and
12983 fc_charset_idx. Change the value of :font-entity property
12984 to (FONTNAME . INDEX). Always set :registry property to
12986 (struct ftfont_cache_data): New struct.
12987 (ftfont_lookup_cache): New arg for_face.
12988 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12989 (ftfont_driver): Set the member otf_capability.
12990 (ftfont_get_charset): Adjust it for the change of
12992 (OTF_TAG_SYM): New macro.
12993 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12994 for the change of fc_charset_table.
12995 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12996 ftfont_pattern_entity. Add FC_INDEX to objset.
12997 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12998 and ftfont_pattern_entity.
12999 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13000 font_make_object, struct ftfont_info.
13001 (ftfont_has_char): Use ftfont_get_fc_charset.
13002 (ftfont_otf_features, ftfont_otf_capability): New functions.
13003 (ftfont_shape): Use ftfont_get_otf.
13004 (ftfont_text_extents): Fix initial setting of metrics.
13006 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13007 member order compatible with struct ftfont_info.
13008 (xftfont_open): Add FC_CHARSET to the pattern. Set
13009 xftfont_info->ft_size. Don't unlock the face. Check BDF
13010 properties if appropriate.
13011 (xftfont_close): Unlock the face.
13012 (xftfont_anchor_point, xftfont_shape): Deleted.
13013 (syms_of_xftfont): Don't set members anchor_point and shape of
13016 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13019 * w32font.c (w32font_open): Adjust it for the change of
13021 (w32font_open_internal): Don't set properties of font_object here.
13023 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13025 * macfns.c (x_create_tip_frame):
13026 * w32fns.c (x_create_tip_frame):
13027 * xfns.c (x_create_tip_frame): Pass parameter argument to
13028 face-set-after-frame-default.
13030 * xfaces.c (Finternal_merge_in_global_face): Save merged
13031 attributes for the default face back into the face vector.
13033 2008-07-08 Andreas Schwab <schwab@suse.de>
13035 * fontset.h: Declare fontset_from_font. Don't declare
13036 new_fontset_from_font and fontset_from_font_name.
13037 * xterm.c: Include "fontset.h".
13038 * Makefile.in (xterm.o): Update dependencies.
13040 2008-07-08 Glenn Morris <rgm@gnu.org>
13042 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13043 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13045 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13047 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13048 (x_set_frame_parameters): Don't bind it.
13050 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13052 * w32fns.c (map_w32_filename): Declare extern.
13054 2008-07-07 Jason Rumney <jasonr@gnu.org>
13056 * w32term.c (WS_EX_LAYERED): Define if not already.
13058 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13060 * xfaces.c (set_font_frame_param): Don't try to set the font
13061 parameter if it is still unspecified in the lface.
13063 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13065 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13066 face if it didn't already exist.
13068 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13070 2008-07-05 Andreas Schwab <schwab@suse.de>
13072 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13074 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13076 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13078 (IT_DISPLAYING_WHITESPACE): New macro.
13079 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13080 when word-wrapping. Simplify word-wrapping logic. Use correct
13081 pixel positions when saving copies of the iterator.
13082 (display_line): Use proper wrap point if the last character on a
13083 line was preceded by whitespace.
13085 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13087 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13089 2008-07-04 Kenichi Handa <handa@m17n.org>
13091 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13093 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13095 2008-07-02 Jason Rumney <jasonr@gnu.org>
13097 * xfns.c (syms_of_xfns): Only define x-select-font when both
13098 HAVE_FREETYPE and USE_GTK.
13100 * xdisp.c (next_element_from_display_vector): Move assignment out
13103 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13105 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13107 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13108 (syms_of_fileio): Initialize and export them.
13109 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13111 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13112 (Fsystem_move_file_to_trash): New function.
13113 (syms_of_w32fns): Export it to lisp.
13115 2008-07-01 Jason Rumney <jasonr@gnu.org>
13117 * w32font.c (w32font_text_extents): Don't count overhang as part
13120 2008-06-30 Miles Bader <miles@gnu.org>
13122 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13123 Add `avoid_cursor_p' field.
13125 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13126 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13127 (append_glyph, append_composite_glyph, produce_image_glyph)
13128 (append_stretch_glyph): Initialize avoid_cursor_p.
13129 (get_it_property): Rename from `get_line_height_property'.
13130 (x_produce_glyphs): Use get_it_property.
13131 (handle_line_prefix, push_display_prop): New functions.
13132 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13133 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13135 (syms_of_xdisp): Initialize them.
13137 2008-06-30 Kenichi Handa <handa@m17n.org>
13139 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13140 XftDefaultSubstitute (they are called in XftFontMatch).
13141 (xftfont_open): Fix args to ftfont_font_format.
13143 * ftfont.c (fc_charset_table): New member lang.
13144 (ftfont_resolve_generic_family): New arg pattern.
13145 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13146 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13147 (ftfont_open): Fix args to ftfont_font_format.
13148 (ftfont_font_format): New arg filename.
13150 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
13152 * xfaces.c (Finternal_merge_in_global_face): If default face was
13153 modified, realize it again. Update the font face attribute.
13155 2008-06-29 Jason Rumney <jasonr@gnu.org>
13157 * w32term.c (x_set_frame_alpha): Fix logic.
13159 2008-06-29 Kenichi Handa <handa@m17n.org>
13161 * fontset.c (Finternal_char_font): Return font-object instead of
13164 * composite.c (get_composition_id): Fix the width calculation for TAB.
13166 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13168 * indent.c (Fvertical_motion): Properly handle float column arg.
13170 2008-06-28 Jason Rumney <jasonr@gnu.org>
13172 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13173 (pfnSetLayeredWindowAttributes): New function pointer.
13174 (w32_initialize): Initialize it when supported.
13175 (x_set_frame_alpha): New function.
13177 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13178 (w32_frame_parm_handlers): Set alpha handler.
13180 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13182 2008-06-27 Jason Rumney <jasonr@gnu.org>
13184 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13185 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13186 (w32_to_x_charset, x_to_w32_charset)
13187 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13188 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13189 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13190 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13191 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13192 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13193 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13194 (Qw32_charset_unicode): Remove.
13195 (syms_of_w32fns): Update for above changes.
13197 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13198 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13199 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13200 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13201 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13202 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13203 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13204 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13205 (syms_of_w32font): Update for above changes.
13207 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13209 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13211 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13213 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13214 Eli Zaretskii <eliz@gnu.org>
13216 * makefile.w32-in (LOCAL_FLAGS):
13217 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13219 * sysdep.c (_spawnlp, _getpid):
13220 Declare with explicit _cdecl instead of _CRTAPI1.
13222 * editfns.c (Fget_internal_run_time):
13223 Check for WINDOWSNT with #ifdef, not #if.
13225 2008-06-26 Jason Rumney <jasonr@gnu.org>
13227 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13229 * w32term.c (x_draw_glyph_string_foreground)
13230 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13231 Use FONT_HANDLE macro.
13232 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13234 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13235 (uniscribe_encode_char): Use FONT_HANDLE macro.
13237 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13238 (w32font_text_extents): Use precast w32_font.
13239 (w32font_close): Free cached metrics.
13240 (w32font_open_internal): Allocate space for name on stack.
13242 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
13244 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13246 2008-06-26 Jason Rumney <jasonr@gnu.org>
13248 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13249 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13251 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13253 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13255 2008-06-26 Jason Rumney <jasonr@gnu.org>
13257 * w32bdf.c, w32bdf.h: Remove obsolete files.
13259 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13261 * w32gui.h: Don't include w32bdf.h.
13262 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13263 Remove obsolete font support.
13265 * w32font.h (struct w32font_info): Remove compat_w32_font.
13267 (FONT_COMPAT): Remove obsolete macro.
13269 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13270 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13271 (w32font_open_internal): Remove compat code. Set new hfont member.
13272 (Fx_select_font): Use new hfont member.
13274 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13275 (uniscribe_encode_char): Use new hfont member.
13277 * w32term.c (x_draw_glyph_string_foreground)
13278 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13279 (x_draw_glyph_string): Use metrics in w32font_info.
13281 2008-06-26 Kenichi Handa <handa@m17n.org>
13283 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13285 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13291 * m/mips-siemens.h:
13313 * s/uxpv.h: Remove support for obsolete systems.
13314 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13315 Remove, insert contents in s/hpux10-20.h.
13316 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13317 Remove, insert contents in s/aix4-2.h.
13318 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13319 * s/bsd4-3.h: Rename to ...
13320 * s/bsd-common.h: ... this.
13349 * s/template.h: Remove references to obsolete variables.
13351 * Makefile.in: Add dependencies for all unexec files.
13352 (admindir): Remove unused variable.
13353 (UNEXEC_SRC): Remove references.
13355 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
13357 * xfns.c (x_default_font_parameter): If Xft is available, first
13358 try Monospace-12 for the default font.
13360 2008-06-25 Jason Rumney <jasonr@gnu.org>
13362 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13364 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13366 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13368 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13370 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
13372 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13373 <scroll-conservatively>: Fix typo in docstring.
13375 * xselect.c (Fx_send_client_event): Doc fix.
13377 2008-06-25 Kenichi Handa <handa@m17n.org>
13379 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13381 * font.c (font_parse_fcname): Remove unused variables.
13382 (font_sort_entites): Delete the arg SPEC. Caller changed.
13383 Fix for the case of ! best_only.
13384 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13386 * lisp.h (Fstring_to_unibyte): EXFUN it.
13388 * character.h (str_to_unibyte): Extern it.
13390 * character.c (str_to_unibyte): New function.
13392 * fns.c (Fstring_to_unibyte): New function.
13393 (syms_of_fns): Defsubr it.
13395 2008-06-24 Kenichi Handa <handa@m17n.org>
13397 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13399 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13401 2008-06-24 Andreas Schwab <schwab@suse.de>
13403 * Makefile.in (${lispsource}loaddefs.el): Rename from
13404 ../lisp/loaddefs.el.
13405 (bootstrap-clean): Do what distclean does but don't remove
13407 (distclean): Depend on bootstrap-clean and remove Makefile.
13409 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
13411 * buffer.h (struct buffer): New member word_wrap.
13413 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13415 (init_buffer_once): Initialize them.
13417 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13418 line_wrap enum possessing three possible values.
13420 * termopts.h: Replace truncate_partial_width_windows with
13421 Vtruncate_partial_width_windows.
13423 * dispnew.c (direct_output_for_insert): Avoid direct output when
13424 inserting a space with word wrap on.
13426 * indent.c (compute_motion): Obey integer values of
13427 truncate-partial-width-windows.
13429 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13430 replacing truncate_partial_width_windows.
13431 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13432 truncate only if the window width is below that integer.
13433 (start_display, resize_mini_window, produce_stretch_glyph)
13434 (display_string, move_it_in_display_line_to): Use line_wrap.
13435 (back_to_previous_visible_line_start, reseat_1): Reset
13436 string_from_display_prop_p.
13437 (display_line): Extend default face to end of line when wrapping.
13439 2008-06-24 Kim F. Storm <storm@cua.dk>
13441 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13442 to wrap continued lines at word boundaries.
13444 2008-06-24 Jason Rumney <jasonr@gnu.org>
13446 * font.c (Ffont_face_attributes): Multiply pixel size before point
13447 conversion to avoid multiplying rounding error.
13449 2008-06-23 Jason Rumney <jasonr@gnu.org>
13451 * w32term.c (x_draw_glyph_string_background)
13452 (x_draw_glyph_string): Remove old bdf font code.
13454 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13456 2008-06-22 Kenichi Handa <handa@m17n.org>
13458 * font.c (font_find_for_lface): Try the adstyle specified in
13459 the property of LFACE_FONT of LFACE (if any).
13461 2008-06-21 Seiji Zenitani <zenitani@mac.com>
13462 Ryo Yoshitake <ryo@shiftmode.net>
13464 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13466 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13468 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13469 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13470 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13471 (witness-emacs): Remove.
13472 (lisp, shortlisp): Move loaddefs.el earlier.
13473 (mostlyclean): Forget about witness-emacs.
13475 2008-06-22 Glenn Morris <rgm@gnu.org>
13477 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13478 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13480 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13482 * Makefile.in (PRECOMP): Remove.
13483 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13484 (witness-emacs): Run `compile-first'.
13485 (.el.elc): Use the new compile-onefile target.
13487 2008-06-21 Kenichi Handa <handa@m17n.org>
13489 * xftfont.c (xftfont_open): Handle QCembolden only when
13490 FC_EMBOLDEN is defined.
13492 2008-06-21 Andreas Schwab <schwab@suse.de>
13494 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13495 (.el.elc): Likewise.
13497 2008-06-21 Miles Bader <miles@gnu.org>
13499 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13500 build dir, not the lisp source dir.
13502 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13504 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13505 (bootstrapclean): Remove.
13506 (.el.elc): New rule.
13507 (PRECOMP): New var.
13508 (../lisp/subdirs.el): Remove.
13509 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13510 (witness-emacs): New target.
13511 (mostlyclean): Remove witness-emacs as well.
13512 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13513 Add witness-emacs dependency.
13515 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
13517 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13518 defined by the font.
13520 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13522 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13523 (bootstrap-clean): New target that keeps TAGS around.
13524 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13525 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13527 2008-06-20 Jason Rumney <jasonr@gnu.org>
13529 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13530 Remove obsolete font code.
13532 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13533 to determine language support.
13535 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13537 * sysdep.c (cfsetspeed): New fun extracted from the code.
13538 (cfmakeraw): Move before first use.
13540 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13542 * sysdep.c (cfmakeraw): Provide fallback implementation.
13543 (serial_configure): Provide fallback implementation of cfsetspeed.
13545 2008-06-20 Kenichi Handa <handa@m17n.org>
13547 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13550 * fontset.c (fontset_from_font): Copy font_spec before changing
13553 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13555 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13557 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13558 for explicit `font' parameters.
13560 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13562 2008-06-19 Kenichi Handa <handa@m17n.org>
13564 * frame.c: Include <ctype.h>.
13565 (x_set_font_backend): Allow spacing characters in the X resource
13568 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13570 * w32fns.c, xfns.c (Qfont_param): New var.
13571 (syms_of_w32fns): Initialize it.
13572 (x_default_font_parameter): Record explicit `font' into
13575 2008-06-18 Kenichi Handa <handa@m17n.org>
13577 * font.c (font_parse_xlfd): Fix previous change.
13578 (font_parse_fcname): Don't use :fc-unknown-spec.
13579 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13580 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13581 (font_add_log): Prepend the driver name to the resulting fonts.
13583 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13584 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13585 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13587 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13588 (QCembolden): New variables.
13589 (syms_of_xftfont): DEFSYM them.
13590 (xftfont_open): Call XftFontMatch. Don't trust the result of
13591 XftTextExtents8 if the pixel_size is less than 5.
13593 2008-06-18 Andreas Schwab <schwab@suse.de>
13595 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13596 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13598 2008-06-18 Jason Rumney <jasonr@gnu.org>
13600 * w32font.c (w32font_list, w32font_match): Add logging.
13602 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13604 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
13606 * font.c (font_parse_fcname): Store divider characters for
13607 unknown-spec list. For known key symbols, intern using correct
13610 2008-06-17 Kenichi Handa <handa@m17n.org>
13612 * xfaces.c (realize_default_face): If the frame is not on window
13613 system, set the fontset of face to nil.
13615 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13617 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13619 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13621 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13622 (build_font_name_from_vector): Delete externs.
13624 * xfaces.c (struct font_name): Don't declare.
13626 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13628 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13630 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13632 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13634 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13636 * font.c (Ffont_spec): Fix usage in docstring.
13637 (Ffont_face_attributes): Doc fix.
13639 2008-06-16 Andreas Schwab <schwab@suse.de>
13641 * font.c (Ffont_face_attributes): Fix definition.
13643 2008-06-16 Jason Rumney <jasonr@gnu.org>
13645 * font.h (font_style_symbolic_from_value): Remove.
13647 * font.c (font_style_symbolic_from_value): Remove.
13648 (font_style_symbolic): Revert to pre 2008-06-13 version.
13650 * w32font.c (w32_to_fc_weight): New function.
13651 (w32font_full_name, logfont_to_fcname): Use it.
13653 2008-06-16 Kenichi Handa <handa@m17n.org>
13655 * font.c (font_check_object): Delete it.
13656 (font_clear_cache): Check if a font-object is alive.
13657 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13658 font-object to nil.
13659 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13660 (font_at): Don't call font_check_object.
13661 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13663 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13665 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13667 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13669 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13671 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
13673 * font.c (font_parse_fcname): Only one decimal point.
13674 (font_unparse_fcname): Handle data in family and foundry indices
13675 as symbols, not strings.
13676 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13678 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13680 * font.h (font_unparse_gtkname): Add prototype.
13682 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13684 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13686 2008-06-15 Andreas Schwab <schwab@suse.de>
13688 * font.c (font_update_drivers): Fix crash when no drivers match.
13690 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13692 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13693 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13695 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13697 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13699 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13701 * process.c (Fserial_process_configure, Fprocess_send_eof):
13702 Use EQ to compare Lisp_Objects.
13704 2008-06-13 Jason Rumney <jasonr@gnu.org>
13706 * w32fns.c (Fw32_select_font): Remove old font API function.
13708 * w32font.c (logfont_to_fcname): New function.
13709 (Fx_select_font): New font dialog function compatible with
13710 GTK/fontconfig version.
13712 * font.c (font_style_symbolic_from_value): New function.
13713 (font_style_symbolic): Use it.
13715 * font.h (font_style_symbolic_from_value): Declare new function.
13717 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
13719 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13720 <font-width-table>: Fix typos in docstrings.
13722 2008-06-13 Daniel Engeler <engeler@gmail.com>
13724 These changes add serial port access.
13725 * process.c: Add HAVE_SERIAL.
13726 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13727 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13728 (list_processes_1, select_wrapper, Fstop_process)
13729 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13730 (status_notify): Modify to handle serial processes.
13731 [HAVE_SERIAL] (Fserial_process_configure)
13732 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13734 * process.h (struct Lisp_Process): Add `type'.
13735 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13737 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13739 (serial_open, serial_configure): New functions.
13740 * w32.h: Add FILE_SERIAL.
13741 (struct _child_process): Add ovl_read, ovl_write.
13743 2008-06-13 Kenichi Handa <handa@m17n.org>
13745 * dispextern.h (enum lface_attribute_index): New member
13746 LFACE_FOUNDRY_INDEX.
13748 * font.c (font_score): Delete arg alternate_families. Check only
13749 weight, slant, width, and size. Ignore the difference of alias
13751 (font_sort_entites): Adjust for the above change. Reflect the
13752 order of font-driver to scores.
13753 (font_list_entities): Don't check alternate_familes here.
13754 (font_clear_prop): Handle foundry.
13755 (font_update_lface): Don't parse "foundry-family" form here.
13756 Handle FONT_FOUNDRY_INDEX.
13757 (font_find_for_lface): Likewise. Handle alternate families here.
13758 If registry is nil, try iso8859-1 and ascii-0.
13759 (font_open_for_lface): Pay attention to size in ENTITY.
13760 (font_open_by_name): Simplify by calling font_load_for_lface.
13761 (free_font_driver_list): Delete it.
13762 (font_update_drivers): Preserve the order of backends.
13763 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13764 of font_score and font_sort_entites.
13765 (font_update_sort_order): Likewise.
13767 * xfaces.c (LFACE_FOUNDRY): New macro.
13768 (check_lface_attrs): Check foundry.
13769 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13770 (merge_face_vectors): Check foundry.
13771 (merge_face_ref): Likewise.
13772 (Finternal_set_lisp_face_attribute): Likewise.
13773 (x_update_menu_appearance): Likewise.
13774 (Finternal_get_lisp_face_attribute): Likewise.
13775 (lface_hash): Likewise.
13776 (lface_same_font_attributes_p): Likewise.
13777 (x_supports_face_attributes_p): Likewise.
13778 (tty_supports_face_attributes_p): Likewise.
13779 (Finternal_set_alternative_font_family_alist): Intern strings.
13780 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13781 (realize_default_face): Set LFACE_FOUNDRY (lface).
13783 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13784 font-driver at first.
13786 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13788 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13790 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13792 2008-06-12 Jim Meyering <meyering@redhat.com>
13794 Make unexec_free handle NULL the same way free does.
13795 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13797 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13799 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13800 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13801 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13802 (WEAK_ALIAS): Simplify.
13803 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13804 when searching a unibyte buffer.
13806 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
13808 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13810 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
13812 * w32font.c: Include ctype.h.
13814 2008-06-11 Jason Rumney <jasonr@gnu.org>
13816 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13817 misreported as space.
13818 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13819 as aliases for registry iso10646-1.
13821 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13823 * buffer.c (clone_per_buffer_values): Skip `name'.
13825 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
13827 * font.c (font_parse_fcname): Fix last change; accept decimal
13828 points in font size.
13830 2008-06-10 Jason Rumney <jasonr@gnu.org>
13832 * w32uniscribe.c (add_opentype_font_name_to_list):
13833 Skip non unicode fonts.
13835 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13837 * xfns.c (Fx_font_dialog): New function.
13839 * gtkutil.c (xg_dialog_response_cb): Rename from
13840 xg_file_response_callback.
13841 (pop_down_dialog): Rename from pop_down_file_dialog.
13842 (xg_get_file_name): Callers changed.
13843 (xg_get_font_name): New function.
13845 * gtkutil.h (xg_get_font_name): Insert prototype.
13847 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13849 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13850 x_underline_minimum_display_offset.
13851 (syms_of_xdisp): Declare it here rather than in xterm.c.
13852 * dispextern.h (underline_minimum_offset): Declare it.
13853 * w32term.c (x_draw_glyph_string): Use it.
13854 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13855 (syms_of_xterm): Don't declare it any more.
13856 (x_draw_glyph_string): Adjust to the new name.
13858 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
13860 * xterm.c (x_underline_minimum_display_offset): New var.
13861 (x_draw_glyph_string): Use it.
13862 (syms_of_xterm): Declare it.
13864 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13866 * font.c (font_parse_fcname): Accept GTK-style font names too.
13868 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13870 * dired.c (file_name_completion): Don't return t if the match is exact
13871 but with different capitalization.
13872 * minibuf.c (Ftry_completion): Simplify.
13874 * window.c (Vwindow_point_insertion_type): New var.
13875 (set_window_buffer): Use it.
13876 (syms_of_window): Init and export it to Lisp.
13878 2008-06-10 Kenichi Handa <handa@m17n.org>
13880 * font.h (font_intern_prop): Prototype adjusted.
13882 * font.c (font_intern_prop): New arg force_symbol.
13883 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13884 Adjust for the change of font_intern_prop.
13886 * ftfont.c (ftfont_pattern_entity):
13887 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13889 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13890 the change of font_intern_prop.
13892 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
13894 * w32menu.c (digest_single_submenu): Declare extern.
13896 2008-06-09 Jason Rumney <jasonr@gnu.org>
13898 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13900 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13901 (parse_single_submenu): Remove.
13902 (digest_single_submenu): Remove.
13903 (syms_of_w32menu): Don't initialise variables that have moved
13905 (set_frame_menubar): Sync with version in xmenu.c.
13906 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13908 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13911 2008-06-09 Jason Rumney <jasonr@gnu.org>
13913 Changes to w32 files related to the move of common menu code
13914 to menu.c on 2008-06-08 by Chong Yidong.
13916 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13918 (single_keymap_panes, push_menu_item, push_menu_pane):
13919 Make globally visible.
13921 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13922 (local_free, malloc_widget_value, free_widget_value)
13923 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13924 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13925 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13926 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13927 (menu_items, menu_items_allocated, menu_items_used)
13928 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13929 (init_menu_items, finish_menu_items, discard_menu_items)
13930 (grow_menu_items, push_submenu_start, push_submenu_end)
13931 (push_left_right_boundary, push_menu_pane, push_menu_item)
13932 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13933 (free_menubar_widget_tree_value, parse_single_submenu)
13934 (update_submenu_strings): Remove functions.
13935 (xmalloc_widget_value): Remove and declare extern.
13937 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13940 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13941 (local_heap, local_alloc, local_free, malloc_widget_value)
13942 (free_widget_value): Define here.
13944 2008-06-09 Kenichi Handa <handa@m17n.org>
13946 * font.h (Qascii_0): Extern it.
13948 * font.c (Qascii_0): New variable.
13949 (syms_of_font): DEFSYM it.
13950 (font_open_by_name): If the registry "iso8859-1" fails, try also
13953 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13955 2008-06-08 Kenichi Handa <handa@m17n.org>
13957 * .gdbinit (xfont): New command.
13959 2008-06-08 Andreas Schwab <schwab@suse.de>
13961 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13962 * Makefile.in (menu.o): Update dependencies.
13964 * Makefile.in (obj): Always add menu.o.
13965 * emacs.c (main): Always call syms_of_menu.
13966 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13968 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
13970 * Makefile.in: Compile menu.c.
13972 * lisp.h: Declare syms_of_menu.
13974 * emacs.c (main): Call syms_of_menu.
13976 * keyboard.h: Relocate platform-independent menu definitions from
13979 * menu.c: New file. Relocate platform-independent menu
13980 definitions from xmenu.c. Suggested by Adrian Robert.
13982 * xmenu.c: Remove platform-independent menu definitions.
13983 (menu_items, menu_items_inuse, menu_items_allocated)
13984 (menu_items_used, menu_items_n_panes)
13985 (menu_items_submenu_depth): Move to keyboard.h.
13986 (init_menu_items, finish_menu_items, unuse_menu_items)
13987 (discard_menu_items, restore_menu_items, save_menu_items)
13988 (grow_menu_items, push_submenu_start, push_submenu_end)
13989 (push_left_right_boundary, push_menu_pane, push_menu_item)
13990 (keymap_panes, single_keymap_panes, single_menu_item)
13991 (list_of_panes, list_of_items, find_and_call_menu_selection)
13992 (xmalloc_widget_value, free_menubar_widget_value_tree)
13993 (parse_single_submenu, digest_single_submenu)
13994 (update_submenu_strings): Move to menu.c.
13996 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13998 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14000 2008-06-06 Miles Bader <miles@gnu.org>
14002 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14003 face, not frame default.
14005 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14007 * window.c (pop_up_windows, pop_up_frames)
14008 (display_buffer_reuse_frames, Vpop_up_frame_function)
14009 (Vdisplay_buffer_function, Veven_window_heights)
14010 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14011 (Vspecial_display_function, Vsame_window_buffer_names)
14012 (Vsame_window_regexps, split_height_threshold)
14013 (Vsplit_window_preferred_function): Move those vars to window.el.
14014 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14015 (Fdisplay_buffer): Move those functions to window.el.
14016 (syms_of_window): Remove corresponding declarations.
14017 (display_buffer): New function.
14018 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14019 * dispnew.c (Flast_nonminibuf_frame): New function.
14020 * buffer.c (Fpop_to_buffer): Move to window.el.
14022 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14024 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14026 2008-06-05 Kenichi Handa <handa@m17n.org>
14028 * coding.c (detect_coding): Fix previous change.
14029 (detect_coding_system): Likewise.
14031 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14033 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14035 * keymap.c (Vminibuffer_local_filename_must_match_map):
14036 Rename from Vminibuffer_local_must_match_filename_map.
14038 * minibuf.c (Fcompleting_read): Adjust accordingly.
14039 * commands.h: Rename declaration as well.
14041 2008-06-05 Kenichi Handa <handa@m17n.org>
14043 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14045 (Ffont_put): Likewise.
14047 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14050 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14053 * xfaces.c (realize_x_face): If the font-related face attributes
14054 are the same as those of default face, realize a new fontset from
14056 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14058 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14060 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14061 (move_it_in_display_line): New wrapper.
14063 * window.c (window_scroll_pixel_based_preserve_x)
14064 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14065 (window_scroll_pixel_based, window_scroll_line_based):
14066 Use them to preserve column positions.
14067 (syms_of_window): Initialize them.
14069 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14070 (HPOS . VPOS) pair.
14072 * dispextern.h (move_it_in_display_line): Declare.
14074 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14076 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14077 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14078 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14080 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14082 * window.c (Fset_window_parameter): Doc fix.
14083 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14085 2008-06-04 Joakim Verona <joakim@verona.se>
14087 * window.h (struct window): Add new member window_parameters.
14089 * window.c (Fwindow_parameters, Fwindow_parameter)
14090 (Fset_window_parameter): New defuns.
14091 (syms_of_window): Defsubr the new defuns.
14092 (make_window): Initialize window_parameters to nil.
14094 2008-06-04 John Paul Wallington <jpw@pobox.com>
14096 * eval.c (Fdefmacro): Doc fix.
14098 2008-06-04 Kenichi Handa <handa@m17n.org>
14100 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14101 Be sure to call setup_coding_system when we find a proper coding system.
14102 (detect_coding_system): Fix handling of coding->head_ascii.
14104 2008-06-03 Andreas Schwab <schwab@suse.de>
14106 * font.c (font_prop_validate_spacing): Fix last change.
14108 2008-06-03 Kenichi Handa <handa@m17n.org>
14110 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14111 (font_parse_fcname): Fix handling of unknown key.
14113 * xfont.c (xfont_list): Try an alias.
14115 * charset.c (char_charset): Return NULL if the arg charset_list is
14116 specified and C doesn't belong to any of them.
14118 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14120 * font.c (font_pixel_size): Don't take cdr of an integer.
14122 2008-06-02 Jim Meyering <meyering@redhat.com>
14124 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14125 * alloc.c (xfree): Return right away for a NULL arg.
14126 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14127 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14128 * mac.c (create_apple_event_from_event_ref): Likewise.
14129 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14131 * doprnt.c (doprnt1): Likewise.
14132 * frame.c (frame): Likewise.
14133 * keyboard.c (wipe_kboard): Likewise.
14134 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14135 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14136 * term.c (tty_default_color_capabilities, maybe_fatal)
14137 (delete_tty): Likewise.
14138 * w16select.c (string): Likewise.
14139 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14140 * w32bdf.c (w32_free_bdf_font): Likewise.
14141 * w32fns.c (w32_unload_font): Likewise.
14142 * w32font.c (w32font_close): Likewise.
14143 * window.c (size_window): Likewise.
14144 * xselect.c (receive_incremental_selection): Likewise.
14145 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14146 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14147 * w32.c (stat): Likewise.
14149 Remove useless if-before-free tests.
14150 * editfns.c (Fset_time_zone_rule): Likewise.
14151 * lread.c (nosuffix): Likewise.
14152 * ralloc.c (get_bloc): Likewise.
14153 * regex.c (reg_free): Likewise.
14154 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14155 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14156 * xsmfns.c (smc_save_yourself_CB): Likewise.
14158 2008-06-02 Kenichi Handa <handa@m17n.org>
14160 * font.c (font_find_for_lface): Handle float font size.
14161 (font_open_for_lface): Likewise.
14163 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14164 comparing the properties.
14166 2008-06-01 Jason Rumney <jasonr@gnu.org>
14168 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14169 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14170 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14171 Don't add empty script list.
14172 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14174 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14176 * Makefile.in (dot, dotdot): Remove, update users.
14177 ".." has been used elsewhere in the file for a long time.
14178 (LIBXT_STATIC): Remove conditional based on unused variable.
14180 2008-06-01 Miles Bader <miles@gnu.org>
14182 * xfaces.c (Vface_remapping_alist): New variable.
14183 (syms_of_xfaces): Initialize it.
14184 (enum named_merge_point_kind): New type.
14185 (struct named_merge_point): Add `named_merge_point_kind' field.
14186 (push_named_merge_point): Make cycle detection respect different
14187 named-merge-point kinds.
14188 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14189 Remove face-name alias resolution.
14190 (lface_from_face_name): New definition using
14191 `lface_from_face_name_no_resolve'.
14192 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14193 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14194 (get_lface_attributes): New definition that layers face-remapping on
14195 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14196 (lookup_basic_face): New function.
14197 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14198 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14199 `get_lface_attributes'.
14200 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14201 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14202 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14204 * xdisp.c (init_iterator): Pass base_face_id through
14205 `lookup_basic_face' when we actually use it as a face-id.
14206 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14209 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14210 lookup the initial face-id.
14212 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14214 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
14216 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14217 (Fremove_text_properties): Fix typos in docstrings.
14219 2008-05-31 Kenichi Handa <handa@m17n.org>
14221 * font.c (font_list_entities): Fix the car part of data to be
14222 stored in the cache.
14224 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14226 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14228 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14229 Add a `test' argument so another predicate than `equal' can be used.
14230 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14231 (map_char_table): Remove unused vars `c' and `i'.
14232 * lisp.h (Foptimize_char_table): Adjust declaration.
14233 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14235 2008-05-30 Kenichi Handa <handa@m17n.org>
14237 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14238 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14241 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14243 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14244 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14245 frame-local settings for the same variable.
14247 2008-05-30 Kenichi Handa <handa@m17n.org>
14249 * fontset.c (Ffont_info): Move to font.c.
14250 (syms_of_fontset): Delete defsubr of Sfont_info.
14252 * font.c (font_style_to_value, font_score): Delete casting of the
14253 args to xstcasecmp.
14254 (register_font_driver): Increment num_font_drivers only when
14255 registering the driver globally.
14256 (Ffont_info): Move from fontset.c. Handle a font object too.
14257 (syms_of_font): Defsubr Sfont_info.
14259 2008-05-29 Kenichi Handa <handa@m17n.org>
14261 * coding.h (enum define_coding_utf8_arg_index): New enum.
14262 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14263 coding_attr_utf_bom.
14264 (enum utf_bom_type): Rename from utf_16_bom_type.
14265 (struct utf_16_spec): Adjust for the above change.
14266 (struct coding_system): Add utf_8_bom in `spec' union.
14268 * coding.c (CODING_UTF_8_BOM): New macro.
14269 (enum coding_category): Delete coding_category_utf_8, add
14270 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14271 coding_category_utf_8_sig.
14272 (CATEGORY_MASK_UTF_8): Delete it.
14273 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14274 (CATEGORY_MASK_UTF_8_SIG): New macros.
14275 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14276 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14277 CATEGORY_MASK_UTF_8_SIG.
14278 (CATEGORY_MASK_UTF_8): New macro.
14279 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14280 (detect_coding_utf_8): Check BOM.
14281 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14282 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14283 (encode_coding_utf_16): Likewise.
14284 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14285 (detect_coding, detect_coding_system): Handle utf-8-auto.
14286 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14287 (syms_of_coding): Fix setting up of Vcoding_category_table.
14289 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14291 * process.c (Faccept_process_output): If `millisec' is non-nil,
14292 `seconds' default to 0.
14293 (wait_reading_process_output): Also return non-nil if we read output
14294 from a non-running process.
14296 2008-05-29 Jason Rumney <jasonr@gnu.org>
14298 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14299 `raster' specified.
14300 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14301 in the uniscribe backend, but disallow any font that has no
14302 unicode subrange support.
14304 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
14306 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14307 Fix typos in docstrings.
14309 2008-05-29 Kenichi Handa <handa@m17n.org>
14311 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14312 (Fx_family_fonts): Set frame correctly.
14314 2008-05-28 Jason Rumney <jasonr@gnu.org>
14316 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14318 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14320 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14321 calling build_annotations.
14323 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
14325 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14326 (Fencode_coding_string):
14327 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14328 <latin-extra-code-table>: Fix typos in docstrings.
14329 (syms_of_coding) <coding-system-alist>: Doc fix.
14330 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14332 2008-05-28 Kenichi Handa <handa@m17n.org>
14334 * fontset.c (Ffont_info): Don't call font_close_object.
14336 * font.c (font_parse_family_registry): Use Ffont_put to validate
14337 foundry and family.
14338 (font_delete_unmatched): Don't check spacing.
14339 (font_list_entities): Add spacing to the spec to list fonts.
14341 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14342 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14344 * coding.c (encode_coding_raw_text): Fix previous change.
14345 (encode_coding_object): When the dst_object is a buffer and is
14346 different from src_object, move gap to PT.
14348 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14350 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14352 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14354 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14355 all branches. Compute it differently.
14357 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14359 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
14361 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14362 into "else if () ... else ...".
14364 2008-05-27 Jason Rumney <jasonr@gnu.org>
14366 * w32font.c (w32font_open_internal): Determine if glyph indices
14367 are likely to work here.
14369 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14371 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14372 draw overlap glyphs with appropriate highlighting.
14374 2008-05-27 Kenichi Handa <handa@m17n.org>
14376 * xfont.c (xfont_open): Fix calculation of font->average_width.
14378 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14380 * casefiddle.c (casify_object): Try to guess better whether the
14381 argument is a byte or a char.
14383 2008-05-26 Andreas Schwab <schwab@suse.de>
14385 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14386 Always send multiples of format size.
14388 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14390 2008-05-26 Jason Rumney <jasonr@gnu.org>
14392 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14393 (compute_metrics): Don't set failure if we just cleared the cache.
14394 (w32_weight_table): Remove unused variable.
14395 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14396 backwards compatibility.
14398 2008-05-25 Kenichi Handa <handa@m17n.org>
14400 * w32term.c (x_draw_glyph_string):
14401 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14403 * xfaces.c: Delete unused function prototypes.
14404 (xstrlwr, font_frame): Delete them.
14405 (clear_face_cache): Delete unused variable.
14407 * xftfont.c (xftfont_open): Delete unused variable.
14408 If underline_thickness is not 1, adjust underline_position.
14410 * ftxfont.c (ftxfont_open): Delete unused variable.
14412 * fontset.c (face_for_char): Optimize for the case of no charset
14415 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14416 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14417 (otf_open, font_otf_capability, generate_otf_features)
14418 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14419 Comment out by surrounding "#if 0" and "#endif" for the moment.
14420 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14421 (syms_of_font): Codes for accessing above commented out.
14423 2008-05-24 Eli Zaretskii <eliz@gnu.org>
14425 * w32proc.c: Include dispextern.h.
14427 * w32.c: Include dispextern.h.
14429 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
14431 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14432 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14433 Fix typos in docstrings.
14435 2008-05-23 Jason Rumney <jasonr@gnu.org>
14437 * xsmfns.c: Remove includes that are already included by config.h.
14439 2008-05-23 Kenichi Handa <handa@m17n.org>
14441 * charset.c (Qemacs, charset_emacs): New variables.
14442 (char_charset): Fix for non-Unicode characters.
14443 (syms_of_charset): Define charset_emacs.
14445 * w32term.c (x_draw_glyph_string): Be sure to update
14446 s->underline_thickness and s->underline_position. Be sure to draw
14447 underline within the current line area.
14449 * xterm.c (x_draw_glyph_string): Be sure to update
14450 s->underline_thickness and s->underline_position. Be sure to draw
14451 underline within the current line area.
14453 * fontset.c: Delete unused variables and add casting for char *
14454 throughout the file.
14455 (fontset_font): Try the fallback fonts of the current fontset
14456 before consulting the default fontset.
14458 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14460 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14462 2008-05-22 Jason Rumney <jasonr@gnu.org>
14464 * font.c: Don't include strings.h.
14466 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14468 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14469 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14470 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14471 to call xstrcasecmp.
14473 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14475 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14477 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14479 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14481 2008-05-22 Kenichi Handa <handa@m17n.org>
14483 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14485 * font.c (font_prop_validate_style): Adjust for the format
14486 change of font_style_table.
14488 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14491 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14494 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14496 * minibuf.c (keys_of_minibuf): Delete.
14497 * lisp.h (keys_of_minibuf): Delete.
14498 * emacs.c (main): Don't call keys_of_minibuf.
14500 2008-05-22 Kenichi Handa <handa@m17n.org>
14502 * ftfont.c (ftfont_resolve_generic_family): Rename from
14503 ftfont_list_generic_family. Return a single family for each
14505 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14506 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14508 (ftfont_match): Call font_add_log.
14510 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14511 (FONT_DEBUG): Define it.
14512 (font_add_log): Extern it.
14513 (font_assert): Rename from xassert.
14515 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14516 (xfont_list_family): Call font_add_log.
14517 (xfont_match): Likewise.
14518 (memq_no_quit): Delete.
14520 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14521 call of Ffont_xlfd_name.
14523 * xfaces.c (struct table_entry, slant_table, weight_table)
14524 (swidth_table): Move to font.c.
14526 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14527 xassert are changed to font_assert. Delete many unused variables.
14528 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14530 (struct table_entry): Move from xfaces.c and modified.
14531 (weight_table, slant_table, width_table): Move from xfaces.c and
14532 contents adjusted for the change of struct table_entry.
14533 (font_style_to_value, font_style_symbolic): Adjust for the
14534 format change of font_style_table.
14535 (font_parse_family_registry): Don't overwrite existing foundry and
14536 family of font_spec.
14537 (font_score): Fix calculation of diff for sizes.
14538 (font_sort_entites): Call font_add_log.
14539 (font_delete_unmatched): Return a newly created list.
14540 (font_list_entities): Fix previous change. Call font_add_log.
14541 (font_matching_entity, font_open_entity, font_close_entity):
14543 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14544 (Finternal_set_font_style_table): Delete.
14545 (BUILD_STYLE_TABLE): New macro.
14546 (build_style_table): New function.
14547 (Vfont_log, font_log_env_checked): New variables.
14548 (font_add_log): New function.
14549 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14550 Declare Lisp variables "font-weight-table", "font-slant-table",
14551 "font-width-table", and "font-log". Initialize font_style_table.
14553 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14555 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14557 2008-05-21 Seiji Zenitani <zenitani@mac.com>
14558 Ryo Yoshitake <ryo@shiftmode.net>
14560 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14561 (Vframe_alpha_lower_limit): New variable.
14562 (x_set_alpha): New function.
14564 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14566 * xfns.c (x-create-frame, Qalpha):
14567 Initialize the frame parameter `alpha'.
14568 * xterm.c (OPAQUE, OPACITY): New.
14569 (x_set_frame_alpha): New function.
14570 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14572 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14573 * w32fns.c (w32_frame_parm_handlers): Likewise.
14575 2008-05-20 Jason Rumney <jasonr@gnu.org>
14577 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14578 truetype fonts to opentype list.
14580 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
14582 * fontset.c (Ffontset_info): Doc fix.
14583 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14584 <ignore-relative-composition>: Fix typos in docstrings.
14586 * font.c (syms-of-font) <font-encoding-alist>:
14587 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14588 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14589 (Ffont_otf_alternates): Doc fixes.
14591 2008-05-20 Kenichi Handa <handa@m17n.org>
14593 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14594 font.h through out the file.
14595 (FONT_DRIVERS): Rename from FONTOBJ.
14596 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14597 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14599 * emacs.c (main): Call syms_of_font unconditionally.
14601 * font.h (find_font_encoding): Extern it.
14603 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14605 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
14606 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14607 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14608 only when HAVE_WINDOW_SYSTEM is defined.
14609 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14610 when HAVE_WINDOW_SYSTEM is defined.
14612 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14613 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14615 * xfaces.c: Include font.h unconditionally.
14616 (merge_face_ref, merge_face_vectors)
14617 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14619 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14621 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14623 * eval.c (lisp_indirect_variable): New fun.
14624 (Fuser_variable_p): Use it.
14626 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14628 * lisp.h (indirect_variable):
14629 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14630 Use Lisp_Symbol pointers rather than Lisp_Object.
14632 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14633 To this end, change calling-convention.
14635 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14636 if some non-hidden buffers are selected by string&pred.
14638 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
14640 * process.c (wait_reading_process_output): Always check status
14641 when in batch mode.
14643 2008-05-19 Kenichi Handa <handa@m17n.org>
14645 * font.c (font_list_entities): Fix handling of cache.
14646 (font_matching_entity): Likewise.
14648 * ftfont.c (cs_iso8859_1): Delete.
14649 (ft_face_cache): New variable.
14650 (struct ftfont_info): New member fc_charset_idx.
14651 (ftfont_build_basic_charsets): Delete.
14652 (fc_charset_table): New variable.
14653 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14654 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14656 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14657 (ftfont_spec_pattern): New argument fc_charset_idx.
14658 Check registry more rigidly. Change callers.
14659 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14660 change of :font-entity property of the font.
14662 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14663 property of the font.
14665 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
14667 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14668 (Funencodable_char_position, Fcheck_coding_systems_region)
14669 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14670 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14671 (Ffind_operation_coding_system, Fset_coding_system_priority)
14672 (Fcoding_system_eol_type): Doc fixes.
14674 2008-05-17 Glenn Morris <rgm@gnu.org>
14676 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14678 2008-05-16 Eli Zaretskii <eliz@gnu.org>
14680 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14683 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14684 HAVE_WINDOW_SYSTEM is not defined.
14686 * xfaces.c (merge_face_ref, merge_face_vectors)
14687 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14688 HAVE_WINDOW_SYSTEM is defined.
14689 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14691 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14693 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14695 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14697 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14699 2008-05-15 Kenichi Handa <handa@m17n.org>
14701 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14704 2008-05-15 Glenn Morris <rgm@gnu.org>
14706 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14708 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
14710 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14711 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14713 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14715 2008-05-15 Kenichi Handa <handa@m17n.org>
14717 * ftfont.c (ftfont_list): Downcase family name to check generic
14720 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14721 font-spec for QCfont value.
14723 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14724 buffer. Check the return value of it.
14726 2008-05-14 Jason Rumney <jasonr@gnu.org>
14728 * w32term.c (w32_get_glyph_overhangs): Remove.
14729 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14731 2008-05-14 Kenichi Handa <handa@m17n.org>
14733 * font.c (font_prop_validate): Make nil a valid value.
14734 (font_clear_cache): Check if the cached vector of entities is nil
14737 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14739 * emacs.c (main_thread): Conditionalize on
14740 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14741 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14743 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14744 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14745 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14747 2008-05-14 Kenichi Handa <handa@m17n.org>
14749 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14750 has no corresponding coding system.
14752 2008-05-14 Jason Rumney <jasonr@gnu.org>
14754 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14756 * w32font.h (w32font_open_internal): Update declaration.
14758 * w32font.c (w32font_open_internal): Change last argument from
14759 w32font_info struct to font object. Fill in font object from
14760 font_entity. Get Outline metrics if possible. Use them to
14761 calculate underline position and thickness. Use xlfd name as name
14762 property. Don't set codepage.
14763 (w32font_open): Pass font_object to w32font_open_internal. Don't
14764 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14765 (w32font_draw): Use s->font.
14766 (clear_cached_metrics): Don't clear non-existent blocks.
14768 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14769 font was not found.
14770 (x_draw_glyph_string): Use underline position and thickness from font.
14772 * w32uniscribe.c (uniscribe_open): Pass font_object to
14773 w32font_open_internal.
14775 2008-05-14 Kenichi Handa <handa@m17n.org>
14777 These changes are to delete all legacy font-handling codes, and
14778 make Emacs use only font-backends.
14780 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14781 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14783 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14785 * charset.h (Vcharset_non_preferred_head)
14786 (Vcurrent_iso639_language): Extern them.
14788 * charset.c (Vcharset_non_preferred_head): New variable.
14789 (Vcurrent_iso639_language): New variable.
14790 (syms_of_charset): Declare it as a Lisp variable.
14791 (char_charset): Don't check non preferred charsets. As a last
14792 resort, return charset_unicode.
14793 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14795 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14796 conditionals. Don't check enable_font_backend. Delete all codes
14797 used only when USE_FONT_BACKEND is not defined.
14799 * dispextern.h (struct glyph_string): Change type of `font' to
14801 (struct glyph_string): New member underline_position and
14802 underline_thickness.
14803 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14804 (struct face): Change type of `font' to `struct font *'. Remove
14805 members `font_name', `font_info_id'.
14806 (per_char_metric, encode_char): Delete externs.
14807 (calc_pixel_width_or_height): Adjust the prototype.
14809 * emacs.c (enable_font_backend): Delete extern.
14810 (main): Don't set enable_font_backend. Don't check the command
14811 line argument "-disable-font-backend".
14813 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14814 (enum font_property_index): New members FONT_DPI_INDEX,
14815 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14816 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14817 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14818 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14819 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14820 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14821 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14822 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14823 (struct font_spec, struct font_entity): New structs.
14824 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14825 (struct font): Many members from old "struct font_info" moved to
14826 here. Members font and entity deleted.
14827 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14828 the new font-related objects.
14829 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14830 (CHECK_FONT_GET_OBJECT): Likewise.
14831 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14832 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14833 (struct font_driver): New members case_sensitive anc check. Type
14834 of the member list and open changed.
14835 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14836 (font_symbolic_width, font_find_object, font_get_spec)
14837 (font_set_lface_from_name): Delete extern.
14838 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14840 * font.c: Include <strings.h>.
14841 (enable_font_backend): Delete it.
14842 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14843 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14844 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14845 (null_string): Delete it.
14846 (null_vector): Make it static.
14847 (font_family_alist): Delete it.
14848 (Qnormal): Extern it.
14849 (QCextra, QClanguage): Delete it.
14850 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14851 (font_make_spec, font_make_entity, font_make_object)
14852 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14853 the string. Callers changed.
14854 (font_pixel_size): Adjusted for the format change of font-related
14856 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14857 (font_style_to_value, font_style_symbolic): New function.
14858 (build_font_family_alist): Delete it.
14859 (font_registry_charsets): Use Fassoc_string instead of
14861 (font_prop_validate_symbol): Don't return null_string.
14862 (font_prop_validate_style): Adjusted for the change of
14863 style-related values in a font vector.
14864 (font_property_table): Delete entries for QClanguage and
14865 QCantialias, add entries for QCavgwidth.
14866 (get_font_prop_index): Delete the 2nd argument FROM.
14867 (font_prop_validate): Arguments changed.
14868 (font_put_extra): Adjusted for the change of font-related objects.
14869 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14870 (font_parse_fcname, font_unparse_fcname)
14871 (font_prepare_composition): Likewise.
14872 (font_parse_family_registry): Renamed from font_merge_old_spec.
14873 (otf_open): Delete the 1st arg entity.
14874 (font_otf_capability): Adjusted for the above change.
14875 (font_score): New arg alternate_families. Adjusted for the change
14876 of font-related objects.
14877 (font_sort_entites): New arg best_only.
14878 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14880 (font_match_p): Check alternate families.
14881 (font_find_object): Delete it.
14882 (font_check_object): New function.
14883 (font_clear_cache): Adjusted for the change of font-related objects.
14884 (font_delete_unmatched): New arg.
14885 (font_list_entities): Call font_driver->list with a spec that
14886 doesn't specify style-related properties.
14887 (font_matching_entity): Arguments changed. Caller changed.
14888 (font_open_entity): Adjusted for the change of font-related objects.
14889 (font_close_object, font_has_char, font_encode_char)
14890 (font_get_name, font_get_spec): Likewise.
14891 (font_spec_from_name, font_clear_prop, font_update_lface):
14893 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14894 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14895 (font_at): Adjusted for the change of font-related objects.
14896 (font_range): New function.
14897 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14898 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14899 (Fcopy_font_spec, Fmerge_font_spec): New function.
14900 (Ffont_family_list): Renamed from list-families.
14901 (Finternal_set_font_style_table): Arguments changed.
14902 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14903 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14904 change of font-related objects.
14905 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14907 * fontset.h (struct font_info): Delete it. Most members go to
14909 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14910 (enum FONT_SPEC_INDEX): Delete it.
14911 (font_info, list_fonts_func, load_font_func, query_font_func)
14912 (set_frame_fontset_func, find_ccl_program_func)
14913 (get_font_repertory_func, new_fontset_from_font_name): Delete
14915 (fontset_from_font_name): Extern it.
14916 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14917 (FONT_INFO_FROM_FACE): Deleted.
14918 (face_for_font): Adjust prototype.
14920 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14921 conditionals. Don't check enable_font_backend. Delete all codes
14922 used only when USE_FONT_BACKEND is not defined.
14923 (get_font_info_func, list_font_func, load_font_func)
14924 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14925 (get_font_repertory_func): Delete them.
14926 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14927 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14928 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14929 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14930 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14931 (fontset_compare_rfontdef): New function.
14932 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14933 rfont-defs by qsort. Adjusted for the change of font-group vector.
14934 (load_font_get_repertory): Deleted.
14935 (fontset_find_font): Use new macros to ref/set elements of
14936 font-def and rfont-def.
14937 (fontset_font): Fix the timing of remembering that no font for C.
14938 (free_face_fontset): Do nothing if the face has no fontset.
14939 (face_suitable_for_char_p): Use new macros to ref/set elements of
14941 (face_for_char): Likewise. Call face_for_char with font_object.
14942 (fs_load_font): Delete. Delete #pragma surrounding it.
14943 (fs_query_fontset): Use strcasecmp instead of strcmp.
14944 (generate_ascii_font_name): Adjusted for the format change of
14946 (Fset_fontset_font): Likewise. Use new macros to set elements of
14948 (Fnew_fontset): Use font_unparse_xlfd to generate
14949 FONTSET_ASCII (fontset).
14950 (new_fontset_from_font_name): Deleted.
14951 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14952 a fontset is already created for the font. FIx updating of
14953 Vfontset_alias_alist.
14954 (fontset_ascii_font): Deleted.
14955 (Ffont_info): Adjusted for the format change of font-spec.
14956 (Finternal_char_font): Likewise.
14957 (Ffontset_info): Likewise.
14958 (syms_of_fontset): Don't check load_font_func.
14960 * fns.c (internal_equal): Handle PREV_FONT.
14962 * frame.h: Delete USE_FONT_BACKEND conditional.
14964 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14965 conditionals. Don't check enable_font_backend. Delete all codes
14966 used only when USE_FONT_BACKEND is not defined.
14967 (x_set_font): Call x_new_font, not x_new_fontset2.
14968 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14969 already set for the frame.
14971 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14972 a font-entity by font_make_entity. Use font_intern_prop instead
14973 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14974 font property. If a font is scalable, set avgwidth property to 0.
14975 Set font-entity property by font_put_extra.
14976 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14977 (ffont_driver): Adjusted for the change of struct font_driver.
14978 (ftfont_spec_pattern): New function.
14979 (ftfont_list): Return a list, not vector.
14980 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14981 (ftfont_list_family): Don't downcase names.
14982 (ftfont_free_entity): Deleted.
14983 (ftfont_open): Return a font-object. Adjusted for the change of
14984 struct font. Get underline_thickness and underline_position from
14985 font property. Don't update dpyinfo->smallest_font_height and
14986 dpyinfo->smallest_char_width.
14987 (ftfont_close): Don't free `struct font'.
14988 (ftfont_has_char): Adjusted for the format change of font-entity.
14989 (ftfont_encode_char, ftfont_text_extents): Likewise.
14991 * ftxfont.c (ftxfont_list): Return a list, not vector.
14992 (ftxfont_open): Return a font-object. Adjusted for the change of
14993 struct font. Get underline_thickness and underline_position from
14994 font property. Don't update dpyinfo->smallest_font_height and
14995 dpyinfo->smallest_char_width.
14996 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14997 (ftxfont_draw): Adjusted for the change of struct font.
14999 * image.c (image_ascent): Don't include "charset.h". Include
15000 "character.h" and "font.h".
15002 * lisp.h (enum pvec_type): New member PREV_FONT.
15003 (Fassoc_string): EXFUN it.
15005 * print.c: Include font.h.
15006 (print_object): Handle font-related objects.
15008 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15009 conditionals. Don't check enable_font_backend. Delete all codes
15010 used only when USE_FONT_BACKEND is not defined.
15011 (handle_auto_composed_prop): Do nothing if it->f is not on a
15012 window system. Check how many following characters can be
15013 displayed by the same font.
15014 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15016 (get_char_face_and_encoding): Assign the whole encoding task to
15017 the `encode-char' method of a font driver.
15018 (fill_composite_glyph_string): Adjusted for the change of `struct
15019 face' and `struct glyph_string'.
15020 (fill_glyph_string): Likewise.
15021 (get_per_char_metric): Arguments changed.
15022 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15023 and `struct glyph_string'.
15024 (produce_stretch_glyph, calc_line_height_property)
15025 (x_produce_glyphs): Likewise.
15027 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15028 conditionals. Don't check enable_font_backend. Delete all codes
15029 used only when USE_FONT_BACKEND is not defined. Use
15030 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15031 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15033 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15035 (struct font_name): Deleted.
15036 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15037 (compare_fonts_by_sort_order): New function.
15038 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15039 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15041 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15042 compare_fonts_by_sort_order.
15043 (Fx_font_family_list): Call Ffont_family_list.
15044 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15045 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15046 (face_symbolic_slant, face_symbolic_swidth)
15047 (split_font_name_into_vector, build_font_name_from_vector)
15048 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15049 (font_rescale_ratio, split_font_name, build_font_name)
15050 (free_font_names, sort_fonts, x_face_list_fonts)
15051 (face_font_available_p, sorted_font_list, cmp_font_names)
15052 (font_list_1, concat_font_list, font_list, remove_duplicates):
15054 (Fx_list_fonts): Use Ffont_list.
15055 (LFACE_AVGWIDTH): Deleted.
15056 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15058 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15059 (set_lface_from_font_name): Delete it.
15060 (set_lface_from_font): Renamed from
15061 set_lface_from_font_and_fontset. Caller changed. Don't set
15062 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15064 (merge_face_vectors): Copy font-spec if necessary.
15065 Clear properties of the font-spec if necessary.
15066 (merge_face_ref): Clear properties of the font-spec if necessary.
15067 (Finternal_set_lisp_face_attribute): Likewise.
15068 (set_font_frame_param): Use font_load_for_lface to load a
15069 font-object, and call Fmodify_frame_parameters with it.
15070 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15071 font name by Ffont_xlfd_name.
15072 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15073 QCslant, and QCwidth.
15074 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15075 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15076 Compare fonts by EQ.
15077 (lookup_non_ascii_face): Deleted.
15078 (face_for_font): The 2nd argument changed.
15079 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15080 Check atomic font properties by case insensitive.
15081 (realize_non_ascii_face): Set face->overstrike correctly.
15082 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15083 (dump_realized_face): Get font name from
15084 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15086 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15087 conditionals. Don't check enable_font_backend. Delete all codes
15088 used only when USE_FONT_BACKEND is not defined.
15089 (xic_create_xfontset): Original code deleted and renamed from
15090 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15091 (x_make_gc): Don't set GCFont in GCs.
15092 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15094 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15095 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15096 get_font_repertory_func.
15098 * xfont.c: Include <stdlib.h> and "ccl.h".
15099 (struct xfont_info): New structure.
15100 (xfont_query_font): Deleted.
15101 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15102 moved from xterm.c.
15103 (xfont_driver): Adjusted for the change of struct font_driver.
15104 (compare_font_names): New function.
15105 (xfont_list_pattern): Sort font names case insensitively. Make
15106 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15107 (xfont_list): Return a list, not vector.
15108 (xfont_match): If the font doesn't have QCname property, generate
15109 a name from the other font properties.
15110 (xfont_open): Return a font-object. Adjusted for the change of
15111 struct font. Get underline_thickness and underline_position from
15112 font property. Don't update dpyinfo->smallest_font_height and
15113 dpyinfo->smallest_char_width.
15114 (xfont_close): Don't free struct font.
15115 (xfont_prepare_face): Adjusted for the change of struct font.
15116 (xfont_done_face): Deleted.
15117 (xfont_has_char): Adjusted for the change of struct font.
15118 (xfont_encode_char, xfont_draw): Likewise.
15119 (xfont_check): New function.
15121 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15123 (xftfont_match): Adjusted for the format change of font-entity.
15124 (xftfont_open): Adjusted for the format change of font-entity and
15125 font-object. Adjusted for the change of struct font. Return a
15126 font-object. Don't update dpyinfo->smallest_font_height and
15127 dpyinfo->smallest_char_width.
15128 (xftfont_close): Block input while calling XftFontClose.
15129 (xftfont_prepare_face): Don't block input while calling
15130 xftfont_get_colors. Adjusted for the change of struct font.
15131 (xftfont_shape): Return value of error case fixed.
15133 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15135 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15137 (FONT_WIDTH): Return (f)->max_width.
15138 (struct x_display_info): Delete member `font'.
15139 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15140 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15141 (struct x_output): Change type of `font' to `struct font *'.
15143 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15144 conditionals. Don't check enable_font_backend. Delete all codes
15145 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15146 (x_per_char_metric, x_encode_char): Deleted.
15147 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15148 (x_compute_glyph_string_overhangs): Adjusted for the change of
15150 (x_draw_glyph_string_foreground)
15151 (x_draw_composite_glyph_string_foreground): Likewise.
15152 (x_draw_glyph_string): Likewise. Use font->underline_position and
15153 font->underline_thickness.
15154 (x_new_font): Renamed from x_new_fontset2.
15155 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15156 (x_check_font): Call `check' method of a font driver.
15157 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15158 (x_query_font, x_get_font_repertory): Deleted.
15159 (x_find_ccl_program): Renamed and moved to xfont.c.
15160 (x_redisplay_interface): Adjusted for the change of `struct
15161 redisplay_interface'.
15163 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15164 conditionals. Don't check enable_font_backend. Delete all codes
15165 used only when USE_FONT_BACKEND is not defined. Surround non-used
15166 code by "#ifdef OLD_FONT" and "endif".
15167 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15169 * w32font.h (struct w32font_info): New member.
15170 (FONT_COMPAT): New macro.
15171 (w32font_open_internal): Prototype adjusted.
15173 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15174 OLD_FONT" and "endif".
15176 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15177 conditionals. Don't check enable_font_backend. Delete all codes
15178 used only when USE_FONT_BACKEND is not defined.
15179 (w32font_open): Return a font-object. Make a font-object by
15180 font_make_object. Adjusted for the change of struct w32font_info.
15181 (w32font_close): Don't free struct font. Adjusted for the change
15182 of struct w32font_info.
15183 (w32font_encode_char, w32font_text_extents, w32font_draw):
15184 Adjusted for the change of struct w32font_info.
15185 (w32font_draw): Likewise.
15186 (w32font_list_internal): Return a list, not vector.
15187 (w32font_open_internal): Change the 4th arg to font-object.
15188 Adjusted for the change of struct w32font_info and font-object format.
15189 (add_font_name_to_list): Don't downcase names.
15190 (w32_enumfont_pattern_entity): Make a font-entity by
15191 font_make_entity. Adjusted for the format change of font-entity.
15192 Use FONT_SET_STYLE to set a style-related font property. If a
15193 font is scalable, set avgwidth property to 0. Set font-entity
15194 property by font_put_extra.
15195 (font_matches_spec): Adjusted for the format change of font-entity.
15196 (w32_weight_table, w32_decode_weight): New variables.
15197 (w32_encode_weight): New function.
15198 (fill_in_logfont): Adjusted for the format change of font-spec.
15199 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15201 (w32font_driver): Adjusted for the change of struct font_driver.
15203 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15204 conditionals. Don't check enable_font_backend. Surround non-used
15205 code by "#ifdef OLD_FONT" and "endif".
15206 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15207 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15209 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15210 conditionals. Don't check enable_font_backend. Delete all codes
15211 used only when USE_FONT_BACKEND is not defined. Surround non-used
15212 code by "#ifdef OLD_FONT" and "endif".
15214 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15215 (uniscribe_open): Return value changed to font-object.
15216 Adjusted for the format change of font-object.
15217 (uniscribe_otf_capability): Adjusted for the change of struct font.
15218 (add_opentype_font_name_to_list): Don't downcase names.
15219 (uniscribe_font_driver): Adjusted for the change of struct
15222 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
15224 * dispnew.c (update_frame_1): Check if tty output is still valid
15225 before flushing it.
15227 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15229 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15232 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15234 * dired.c (file_name_completion): Tweak the code so as to always do it
15235 in a single pass. Tighten the scope of some variables.
15237 * dired.c (Qdefault_directory): New var.
15238 (file_name_completion): Use it instead of Fexpand_file_name.
15239 (syms_of_dired): Initialize it.
15241 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15243 * fileio.c (double_dollars): Remove dead code.
15245 2008-05-10 Eli Zaretskii <eliz@gnu.org>
15247 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15248 Mention w32-get-true-file-attributes in doc string.
15250 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15252 2008-05-09 Glenn Morris <rgm@gnu.org>
15254 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15257 2008-05-09 Eli Zaretskii <eliz@gnu.org>
15259 Support for reporting owner and group of each file on MS-Windows:
15260 * dired.c (stat_uname, stat_gname): New functions, with special
15261 implementation for w32.
15262 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15264 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15265 (dflt_group_name): New static variable.
15266 (dflt_group): Rename from the_group.
15267 (init_user_info): Init dflt_group fields. Get user's group name
15268 from LookupAccountSid.
15269 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15270 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15271 New initialization states.
15272 (globals_of_w32): Initialize them to zero. Initialize the default
15273 group name to "None".
15274 (GetFileSecurity_Name): New global var, the name of the function
15275 to call for GetFileSecurity.
15276 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15277 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15278 (get_file_security, get_security_descriptor_owner)
15279 (get_security_descriptor_group, is_valid_sid)
15280 (get_file_security_desc, get_rid, get_name_and_id)
15281 (get_file_owner_and_group): New functions.
15282 (stat): Use get_file_security_desc and get_file_owner_and_group to
15283 report the owner and primary group of each file. Don't ignore the
15284 high 32 bits of file's size, now that st_size is 64-bit wide.
15285 Fix test when to get true file attributes.
15286 (init_user_info): Use get_rid instead of equivalent inline code.
15287 (fstat): Don't ignore the high 32 bits of file's size.
15289 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
15291 * image.c (png_load): Use correct bit-depth for setting background
15294 2008-05-08 Eli Zaretskii <eliz@gnu.org>
15296 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15299 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
15301 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15303 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15305 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15306 because the original parameters are in pure storage now.
15307 (mac_window): Remove unused params. Update callers.
15309 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15311 * lread.c (substitute_object_recurse): Use lower-level primitives.
15312 Don't signal errors when traversing sub-char-tables.
15313 Don't loop over all the possible characters when traversing char-tables.
15315 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15316 just like we do in print.c.
15318 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15320 * minibuf.c (Ftry_completion): Remove code left over from when we used
15321 scmp instead of Fcompare_strings.
15323 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
15325 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15327 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15329 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15330 Create bitmap context in native byte order.
15332 * macterm.c (XDrawLine)
15333 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15334 context in native byte order.
15336 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15338 * config.in: Regenerate.
15340 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15341 New definitions for Image I/O support.
15342 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15343 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15344 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15345 (mac_data_provider_release_data, image_load_image_io)
15346 [USE_MAC_IMAGE_IO]: New functions.
15347 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15348 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15349 (init_image_func_pointer) [MAC_OSX]: Remove function.
15350 (image_load_quartz2d) [MAC_OSX]: Check availability of
15351 CGImageCreateWithPNGDataProvider at compile time.
15352 Use lowercase `false' for boolean constant.
15353 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15354 Use image_load_image_io.
15355 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15356 Don't check MyCGImageCreateWithPNGDataProvider.
15357 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15358 Don't call init_image_func_pointer.
15360 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15362 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15363 Make variable non-static.
15364 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15365 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15367 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15368 (RED_FROM_ULONG): Mask off higher bits.
15369 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15371 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15372 Include AvailabilityMacros.h.
15373 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15374 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15376 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15378 * chartab.c (Fset_char_table_range): If range is t, really set all
15379 chars to that value.
15381 2008-05-03 Eli Zaretskii <eliz@gnu.org>
15383 * dired.c (Ffile_attributes): Don't allow the device number become
15386 2008-05-02 Daiki Ueno <ueno@unixuser.org>
15388 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15390 2008-05-02 Juri Linkov <juri@jurta.org>
15392 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15393 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15394 DEFAULT argument as a list of default values in docstrings.
15396 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
15398 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15400 2008-05-01 Martin Rudalics <rudalics@gmx.at>
15402 * dispnew.c (change_frame_size_1): Preserve small windows when
15403 shrinking frames by calling set_window_height|width with third
15406 * window.h (struct window): Replace field too_small_ok by field
15407 resize_proportionally.
15409 * window.c (make_window): Initialize resize_proportionally.
15410 (enlarge_window): Temporarily set resize_proportionally to make
15411 sure that shrink_windows does scale the window proportionally.
15412 (shrink_windows): When window has resize_proportionally set try
15413 to shrink it proportionally by stealing from other windows.
15414 (struct saved_window, Fset_window_configuration)
15415 (compare_window_configurations): Handle resize_proportionally.
15416 (WINDOW_TOTAL_SIZE): New macro.
15417 (window_min_size, shrink_windows, size_window): Use it.
15418 (check_min_window_sizes): Remove. Invalid values of
15419 window-min-height|width are handled by window_min_size_2 now.
15420 (size_window, Fsplit_window, enlarge_window)
15421 (adjust_window_trailing_edge, grow_mini_window): Don't call
15422 check_min_window_sizes.
15423 (window_min_size_2, window_min_size_1, window_min_size):
15424 New argument safe_p for retrieving "safe" minimum sizes.
15425 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15426 (adjust_window_trailing_edge, grow_mini_window):
15427 Adjust arguments of window_min_size... functions.
15428 (shrink_windows): Argument min_size removed. New argument
15429 safe_p allows shrinking windows to their safe minimum sizes.
15430 Calculate minimum size and decide whether a window shall be
15431 deleted for each window individually.
15432 (size_window): When nodelete_p equals 2, tell shrink_windows to
15433 delete windows only if their new minimum size is no more safe.
15434 (shrink_window_lowest_first): Call window_min_size_1 to make
15435 sure to preserve modeline of bottom-most window when resizing
15437 (Fset_window_configuration, Fcurrent_window_configuration)
15438 (compare_window_configurations): Do not handle
15439 window-min-height|width any more.
15440 (syms_of_window): Clarify window-min-height|width doc-strings.
15442 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15444 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15445 some more. Copy some of the code from Ftry_completions.
15446 Remove special case code that dates back to initial revision when the
15447 slash was only added when necessary and that can't trigger nowadays.
15449 2008-04-27 Kenichi Handa <handa@m17n.org>
15451 * font.c (font_prop_validate): Signal `error' instead of `font'.
15453 2008-04-29 Jason Rumney <jasonr@gnu.org>
15455 * w32fns.c (Fw32_battery_status): New defun.
15456 (syms_of_w32fns): Defsubr it.
15458 2008-04-28 Andreas Schwab <schwab@suse.de>
15460 * dired.c (file_name_completion): Fix another mixing of encoded
15463 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
15465 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15467 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
15469 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15471 2008-04-27 Andreas Schwab <schwab@suse.de>
15473 * dired.c (file_name_completion): Fix inappropriate mixing of
15474 encoded and decoded names.
15476 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15478 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15480 2008-04-26 Eli Zaretskii <eliz@gnu.org>
15482 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15483 2008-03-31, it's not needed anymore with `struct stat' definition
15484 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15485 for the same reasons.
15487 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15489 * m/sparc.h: Additional redefinitions for GNU/Linux.
15491 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15493 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15494 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15495 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15496 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15497 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15498 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15499 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15502 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15503 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15504 (mac_ax_number_of_characters): Add externs.
15505 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15506 [USE_MAC_TSM]: Likewise.
15507 (mac_handle_text_input_event) [MAC_OSX]:
15508 Handle kEventTextInputOffsetToPos for no active input area case.
15509 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15510 (mac_handle_document_access_event)
15511 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15512 (install_application_handler) [MAC_OSX]: Register handlers for
15513 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15514 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15515 Register mac_handle_document_access_event.
15517 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15518 Make functions non-static.
15520 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15522 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15523 (read_file_name_completion_ignore_case, insert_default_directory)
15524 (Qdefault_directory): Move to minibuffer.el.
15525 (Fread_file_name): Call the new `read-file-name' instead.
15527 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15529 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15530 Make function non-static.
15531 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15533 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15534 Move to mactoolbox.c.
15535 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15537 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15538 (mac_rect_make): New macro.
15540 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15542 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15543 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15544 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15545 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15547 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15548 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15549 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15550 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15551 instead of WindowRef in argument type.
15552 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15553 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15554 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15555 instead of DISPLAY. All uses changed.
15556 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15557 (x_calc_absolute_position): Simplify so as not to use
15558 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15560 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15561 instead of WindowRef in argument type.
15562 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15563 [TARGET_API_MAC_CARBON]: Remove externs.
15564 (create_apple_event, mac_event_parameters_to_lisp)
15565 [TARGET_API_MAC_CARBON]: Add externs.
15567 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15568 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15569 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15571 (x_activate_menubar): Remove extern for saved_menu_event_location.
15572 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15575 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15577 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15578 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15580 2008-04-23 Jason Rumney <jasonr@gnu.org>
15582 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15583 attributes only for local files.
15585 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15588 2008-04-22 Juri Linkov <juri@jurta.org>
15590 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15591 read-buffer-to-switch instead of using the letter "B".
15593 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15595 * fileio.c (Qdefault_directory): New variable.
15596 (Fread_file_name): Use it to pass `dir' to the completion functions.
15598 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
15600 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15602 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15604 * keyboard.c (Vpre_help_message): Remove.
15605 (show_help_echo): Remove default C code.
15607 * dired.c (directory_files_internal, file_name_completion):
15608 Only call ENCODE_FILE if the string is indeed decoded.
15610 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15612 * Makefile.in (TOOLKIT_DEFINES): Remove.
15613 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15615 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15617 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15618 (mactoolbox.o): New target.
15620 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15621 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15623 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15624 Use mac_set_frame_window_background instead of XSetWindowBackground.
15625 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15626 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15627 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15628 instead of SetWindowTitleWithCFString.
15629 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15630 Move function to mactoolbox.c.
15631 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15632 Use mac_set_window_modified instead of SetWindowModified.
15633 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15634 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15635 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15636 FrontNonFloatingWindow. Use mac_activate_window instead of
15637 ActivateWindow. Use mac_active_non_floating_window instead of
15638 ActiveNonFloatingWindow.
15639 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15640 Use mac_show_hourglass and mac_hide_hourglass.
15641 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15642 instead of GetGlobalMouse.
15643 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15644 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15645 Use mac_bring_window_to_front instead of BringToFront.
15646 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15648 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15649 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15650 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15653 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15654 (XtPointer): Move typedef from macmenu.c.
15655 (enum button_type): Move enum from macmenu.c.
15656 (widget_value): Move typedef from macmenu.c.
15657 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15658 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15659 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15660 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15661 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15662 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15663 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15664 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15665 (Selection): Move typedef from macselect.c.
15666 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15668 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15669 (mac_is_window_collapsed, mac_bring_window_to_front)
15670 (mac_send_window_behind, mac_hide_window, mac_show_window)
15671 (mac_collapse_window, mac_front_non_floating_window)
15672 (mac_active_non_floating_window, mac_activate_window)
15673 (mac_move_window_structure, mac_move_window, mac_size_window)
15674 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15676 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15677 (enum mac_menu_kind): Move enum to mactoolbox.c.
15678 (min_menu_id): Move variable to mactoolbox.c.
15679 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15680 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15681 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15682 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15683 [TARGET_API_MAC_CARBON]: Likewise.
15684 (XtPointer): Move typedef to macgui.h.
15685 (enum button_type): Move enum to macgui.h.
15686 (widget_value): Move typedef to macgui.h.
15687 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15688 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15689 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15690 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15691 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15692 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15693 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15694 (popup_activated_flag): Make variable non-static.
15695 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15696 (add_menu_item, fill_menu, dispose_menus):
15697 Move functions to mactoolbox.c.
15698 (restore_show_help_function, menu_target_item_handler)
15699 (install_menu_target_item_handler, mac_handle_dialog_event)
15700 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15701 [TARGET_API_MAC_CARBON]: Likewise.
15702 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15703 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15704 (find_and_call_menu_selection, name_is_separator): Make function
15706 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15708 (set_frame_menubar): Don't call install_menu_quit_handler.
15709 (menu_item_selection): New variable.
15710 (mac_menu_show): Use create_and_show_popup_menu.
15711 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15712 selection but set variable menu_item_selection. All uses changed.
15713 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15714 Call install_menu_quit_handler. Move to mactoolbox.c.
15716 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15717 (Selection): Move typedef to macgui.h.
15718 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15719 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15720 Make variables non-static.
15721 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15722 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15723 Make functions non-static.
15724 (Vmac_service_selection) [MAC_OSX]: Likewise.
15725 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15726 (mac_valid_selection_target_p, mac_clear_selection)
15727 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15728 (mac_put_selection_value, mac_selection_has_target_p)
15729 (mac_get_selection_value, mac_get_selection_target_list)
15730 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15731 Move functions to mactoolbox.c.
15732 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15734 (copy_scrap_flavor_data, mac_handle_service_event)
15735 (install_service_handler) [MAC_OSX]: Likewise.
15736 (syms_of_macselect) <Vmac_dnd_known_types>:
15737 Use mac_dnd_default_known_types.
15739 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15740 Move to mactoolbox.c.
15741 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15742 (Fx_selection_owner_p): Add EXFUN.
15743 (install_window_handler, remove_window_handler, XSetWindowBackground):
15745 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15746 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15747 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15748 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15749 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15750 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15751 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15752 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15753 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15754 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15755 (mac_valid_selection_target_p, mac_clear_selection)
15756 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15757 (mac_put_selection_value, mac_selection_has_target_p)
15758 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15759 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15760 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15761 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15762 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15763 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15764 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15765 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15766 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15768 * mactoolbox.c: New file.
15770 2008-04-18 Jason Rumney <jasonr@gnu.org>
15772 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15774 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15776 * character.c (Fmultibyte_char_to_unibyte):
15777 Return latin1 chars unchanged.
15779 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15780 relocated if it points to `name'.
15782 2008-04-17 Kenichi Handa <handa@m17n.org>
15784 * data.c (Faset): Allow setting a multibyte character in an
15785 ASCII-only unibyte string.
15787 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15789 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15791 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15794 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
15796 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15797 (Fchar_direction): Add usage in the docstring.
15799 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
15801 * keyboard.c (read_key_sequence): Remove always-true checks.
15803 2008-04-14 Jason Rumney <jasonr@gnu.org>
15805 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15806 compatibility struct, for better underline positioning.
15808 2008-04-13 David Hansen <david.hansen@gmx.net>
15810 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15813 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15815 * m/hp800.h (XUINT, XSET): Remove.
15817 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
15819 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15822 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15824 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15825 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15827 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15829 * keymap.h (map_keymap_canonical): Declare.
15830 * xmenu.c (single_keymap_panes): Use it.
15832 2008-04-11 Glenn Morris <rgm@gnu.org>
15834 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15835 set the target's value to that of the alias.
15837 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15839 * term.c (set_tty_color_mode): Left over typo.
15841 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
15843 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15844 only after check for file name handler functions. Signal, when
15845 native functionality is not supported.
15846 (syms_of_fileio): Declare it unconditionally.
15848 2008-04-10 Jason Rumney <jasonr@gnu.org>
15850 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15851 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15853 * w32.c (logon_network_drive): Also logon to remote drives that
15854 are mapped to drive letters.
15856 2008-04-10 Glenn Morris <rgm@gnu.org>
15858 * xdisp.c (truncate-partial-width-windows): Doc fix.
15860 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15862 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15863 Move functions to minibuffer.el.
15864 (syms_of_fileio): Don't declare them.
15866 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15868 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15869 (syms_of_minibuf): Remove its initialization.
15871 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15873 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
15875 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15877 2008-04-09 Jason Rumney <jasonr@gnu.org>
15879 * makefile.w32-in (distclean): Delete makefile too.
15880 (maintainer-clean): New target.
15882 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15884 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15885 for new font backend and composite cases.
15887 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15889 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15890 Most of the code moved to run_timers.
15891 (do_pending_atimers): Call run_timers.
15892 (run_timers): New function.
15894 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15897 * process.c (wait_reading_process_output): The same as above.
15899 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15901 * minibuf.c (last_exact_completion): Remove variable.
15902 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15903 (complete_and_exit_1, complete_and_exit_2)
15904 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15905 (Fdisplay_completion_list, display_completion_list_1)
15906 (Fminibuffer_completion_help, Fself_insert_and_exit)
15907 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15909 (syms_of_minibuf): Remove corresponding initializations.
15911 * keyboard.c (Qdeactivate_mark): New var.
15912 (command_loop_1): Use it to call `deactivate-mark'.
15913 (syms_of_keyboard): Initialize it.
15915 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15917 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15918 Don't call set_tty_color_mode.
15919 (store_frame_param): Reset previous_frame rather than call
15920 set_tty_color_mode.
15921 * term.c (set_tty_color_mode): Rewrite.
15922 * dispextern.h (set_tty_color_mode): New type.
15923 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15925 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15927 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15928 for generic chars, which do not exist any more in emacs-unicode.
15930 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
15932 * coding.c (detect_coding_emacs_mule)
15933 (Ffind_operation_coding_system): Fix typo.
15935 2008-04-08 Jason Rumney <jasonr@gnu.org>
15937 * w32uniscribe.c (SNAME): Extract only symbol name.
15939 * w32font.h (struct w32_metric_cache): New struct.
15940 (w32font_info): Use it.
15941 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15942 (CACHE_BLOCKSIZE): New constants.
15944 * w32font.c (Qja, Qko, Qzh): New symbols.
15945 (syms_of_w32font): Initialise them.
15946 (font_matches_spec): Use them to filter by language.
15947 (recompute_cached_metrics): Remove function.
15948 (compute_metrics, clear_cached_metrics): New functions.
15949 (w32font_encode_char): Use them to manage metric cache.
15950 (w32font_text_extents): Cache metrics for all glyphs on demand.
15951 Delay converting glyph indices to WORD until needed.
15952 (w32font_open_internal): Initialize metric cache to empty.
15953 (registry_to_w32_charset): Charset should always be a symbol.
15954 (fill_in_logfont, list_all_matching_fonts): Family should
15955 always be a symbol.
15957 2008-04-06 Jason Rumney <jasonr@gnu.org>
15959 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15960 Give up if glyph indices not supported. Use uniscribe obtained
15961 ABC widths for individual metrics. Map glyph clusters back to
15962 characters using fClusterStart flag. Return number of glyphs
15963 produced, not chars processed.
15964 (uniscribe_shape): Map char at FROM to current glyph.
15966 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15968 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15969 Use SetMenuItemHierarchicalMenu.
15971 2008-04-05 Jason Rumney <jasonr@gnu.org>
15973 * image.c (pbm_load): Allow color values up to 65535.
15974 Throw an error if max_color_idx is outside the supported range.
15975 Report an error when image size is invalid.
15976 Read two bytes at a time when raw images have max_color_idx above 255.
15978 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15980 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15981 append "CCL: Quitted" when the CCL program is quitted.
15982 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15984 * ccl.h (struct ccl_program): New member quit_silently.
15986 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
15988 * search.c (compile_pattern_1): Treat non-nil and non-string of
15989 search-spaces-regexp as nil.
15991 * minibuf.c (Fassoc_string): Tweak docstring.
15993 2008-04-05 Eli Zaretskii <eliz@gnu.org>
15995 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15996 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15997 2008-03-14 to force inode be positive.
15999 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16000 _S_* ones, since we now use our own sys/stat.h.
16001 (stat, fstat): Don't mangle the inode number.
16002 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16004 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16006 * frame.h (struct frame): Give one more bit to `visible' since we use
16007 values larger than 1 to indicate obscured frames on ttys.
16009 * keymap.c (Qkeymap_canonicalize): New var.
16010 (Fmap_keymap_internal): New fun.
16011 (describe_map): Use keymap-canonicalize.
16013 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16014 (Fundo_boundary): Set them.
16015 (syms_of_undo): Initialize them.
16016 (record_point): Use them instead of last_point_position*.
16017 (last_undo_buffer): Change type.
16019 2008-04-04 Jason Rumney <jasonr@gnu.org>
16021 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16022 (recompute_cached_metrics): Don't set ascent and descent per char.
16024 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16025 (uniscribe_check_otf): Add GC protection before consing.
16026 Rearrange loop for counting features.
16028 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16030 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16031 buffer with byte-size of source buffer.
16033 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16035 * callint.c (Fcall_interactively): Handle temporary region even
16036 when shift-select-mode is off.
16038 2008-04-03 Jason Rumney <jasonr@gnu.org>
16040 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16042 2008-04-03 Kenichi Handa <handa@m17n.org>
16044 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16045 (CATEGORY_MASK_UTF_16): Likewise.
16046 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16048 (detect_coding): Add null-byte detection for a binary file.
16049 (detect_coding_system): Likewise.
16051 2008-04-03 Jason Rumney <jasonr@gnu.org>
16053 * w32uniscribe.c: New file.
16055 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16057 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16059 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16060 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16061 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16062 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16063 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16064 (Qphonetic): New symbols.
16065 (syms_of_w32font): Initialize them.
16066 (font_supported_scripts): Use them.
16067 (w32font_list_family): List all charsets.
16068 (w32font_text_extents, recompute_cached_metrics): Fix metric
16070 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16071 Give opentype fonts their own format.
16072 (font_matches_spec): New arguments backend and logfont.
16073 Handle :otf spec for uniscribe backend.
16074 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16075 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16077 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16079 (globals_of_w32fns): Initialize uniscribe font backend.
16081 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16083 (w32uniscribe.$(O)): New file to build.
16084 (FONT_OBJ): Include w32uniscribe.$(O).
16085 (LIBS): Add uniscribe libraries.
16087 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16089 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16091 * callint.c (Vshift_select_mode): New var.
16092 (Finteractive): Document new ^ spec.
16093 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16096 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16097 (command_loop_1): Avoid running the direct display versions of
16098 forward-char and backward-char if shift-selection may occur.
16099 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16100 shift-translation takes place.
16102 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16103 avoid clobbering by define-minor-mode.
16105 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16106 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16108 * syntax.c (Fforward_word): Add ^ interactive spec.
16110 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16111 (Fscroll_right): Add ^ interactive spec.
16113 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16115 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16117 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16119 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16121 2008-03-31 Juri Linkov <juri@jurta.org>
16123 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16125 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16127 * gtkutil.c (xg_set_geometry): Fix indentation.
16128 (xg_resize_outer_widget): Remove.
16129 (x_wm_size_hint_off): Fix indentation.
16130 (xg_frame_set_char_size): Call flush_and_sync after
16132 (x_wm_set_size_hint): Pass NULL as geometry window to
16133 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16134 Add menu bar and tool bar height to base height.
16135 (xg_update_frame_menubar, free_frame_menubar)
16136 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16137 (update_frame_tool_bar, free_frame_tool_bar):
16138 Change xg_resize_outer_widget to xg_frame_set_char_size.
16140 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
16142 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16143 (Fdbus_call_method): New parameter TIMEOUT.
16144 (dbus-send-signal): Optimize UNGCPRO call.
16146 2008-03-29 Juri Linkov <juri@jurta.org>
16148 * window.c (Fdisplay_buffer): Move call to
16149 Vsplit_window_preferred_function out of conditions that check
16150 if window is eligible for vertical splitting.
16151 When Vsplit_window_preferred_function is non-nil, call it and use
16152 its non-nil return value as window. Otherwise, continue doing
16153 vertical splitting using Fsplit_window with arg horflag=nil.
16154 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16155 default value from `split-window' to nil.
16157 2008-03-29 Juri Linkov <juri@jurta.org>
16159 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16160 for interactive code letters 'b' and 'B'.
16162 2008-03-29 Eli Zaretskii <eliz@gnu.org>
16164 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16167 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16169 * keyboard.c (pending_funcalls): New var.
16170 (timer_check): Run it.
16171 (syms_of_keyboard): Initialize it.
16172 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16173 (Vdelete_terminal_functions): New vars.
16174 (syms_of_terminal): Initialize them.
16175 (Fdelete_terminal): Run delete-terminal-functions.
16176 * xdisp.c (safe_eval): Rewrite.
16177 (safe_call2): New fun.
16178 * frame.c (Qdelete_frame_functions): New var.
16179 (syms_of_frame): Initialize it.
16180 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16181 * lisp.h (safe_call2, pending_funcalls): Declare.
16183 2008-03-28 Andreas Schwab <schwab@suse.de>
16185 * indent.c (Fmove_to_column): Move declaration before statements.
16187 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16189 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16190 (struct frame): Use bit fields for boolean vars.
16192 * process.c (server_accept_connection): Simplify naming.
16193 (emacs_get_tty_pgrp): Use SDATA.
16195 * coding.c (decode_coding_object): Fix last change.
16197 2008-03-27 Jason Rumney <jasonr@gnu.org>
16199 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16201 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16203 * charset.c (Fdefine_charset_internal): Change the way of
16204 registering charsets in Vcharset_order_list.
16205 (syms_of_charset): Make the charset `eight-bit' supplementary.
16207 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16209 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16210 operations, to avoid having the difference between pointers
16213 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16215 * indent.c (check_display_width): New fun.
16216 (scan_for_column): Use it.
16218 * data.c (syms_of_data): Mark most-positive-fixnum and
16219 most-negative-fixnum as constants.
16221 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16223 * indent.c (scan_for_column): Extract from current_column_1.
16224 Merge with the same code from Fmove_to_column.
16225 (current_column_1, Fmove_to_column): Use it.
16227 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16229 * keymap.c (map_keymap_internal): New fun.
16230 (map_keymap): Use it.
16231 (Fmap_keymap_internal): New fun.
16232 (Fmap_keymap): Remove left-out test from before make_save_value.
16234 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16236 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16239 * process.h (struct Lisp_Process): Remove filter_multibyte.
16240 * process.c (QCfilter_multibyte): Remove.
16241 (setup_process_coding_systems): Don't use filter_multibyte.
16242 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16243 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16244 (Fset_process_filter_multibyte): Change the coding-system to
16245 approximate the previous behavior.
16246 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16249 * coding.c (decode_coding_object): When not decoding into a buffer,
16250 obey the coding system's preference of (uni|multi)byte.
16252 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16254 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16255 every char is changed and has a different byte-length.
16256 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16257 Fix int -> EMACS_INT.
16259 2008-03-23 David Hansen <david.hansen@gmx.net>
16261 * dbusbind.c (xd_read_message): Remove extra copying of message
16262 strings. Check for NULL `interface' or `member'.
16264 2008-03-22 Eli Zaretskii <eliz@gnu.org>
16266 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16267 cFileName a file name that includes `?' characters, use the 8+3
16268 alias in cAlternateFileName instead.
16270 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16272 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16274 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16276 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16277 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16278 work on current_buffer only instead (that was already the case
16279 for some of the code anyway).
16280 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16281 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16282 (SET_PT, SET_PT_BOTH): Adjust.
16283 * intervals.h (set_point, temp_set_point, set_point_both)
16284 (temp_set_point_both): Remove redundant declarations.
16286 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16288 * fileio.c (Finsert_file_contents):
16289 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16290 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16291 when buffer != current_buffer anyway.
16293 2008-03-20 Andreas Schwab <schwab@suse.de>
16295 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16298 2008-03-19 Jason Rumney <jasonr@gnu.org>
16300 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16301 (syms_of_w32fns): Initialize them.
16302 (HOURGLASS_ID): New constant.
16303 (x_window_to_frame): Don't check hourglass_window.
16304 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16305 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16306 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16307 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16308 Only change the cursor if hourglass is not active.
16309 (Fx_create_frame): Initialize frame's current_cursor.
16310 (hourglass_atimer): Remove.
16311 (hourglass_started): New function.
16312 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16313 (show_hourglass): Adapt to w32, changing argument to frame.
16315 * w32term.h (struct w32_output): Remove hourglass_window.
16316 Add current_cursor.
16318 * eval.c (call_debugger, Fsignal):
16319 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16320 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16321 (Fexecute_extended_command, cancel_hourglass_unwind):
16322 * minibuf.c (read_minibuf):
16323 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16325 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16327 * window.c (run_funs): New fun.
16328 (run_window_configuration_change_hook): Use it to run the buffer-local
16329 and the global part of the hook.
16331 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16332 (unwind_format_mode_line): Restore selected window.
16333 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16335 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16337 * editfns.c (Fchar_equal): Check they are valid characters.
16339 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16341 2008-03-17 Andreas Schwab <schwab@suse.de>
16343 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16346 * lisp.h (Fbuffer_list): Declare.
16348 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
16350 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16351 handlebox_widget is != 0.
16353 2008-03-16 Juri Linkov <juri@jurta.org>
16355 * callint.c (Fcall_interactively): For interactive code letters
16356 'b' and 'B' put the buffer list into the list of default "future"
16357 values of the minibuffer.
16359 2008-03-16 Andreas Schwab <schwab@suse.de>
16361 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16364 * regex.c (re_match_2_internal): Correct matching of a charset
16365 against latin-1 characters.
16367 2008-03-16 Kenichi Handa <handa@m17n.org>
16369 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16370 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16371 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16372 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16373 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16374 CHAR_STRING_ADVANCE.
16375 (produce_chars): Fix for the case that the source and the
16376 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16377 instead of CHAR_STRING_ADVANCE.
16378 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16379 STRING_CHAR_ADVANCE.
16381 2008-03-15 Andreas Schwab <schwab@suse.de>
16383 * regex.c (re_match_2_internal): Correct matching of eight bit
16384 characters in unibyte strings.
16386 2008-03-15 Martin Rudalics <rudalics@gmx.at>
16388 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16389 at end of range when it coincides with the end of the buffer.
16391 2008-03-14 Eli Zaretskii <eliz@gnu.org>
16393 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16395 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16397 2008-03-14 Jason Rumney <jasonr@gnu.org>
16399 * editfns.c (initial_tz): New variable.
16400 (syms_of_editfns): Initialize it.
16401 (Fset_time_zone_rule): Set it when first called.
16402 Use it when TZSTRING is nil.
16404 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16405 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16406 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16407 (globals_of_w32fns): Initialize them.
16408 (compute_tip_xy): Use them to position tooltips.
16410 2008-03-14 Glenn Morris <rgm@gnu.org>
16412 * emacs.c (main): Revert previous change.
16413 (standard_args): Revert -internal-script back to -scriptload,
16414 and remove the long-option form.
16416 2008-03-13 Glenn Morris <rgm@gnu.org>
16418 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16419 Remove option -enable-font-backend.
16421 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16423 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16425 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16427 * xterm.c (x_connection_closed): For GTK: If this is the last
16428 terminal just exit without closing the display.
16430 2008-03-11 Jason Rumney <jasonr@gnu.org>
16432 * w32font.c (w32font_full_name): Use floor to round.
16434 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16436 * sound.c (alsa_configure): Declare vol at beginning of block.
16438 * fontset.c (Ffontset_info): Remove extra semicolon.
16440 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16442 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16443 size of resulting string.
16445 2008-03-10 Jason Rumney <jasonr@gnu.org>
16447 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16449 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16451 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16452 Don't pretend as if characters with display property haven't been
16453 consumed for string-replacing-string case.
16455 2008-03-08 Kim F. Storm <storm@cua.dk>
16457 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16458 (get_next_display_element, next_element_from_string)
16459 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16461 2008-03-08 Andreas Schwab <schwab@suse.de>
16463 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16465 2008-03-06 Jason Rumney <jasonr@gnu.org>
16467 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16468 when charset not specified. Only translate ANSI to unicode when
16469 font_type is truetype.
16470 (w32font_coverage_ok): New function.
16471 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16473 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16475 * lread.c (Fread_char): Resolve modifiers.
16476 (Fread_char_exclusive): Likewise.
16478 * character.c (char_resolve_modifier_mask): New function.
16479 (char_string): Use char_resolve_modifier_mask.
16480 (Fchar_resolve_modifiers): New function.
16481 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16484 2008-03-04 Jason Rumney <jasonr@gnu.org>
16486 * makefile.w32-in: Always include w32font.c in the build.
16487 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16489 2008-03-04 Andreas Schwab <schwab@suse.de>
16491 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16492 (versionclean): Likewise.
16494 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
16496 * .cvsignore: Add oo.
16498 2008-03-03 Andreas Schwab <schwab@suse.de>
16500 * coding.c (decode_coding_object): Inhibit gap shrinking while
16503 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16505 * w32term.c: Remove unused include "gnu.h".
16506 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16508 * gnu.h: Rename to ...
16509 * emacs-icon.h: ... this.
16510 * xterm.c: Use emacs-icon.h instead of gnu.h.
16511 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16513 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
16515 * w32font.c: Include math.h.
16517 2008-03-03 Jason Rumney <jasonr@gnu.org>
16519 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16520 Compute options separately.
16521 (w32font_open_internal): Set glyph_idx before caching metrics.
16523 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16524 Define if system headers don't.
16525 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16526 (w32font_encode_char): Don't declare here.
16528 * w32font.c (Quniscribe, QCformat): New symbols.
16529 (syms_of_w32font): Define them.
16530 (w32font_has_char): Indicate uncertainty.
16531 (w32font_encode_char): Encode as glyph point. Make static.
16532 (recompute_cached_metrics): New function.
16533 (w32font_open_internal): Use it. Set font to use glyph points
16534 initially. Set format based on type of font.
16535 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16536 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16537 on it. Set format based on information available here.
16538 (add_font_entity_to_list): Identify backend based on opentype_only.
16540 2008-03-02 Andreas Schwab <schwab@suse.de>
16542 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16544 * coding.c (decode_coding_big5, produce_chars):
16545 Fix typos in last change.
16547 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16551 2008-03-02 Kenichi Handa <handa@m17n.org>
16553 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16554 `dos', don't decode '\r' if that is the last in the source.
16555 (decode_coding_utf_16, decode_coding_emacs_mule)
16556 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16557 (decode_coding_raw_text, decode_coding_charset): Likewise.
16558 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16560 2008-03-01 Jason Rumney <jasonr@gnu.org>
16562 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16564 2008-03-01 Kim F. Storm <storm@cua.dk>
16566 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16568 2008-03-01 Jason Rumney <jasonr@gnu.org>
16570 * w32font.c (w32font_full_name): New function.
16571 (w32font_open_internal): Use it.
16573 2008-03-01 Kim F. Storm <storm@cua.dk>
16575 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16577 2008-03-01 Jason Rumney <jasonr@gnu.org>
16579 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16581 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16583 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16584 xg_frame_resized when the event is for the edit widget.
16586 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16588 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16590 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16591 operations on widgets here. Just set frame size if needed.
16592 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16593 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16594 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16596 (xg_create_tool_bar): Move attachment of the tool bar to
16597 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16598 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16600 2008-03-01 Jason Rumney <jasonr@gnu.org>
16602 * w32fns.c (w32_msg_pump): Disable debug code.
16604 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16606 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16608 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16610 * xdisp.c (next_overlay_string): Don't set
16611 overlay_strings_at_end_processed_p if we're currently reading from
16614 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16616 * xdisp.c (get_overlay_strings_1): Fix typo.
16618 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16620 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16622 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16624 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16626 * xdisp.c (display_mode_element): Cancel the previous change.
16627 (decode_mode_spec): Likewise.
16628 (handle_auto_composed_prop): Don't make composition if it->string
16631 2008-02-27 Kim F. Storm <storm@cua.dk>
16633 * lisp.h (GLYPH): Change type from int to struct with separate char
16634 and face_id members.
16635 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16636 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16637 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16638 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16639 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16640 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16641 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16642 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16643 handle new Lisp glyph code encoding, either an integer or a cons.
16645 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16646 (GLYPH_ALIAS): Delete.
16647 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16648 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16649 (GLYPH_FROM_CHAR): Replace macro by ...
16650 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16652 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16653 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16654 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16655 (GLYPH_INVALID_P): New macro.
16656 (spec_glyph_lookup_face): Update prototype.
16658 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16659 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16660 new glyph code encoding.
16661 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16662 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16664 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16665 Adapt to new glyph type and new glyph code encoding.
16667 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16669 * indent.c (current_column, current_column_1, Fmove_to_column)
16670 (compute_motion): Adapt to new glyph code encoding.
16672 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16674 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
16676 * process.c (wait_reading_process_output): Check for window
16677 changes caused by timers.
16678 Suggested by Johan Bockgård.
16680 2008-02-27 Glenn Morris <rgm@gnu.org>
16682 * emacs.c (USAGE1): Add `--disable-font-backend'.
16684 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16686 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16687 is made to the buffer.
16689 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16691 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16692 (face_at_string_position):
16693 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16694 (face_at_string_position):
16695 * xdisp.c (display_string, next_overlay_change):
16696 * buffer.h (overlays_at):
16697 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16700 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
16702 * editfns.c (Fformat): Doc fix.
16704 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
16706 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16707 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16708 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16710 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16712 * buffer.c (Fbuffer_swap_text): New function.
16713 (syms_of_buffer): Defsubr it.
16715 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
16717 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16719 2008-02-25 Jason Rumney <jasonr@gnu.org>
16721 * w32font.c (w32font_draw): Draw one character at a time when padding.
16723 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16725 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16726 Handle a nil arg. Use run_window_configuration_change_hook.
16727 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16728 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16729 Use run_window_configuration_change_hook.
16731 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16733 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16736 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16738 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16739 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16740 if the glyph in the font is zero pixel with.
16742 * dispextern.h (struct glyph_string): New member padding_p.
16744 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16746 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16748 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16750 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16752 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16754 2008-02-25 Jason Rumney <jasonr@gnu.org>
16756 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16758 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16760 Allow fine-grained image-cache flushing.
16761 * dispextern.h (struct image): Add `dependencies' field.
16762 (clear_image_caches): Change arg to Lisp_Object.
16763 * image.c (make_image): Initialize `dependencies' field.
16764 (clear_image_cache): Change arg to allow fine-grained flushing.
16765 Perform the flush even if image-cache-eviction-delay is nil.
16766 (clear_image_caches): Change arg to Lisp_Object.
16767 (Fclear_image_cache): Expand meaning of the argument.
16768 (mark_image): Mark `dependencies' field.
16769 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16770 (lface_hash): Use XHASH rather than XFASTINT.
16771 (face_at_buffer_position): Fix int -> EMACS_INT position.
16772 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16773 (select_frame_for_redisplay): Remove code duplication.
16774 (redisplay_internal): Adapt arg to call to clear_image_caches.
16776 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16781 * s/vms5-5.h: Remove, unused.
16787 * m/mips4.h: Remove files for obsolete systems.
16800 * s/usg5-3.h: Remove references to obsolete variables.
16802 * s/irix5-0.h: Remove, move all the contents ...
16803 * s/irix6-5.h: ... here. Simplify.
16804 * config.in: Regenerate.
16806 2008-02-24 Jason Rumney <jasonr@gnu.org>
16808 * w32term.c (x_draw_glyph_string_background): Clear the background
16809 manually when cleartype is in use.
16810 (x_draw_glyph_string_foreground): Draw text transparently when
16811 cleartype is in use.
16813 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16814 a font into it unless we have to.
16816 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16818 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16819 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
16821 2008-02-18 Jason Rumney <jasonr@gnu.org>
16823 * w32fns.c (Fw32_shell_execute): Encode parameters.
16825 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16827 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16829 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
16831 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16833 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16835 * xterm.c (x_set_offset): Don't change the gravity if
16836 CHANGE_GRAVITY is -1.
16838 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
16840 * fileio.c (auto_save_error_occurred): New var.
16841 (auto_save_error): Set it.
16842 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16845 2008-02-23 Eli Zaretskii <eliz@gnu.org>
16847 * w32.c (globals_of_w32): Add initializations for
16848 g_b_init_get_sid_sub_authority and
16849 g_b_init_get_sid_sub_authority_count.
16851 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16853 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16854 (font_parse_xlfd): Use them for sanity check.
16855 (Finternal_set_font_style_table): Make sure the table is bijective.
16857 Consolidate the image_cache to the terminal struct.
16858 * termhooks.h (P_): Remove redundant def.
16859 (struct terminal): New field `image_cache'.
16860 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16861 of FRAME_X_IMAGE_CACHE.
16862 * xterm.h (struct x_display_info): Remove image_cache field.
16863 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16864 * w32term.h (struct w32_display_info): Remove image_cache field.
16865 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16866 * macterm.h (struct mac_display_info): Remove image_cache field.
16867 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16868 * xterm.c (x_term_init):
16869 * w32term.c (w32_term_init):
16870 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16871 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16872 Remove declarations.
16873 (clear_image_caches, mark_image_cache): New declarations.
16874 * xfaces.c (clear_face_cache):
16875 * xdisp.c (redisplay_internal): Use clear_image_caches.
16876 * image.c (clear_image_cache): Don't check that a frame is on
16877 a window-system before checking if it shares the same cache.
16878 (clear_image_caches): New function.
16879 (Fclear_image_cache): Use it.
16880 (mark_image): Move from allo.c.
16881 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16882 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16883 (mark_object): Don't call mark_image_cache for frames.
16884 (mark_terminals): Call mark_image_cache.
16886 * lisp.h (Fdelete_terminal): Declare.
16888 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16889 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16890 wrong_type_argument.
16892 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16894 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16895 malayalam.el, and tamil.el. Add sinhala.el.
16897 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16899 * xterm.c (x_connection_closed): Consolidate identical tests.
16900 (x_delete_terminal): Don't crash if called via x_connection_closed.
16902 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16904 * xdisp.c (decode_mode_spec): New arg string.
16905 (display_mode_element): Adjust for the above change.
16907 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16909 * callint.c (Fcall_interactively): Use AREF.
16911 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16913 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16915 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16917 * xfns.c (Fx_show_tip): Set string to " " if empty.
16919 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16921 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16924 2008-02-17 Kenichi Handa <handa@m17n.org>
16926 * ftfont.c (ftfont_shape): Return Lispy number.
16928 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16930 (Finternal_set_font_selection_order): Call font_update_sort_order
16931 only when enable_font_backend is set.
16932 (realize_x_face): Set face->font_info to that of default face only
16933 when enable_font_backend is set.
16935 * xdisp.c (handle_composition_prop): Set it->c to the fist
16936 character of the composed region.
16937 (fill_composite_glyph_string): Set base_face->font_info to
16938 s->font_info. Get a face for ascii from base_face->ascii_face.
16939 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16940 with a face already decided.
16941 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16943 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16944 call font_prepare_composition unconditionally.
16946 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16948 * xterm.h (struct x_display_info): New member font.
16950 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16951 (x_set_mouse_face_gc, x_new_font): Likewise.
16952 (x_term_init): Setup display_info->font.
16953 (x_delete_terminal): Free display_info->font.
16955 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16957 * ftxfont.c (ftxfont_default_fid): Delete it.
16958 (ftxfont_open): Set xfont->fid to 0.
16959 (ftxfont_end_for_frame): Clear data specific to the frame and the
16962 * xftfont.c (xftfont_default_fid): Delete it.
16963 (xftfont_open): Set xfont->fid to 0.
16965 * fontset.c (FONTSET_OBJLIST): New macro.
16966 (fontset_find_font): Update font-object list of the fontset.
16967 (free_realized_fontset): New function.
16968 (free_face_fontset): Call free_realized_fontset.
16969 (Ffont_info): Call font_close_object only when enable_font_backend
16972 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16973 [HAVE_NTGUI]: Include w32term.h.
16974 [MAC_OS]: Include macterm.ch.
16975 (font_otf_ValueRecord): Use make_number.
16976 (font_finish_cache): Fix handling of reference count.
16977 (font_clear_cache): Update num_fonts.
16978 (font_open_entity): Update smallest_char_width and
16979 smallest_font_height of the frame.
16980 (font_close_object): Update num_fonts.
16981 (Fclear_font_cache): Fix finding the target cache data.
16983 2008-02-16 Glenn Morris <rgm@gnu.org>
16985 * fontset.c (Finternal_char_font): Fix compilation warning.
16987 2008-02-16 Eli Zaretskii <eliz@gnu.org>
16989 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16990 instead of char arrays. Enlarge the size of array passed to
16991 get_token_information.
16993 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16996 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16998 * .gdbinit: Don't set `args', it breaks gdb --args.
17000 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17002 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17003 within a narrowed buffer.
17005 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17007 * coding.c (decode_coding_object, encode_coding_object):
17008 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17010 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17012 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17014 (detect_coding_system):
17015 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17016 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17017 * insdel.c (insert_from_gap):
17018 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17019 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17020 (string_to_multibyte):
17021 * character.c (chars_in_text, multibyte_chars_in_text):
17022 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17024 * character.h (FETCH_STRING_CHAR_ADVANCE)
17025 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17026 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17027 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17029 * casefiddle.c (casify_region): Only call after-change and composition
17030 functions on the part of the region that was changed.
17032 * keyboard.c (read_avail_input):
17033 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17035 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17037 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17038 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17040 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17042 * w32menu.c (push_submenu_start, push_submenu_end)
17043 (push_left_right_boundary, push_menu_pane, push_menu_item):
17044 * keyboard.c (read_key_sequence): Don't pass args with side effects
17045 to AREF, it fails when compiling with -DENABLE_CHECKING.
17047 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17049 * Makefile.in (${lispsource}international/charprop.el):
17050 Delete this target.
17052 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17055 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17057 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17059 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17061 * frame.c (Qnoelisp): New symbol.
17062 (syms_of_frame): Initialize it.
17063 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17064 harmless Elisp code, from a strong `force' from x_connection_closed.
17065 * frame.h (Qnoelisp): Declare.
17066 * xterm.c (x_connection_closed): Pass `noelisp'.
17068 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17069 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17070 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17071 rather than `int' for the type of `type'.
17073 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17075 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17077 * Makefile.in (GNUC): Remove support for gcc-1.x.
17079 2008-02-10 Richard Stallman <rms@gnu.org>
17081 * lisp.h (ASET): Use AREF, not ASLOT.
17083 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17085 * lisp.h (ASET): Check bounds.
17087 2008-02-10 Glenn Morris <rgm@gnu.org>
17089 * buffer.c (mode-name): Doc fix.
17091 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17108 * xterm.c: Remove code that deals with obsolete variables.
17110 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17112 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17113 nothing else needs it anymore.
17115 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17117 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17118 instead of unibyte_char_to_multibyte.
17120 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17122 * s/gnu-linux.h: Remove commented out code.
17124 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17126 * Makefile.in: Update what RMS says about using autoconf.
17127 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17128 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17129 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17130 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17132 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17134 * keymap.c (Fkey_description): Move side effect outside of macro call.
17136 * xfaces.c (Finternal_make_lisp_face):
17137 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17139 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17140 (syms_of_fontset): Use ASET.
17142 * fns.c (concat): Move side effect outside of macro call.
17143 (hash_clear): Use ASET.
17145 2008-02-08 Richard Stallman <rms@gnu.org>
17147 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17148 If FORCE, and frame has a surrogate minibuffer for another frame,
17149 delete the other frame first.
17151 2008-02-07 Timo Savola <timo.savola@iki.fi>
17153 * xterm.c (x_detect_focus_change): Handle embed client message.
17154 (handle_one_xevent): Ditto.
17155 (handle_one_xevent): If embedded and we get a button press/release,
17157 (xembed_set_info, xembed_send_message): New functions.
17158 (x_make_frame_visible): Call xembed_set_info if embedded.
17159 (x_make_frame_invisible): Call xembed_set_info if embedded.
17160 (x_term_init): Initialize Xatom_XEMBED.
17161 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17162 (x_iconify_frame): Ditto.
17164 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17165 (enum xembed_info, enum xembed_message, enum xembed_focus)
17166 (enum xembed_modifier, enum xembed_accelerator): New.
17167 (xembed_set_info, xembed_send_message): Declare.
17168 (FRAME_X_EMBEDDED_P): New.
17170 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17173 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17174 window ID of a frame.
17175 (x_window): Reparent frame if embedded.
17176 (Fx_create_frame): Don't set border width if embedded.
17178 * emacs.c (USAGE3): Add --parent-id.
17179 (standard_args): Ditto.
17181 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17183 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17185 2008-02-07 Jim Meyering <meyering@redhat.com>
17187 Use "do...while (0)", not "if (1)...else" in macro definitions.
17188 The latter provokes a warning from gcc about the empty else, when
17189 followed by ";". Also, without that trailing semicolon, it would
17190 silently swallow up any following statement.
17191 * syntax.h (SETUP_SYNTAX_TABLE)
17192 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17193 * buffer.h (DECODE_POSITION): Likewise.
17194 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17195 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17196 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17197 (FETCH_CHAR_ADVANCE): Likewise.
17198 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17200 2008-02-07 Jim Meyering <meyering@redhat.com>
17202 * lread.c [lint]: Don't include <sys/inode.h>.
17204 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17206 * xselect.c (x_handle_dnd_message):
17207 * xmenu.c (digest_single_submenu, xmenu_show):
17208 * xdisp.c (with_echo_area_buffer_unwind_data)
17209 (format_mode_line_unwind_data, unwind_format_mode_line)
17210 (display_menu_bar):
17211 * eval.c (Ffetch_bytecode):
17212 * doc.c (store_function_docstring):
17213 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17214 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17215 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17217 2008-02-07 Kenichi Handa <handa@m17n.org>
17219 * ftxfont.c (ftxfont_open): Don't set
17220 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17222 * ftfont.c (ftfont_open): Fix previous change.
17224 2008-02-06 Jason Rumney <jasonr@gnu.org>
17226 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17227 Use cached metrics for ASCII characters.
17228 (w32font_open_internal): Don't set font's owning_frame.
17229 Cache metrics for ASCII characters.
17231 * w32font.h (struct w32font_info): Add ascii_metrics.
17232 Remove owning_frame.
17234 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17236 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17239 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17241 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17243 * charset.c (syms_of_charset): Set QCtest and Qeq.
17245 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17247 * process.c (Fstart_process):
17248 * callproc.c (Fcall_process): Handle the case where
17249 Funhandled_file_name_directory returns nil.
17251 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17252 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17253 * font.c (check_gstring): Use them and AREF to access the vector before
17254 we know it's really a gstring.
17255 (Ffont_shape_text): Fix typo.
17256 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17258 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17261 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17263 2008-02-05 Jason Rumney <jasonr@gnu.org>
17265 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17266 Set smallest_font_height and smallest_char_width in display info.
17268 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17270 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17272 2008-02-05 Miles Bader <miles@gnu.org>
17274 * xfaces.c (get_lface_attributes, merge_named_face)
17275 (lookup_named_face, lookup_derived_face, realize_named_face):
17276 Revert 2008-02-01 change by cyd@stupidchicken.com.
17278 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17280 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17282 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17284 2008-02-04 Jason Rumney <jasonr@gnu.org>
17286 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17288 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17290 2008-02-03 Jason Rumney <jasonr@gnu.org>
17292 * makefile.w32-in (OBJ1): Include font.o here.
17293 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17295 2008-02-02 Jason Rumney <jasonr@gnu.org>
17297 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17299 2008-02-01 Jason Rumney <jasonr@gnu.org>
17301 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17303 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17305 2008-02-01 Andreas Schwab <schwab@suse.de>
17307 * Makefile.in (shortlisp, lisp): Update for rename of
17308 ../lisp/language/myanmar.el.
17310 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
17312 * xfaces.c (get_lface_attributes): Delete function.
17313 (merge_named_face, lookup_named_face, lookup_derived_face)
17314 (realize_named_face): Call lface_from_face_name directly, and use
17315 the fact that merge_face_vectors does not alter its FROM argument.
17317 2008-02-01 Jason Rumney <jasonr@gnu.org>
17319 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17320 input in the default locale. Handle non-Unicode multibyte input.
17322 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17324 * fontset.c (reorder_font_vector): Exclude nil elements from the
17325 font group. Don't try multiple fonts.
17326 (fontset_font): Adjust for the above change.
17327 (Finternal_char_font): Return nil if the found font doesn't
17328 contain the character ch.
17330 * Makefile.in (lisp, shortlisp): Add cham.el.
17332 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17334 * font.h (FONTP): Make it return 1 also for a font-object.
17336 * .gdbinit (xfontset): New function.
17338 * font.c (font_find_for_lface): Check if the character C is
17339 supported or not only for the first font.
17341 * fontset.c (reorder_font_vector): Fix typo.
17342 (fontset_find_font): Don't add a font-spec specifying a script.
17343 Use 0 (not Qt) for the indication of empty font-group. Change the
17344 format of RFONT-DEF. Return Qt if no font in the font-group
17345 support the character.
17346 (fontset_font): Adjust for the above change. If no font was
17347 found the character, remember that.
17348 (face_for_char): Adjust for the change of RFONT-DEF.
17349 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17350 no font for the target.
17351 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17353 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17355 * font.c (font_load_for_face): Handle the case that the font in
17356 face->lface is a string.
17358 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17360 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17362 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17364 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17365 Fix previous change. If the frame is not on a window system,
17368 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17370 * coding.c (decode_coding_object, encode_coding_object): Adjust
17371 marker positions after conversion.
17373 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17375 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17377 * font.c (font_find_for_lface): Fix the handling of the return
17378 value of font_has_char.
17379 (Ffont_shape_text): Fix previous change.
17381 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17382 (fontset_ref_and_range): Delete it.
17383 (fontset_find_font): Call char_table_ref_and_range instead of
17384 FONTSET_REF_AND_RANGE.
17385 (make_fontset): Don't setup font groups of Latin here.
17386 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17387 (new_fontset_from_font): Make the specified font the default for
17388 all Latin characters.
17390 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17392 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17393 is on a window system before accessing the fontset of the frame.
17395 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17397 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17399 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17400 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17402 * font.c (Ffont_shape_text): If the font driver doesn't have a
17403 shaper function, make zero-width glyphs to have at least one-pixel
17404 width. Fix setting of `to' field of glyphs.
17406 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17408 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17411 * font.h (struct font_driver): Improve docstring of member `shape'.
17413 2008-02-01 Kenichi Handa <handa@m17n.org>
17415 * composite.c (syms_of_composite): Fix docstring of
17416 auto-composition-function.
17418 * font.h (LGLYPH_SIZE): New macro.
17420 * font.c (Ffont_fill_gstring): Stop filling when a character not
17421 supported by the font is found.
17422 (Ffont_shape_text): When a shape callback function returns nil,
17423 try at most two more times with larger gstring.
17424 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17426 * xdisp.c (handle_auto_composed_prop): Change the argument to
17427 auto-composition-function.
17429 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17430 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17431 Lispy glyph and store it in the lgstring.
17433 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17435 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17437 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17439 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17441 * fontset.c (Vfont_encoding_charset_alist): New variable.
17442 (syms_of_fontset): DEFVAR it.
17443 (reorder_font_vector, fontset_find_font): Optimize for the case of
17444 no need of reordering.
17445 (face_for_char): Map the charset property by
17446 Vfont_encoding_charset_alist.
17448 2008-02-01 Jason Rumney <jasonr@gnu.org>
17450 * w32font.c (logfonts_match): Don't check adstyle here.
17451 (font_matches_spec): Check here against physical font instead.
17452 (add_font_entity_to_list): Avoid some substitutions.
17454 * font.c (font_parse_fcname): Default weight and slant to normal.
17455 (font_score): Prefer normal fonts if weight or slant unspecified.
17456 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17457 match freetype scores.
17459 2008-02-01 Jason Rumney <jasonr@gnu.org>
17461 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17462 font, as it may have been deleted.
17463 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17464 most common hyphenless variation.
17465 (logfonts_match): Check generic family.
17466 (font_matches_spec): Don't check generic family here.
17467 (fill_in_logfont): Set generic family based on adstyle.
17469 * w32font.h (w32font_get_cache): Update declaration.
17471 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17473 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17475 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17476 If none of the new drivers are available, call font_update_drivers
17477 with the old drivers.
17479 * w32font.c (w32font_get_cache): Adjust the argument type.
17481 * xfont.c (xfont_get_cache): Adjust the argument type.
17483 * font.h (struct font_driver): Change argument type of get_cache.
17485 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17487 * font.c (Ffont_get): Fix arguments to Fassoc.
17488 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17489 (font_clear_cache): New function.
17490 (font_list_entities, font_matching_entity): Use font_get_cache.
17491 (font_update_drivers): Call font_clear_cache when finishing a driver.
17493 * fontset.c (fontset_find_font): Fix previous change.
17495 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17497 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17498 dpyinfo->font_table.
17499 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17500 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17502 * font.c (font_at): Handle the case that the arg C is negative.
17503 Handle the unibyte case.
17504 (Ffont_at): Call font_at with the arg C -1.
17506 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17507 the position here, and call font_at with the arg C -1.
17508 Don't check the range of the existing composition at the point.
17510 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17512 * fontset.c (fontset_add): New args charset_id and family.
17514 (load_font_get_repertory, fontset_find_font): Assume that
17515 font_spec is always a font-spec object.
17516 (Fset_fontset_font): Always store a font-spec object in a fontset.
17518 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17519 instead of get_property_and_range.
17521 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17523 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17524 (xftfont_open): Don't keep locking face.
17525 (xftfont_close): Don't unlock face.
17526 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17528 * fontset.c (fontset_find_font): Don't prefer a font of
17529 supplementary charset.
17531 2008-02-01 Kenichi Handa <handa@m17n.org>
17533 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17534 script, langsys_tag to langsys, new member script.
17535 (OTF_TAG_STR): Terminate by '\0'.
17536 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
17537 listing to the script specified in that property. Fix arg to
17538 OTF_check_features.
17540 2008-02-01 Jason Rumney <jasonr@gnu.org>
17542 * w32font.h: New file.
17544 * w32font.c: Include it.
17545 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17546 (w32font_open): Set owning_frame.
17547 (w32font_text_extents): Use owning_frame.
17548 (struct font_callback_data): Add opentype_only field.
17549 (add_font_entity_to_list): Use it to filter fonts.
17550 Don't check against full name.
17551 (w32font_list_internal): New function.
17552 (w32font_list): Use it.
17553 (w32font_match_internal): New function.
17554 (w32font_match): Use it.
17555 (w32font_open_internal): New function.
17556 (w32font_open): Use it.
17557 (w32font_get_cache, w32font_close, w32font_has_char)
17558 (w32font_encode_char, w32font_text_extents, w32font_draw):
17561 * makefile.w32-in (w32font.o): Depend on w32font.h.
17563 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17565 * charset.c (Fdefine_charset_internal): Record a supplementary
17566 charset at the tail of Vcharset_order_list.
17568 * font.c (Ffont_shape_text): Fix the return value.
17570 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17572 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17574 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17576 * ftfont.c (struct OpenTypeSpec): New struct.
17577 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17578 (ftfont_get_open_type_spec): New function.
17579 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17581 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17583 2008-02-01 Jason Rumney <jasonr@gnu.org>
17585 * w32font.c (add_font_entity_to_list): Compare only the beginning
17588 2008-02-01 Kenichi Handa <handa@m17n.org>
17590 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17591 Never return HANDLED_RECOMPUTE_PROPS.
17593 2008-02-01 Kenichi Handa <handa@m17n.org>
17595 * font.c (font_gstring_produce): Delete it.
17597 * composite.h (COMPOSITION_METHOD):
17598 Handle COMPOSITION_WITH_GLYPH_STRING.
17600 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17602 * xfont.c (Qx): Delete.
17603 (syms_of_xfont): Don't initialize Qx.
17605 * composite.h (enum composition_method):
17606 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17608 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17610 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17611 (choose_face_font): Accept new form of font-spec.
17613 * frame.h (font_driver_list): Declare it unconditionally.
17614 (struct frame): Define members font_driver_list and font_data_list
17617 * fontset.c: Include "font.h" unconditionally.
17618 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17619 (Fset_fontset_font): Accept a font-spec object.
17621 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17622 PIXEL_SIZE part a wild card.
17624 * dispextern.h (struct glyph_string): Define members clip and
17625 num_clips unconditionally.
17626 (struct face): Define members font_info and extra unconditionally.
17628 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17629 ftfont_info only when HAVE_LIBOTF is defined.
17631 2008-02-01 Andreas Schwab <schwab@suse.de>
17633 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17636 2008-02-01 Jason Rumney <jasonr@gnu.org>
17638 * w32font.c (w32font_driver): Add new fields.
17640 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17642 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17643 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17644 (LIBES): Add @M17N_FLT_CFLAGS@.
17646 * composite.c (compose_text): Don't treat the new style
17647 composition specially.
17649 * emacs.c (main): Call syms_of_font unconditionally.
17651 * font.h (FONT_ENTITY_NOT_LOADABLE)
17652 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17653 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17654 (struct font_driver): New member shape.
17655 (font_registry_charsets): Extern it.
17656 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17657 (font_otf_capability, font_drive_otf): Delete their externs.
17659 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17660 (font_charset_alist, font_registry_charsets): Move from xfont.c
17662 (font_prop_validate_otf): New function.
17663 (font_property_table): Register it for QCotf.
17664 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17665 (font_drive_otf): Delete.
17666 (font_prepare_composition): New arg F. Adjust for the change of
17668 (font_find_for_lface): New arg C.
17669 (font_load_for_face): Adjust for the change of font_find_for_lface.
17670 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17672 (Ffont_shape_text): New function.
17673 (Fopen_font): If the font size is not given, use 12-pixel.
17674 (Ffont_at): New arg STRING.
17675 (syms_of_font): Initalize font_charset_alist.
17676 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17679 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17680 fonts of the same font-spec. Change the format of RFONT-DEF.
17681 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17682 Adjust for the change of RFONT-DEF.
17683 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17685 * ftfont.h: New file.
17687 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17688 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17689 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17690 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17691 font_otf_capability and font_drive_otf, set ftfont_shape.
17692 (ftfont_list): Adjust for the change of :otf property value.
17693 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17694 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17695 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17696 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17697 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17698 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17700 * w32term.c (x_draw_composite_glyph_string_foreground):
17701 Adjust for the change of lispy gstring.
17703 * xdisp.c (handle_composition_prop): Adjust for the change of
17704 lispy gstring. Call a function for auto-composition with the
17705 third arg it->window.
17706 (fill_composite_glyph_string): Adjust for the change of lispy string.
17707 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17709 * xfaces.c (set_font_frame_param): Adjust for the change of
17710 font_find_for_lface.
17712 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17713 (xfont_registry_charsets): Likewise. Change caller.
17714 (syms_of_xfont): Don't handle x_font_charset_alist.
17716 * xftfont.c: Include "ftfont.h".
17717 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17718 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17719 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17720 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17721 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17722 Set xftfont_driver.shape to xftfont_shape.
17724 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17725 the change of lispy gstring.
17727 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17729 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17731 2008-02-01 Jason Rumney <jasonr@gnu.org>
17733 * w32font.c (w32font_draw): Fill background manually.
17735 2008-02-01 Jason Rumney <jasonr@gnu.org>
17737 * font.c (Qfontp): Remove unused symbol.
17738 (QCantialias): New symbol.
17739 (syms_of_font): Define it.
17740 (font_property_table): Set a validator for QCantialias.
17742 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17743 Define if not already.
17744 (QCfamily): Share with xfaces.c.
17745 (Qstandard, Qsubpixel, Qnatural): New symbols.
17746 (syms_of_w32font): Define them. Don't define QCfamily here.
17747 (w32_antialias_type, lispy_antialias_type): New functions.
17748 (w32_enumfont_pattern_entity): New arg requested_font.
17749 Set antialias parameter if non-default was requested.
17750 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17752 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17754 * lread.c (read1): Undo the previous change.
17756 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17758 * frame.c (Fdelete_frame): Call font_update_drivers only when
17759 USE_FONT_BACKEND is defined.
17761 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17763 * font.h (struct font_bitmap): New member bits_per_pixel.
17764 (struct font_driver): New members start_for_frame and end_for_frame.
17765 (struct font_data_list): New struct.
17766 (font_put_frame_data, font_get_frame_data): Extern them.
17768 * frame.h (struct frame): New member font_data_list.
17770 * font.c (font_update_drivers): Call driver->start_for_frame and
17771 driver->end_for_frame at proper timings.
17772 (font_put_frame_data, font_get_frame_data): New functions.
17773 (Ffont_spec): Add usage in the docstring.
17775 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17776 (Fdelete_frame): Call font_update_drivers.
17778 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17779 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17780 (xftfont_get_xft_draw): New function.
17781 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17782 (xftfont_end_for_frame): New function.
17783 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17785 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17786 Change argument. Cache GCs in the per-frame data.
17787 (struct ftxfont_frame_data): New struct.
17788 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17789 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17790 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17791 (ftxfont_end_for_frame): New function.
17792 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17794 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17796 2008-02-01 Kenichi Handa <handa@m17n.org>
17798 * xselect.c (Vselection_coding_system)
17799 (Vnext_selection_coding_system): Delete them.
17800 (syms_of_xselect): Don't declare selection-coding-system and
17801 next-selection-coding-system. They are declared in select.el.
17803 2008-02-01 Jason Rumney <jasonr@gnu.org>
17805 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17807 * w32fns.c: Include imm.h.
17808 (get_composition_string_fn, get_ime_context_fn): New optional
17810 (globals_of_w32fns): Load them from imm32.dll.
17811 (ignore_ime_char): New flag.
17812 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17813 WM_IME_ENDCOMPOSITION messages.
17815 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17816 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17818 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17820 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17821 (READCHAR_REPORT_MULTIBYTE): New macro.
17822 (readchar): New 2nd arg MULTIBYTE.
17823 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17824 Make symbol's name multibyte according to the multibyteness of the
17827 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17829 * xfaces.c (face_for_overlay_string): Call lookup_face with
17830 correct arguments (fix of synching with the trunk).
17832 2008-02-01 Kenichi Handa <handa@m17n.org>
17834 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17835 (font_prop_validate_non_neg, font_prop_validate_spacing):
17836 Delete argument prop_index.
17837 (font_property_table): Change arguments to validater. Change Callers.
17838 (font_lispy_object): Delete.
17839 (font_at): Use font_find_object instead fo font_lispy_object.
17841 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17843 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17846 2008-02-01 Jason Rumney <jasonr@gnu.org>
17848 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17849 (font_matches_spec): Remove debug output.
17850 (add_font_entity_to_list): Avoid using substituted fonts.
17852 2008-02-01 Jason Rumney <jasonr@gnu.org>
17854 * doc.c (Fsnarf_documentation):
17855 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17857 2008-02-01 Miles Bader <miles@gnu.org>
17859 * dispextern.h (struct glyph_row): Only define "clip" field if
17860 HAVE_WINDOW_SYSTEM is defined.
17862 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17864 Fix up multi-tty merge.
17866 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17869 * xfaces.c (free_realized_face, clear_face_gcs):
17870 Include font_done_for_face in the input_blocked section, just in case.
17872 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17873 (get_char_face_and_encoding): Undo last change and remove the *other*
17874 duplicate definition (i.e. keep the one that's better scoped and that
17875 includes code for the font-backend).
17877 * terminal.c (create_terminal): Default keyboard_coding to
17878 `no-conversion' and terminal_coding to `undecided'.
17880 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17882 * fontset.c (free_realized_fontsets): Check that the table entry does
17883 contain a fontset before trying to compare it to `base'.
17885 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17886 syms_of_charset, and syms_of_coding earlier because init_window_once
17887 now needs Vcoding_system_hash_table to be setup.
17889 * coding.h (default_buffer_file_coding): Remove.
17891 * coding.c (default_buffer_file_coding): Remove.
17892 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17893 than ->symbol, and use the terminal-local coding system.
17894 (syms_of_coding): Don't setup the coding-systems that are not
17896 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17898 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17899 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17901 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17902 in chartab.c and were re-added here by mistake.
17903 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17905 * doc.c (Fsnarf_documentation):
17906 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17909 * ChangeLog.10: Add mistakenly removed entry.
17911 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17913 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17915 2008-02-01 Miles Bader <miles@gnu.org>
17917 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17918 Add extra args to FACE_FOR_CHAR.
17920 2008-02-01 Kenichi Handa <handa@m17n.org>
17922 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17925 * chartab.c (map_sub_char_table, map_char_table): If the range
17926 contains just one character, call the function with that character
17927 even if the depth is not 3.
17929 2008-02-01 Jason Rumney <jasonr@gnu.org>
17931 * w32font.c (w32font_text_extents): Calculate metrics for the
17934 2008-02-01 Jason Rumney <jasonr@gnu.org>
17936 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17938 2008-02-01 Jason Rumney <jasonr@gnu.org>
17940 * w32term.c (x_set_glyph_string_clipping): Use
17941 get_glyph_string_clip_rects.
17942 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17943 Adjust for the change of struct glyph_string.
17945 * w32font.c (w32font_draw): Do clipping here.
17947 2008-02-01 Kenichi Handa <handa@m17n.org>
17949 * xftfont.c (xftfont_draw): Adjust for the change of struct
17952 * xterm.c (x_set_glyph_string_clipping): Use
17953 get_glyph_string_clip_rects.
17954 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17955 Adjust for the change of struct glyph_string.
17957 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17958 the resulting clip(s}.
17959 (expose_overlaps): Add arg r. Change callers. Set it to
17960 row->clip temporarily.
17961 (expose_window): Redraw rows overlapping the exposed area.
17963 * dispextern.h (struct glyph_row): New member clip.
17964 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17965 clip_height, new member clip, and num_clips.
17967 2008-02-01 Kenichi Handa <handa@m17n.org>
17969 * data.c (Fchar_or_string_p): Fix docstring.
17971 2008-02-01 Kenichi Handa <handa@m17n.org>
17973 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17974 create a temporary XftDraw object.
17976 2008-02-01 Kenichi Handa <handa@m17n.org>
17978 * font.c (Ffontp): Fix docstring.
17980 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17981 strong evidence of ISO-2022.
17983 2008-02-01 Kenichi Handa <handa@m17n.org>
17985 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17986 SYNTAX_ENTRY_FOLLOW_PARENT.
17988 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17990 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17992 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17993 Update to the new type of weak_hash_tables and next_weak.
17995 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17996 a plain C pointer to Lisp_Hash_Table.
17998 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17999 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18000 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18001 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18002 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18003 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18004 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18005 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18006 (GC_EQ): Remove since they've been identical to their non-GC_
18007 alter-egos ever since the markbit was eradicated.
18026 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18028 2008-02-01 Kenichi Handa <handa@m17n.org>
18030 * chartab.c (map_sub_char_table): Make it work for the top-level
18031 char-table. Fix handling of parent char-table.
18032 (map_char_table): Adjust for the above change.
18034 2008-02-01 Jason Rumney <jasonr@gnu.org>
18036 * w32font.c (Qgdi): Rename from Qw32.
18038 2008-02-01 Jason Rumney <jasonr@gnu.org>
18040 * w32bdf.c (get_quoted_string): Make function static.
18042 2008-02-01 Kenichi Handa <handa@m17n.org>
18044 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18045 bigger ascent and descent than those of the font, use them as
18046 font's ascent and descent.
18048 2008-02-01 Kenichi Handa <handa@m17n.org>
18050 * Makefile.in (${lispsource}international/charprop.el): Move this
18051 target within "#ifdef HAVE_UNIDATA" and "#endif".
18053 2008-02-01 Kenichi Handa <handa@m17n.org>
18055 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18056 (shortlisp): Add ../lisp/language/tai-viet.el.
18058 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18060 * Makefile.in (${lispsource}international/charprop.el): Depend on
18063 2008-02-01 Jason Rumney <jasonr@gnu.org>
18065 * w32font.c (w32font_close): Delete the GDI font object.
18067 * w32menu.c: Include character.h.
18069 * w32proc.c: Likewise.
18071 * w32select.c: Likewise.
18073 * makefile.w32-in (w32proc.o): Depend on character.h.
18075 2008-02-01 Jason Rumney <jasonr@gnu.org>
18077 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18079 * w32menu.c (syms_of_w32menu): Likewise.
18081 * w32proc.c (syms_of_ntproc): Likewise.
18083 * w32select.c (syms_of_w32select): Likewise.
18085 * w32term.c (syms_of_w32term): Likewise.
18087 2008-02-01 Jason Rumney <jasonr@gnu.org>
18089 * w32font.c (w32font_draw): Delete brush after using it.
18091 2008-02-01 Jason Rumney <jasonr@gnu.org>
18093 * w32font.c (w32font_open): Don't set font_idx.
18094 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18096 (w32font_draw): Fill background explicitly.
18098 2008-02-01 Jason Rumney <jasonr@gnu.org>
18100 * w32term.c (w32_initialize): Don't call w32font_initialize.
18102 * w32font.c (w32font_info): Remove subranges.
18103 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18104 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18105 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18106 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18107 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18108 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18109 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18110 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18111 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18112 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18114 (font_callback_data): New struct.
18115 (w32font_list, w32font_match): Use it.
18116 (w32font_open): Don't populate subranges.
18117 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18118 (w32font_encode_char): Always return unicode code-point as-is.
18119 (w32font_text_extents): Supply a transformation matrix to
18120 GetGlyphOutline. Never look up by glyph index. Avoid looping
18121 twice. Use unicode version of GetTexExtentPoint32 instead of
18122 glyph index version.
18123 (set_fonts_frame): Remove.
18124 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18125 set frame parameter. Use backward compatible fake foundries.
18126 Save generic family in extra slot under QCfamily. Make width slot
18127 constant. Save QCspacing value. Save list of scripts instead of
18129 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18130 (add_font_entity_to_list): Use font_callback_data struct. Filter
18132 (add_one_font_entity_to_list): Use font_callback_data struct.
18133 (w32_registry): Default to iso10646_1.
18134 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18135 string font registries. Don't fill in font name if it is a generic
18136 family name, fill family instead. Use spacing, family and script
18137 extra info to fill pitch, family and charset fields.
18138 (list_all_matching_fonts): Use font_callback_data struct.
18139 (unicode_range_for_char): Remove.
18140 (font_supported_scripts): New function.
18141 (w32font_initialize): Remove.
18142 (syms_of_w32font): Update which symbols are defined.
18144 2008-02-01 Jason Rumney <jasonr@gnu.org>
18146 * font.c (font_pixel_size): Reverse assq_no_quit args.
18148 * w32term.h (FONT_WIDTH): Report max width, not average.
18149 (FONT_MAX_WIDTH): Remove.
18150 (FONT_AVG_WIDTH): New macro.
18152 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18153 redefinition of FONT_WIDTH.
18155 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18156 (w32_cache_char_metrics): Use FONT_WIDTH.
18158 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18160 2008-02-01 Jason Rumney <jasonr@gnu.org>
18162 * w32font.c (w32font_open): Make lfHeight negative.
18164 * w32fns.c (x_default_font_parameter): Use new style font name.
18165 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18167 2008-02-01 Jason Rumney <jasonr@gnu.org>
18169 * w32font.c (QCsubranges): New symbol.
18170 (w32font_open, w32font_has_char): Get subranges from subproperty
18172 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18173 (syms_of_w32font): Define :subranges symbol.
18175 * font.c (font_put_extra): Expose externally.
18177 * font.h (font_put_extra): Move declaration from font.c.
18179 * font.c (Ffont_get): Use font driver to determine otf capability.
18180 (adjust_anchor): Check if driver defines anchor_point before using.
18182 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18183 (w32font_draw): Use options.
18184 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18185 Fix detection of truetype fonts.
18186 (registry_to_w32_charset): Handle charsets other than iso8859-1
18187 expressed as lisp symbols.
18188 (w32_registry): Express charset as lisp symbol.
18189 (fill_in_logfont): Reverse pixel and point height logic.
18190 Don't set width here. Set quality to default.
18192 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18193 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18195 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18196 Remove redundant loop and allocation.
18198 * makefile.w32-in (font.o, w32font.o): New objects.
18199 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18200 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18202 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18203 STORE_XCHARB a valid l-value.
18205 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18206 calculations for non-Truetype fonts.
18207 (x_draw_glyph_string): Sync with xterm.c.
18208 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18209 Remove redundant code.
18210 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18212 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18213 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18215 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18216 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18218 * w32font.c: New file for w32 font backend.
18220 2008-02-01 Kenichi Handa <handa@m17n.org>
18222 * term.c: Don't include "buffer.h" twice.
18224 2008-02-01 Kenichi Handa <handa@m17n.org>
18226 * character.c (Funibyte_string): New function.
18227 (syms_of_character): Defsubr it.
18229 2008-02-01 Jason Rumney <jasonr@gnu.org>
18231 * w32term.c [USE_FONT_BACKEND]:
18232 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18233 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18234 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18235 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18236 (x_free_frame_resources): Sync with xterm.c.
18238 2008-02-01 Andreas Schwab <schwab@suse.de>
18240 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18243 2008-02-01 Kenichi Handa <handa@m17n.org>
18245 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18247 2008-02-01 Kenichi Handa <handa@m17n.org>
18249 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18250 font_otf_gpos, add font_drive_otf.
18252 * fontset.c (fontset_find_font): Pay attention to font size
18253 specified for a font.
18254 (reorder_font_vector): Check contents of font_def.
18256 * font.c (struct otf_list): Delete it.
18257 (otf_list): Make it a lisp variable.
18258 (otf_open): Use lispy otf_list.
18259 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18260 (check_otf_features): New function.
18261 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18263 (font_drive_otf): New function merging font_otf_gsub and
18265 (font_open_for_lface): New arg spec. Change argument order.
18266 (font_load_for_face): Adjust for the change of font_open_for_lface.
18267 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18269 (syms_of_font): Staticpro otf_list. Delete defsubr of
18270 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18272 * xfaces.c (set_font_frame_param): Adjust for the change of
18273 font_open_for_lface.
18275 * font.h (font_open_for_lface): Adjust prototype.
18276 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18278 (font_otf_gsub, font_otf_gpos): Delete externs.
18279 (font_drive_otf): Extern it.
18281 2008-02-01 Kenichi Handa <handa@m17n.org>
18283 * font.c (font_at): If the window W is not on a window system,
18286 * coding.c (produce_chars, encode_coding): Don't call
18287 insert_from_gap if no characters to produce.
18289 2008-02-01 Kenichi Handa <handa@m17n.org>
18291 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18294 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18296 2008-02-01 Miles Bader <miles@gnu.org>
18298 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18299 Parse "--disable-font-backend" option.
18300 (standard_args): Add "--disable-font-backend" option.
18302 2008-02-01 Kenichi Handa <handa@m17n.org>
18304 * fontset.c (fontset_find_font): New function.
18305 (fontset_font): Use fontset_find_font.
18306 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18307 Register the specified font for all Latin characters.
18308 (new_fontset_from_font): Register the specified font for all Latin
18310 (dump_fontset): For a realized fontset, include the base fontset
18311 name in the returned vector.
18313 2008-02-01 Kenichi Handa <handa@m17n.org>
18315 * character.h (CHAR_STRING): Cast C to unsigned on calling
18318 * character.c (char_string): Type of arg C changed to unsigned.
18319 Signal an error if C is an invalid character code.
18321 * editfns.c (general_insert_function, Fchar_to_string):
18322 Use CHARACTERP, not INTEGERP.
18324 2008-02-01 Kenichi Handa <handa@m17n.org>
18326 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18327 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18329 * regex.c (analyse_first): Fix for multibyte characters in "case
18330 charset:" and "case categoryspec:".
18332 2008-02-01 Andreas Schwab <schwab@suse.de>
18334 * Makefile.in (LIBES): Move standard libraries to the end.
18336 2008-02-01 Kenichi Handa <handa@m17n.org>
18338 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18339 nonzero, don't shrink the buffer nextb.
18341 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18343 * coding.c (coding_alloc_by_making_gap): New arg offset.
18344 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18346 (decode_coding_iso_2022): Update coding->safe_charsets.
18347 (decode_coding_gap): Temporarily set
18348 current_buffer->text->inhibit_shrinking to 1.
18350 2008-02-01 Kenichi Handa <handa@m17n.org>
18352 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18353 indexing into elements of s->cmp and s->char2b.
18355 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
18357 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18359 2008-02-01 Kenichi Handa <handa@m17n.org>
18361 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18362 target_multibyte instead of multibyte.
18363 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18364 (bcmp_translate): Change the argument name from multibyte to
18367 2008-02-01 Kenichi Handa <handa@m17n.org>
18369 These changes are to compile a regexp into a pattern that can be
18370 used both for multibyte and unibyte targets.
18372 * Makefile.in (search.o): Depend on charset.h.
18374 * character.c (multibyte_char_to_unibyte_safe): New function.
18376 * search.c: Include "charset.h".
18377 (compile_pattern_1): Delete argument multibyte. Don't set
18378 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18379 (compile_pattern): Don't compare cp->buf.target_multibyte.
18380 Compare cp->buf.charset_unibyte.
18381 (compile_pattern): Set cp->buf.target_multibyte.
18383 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18385 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18387 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18388 multibyte. Change callers.
18389 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18390 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18391 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18392 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18393 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18394 (regex_compile): Make the compiled pattern usable both for
18395 multibyte and unibyte targets.
18396 (analyse_first): Make the fastmap usable both for multibyte and
18398 (TRANSLATE_VIA_MULTIBYTE): Delete.
18399 (re_match_2_internal): Pay attention to the case that the
18400 multibyteness of bufp and target may be different.
18402 2008-02-01 Kenichi Handa <handa@m17n.org>
18404 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18405 empty box occupy at least one column width.
18407 2008-02-01 Miles Bader <miles@gnu.org>
18409 * Makefile.in: Remove redundant HAVE_XFT clause.
18411 2008-02-01 Kenichi Handa <handa@m17n.org>
18413 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18415 2008-02-01 Kenichi Handa <handa@m17n.org>
18417 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18420 2008-02-01 Kenichi Handa <handa@m17n.org>
18422 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18424 2008-02-01 Kenichi Handa <handa@m17n.org>
18426 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18428 2008-02-01 Kenichi Handa <handa@m17n.org>
18430 * search.c (simple_search): Fix previous change.
18432 2008-02-01 Kenichi Handa <handa@m17n.org>
18434 * xftfont.c (ftfont_font_format): Extern declaration.
18436 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18438 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18439 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18441 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18442 (ftfont_font_format): Fix previous change.
18444 * font.h (Ffont_xlfd_name): EXFUN it.
18446 * font.c (font_parse_xlfd): Fix the array size of `f'.
18447 (register_font_driver): Use EQ to compare driver->type.
18449 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18450 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18451 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18453 2008-02-01 Kenichi Handa <handa@m17n.org>
18455 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18456 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18458 2008-02-01 Kenichi Handa <handa@m17n.org>
18460 * xfont.c (xfont_open): Set font->format.
18462 * xftfont.c (xftfont_open): Set font->format.
18464 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18465 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18466 (ftfont_open): Set font->format.
18467 (ftfont_font_format): New function.
18469 * font.h (struct font): New member format.
18471 * font.c (Qopentype): New variable.
18472 (syms_of_font): Defsym it.
18473 (Fquery_font): Change the format of the last element of the return
18476 2008-02-01 Kenichi Handa <handa@m17n.org>
18478 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18481 2008-02-01 Kenichi Handa <handa@m17n.org>
18483 * coding.c (detect_coding_charset): Fix detection of multi-byte
18486 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18488 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18490 2008-02-01 Kenichi Handa <handa@m17n.org>
18492 * xdisp.c (get_next_display_element): Set it->face_id for the
18493 first component of a composition.
18494 (x_produce_glyphs): Check if the font is changed or not for composition.
18496 2008-02-01 Kenichi Handa <handa@m17n.org>
18498 * fontset.c (Qlatin): New variable.
18499 (syms_of_fontset): Define it as a lisp symbol.
18500 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18502 2008-02-01 Kenichi Handa <handa@m17n.org>
18504 * font.c (font_unparse_fcname): Pay attention to the case that
18505 some of font property is a null string.
18507 2008-02-01 Kenichi Handa <handa@m17n.org>
18509 * term.c: Include "composite.h".
18510 (encode_terminal_code): Output all components of composition.
18511 Check the size of encode_terminal_src.
18512 (produce_glyphs): For composition, call produce_composite_glyph.
18513 (append_composite_glyph, produce_composite_glyph): New functions.
18515 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18516 is not found, get font_info from the current ascii face.
18518 2008-02-01 Kenichi Handa <handa@m17n.org>
18520 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18521 buffer-file-name to Qnil before calling insert_from_buffer.
18523 * font.c (font_unparse_fcname): Pay attention to the case that
18524 foundry is a null string.
18526 2008-02-01 Kenichi Handa <handa@m17n.org>
18528 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18530 * font.c (Qunicode_sip): New variable.
18531 (syms_of_font): Declare it as a Lisp symbol.
18533 * font.h (Qunicode_sip): Extern it.
18535 2008-02-01 Kenichi Handa <handa@m17n.org>
18537 * composite.c (get_composition_id): Pay attention to TAB component.
18539 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18540 TAB. Adjust for the change of s->char2b which always points to
18541 the first element of allocated memory.
18543 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18545 * xdisp.c (handle_composition_prop): Set it->c to the first
18547 (fill_composite_glyph_string): Change argument.
18548 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18549 (x_produce_glyphs): Fix handling of left/right padding.
18551 2008-02-01 Kenichi Handa <handa@m17n.org>
18553 * coding.c (detect_coding_system): Fix for handling off
18554 inhibit_iso_escape_detection. Fix for the case that no coding
18555 system is defined for a specific coding category.
18557 2008-02-01 Kenichi Handa <handa@m17n.org>
18559 * font.c (font_matching_entity): Delete unused local var.
18561 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18564 * fileio.c (Finsert_file_contents): On recovering a file, assume
18566 (choose_write_coding_system): On auto-saving a file, force
18569 * coding.c (setup_coding_system): Fix setting of
18570 coding->common_flags based on eol_type.
18571 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18574 2008-02-01 Kenichi Handa <handa@m17n.org>
18576 * alloc.c (NSTATICS): Increas to 0x600.
18578 2008-02-01 Kenichi Handa <handa@m17n.org>
18580 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18581 (ftfont_list): Don't check :name property.
18582 (ftfont_match): New function.
18583 (ftfont_pattern_entity): If the pattern doesn't contain
18584 FC_SPACING, don't assume FC_MONO.
18586 * font.h (struct font_driver): New member `match'.
18587 (font_update_drivers): Adjust prototype.
18589 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18591 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18592 them unconditionally.
18593 (font_matching_entity): New function.
18594 (font_open_by_name): Try font_matching_entity if exact match is
18596 (font_update_drivers): Delete the arg FONT. Return a list of
18597 actually used backends. Don't free faces, font caches here.
18598 Don't store data in frame parameters. Don't call x_set_font.
18599 (Ffont_spec): Store :name property as is.
18600 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18601 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18602 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18603 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18604 Call font->driver->otf_gsub instead of font_otf_gsub.
18606 * frame.c (x_set_font_backend): Do more works that were done in
18607 font_update_drivers before.
18609 * xfont.c (xfont_match): New function.
18610 (xfont_driver): Set xfont_driver.match to xfont_match.
18611 (xfont_draw): Set font in GC if necessary.
18613 * ftxfont.c (ftxfont_match): New function.
18614 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18616 * xftfont.c (xftfont_match): New function.
18617 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18619 2008-02-01 Kenichi Handa <handa@m17n.org>
18621 * font.h (struct font): New member scalable.
18622 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18623 (font_otf_gsub): Adjust prototype.
18625 * font.c (font_otf_capability): Fix handling of the default langsys.
18626 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18627 Check the contents of SPEC.
18628 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18629 (check_gstring): New function.
18630 (REPLACEMENT_CHARACTER): New macro.
18631 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18632 glyph codes of GSTRING.
18633 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18634 (font_prepare_composition): Set cmp->glyph_len.
18635 (font_open_entity): Set font->scalable.
18636 (Ffont_get): Handle :otf property.
18637 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18639 (Fquery_font): Use font->font.full_name.
18640 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18641 Sfont_otf_alternates.
18643 * ftfont.c (ftfont_open): Set font->font.full_name and
18644 font->font.name properly. Fix calculation of font->font.height
18645 and font->min_width.
18647 * ftxfont.c (ftxfont_create_gcs): New function.
18648 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18649 (ftxfont_draw_backgrond): Fix filling region.
18650 (ftxfont_default_fid): New function.
18651 (ftxfont_open): Set xfont->fid to the return value of
18652 ftxfont_default_fid.
18653 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18654 (ftxfont_done_face): Free only GCs that are created by
18655 ftxfont_create_gcs.
18656 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18658 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18659 Clip to src->width, etc (not src->clip_XXX).
18661 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18662 FontBackend frame parameter.
18664 2008-02-01 Kenichi Handa <handa@m17n.org>
18666 * font.h (struct font_driver_list): New member `on'.
18667 (Fclear_font_cache): EXFUN it.
18668 (font_update_drivers): Extern it.
18670 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18671 (font_list_entities): Check driver_list->on.
18672 (register_font_driver): Initalize `on' member to 0.
18673 (font_update_drivers): New function.
18674 (Fclear_font_cache): Check driver_list->on.
18676 * frame.h (Qfont_backend): Extern it.
18677 (x_set_font_backend): Extern it.
18679 * frame.c (Qfont_backend): New variable.
18680 (frame_parms): New element for font-backend.
18681 (x_set_font_backend): New function.
18683 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18684 FontBackend frame parameter.
18685 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18686 x_set_font_backend.
18688 * xfont.c (xfont_list): Don't try listing by :name property if the
18689 name is not for XLFD.
18691 2008-02-01 Kenichi Handa <handa@m17n.org>
18693 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18694 (LGLYPH_SET_TO): New macros.
18695 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18696 element of G is vector or not.
18697 (font_at): Extern it.
18699 * font.c: Include window.h.
18700 (font_lispy_object): New function.
18701 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18702 end of valid glyph.
18703 (font_close_object): Fix getting (struct font *).
18704 (font_at): New function.
18705 (Ffont_get): If FONT is a font-object, get entity from it.
18706 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18707 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18709 (Ffont_at): New function.
18710 (syms_of_font): Defsubr Sfont_at.
18712 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18713 before the entry for Qcomposition.
18714 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18715 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18716 the font in gstring.
18717 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18718 LGLYPH_FORM (g) to detect the end of valid glyph.
18719 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18720 we are composing with gstring.
18722 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18723 Check if adjustment is vector or not.
18725 * Makefile.in (font.o): Make it depends on window.h.
18727 2008-02-01 Kenichi Handa <handa@m17n.org>
18729 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18730 adjustment is vector or not.
18732 2008-02-01 Miles Bader <miles@gnu.org>
18734 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18736 2008-02-01 Kenichi Handa <handa@m17n.org>
18738 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18739 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18740 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18742 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18743 (DEVICE_DELTA): Fix typo.
18744 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18747 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18748 the change of LGLYPH format.
18750 2008-02-01 Kenichi Handa <handa@m17n.org>
18752 * ftfont.c (ftfont_list): Fix typo.
18753 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18755 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18757 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18759 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18760 xftface_info is non-NULL.
18762 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18764 * ftfont.c (ftfont_list): Move misplaced #endif.
18766 2008-02-01 Kenichi Handa <handa@m17n.org>
18768 * ftfont.c (ftfont_list): Pay attention to the case that
18769 FC_CAPABILITY is not defined.
18771 2008-02-01 Kenichi Handa <handa@m17n.org>
18773 * xftfont.c (xftfont_open): Set charset related members to -1.
18775 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18777 (ftfont_open): Set charset related members to -1.
18779 * fontset.c (Votf_script_alist): New variable.
18780 (syms_of_fontset): Initialize it.
18781 (fontset_font): Delete unused variable.
18783 * fontset.h (Votf_script_alist): Extern it.
18785 * font.c (font_find_for_lface): Optimize code.
18787 * font.h (font_close_object, font_merge_old_spec): Extern them.
18789 2008-02-01 Kenichi Handa <handa@m17n.org>
18791 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18792 (syms_of_font): Initialize them.
18793 (font_pixel_size): Allow float value in dpi.
18794 (font_prop_validate_type): Delete.
18795 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18797 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18798 (font_prop_validate_extra): Delete.
18799 (font_prop_validate_spacing): New function.
18800 (font_property_table): Add elements for all known properties.
18801 (get_font_prop_index): Rename from check_font_prop_name. New
18802 argument FROM. Change caller.
18803 (font_prop_validate): Validate all known properties.
18804 (font_put_extra): Delete argument force. Change caller.
18805 (font_expand_wildcards): Make it static. Fix the way of shrinking
18806 the possible range.
18807 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18808 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18810 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18811 (font_parse_fcname): Delete argument merge. Fix parsing of point
18812 size. Don't validate properties values here. Change caller.
18813 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18814 (font_open_by_name): Delete unused variable.
18815 (Ffont_spec): Likewise. Validate property values.
18816 (Ffont_match_p): New function.
18818 * font.h (QCscalable): Extern it.
18819 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18821 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18823 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18824 (xfont_list_pattern): New function.
18825 (xfont_list): Use xfont_list_pattern.
18827 2008-02-01 Kenichi Handa <handa@m17n.org>
18829 * font.h (Flist_fonts): EXFUN it.
18831 2008-02-01 Jason Rumney <jasonr@gnu.org>
18833 * w32term.c (w32_initialize): Add back smoothing_type and
18834 smoothing_enabled definitions.
18836 2008-02-01 Kenichi Handa <handa@m17n.org>
18838 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18839 s->face->font on determining underline position.
18841 2008-02-01 Kenichi Handa <handa@m17n.org>
18843 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18844 (font_has_char): Accept font-object too.
18845 (font_find_for_lface): Try at first with a size specified in face.
18847 2008-02-01 Kenichi Handa <handa@m17n.org>
18849 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18852 2008-02-01 Kenichi Handa <handa@m17n.org>
18854 * font.h (QCspacing, QCdpi): Extern them.
18855 (enum font_spacing): New enum.
18856 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18858 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18859 (QCspacing, QCdpi): New variables.
18860 (syms_of_font): Initialize them.
18861 (font_pixel_size): New function.
18862 (font_put_extra): New function.
18863 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18865 (font_parse_fcname): Handle enumerated values (e.g. bold).
18866 Fix handling font size. Add QCname property that contains only
18867 unknown properties.
18868 (font_score): Change argument. Change caller. Pay attention to
18869 FONT_PIXEL_SIZE_QUANTUM.
18870 (font_sort_entites, font_list_entities, font_find_for_lface)
18871 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18872 (Ffont_spec): Add QCname property that contains only unknown properties.
18874 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18875 include weight in listing pattern, instead check weight of each
18876 listed font. Don't include scalable in pattern. Pay attention to
18877 FONT_PIXEL_SIZE_QUANTUM.
18879 2008-02-01 Kenichi Handa <handa@m17n.org>
18881 * font.c (font_parse_fcname): Fix parsing of point-size.
18882 (font_unparse_fcname): Produce symbolic names for style properties.
18883 (font_list_entities): Handle float size correctly.
18884 (font_open_by_name): Prefer `normal' property values if the name
18885 doesn't specify them.
18887 * fontset.c (Finternal_char_font): Use font_get_name, not
18890 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18891 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18892 pattern. Don't force scalable.
18894 * xftfont.c (xftfont_open): For generating a name, start from
18897 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18899 * frame.h (x_new_fontset2): Fix prototype.
18901 2008-02-01 Kenichi Handa <handa@m17n.org>
18903 * font.h (struct font_driver): Delete member parse_name.
18904 (font_match_p, font_get_spec, font_parse_fcname)
18905 (font_unparse_fcname): Extern them.
18906 (font_get_name): Adjust prototype.
18908 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18909 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18910 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18911 unnecessary checks for weight, slant, and swidth.
18912 (font_parse_fcname): New function.
18913 (font_unparse_fcname): New function.
18914 (font_parse_name): New function.
18915 (font_match_p): New function.
18916 (font_get_name): Change return value to Lisp string.
18917 (font_get_spec): New function.
18918 (Qunspecified, Qignore_defface): Don't extern them.
18919 (font_find_for_lface): Assume that LFACE is fully specified.
18920 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18921 object, use it for FACE.
18922 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18923 driver->parse_name.
18924 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18926 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18929 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18930 argument F. Don't call Fnew_fontset. Instead, directly call
18933 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18935 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18938 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18939 (Qsans__serif): New variables.
18940 (ftfont_generic_family_list): New variable.
18941 (syms_of_ftfont): Initialize the above variables.
18942 (ftfont_pattern_entity): Delete argument NAME.
18943 (ftfont_list_generic_family): New function.
18944 (ftfont_parse_name): Delete this function.
18945 (ftfont_list): Try generic family only when FcFontList found no font.
18946 (ftfont_list_family): Fix args to FcObjectSetBuild.
18948 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18949 object in attrs[LFACE_FONT_INDEX].
18950 (set_lface_from_font_name): Cancel all changes for font-backend.
18951 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18953 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18954 font object in QCfont attribute.
18955 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18956 (realize_default_face) [USE_FONT_BACKEND]: Call
18957 set_lface_from_font_and_fontset.
18959 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18960 "fixed", and signal error here if no suitable font was found.
18962 * xfont.c (xfont_parse_name): Delete this function.
18964 * xftfont.c (xftfont_open): Change coding style of error
18965 handling. Generate fontconfig's fontname pattern.
18967 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18968 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18970 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18971 Both args FONTSET and FONT_OBJECT must be existing ones.
18973 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18975 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18977 2008-02-01 Kenichi Handa <handa@m17n.org>
18979 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18981 * font.h (struct font): Fix typo.
18983 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18985 (enum xlfd_field_mask): New enum.
18986 (intern_font_field): Changed argument. Change caller. If digits
18987 are followed by non-digits, return a symbol.
18988 (font_expand_wildcards): New function.
18989 (font_parse_xlfd): Fix wildcard handling.
18990 (Ffont_spec): If :name is specified, reflect the info in the other
18993 * ftfont.c (ftfont_pattern_entity): Fix typo.
18994 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18997 2008-02-01 Kenichi Handa <handa@m17n.org>
18999 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19001 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19002 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19003 registry doesn't specify encoding part.
19004 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19005 (font_open_by_name): At first try parsing the name.
19006 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19009 * fontset.c (reorder_font_vector): Pay attention to the case that
19010 the 3rd element of font_def is nil.
19011 (fontset_font): For the default fontset, append one more fontset
19012 elements for a script-based font specification. Don't add script
19013 attribute on finding a font.
19014 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19016 (fontset_ascii_font): If a font can't be opened, return nil.
19018 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19019 (ftfont_pattern_entity): New function.
19020 (ftfont_get_cache): Assume that freetype_font_cache is already
19022 (ftfont_list): Handle the case that a file is specified in font
19023 name. Use ftfont_pattern_entity to generate entities.
19024 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19025 (syms_of_ftfont): Initialize freetype_font_cache.
19027 * xftfont.c (xftfont_open): Make the font name fontconfig's
19028 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19029 (xftfont_close): Free font->font.name if not NULL.
19031 * xfont.c (xfont_list): If script is specified for a font, return
19033 (xfont_list_family): Declare argument type.
19035 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19036 name, set LFACE_FONT (lface) to nil.
19038 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19041 2008-02-01 Kenichi Handa <handa@m17n.org>
19043 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19044 (standard_args): Add "-enable-font-backend".
19046 2008-02-01 Kenichi Handa <handa@m17n.org>
19048 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19049 (struct xftdraw_list, xftdraw_list): Delete them.
19050 (register_xftdraw, check_xftdraw): Delete them.
19051 (xftfont_prepare_face): Don't call register_xftdraw.
19052 (xftfont_done_face): Don't call check_xftdraw.
19053 (xftfont_draw): Get background color only when with_background is
19056 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19058 2008-02-01 Kenichi Handa <handa@m17n.org>
19060 These changes are for the new font handling codes.
19062 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19063 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19064 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19065 (FONTSRC, FONTOBJ): New variables.
19066 (obj): Add $(FONTOBJ).
19067 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19068 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19070 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19071 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19073 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19075 * character.h (Vscript_representative_chars): Extern it.
19077 * character.c (Vscript_representative_chars): New variable.
19078 (syms_of_character): Declare it as a Lisp variable.
19080 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19081 enable_font_backend is nonzero, accept the composition method
19082 COMPOSITION_WITH_GLYPH_STRING.
19084 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19085 enumeration COMPOSITION_WITH_GLYPH_STRING.
19087 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19088 members clip_x, clip_y, clip_width, and clip_height.
19089 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19091 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19092 --enable-font-backend. Call syms_of_font.
19094 * fns.c (assoc_no_quit): New function.
19096 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19097 (face_for_font, new_fontset_from_font)
19098 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19100 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19101 (fontset_font, fontset_ascii, face_for_char)
19102 (make_fontset_for_ascii_face, Ffont_info)
19103 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19104 is nonzero, use font-backend mechanism.
19105 (find_font_encoding): Make it non-static.
19106 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19109 * frame.h (struct frame): New members resx and resy.
19110 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19111 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19113 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19114 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19116 * lisp.h (assoc_no_quit): Extern it.
19118 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19119 Through out the file, use FONT_INFO_FROM_FACE instead of
19120 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19121 rif->per_char_metric.
19122 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19123 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19124 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19125 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19126 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19127 nonzero, use font-backend mechanism.
19128 (get_per_char_metric): New function.
19130 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19131 (set_lface_from_font_name)
19132 (set_font_frame_param, free_realized_face)
19133 (prepare_face_for_display, clear_face_gcs)
19134 (Finternal_set_font_selection_order, realize_x_face)
19135 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19136 font-backend mechanism.
19137 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19138 (load_face_font) [USE_FONT_BACKEND]: Abort.
19139 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19140 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19142 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19143 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19144 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19145 nonzero, register all available font drivers. Call
19146 x_default_font_parameter for deciding a font.
19147 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19149 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19150 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19151 (x_set_glyph_string_clipping_exactly)
19152 (x_compute_glyph_string_overhangs)
19153 (x_draw_glyph_string_foreground)
19154 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19155 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19156 enable_font_backend is nonzero, use font-backend mechanism.
19157 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19159 2008-02-01 Kenichi Handa <handa@m17n.org>
19161 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19163 (syms_of_coding): Initialize system_eol_type.
19165 * process.c (Fset_process_coding_system): Inherit system's eol
19166 format if necessary.
19168 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19170 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19172 2008-02-01 Kenichi Handa <handa@m17n.org>
19174 * coding.c (decode_eol): Pay attention to buffer relocation in
19176 (decode_coding): Call decode_eol before restoring undo_list.
19178 2008-02-01 Kenichi Handa <handa@m17n.org>
19180 * charset.c (Fdefine_charset_internal): Fix setting of
19183 2008-02-01 Kenichi Handa <handa@m17n.org>
19185 * keyboard.c (read_char): Check if C is a character or not before
19186 looking up Vkeyboard_translate_table.
19188 2008-02-01 Kenichi Handa <handa@m17n.org>
19190 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19191 condition to terminate the loop.
19193 2008-02-01 Kenichi Handa <handa@m17n.org>
19195 * coding.c (produce_composition): Compare charbuf[i] instead of
19197 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19199 2008-02-01 Kenichi Handa <handa@m17n.org>
19201 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19202 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19203 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19205 (emacs_mule_char): Handle old style (Emacs 20) component character
19207 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19208 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19210 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19212 2008-02-01 Kenichi Handa <handa@m17n.org>
19214 * coding.c (encode_coding_ccl): Allocate destination dynamically
19217 2008-02-01 Kenichi Handa <handa@m17n.org>
19219 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19220 the loop. When quitted, show a proper error message.
19222 2008-02-01 Kenichi Handa <handa@m17n.org>
19224 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19225 src->clip_head and src->clip_tail temporarily instead of src->hl.
19227 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19228 character sequence.
19229 (Fccl_execute_on_string): Use ASET, not XSET.
19231 2008-02-01 Kenichi Handa <handa@m17n.org>
19233 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19235 2008-02-01 Kenichi Handa <handa@m17n.org>
19237 * coding.c (decode_coding): Fix the condition of terminating the
19240 2008-02-01 Kenichi Handa <handa@m17n.org>
19242 * data.c (Faset): On setting a character bigger than 255 in a
19243 unibyte string, signal an error instead of make the string multibyte.
19245 2008-02-01 Kenichi Handa <handa@m17n.org>
19247 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19248 made by a mapping table.
19250 2008-02-01 Kenichi Handa <handa@m17n.org>
19252 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19254 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19255 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19257 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19258 s->face is NULL or not.
19260 2008-02-01 Kenichi Handa <handa@m17n.org>
19262 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19263 (x_draw_glyph_string): Fix drawing of right_overhang and
19264 left_overhang around/on cursor.
19266 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19268 2008-02-01 Kenichi Handa <handa@m17n.org>
19270 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19272 2008-02-01 Kenichi Handa <handa@m17n.org>
19274 * coding.c (Fdefine_coding_system_internal)
19275 (Fdefine_coding_system_alias): Avoid a duplicated element in
19276 Vcoding_system_alist.
19278 2008-02-01 Kenichi Handa <handa@m17n.org>
19280 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19282 * coding.c (Qcoding_system_define_form): New variable.
19283 (syms_of_coding): Intern and staticpro it.
19284 (Fcoding_system_p): Check Qcoding_system_define_form.
19285 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19287 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19289 (CHECK_CODING_SYSTEM): If ID is not available, call
19290 Fcheck_coding_system.
19291 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19292 Try also Fcheck_coding_system.
19294 2008-02-01 Kenichi Handa <handa@m17n.org>
19296 * coding.c (code_conversion_restore): GCPRO arg.
19298 2008-02-01 Kenichi Handa <handa@m17n.org>
19300 * character.c (lisp_string_width): Check multibyteness of STRING.
19302 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19304 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19305 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19306 (decode_mac_font_name): Use decode_coding_c_string instead of
19308 (x_load_font): Initialize fontp->fontset to -1. Set
19309 fontp->encoding_type.
19311 2008-02-01 Kenichi Handa <handa@m17n.org>
19313 * search.c (search_buffer): Give up BM search on case-fold-search
19314 if one of a target character has a case-equivalence of different
19315 byte length even if that target charcter is an ASCII.
19316 (simple_search): Fix calculation of byte length of matched text.
19317 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19319 2008-02-01 Kenichi Handa <handa@m17n.org>
19321 * coding.c (decode_coding): Fix handling of invalid bytes.
19323 2008-02-01 Kenichi Handa <handa@m17n.org>
19325 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19326 Unicode characters.
19328 2008-02-01 Kenichi Handa <handa@m17n.org>
19330 * coding.c (encode_coding_object): If a pre-write-conversion
19331 function makes a new buffer, kill it.
19333 2008-02-01 Kenichi Handa <handa@m17n.org>
19335 * coding.c (QCascii_compatible_p): New variable.
19336 (syms_of_coding): Initialize it.
19337 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19338 calling string_char.
19339 (record_conversion_result): Add `default:' case.
19340 (coding_charset_list): Delete unused variable `coding_type'.
19341 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19342 property in the plist of the coding system.
19343 (Fcoding_system_put): Check QCascii_compatible_p.
19345 2008-02-01 Miles Bader <miles@gnu.org>
19347 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19348 removed calculation of frame `f', as it's now used.
19350 2008-02-01 Kenichi Handa <handa@m17n.org>
19352 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19353 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19354 (UNIDATA): New variable.
19355 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19356 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19357 $(RUN_TEMACS) unconditionally.
19359 2008-02-01 Kenichi Handa <handa@m17n.org>
19361 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19362 (admindir): New variable.
19363 ($(lispsource)international/charprop.el): New target.
19365 2008-02-01 Miles Bader <miles@gnu.org>
19367 * character.c (chars-in-region): Remove obsolete function.
19368 (syms_of_character): Remove its initialization.
19370 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19372 * w32select.c (validate_coding_system)
19373 (setup_windows_coding_system): New functions.
19374 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19375 setup_windows_coding_system.
19376 (setup_config, Fw32_get_clipboard_data): Use
19377 validate_coding_system.
19378 (Fx_selection_exists): Move call to setup_config to a place
19379 where signals are allowed.
19381 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19382 (Fcheck_coding_system): Add declarations.
19384 2008-02-01 Kenichi Handa <handa@m17n.org>
19386 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19388 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19390 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19391 string as the second argument for x_new_fontset.
19393 2008-02-01 Kenichi Handa <handa@m17n.org>
19395 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19396 (encode_coding_object): Use safe_call instead of call2.
19398 2008-02-01 Kenichi Handa <handa@m17n.org>
19400 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19402 * Makefile.in (lisp): Include charprop.el.
19404 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19406 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19407 Not sure if it's unnecessary.
19409 2008-02-01 Steven Tamm <steventamm@mac.com>
19411 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19412 some possibly unnecessary fontset checking code that crashed
19413 when creating a new frame.
19415 2008-02-01 Kenichi Handa <handa@m17n.org>
19417 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19420 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19422 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19424 2008-02-01 Kenichi Handa <handa@m17n.org>
19426 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19427 (coding_charset_list): New function.
19429 * coding.h (coding_charset_list): Extern it.
19431 2008-02-01 Kenichi Handa <handa@m17n.org>
19433 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19434 concatenation of family and registry.
19436 2008-02-01 Kenichi Handa <handa@m17n.org>
19438 * character.h (BYTE8_STRING): Fix typo.
19440 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19441 string to multibyte (sync to HEAD).
19443 * casefiddle.c (casify_region): Handle changes in byte-length
19444 using replace_range_2 (sync to HEAD).
19446 2008-02-01 Andreas Schwab <schwab@suse.de>
19448 * chartab.c (map_char_table): GCPRO table and arg.
19450 2008-02-01 Kenichi Handa <handa@m17n.org>
19452 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19455 2008-02-01 Kenichi Handa <handa@m17n.org>
19457 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19458 instead of fast_c_string_match_ignore_case.
19459 (find_font_encoding): Change argument to Lisp_Object. Use
19460 fast_string_match_ignore_case instead of
19461 fast_c_string_match_ignore_case. Change caller.
19463 2008-02-01 Kenichi Handa <handa@m17n.org>
19465 * xdisp.c (get_next_display_element): In unibyte case, decide to
19466 display in octal form by checking a character by
19467 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19469 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19471 * character.c (unibyte_has_multibyte_table): New variable.
19473 * character.h (unibyte_has_multibyte_table): Extern it.
19474 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19476 2008-02-01 Kenichi Handa <handa@m17n.org>
19478 * coding.c (encode_coding_iso_2022): Fix handling of charset
19481 2008-02-01 Kenichi Handa <handa@m17n.org>
19483 * coding.c (setup_coding_system): If coding_system is nil, use
19485 (Fterminal_coding_system): Return nil if terminal coding system is
19487 (syms_of_coding): Define coding-system `undecided' here. Setup
19488 terminal_coding as `undecided'.
19490 2008-02-01 Kenichi Handa <handa@m17n.org>
19492 * xdisp.c (message_dolog, set_message_1): Call
19493 unibyte_char_to_multibyte with arg type int.
19495 * lread.c (read1): Fix reading of a char-table.
19497 * print.c (print_object): Include sub char-table in circularities
19500 2008-02-01 Kenichi Handa <handa@m17n.org>
19502 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19503 Append the found sequences in car of ARGS instead of prepending.
19505 2008-02-01 Kenichi Handa <handa@m17n.org>
19507 * fileio.c (report_file_error): Make a unibyte string from
19508 strerror (errorno).
19509 (Fsubstitute_in_file_name): Fix the arg to
19510 unibyte_char_to_multibyte. It is evaluated twice.
19512 2008-02-01 Kenichi Handa <handa@m17n.org>
19514 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19516 2008-02-01 Kenichi Handa <handa@m17n.org>
19518 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19520 (detect_coding, detect_coding_system): Optimization for ISO-2022
19521 when no 8-bit data is found.
19523 2008-02-01 Jason Rumney <jasonr@gnu.org>
19525 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19527 2008-02-01 Kenichi Handa <handa@m17n.org>
19529 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19532 2008-02-01 Steven Tamm <steventamm@mac.com>
19534 * macterm.c (mac_encode_char): Add charset argument and update
19535 to use encoding_type.
19536 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19537 switch to pure fontset.
19538 (decode_mac_font_name): Temporarily remove decoding.
19539 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19540 (x_load_font): Temporarily remove encoding.
19542 2008-02-01 Kenichi Handa <handa@m17n.org>
19544 * xfaces.c (Fface_font): If frame is not on a window system,
19545 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19546 refer to face->font.
19547 (split_font_name_into_vector, build_font_name_from_vector)
19548 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19549 when HAVE_WINDOW_SYSTEM is defined.
19551 2008-02-01 Kenichi Handa <handa@m17n.org>
19553 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19554 (x_produce_glyphs): Fix setting of members of cmp in case
19555 cmp->glyph_len is zero.
19557 * fontset.c (Fset_fontset_font): Fix docstring.
19558 (Ffontset_info): Make it backward compatible. New arg ALL.
19560 2008-02-01 Kim F. Storm <storm@cua.dk>
19562 * process.c (read_process_output): Grow decoding_buf when needed;
19563 this could cause a crash in allocate_string and compact_small_strings.
19565 2008-02-01 Kenichi Handa <handa@m17n.org>
19567 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19569 2008-02-01 Kenichi Handa <handa@m17n.org>
19571 * coding.c (setup_coding_system): Set coding->common_flags
19572 correctly for raw-text.
19573 (consume_chars): On encoding unibyte text by raw-text, don't check
19575 (encode_coding): On encoding by raw-text, never use translation tables.
19577 * fileio.c (e_write): Short cut for the case of no encoding.
19579 2008-02-01 Kenichi Handa <handa@m17n.org>
19581 * coding.c (detect_coding, detect_coding_system): Delete unused
19584 2008-02-01 Kenichi Handa <handa@m17n.org>
19586 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19587 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19589 2008-02-01 Kenichi Handa <handa@m17n.org>
19591 * coding.c (Ffind_coding_systems_region_internal): Include
19592 raw-text and no-conversion in the result.
19594 2008-02-01 Kenichi Handa <handa@m17n.org>
19596 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19597 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19599 (font_def_arg, add_arg, from_arg, to_arg): New args.
19600 (set_fontset_font): Change argument.
19601 (Fset_fontset_font): Fix for the case that TARGET is a script
19602 name and charset name.
19603 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19605 2008-02-01 Kenichi Handa <handa@m17n.org>
19607 * fontset.c (fontset_font): Rename from fontset_face. Change return
19609 (face_suitable_for_char_p, face_for_char): Adjust for the change
19611 (make_fontset_for_ascii_face): Fix setting of the fontset element
19613 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19614 to get a font name.
19615 (Ffontset_info): Adjust for the change of fontset_font.
19617 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19619 * character.h (LEADING_CODE_LATIN_1_MIN)
19620 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19622 2008-02-01 Kenichi Handa <handa@m17n.org>
19624 * editfns.c (check_translation): New function.
19625 (Ftranslate_region_internal): Handle M:N mapping.
19627 2008-02-01 Kenichi Handa <handa@m17n.org>
19629 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19631 2008-02-01 Kenichi Handa <handa@m17n.org>
19633 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19635 (decode_coding_iso_2022): Fix handling of invalid designation.
19637 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19638 after calling code_conversion_save.
19640 2008-02-01 Kenichi Handa <handa@m17n.org>
19642 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19644 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19646 * fontset.c: Include "intervals.h".
19647 (fontset_face): Fix comparing of Lisp_Objects.
19648 (free_face_fontset, new_fontset_from_font_name): Fix
19649 Lisp_Object/int mixup.
19651 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19653 * coding.c: Add many prototypes for static functions.
19654 (get_translation_table): Allow max_lookup to be NULL.
19655 (decode_coding, Ffind_coding_systems_region_internal)
19656 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19657 get_translation_table with max_lookup NULL.
19659 2008-02-01 Kenichi Handa <handa@m17n.org>
19661 * coding.c (get_translation_table): Declare it as Lisp_Object.
19662 (LOOKUP_TRANSLATION_TABLE): New macro.
19663 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19664 instead of CHAR_TABLE_REF.
19666 2008-02-01 Kenichi Handa <handa@m17n.org>
19668 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19669 annotation data format.
19670 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19671 Change arguments FROM and TO to single argument NCHARS. Change caller.
19672 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19673 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19674 (decode_coding_ccl, decode_coding_charset): Pay attention to
19675 coding->charbuf_used.
19676 (get_translation): New function.
19677 (produce_chars): New arguments translation_table and last_block.
19678 Translate characters here. Return number of carryover chars.
19680 (produce_composition): New argument pos. Change caller.
19681 Adjust for the change of annotation data format.
19682 (produce_charset, produce_annotation): Likewise.
19683 (decode_coding, encode_coding): Don't call translate_chars.
19684 (consume_chars): New arg translation_table. Change caller.
19685 (translate_chars): Delete.
19686 (syms_of_coding): Make translation-table's number of extra slots 2.
19688 2008-02-01 Kenichi Handa <handa@m17n.org>
19690 * search.c (simple_search): Fix setting this_pos_byte in backward
19693 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19695 (detect_coding_ccl): Fix setting of the variable valids.
19697 2008-02-01 Kenichi Handa <handa@m17n.org>
19699 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19701 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19703 * editfns.c (Ftranslate_region_internal): Rename from
19704 Ftranslate_region. Accept a char-table in TABLE.
19705 (syms_of_editfns): Defsubr Stranslate_region_internal.
19707 * xfaces.c (set_lface_from_font_name): If a font is specified for
19708 a frame, generate a fontset from the font.
19709 (build_scalable_font_name): If the scalable font is requested for
19710 a specific size, don't change that size.
19711 (try_font_list): Try a scalable font also in the case that a
19712 pattern string is specified.
19714 2008-02-01 Kenichi Handa <handa@m17n.org>
19716 * xfaces.c (Fface_font): New optional arg CHARACTER.
19718 2008-02-01 Kenichi Handa <handa@m17n.org>
19720 * charset.h (CHARSET_OFFSET): New macro.
19722 2008-02-01 Kenichi Handa <handa@m17n.org>
19724 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19726 * fontset.c (fontset_face): Handle the case that repertory is a
19728 (find_font_encoding): Return nil for unknown encoding.
19729 (Fset_fontset_font): Ignore a font of unknown encoding.
19731 2008-02-01 Kenichi Handa <handa@m17n.org>
19733 * keymap.c (describe_vector): Handle default value of a char table.
19735 * fontset.c (fontset_face): Handle fallback fonts correctly.
19736 (Ffontset_info): Return infomation about fallback fonts.
19738 2008-02-01 Kenichi Handa <handa@m17n.org>
19740 * fontset.c (FONTSET_DEFAULT): New macro.
19741 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19742 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19743 the case that it is nil.
19744 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19745 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19747 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19748 subset or superset.
19750 2008-02-01 Kenichi Handa <handa@m17n.org>
19752 * emacs.c (main): Call init_charset after syms_of_XXX.
19754 * charset.c (Vcharset_map_directory): Delete.
19755 (Vcharset_map_path): New variable.
19756 (load_charset_map_from_file): Use Vcharset_map_path instead.
19757 (init_charset): Initialize Vcharset_map_path.
19758 (syms_of_charset): Delete declaration of "charset-map-directory",
19759 add declaration of "charset-map-path".
19761 2008-02-01 Kenichi Handa <handa@m17n.org>
19763 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19766 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19768 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19769 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19771 2008-02-01 Kenichi Handa <handa@m17n.org>
19773 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19775 * coding.c (QCmnemonic, QCdefalut_char)
19776 (QCdecode_translation_table, QCencode_translation_table)
19777 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19778 (get_translation_table): Return a list of translation tables if
19780 (decode_coding): Call get_translation_table with ENCODEP 0.
19781 (char_encodable_p): If translation_table is non-nil, always call
19783 (Fdefine_coding_system_internal): Accept list of translation
19784 tables as :encode-translation-table and :decode-translation-table.
19785 (Fcoding_system_put): New function.
19786 (syms_of_coding): Declare new symbols. Defsubr
19787 Scoding_system_put.
19788 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19789 typically JISX0212.
19791 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19792 when the charset is superset type.
19794 * character.c (translate_char): Accept list of translation tables.
19796 2008-02-01 Kenichi Handa <handa@m17n.org>
19798 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19799 (CODING_ATTR_TRANS_TBL): New macro.
19801 * coding.c (get_translation_table): New function.
19802 (translate_chars): Fix the bug of skipping annotation data.
19803 (decode_coding, encode_coding): Utilize get_translation_table.
19804 (char_encodable_p, Funencodable_char_position): Translate char if
19806 (Ffind_coding_systems_region_internal)
19807 (Fcheck_coding_systems_region): Setup translation table for encode
19808 in a coding system attribute vector in advance.
19809 (Fdefine_coding_system_internal): Allow a symbol as translation
19810 table. For shift-jis type coding system, allow 4th charset.
19812 2008-02-01 Kenichi Handa <handa@m17n.org>
19814 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19816 * xdisp.c (get_next_display_element): Pass -1 as POS to
19817 FACE_FOR_CHAR if displaying a C-string.
19819 2008-02-01 Kenichi Handa <handa@m17n.org>
19821 * composite.c (get_composition_id): Handle xoff and yoff in a
19824 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19825 (struct composition): New member lbearing and rbearing.
19827 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19828 (x_get_glyph_overhangs): Handle a composition glyph.
19829 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19831 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19834 2008-02-01 Kenichi Handa <handa@m17n.org>
19836 * print.c: Include charset.h.
19837 (Vprint_charset_text_property): New variable.
19838 (Qdefault): Extern it.
19839 (PRINT_STRING_NON_CHARSET_FOUND)
19840 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19841 (print_check_string_result): New variable.
19842 (print_check_string_charset_prop): New function.
19843 (print_prune_charset_plist): New variable.
19844 (print_prune_string_charset): New function.
19845 (print_object): Call print_prune_string_charset if
19846 Vprint_charset_text_property is not t.
19847 (print_interval): Print nothing if interval->plist is nil.
19848 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19849 variable. Init and staticpro print_prune_charset_plist.
19851 2008-02-01 Kenichi Handa <handa@m17n.org>
19853 * fontset.c (new_fontset_from_font_name): Use the specified font
19854 for all characters in the new fontset.
19856 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19859 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19860 OBJECT args for composition too.
19862 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19865 2008-02-01 Kenichi Handa <handa@m17n.org>
19867 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19869 * fontset.c (reorder_font_vector): Adjust for the change of
19871 (fontset_face): New arg id. Change caller.
19872 (face_for_char): New args pos and object.
19873 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19874 (fs_query_fontset): Check NAME by Fassoc too.
19875 (Fset_fontset_font): Allow non-XLFD font name.
19876 (Ffontset_info): Adjust for the change of FONT_DEF format.
19878 * fontset.h (face_for_char): Adjust prototype.
19880 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19881 (append_space, extend_face_to_end_of_line)
19882 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19883 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19885 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19886 POS and OBJECT args.
19888 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19889 POS and OBJECT args.
19891 2008-02-01 Jason Rumney <jasonr@gnu.org>
19893 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19894 of GlobalAlloc'ed memory.
19896 2008-02-01 Kenichi Handa <handa@m17n.org>
19898 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19900 * charset.h (charset_table_used): Delete extern.
19902 * charset.c (charset_table_used): Make it static.
19903 (map_charset_chars): Fix args to c_function with.
19905 * chartab.c (map_sub_char_table_for_charset): Fix args to
19908 * coding.h (enum coding_result_code): Delete
19909 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19911 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19912 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19913 (Vlast_code_conversion_error): New variables.
19914 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19915 (ONE_MORE_BYTE): Record error if any instead of signaling an
19916 error. If non-ASCII multibyte char is found, return the negative
19917 value of the code. All callers changed to check it.
19918 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19919 (record_conversion_result): New function. Change all codes setting
19920 coding->result to call this function.
19921 (detect_coding_utf_8, decode_coding_utf_8)
19922 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19923 Don't use the local variable incomplete.
19924 (emacs_mule_char): Change the second arg to `const'.
19925 (decode_coding): Fix of flushing out unprocessed data.
19926 (make_conversion_work_buffer): Fix making of a work buffer.
19927 (decode_coding_object): Return coding->dst_object.
19929 * fontset.c (set_fontset_font): Fix args.
19931 * lisp.h (CHARACTERBITS): Define as 22.
19933 * process.c (send_process): Be sure to set coding->src_multibyte.
19935 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19937 2008-02-01 Kenichi Handa <handa@m17n.org>
19939 * xdisp.c (handle_auto_composed_prop): Give limit to
19940 Fnext_single_char_property_change.
19942 2008-02-01 Kenichi Handa <handa@m17n.org>
19944 * composite.c (syms_of_composite): Don't make the composition hash
19947 * fontset.c (Fset_fontset_font): Fix docstring.
19949 * lisp.h (detect_coding_system): Adjust prototype.
19951 * fileio.c (kill_workbuf_unwind): Delete this function.
19952 (Finsert_file_contents): Adjust the call of detect_coding_system.
19953 Get conversion_buffer by code_conversion_save. Use the macro
19954 CODING_MAY_REQUIRE_DECODING. After decoding, update
19957 * coding.h (make_conversion_work_buffer): Delete extern.
19958 (code_conversion_save): Extern it.
19960 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19961 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19962 (decode_coding_utf_8): Don't do eol converion.
19963 (detect_coding_utf_16): Check coding->src_chars, not
19964 coding->src_bytes. Add heuristics for those that have no signature.
19965 (decode_coding_emacs_mule, decode_coding_iso_2022)
19966 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19967 Don't do eol converion.
19968 (adjust_coding_eol_type): Return a new coding system.
19969 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19970 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19972 (decode_coding): Pay attention to undo_list. Do eol conversion for
19973 all types of coding-systems (if necessary).
19974 (Vcode_conversion_work_buf_list): Delete it.
19975 (Vcode_conversion_reused_workbuf): Rename from
19976 Vcode_conversion_reused_work_buf.
19977 (Vcode_conversion_workbuf_name): New variable.
19978 (reused_workbuf_in_use): New variable.
19979 (make_conversion_work_buffer): Delete the arg DEPTH.
19980 (code_conversion_restore): Change argument to cons.
19981 (code_conversion_save): Delete the argument BUFFER. Change callers.
19982 (detect_coding_system): New argument src_chars. Change callers.
19983 Fix for utf-16 detection.
19984 (init_coding_once): Don't use ISO_carriage_return.
19985 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19986 reused_workbuf_in_use.
19988 2008-02-01 Kenichi Handa <handa@m17n.org>
19990 * keymap.c (store_in_keymap): Pay attention to the case that idx
19991 is a cons specifying a character range.
19993 2008-02-01 Kenichi Handa <handa@m17n.org>
19995 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19996 HANDLED_RECOMPUTE_PROPS.
19998 * coding.c (Fdefine_coding_system_internal): Fix checking of
19999 ascii compatibility.
20001 2008-02-01 Kenichi Handa <handa@m17n.org>
20003 * charset.c (find_charsets_in_text): Delete unused locale variable.
20004 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20006 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20007 Resync charset_list to Vemacs_mule_charset_list.
20009 * keymap.c (store_in_keymap): Pay attention to the case that idx
20010 is a cons specifying a character range.
20012 2008-02-01 Kenichi Handa <handa@m17n.org>
20014 * composite.c (update_compositions): Bind inhibit-read-only, etc
20015 to t before calling remove-list-of-text-properties.
20017 * print.c (print_object): Always print ASCII chars as is.
20019 2008-02-01 Kenichi Handa <handa@m17n.org>
20021 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20023 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20026 2008-02-01 Kenichi Handa <handa@m17n.org>
20028 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20030 2008-02-01 Kenichi Handa <handa@m17n.org>
20032 * xfaces.c (set_lface_from_font_name): Fix for the case that
20033 FONTNAME is not fontset name.
20035 2008-02-01 Kenichi Handa <handa@m17n.org>
20037 * fns.c (base64_encode_1): Fix previous change.
20039 2008-02-01 Kenichi Handa <handa@m17n.org>
20041 * fontset.c (set_fontset_font): New function.
20042 (Fset_fontset_font): If a font is specified for a charset, use
20043 map_charset_chars to store the font spec in a fontset.
20045 2008-02-01 Kenichi Handa <handa@m17n.org>
20047 * fontset.c (fontset_face): Create a fallback fontset on demand.
20048 (make_fontset): Don't create a fallback fontset here.
20049 (free_face_fontset): Free a fallback fontset (if any) too.
20050 (n_auto_fontsets): Delete this variable.
20051 (auto_fontset_alist): New variable.
20052 (new_fontset_from_font_name): Check auto_fontset_alist.
20053 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20054 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20055 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20056 Defsubr Sfontset_list_all.
20058 2008-02-01 Kenichi Handa <handa@m17n.org>
20060 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20062 2008-02-01 Kenichi Handa <handa@m17n.org>
20064 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20066 2008-02-01 Kenichi Handa <handa@m17n.org>
20068 * editfns.c (Fgoto_char): Fix docstring.
20070 2008-02-01 Kenichi Handa <handa@m17n.org>
20072 * insdel.c (insert_from_gap): Adjust intervals correctly.
20074 2008-02-01 Jason Rumney <jasonr@gnu.org>
20076 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20077 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20078 (w32_initialize): Try to load it.
20079 (x_get_font_repertory): Use it if available.
20080 (w32_encode_char): Add shortcut for unicode output.
20082 * w32fns.c (w32_load_system_font): Default charset to -1.
20083 (x_to_w32_charset): Match all fonts for unicode.
20084 (w32_to_x_charset): New parameter matching. Don't return partial
20085 or wildcard charsets.
20086 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20087 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20088 (w32_to_x_font): Match charset to real charset.
20089 (enum_font_cb2): Always list unicode versions.
20091 * makefile.w32-in (temacs): Increase EMHEAP.
20093 2008-02-01 Jason Rumney <jasonr@gnu.org>
20095 * w32term.c (w32_encode_char): New charset parameter.
20096 font_info.encoding becomes encoding_type.
20097 (x_get_font_repertory): New function. Warning: stub only!
20098 (x_new_font): Return quickly if font already set.
20099 (x_new_fontset): fontsetname parameter is Lisp_Object.
20100 Use new fs_query_fontset. Try new_fontset_from_font_name.
20101 Use fontset_name for return value.
20103 * w32term.h: Declare x_get_font_repertory.
20105 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20106 place of find_charset_in_text. Use encode_coding_object in place
20108 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20111 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20113 (w32_load_system_font): Initialize charset as unicode.
20114 font_info.encoding becomes encoding_type.
20115 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20116 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20117 (syms_of_w32fns): Set get_font_repertory_func.
20119 * w32console.c: Include character.h. Use terminal_encode_buffer
20121 (write_glyphs): Use new version of encode_terminal_code. Use
20122 encode_coding_object in place of encode_coding.
20124 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20125 encoding becomes encoding_type.
20127 * term.c (terminal_encode_buffer): Make externally visible.
20129 * makefile.w32-in: Add character.h dependancies.
20130 (character.o, chartab.o): New targets.
20132 2008-02-01 Kenichi Handa <handa@m17n.org>
20134 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20135 CODING_ID_EOL_TYPE.
20137 2008-02-01 Andreas Schwab <schwab@suse.de>
20139 * coding.c (produce_chars): Revert last change.
20141 2008-02-01 Kenichi Handa <handa@m17n.org>
20143 * charset.h (charset_unicode): Extern it.
20145 * charset.c (string_xstring_p): Check by (C >= 0x100).
20146 (find_charsets_in_text): Change format of the arc CHARSETS. New
20148 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20149 change of find_charsets_in_text.
20150 (Fsplit_char): Fix doc. Never return unknown.
20152 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20154 * coding.c (Fdefine_coding_system_alias): Update
20155 Vcoding_system_list.
20157 * fontset.c (load_font_get_repertory): Pay attention to the case
20158 that ENCODING of a font is specified by a char-table.
20160 * xterm.c (x_get_font_repertory): Handle the case that the
20161 encoding of font is other than Unicode.
20163 2008-02-01 Kenichi Handa <handa@m17n.org>
20165 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20166 if a character is encodable by the terminal coding system. If
20167 not, produces proper number of `?'s. Update
20168 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20169 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20171 2008-02-01 Kenichi Handa <handa@m17n.org>
20173 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20175 (encode_terminal_code): Change argument. Encode multiple
20176 characters at once. Store the result of encoding in
20177 terminal_encode_buffer.
20178 (write_glyphs, insert_glyphs): Adjust for the change of
20179 encode_terminal_code.
20180 (term_init): Initialize terminal_encode_buffer and
20181 terminal_encode_buf_size.
20183 * coding.c (consume_chars): If coding->src_object is nil, don't
20186 2008-02-01 Kenichi Handa <handa@m17n.org>
20188 * character.c (char_string): Use ASCII_CHAR_P instead of
20189 SINGLE_BYTE_CHAR_P.
20191 2008-02-01 Kenichi Handa <handa@m17n.org>
20193 * xdisp.c (handle_auto_composed_prop): Check if the last
20194 characters of auto-composed region is newly composed with the
20195 following characters.
20196 (handle_composition_prop): Fix checking of point being inside
20199 2008-02-01 Kenichi Handa <handa@m17n.org>
20201 * fns.c (concat): Don't change multibyteness of the result by
20202 concatenating an 8-bit character.
20204 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20205 multibyteness of the result when newelt is an 8-bit character.
20207 2008-02-01 Dave Love <fx@gnu.org>
20209 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20212 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20214 * xfaces.c (face_numeric_value): Declare dim size_t.
20215 (Finternal_lisp_face_equal_p): Remove unused f.
20217 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20218 (MATRIX_ROW): Remove unused vars.
20219 (draw_glyphs, x_insert_glyphs, fast_find_position)
20220 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20223 * regex.c (regex_compile): Remove unused var.
20225 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20227 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20228 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20230 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20232 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20234 * fileio.c (Fwrite_region): Remove unused var.
20236 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20237 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20239 * composite.c (Fremove_list_of_text_properties): Declare.
20241 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20242 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20243 (coding_inherit_eol_type): Remove unused attrs.
20244 (detect_coding): Cast arg of detect_eol.
20246 * charset.c (syms_of_charset): Remove unused var p.
20247 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20250 * casetab.c (set_case_table): Remove unused var.
20252 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20255 2008-02-01 Dave Love <fx@gnu.org>
20257 * xterm.c (x_bitmap_mask): Declare.
20259 2008-02-01 Dave Love <fx@gnu.org>
20261 * xterm.c (x_term_init): Fix type error.
20263 * lisp.h: Add Funibyte_char_to_multibyte.
20265 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20266 (Fset_coding_system_priority): Doc fix.
20268 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20270 * indent.c (check_composition): Make start and end EMACS_INT.
20272 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20274 * xdisp.c (handle_composition_prop, check_point_in_composition):
20275 Make buffer positions EMACS_INT.
20277 * composite.c (find_composition, run_composition_function)
20278 (update_compositions, Ffind_composition_internal): Make buffer
20279 positions EMACS_INT.
20281 * composite.h (find_composition, update_compositions): Make
20282 position args EMACS_INT.
20284 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20286 * intervals.c (get_property_and_range):
20287 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20289 * unexalpha.c: Don't include varargs.h.
20291 2008-02-01 Dave Love <fx@gnu.org>
20293 * coding.h (ENCODE_UTF_8): New.
20295 * Makefile.in (gtkutil.o): Depend on coding.h.
20297 * coding.c (Fset_coding_system_priority): Doc fix.
20299 2008-02-01 Kenichi Handa <handa@m17n.org>
20301 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20302 the case of auto saving.
20304 2008-02-01 Andreas Schwab <schwab@suse.de>
20306 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20309 2008-02-01 Kenichi Handa <handa@m17n.org>
20311 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20313 2008-02-01 Kenichi Handa <handa@m17n.org>
20315 * fileio.c (choose_write_coding_system): Return a decided coding system.
20316 (Fwrite_region): Set Vlast_coding_system_used to the return value
20317 of choose_write_coding_system.
20319 2008-02-01 Kenichi Handa <handa@m17n.org>
20321 * charset.c (Fset_charset_priority): Pay attention to duplicated
20324 * coding.c (QCcategory): New variable.
20325 (syms_of_coding): Defsym it. Set all elements of
20326 Vcoding_category_table and their symbol values.
20327 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20328 coding-category-XXX, and coding-category-list.
20329 (Fdefine_coding_system_internal): Add category in the plist.
20331 2008-02-01 Kenichi Handa <handa@m17n.org>
20333 * callproc.c (Fcall_process): Handle carryover correctly.
20335 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20336 (raw_text_coding_system): Check NILP (coding_system).
20337 (coding_inherit_eol_type): Check NILP (coding_system) and
20339 (consume_chars): Fix for the case of raw-text.
20341 * process.c (read_process_output): Handle carryover correctly.
20343 2008-02-01 Dave Love <fx@gnu.org>
20345 * regex.c (re_search_2): Fix last change.
20347 2008-02-01 Kenichi Handa <handa@m17n.org>
20349 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20350 target_multibyte. Even in a unibyte case, return a converted
20352 (GET_CHAR_AFTER): New macro.
20353 (PATFETCH): Translate via multibyte char.
20354 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20355 (SETUP_MULTIBYTE_RANGE): New macro.
20356 (regex_compile): Setup compiled code so that its multibyteness
20357 matches that of a target. Fix the handling of "[X-YZ]" using
20358 SETUP_MULTIBYTE_RANGE.
20359 (analyse_first) <charset>: For filling fastmap for all multibyte
20360 characters, don't check by BASE_LEADING_CODE_P.
20361 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20362 the same as RE_MULTIBYTE_P (bufp) now.
20363 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20364 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20365 (TRANSLATE_VIA_MULTIBYTE): New macro.
20366 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20367 It is the same as RE_MULTIBYTE_P (bufp) now.
20368 <exactn>: Translate via multibyte.
20369 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20371 <charset, charset_not>: Fetch a character by
20372 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20373 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20374 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20375 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20377 (bcmp_translate): Likewise.
20379 * search.c (compile_pattern): Check the member target_multibyte,
20380 not the member multibyte of buf.
20382 * lread.c (read1): While reading a string, set force_singlebyte
20383 and force_multibyte correctly.
20385 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20386 up of unibyte_to_multibyte_table.
20388 2008-02-01 Kenichi Handa <handa@m17n.org>
20390 * coding.c (setup_coding_system): If coding has
20391 post-read-conversion or pre-write-conversion, set
20392 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20394 (decode_coding_gap): Run post-read-conversion if any.
20396 * fileio.c (Finsert_file_contents): Even if we read into a
20397 unibyte buffer, check if we must decode the result or not.
20399 2008-02-01 Kenichi Handa <handa@m17n.org>
20401 * coding.c (make_conversion_work_buffer): Change the work buffer
20402 name to the same one as that of Emacs 21.
20404 2008-02-01 Kenichi Handa <handa@m17n.org>
20406 * coding.h (make_conversion_work_buffer): Adjust prototype.
20407 (code_conversion_restore): Don't extern it.
20409 * coding.c (detected_mask): Delete unused variable.
20410 (decode_coding_iso_2022): Pay attention to the byte sequence of
20411 CTEXT extended segment, and retain those bytes as is.
20412 (decode_coding_ccl): Delete unused variable `valids'.
20413 (setup_coding_system): Delete unused variable `category'.
20414 (consume_chars): Delete unused variable `category'. Make it work
20415 for non-multibyte case.
20416 (make_conversion_work_buffer): Change argument.
20417 (saved_coding): Delete unused variable.
20418 (code_conversion_restore): Don't check saved_coding->destination.
20419 (code_conversion_save): New function.
20420 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20421 instead of record_unwind_protect.
20422 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20423 (detect_coding_system): Delete unused variable `mask'.
20424 (Fdefine_coding_system_internal): Delete unused variable id.
20426 * fileio.c (kill_workbuf_unwind): New function.
20427 (Finsert_file_contents): On replacing, call
20428 make_conversion_work_buffer with correct args, and call
20429 record_unwind_protect with the first arg kill_workbuf_unwind.
20431 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20433 2008-02-01 Kenichi Handa <handa@m17n.org>
20435 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20436 (fontset_add): Fix for the case that TO is less than TO1.
20437 (Ffontset_info): Don't use fallback fontset on checking the
20439 (dump_fontset): New function for debugging.
20441 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20442 coding_type is Qcharset.
20444 2008-02-01 Kenichi Handa <handa@m17n.org>
20446 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20447 (map_char_table): Don't inherit the value from the parent on
20448 initializing VAL. Adjust for the above change.
20450 2008-02-01 Kenichi Handa <handa@m17n.org>
20452 * coding.c (Qsignature, Qendian): Delete these variables.
20453 (syms_of_coding): Don't initialize them.
20454 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20455 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20456 detect_info->found.
20457 (decode_coding_utf_16): Don't detect BOM here.
20458 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20459 is NOT utf_16_without_bom.
20460 (setup_coding_system): For a coding system of type utf-16, check
20461 if the attribute :endian is Qbig or not (not nil or not), and set
20462 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20463 (detect_coding): If coding type is utf-16 and BOM detection is
20464 required, detect it.
20465 (Fdefine_coding_system_internal): For a coding system of type
20466 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20468 2008-02-01 Kenichi Handa <handa@m17n.org>
20470 * coding.c (coding_set_source): Fix for the case that the current
20471 buffer is different from coding->src_object.
20472 (decode_coding_object): Don't use the conversion work buffer if
20473 DST_OBJECT is a buffer.
20475 2008-02-01 Dave Love <fx@gnu.org>
20477 * lread.c (read_emacs_mule_char) [len==2]: Index
20478 emacs_mule_charset correctly.
20480 2008-02-01 Dave Love <fx@gnu.org>
20482 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20483 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20484 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20485 treated specially.)
20486 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20487 (detected_mask): Remove Big5 bits.
20489 2008-02-01 Kenichi Handa <handa@m17n.org>
20491 The following changes are to make the font rescaling facility
20492 compatible with Emacs 21.
20494 * xfaces.c (Vface_font_rescale_alist): Rename from
20495 Vface_resizing_fonts.
20496 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20497 (font_rescale_ratio): Rename from font_resizing_ratio.
20498 (split_font_name): Set font->rescale_ratio.
20499 (better_font_p): Pay attention to font->rescale_ratio.
20500 (build_scalable_font_name): Likewise. Change RESX, and RESY
20502 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20504 2008-02-01 Kenichi Handa <handa@m17n.org>
20506 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20507 (Qutf_16_le): Remove these variables.
20508 (syms_of_coding): Don't DEFSYM them.
20509 (decode_coding_utf_16): Fix handling of BOM.
20510 (encode_coding_utf_16): Fix handling of BOM.
20512 2008-02-01 Kenichi Handa <handa@m17n.org>
20514 * fileio.c (Finsert_file_contents): On replacing, before decoding
20515 the file into the work buffer, set point of the work buffer to the end.
20517 2008-02-01 Dave Love <fx@gnu.org>
20519 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20521 2008-02-01 Dave Love <fx@gnu.org>
20523 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20526 2008-02-01 Kenichi Handa <handa@m17n.org>
20528 * xdisp.c (SKIP_GLYPHS): New macro.
20529 (set_cursor_from_row): Pay attention to string display properties.
20531 * category.c (copy_category_entry): Fix for the case that RANGE
20534 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20536 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20538 2008-02-01 Kenichi Handa <handa@m17n.org>
20540 * charset.c (Fcharset_id_internal): New function.
20541 (syms_of_charset): Defsubr it.
20543 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20544 with the last arg charset_list acquired from coding.
20545 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20546 the attribute coding_attr_ccl_valids.
20548 * coding.h (enum define_coding_ccl_arg_index): Set the first
20549 member coding_arg_ccl_decoder to coding_arg_max.
20551 * ccl.h (ccl_driver): Adjust prototype.
20553 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20554 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
20555 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
20556 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20559 2008-02-01 Kenichi Handa <handa@m17n.org>
20561 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20564 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20566 2008-02-01 Dave Love <fx@gnu.org>
20568 * composite.c (syms_of_composite): Make composition_hash_table weak.
20570 2008-02-01 Kenichi Handa <handa@m17n.org>
20572 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20573 (font_name_registry): Don't extern them.
20574 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20576 * fontset.h (Qfontset): Don't extern it.
20577 (new_fontset_from_font_name): Extern it.
20579 * fontset.c: Give 8 extra slots to fontset objects.
20580 (Qfontset_info): New variable.
20581 (syms_of_fontset): Defsym it.
20582 (FONTSET_FALLBACK): New macro.
20583 (fontset_face): Try also the default fontset.
20584 (make_fontset): Realize a fallback fontset from the default fontset.
20585 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20586 using split_font_name_into_vector and build_font_name_from_vector.
20587 (Fset_fontset_font): Access the elements of font_spec by enum
20588 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20589 name by using split_font_name_into_vector.
20590 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20591 generate a proper font name from the fontset name. Update
20592 Vfontset_alias_alist.
20593 (n_auto_fontsets): New variable.
20594 (new_fontset_from_font_name): New function.
20595 (Ffont_info): Store the information about fonts generated from the
20596 default fontset in the first extra slot of the returned char-table.
20598 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20599 (font_name_registry): Delete function.
20600 (split_font_name_into_vector): New function.
20601 (build_font_name_from_vector): New function.
20602 (font_list): The argument REGISTRY is now a list of registry names.
20603 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20604 specifies an explicit font name, return the name as is. Make a
20605 list of registy names.
20607 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20609 (Fx_create_frame): Don't call x_new_fontset here. Just use
20610 x_list_fonts to check the existence of fonts.
20612 * xterm.h (x_new_fontset): Adjust prototype.
20614 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20615 string. Use new_fontset_from_font_name to create a fontset from a
20618 2008-02-01 Kenichi Handa <handa@m17n.org>
20620 * syntax.c (Vfind_word_boundary_function_table): New name for
20621 Vnext_word_boundary_function_table.
20622 (find-word-boundary-function-table): New name for
20623 next-word-boundary-function-table.
20625 2008-02-01 Dave Love <fx@gnu.org>
20627 * Makefile.in: Fix some dependencies.
20629 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20630 set it to nil before returning.
20632 * composite.c (update_compositions): Fix type error.
20634 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20636 2008-02-01 Kenichi Handa <handa@m17n.org>
20638 * xterm.c (x_new_font): Optimize for the case that the font is
20639 already set for the frame.
20641 2008-02-01 Kenichi Handa <handa@m17n.org>
20643 * chartab.c (char_table_ascii): Check if the char table contents
20644 is sub-char-table or not.
20645 (char_table_set, char_table_set_range): Fix argument to
20648 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20649 (detect_coding_utf_8, detect_coding_utf_16)
20650 (detect_coding_emacs_mule, detect_coding_iso_2022)
20651 (detect_coding_sjis, detect_coding_big5)
20652 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20653 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20654 sequence is valid in this coding system. Change callers.
20655 (MAX_ANNOTATION_LENGTH): New macro.
20656 (ADD_ANNOTATION_DATA): New macro.
20657 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20658 ADD_ANNOTATION_DATA. Change the format of annotation data.
20659 (ADD_CHARSET_DATA): New macro.
20660 (emacs_mule_char): New argument ID. Change callers.
20661 (decode_coding_emacs_mule, decode_coding_iso_2022)
20662 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20663 Produce charset annotation data in coding->charbuf.
20664 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20665 to charset annotation data in coding->charbuf.
20666 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20667 coding->common_flags if the coding system is iso-2022 based and
20669 (produce_composition): Adjust for the new annotation data format.
20670 (produce_charset): New function.
20671 (produce_annotation): Handle charset annotation.
20672 (handle_composition_annotation, handle_charset_annotation): New
20674 (consume_chars): Handle charset annotation. Utilize the above two
20676 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20677 buffer, get the deleted text as a string and set
20678 coding->src_object to that string.
20679 (detect_coding, detect_coding_system): Use the new struct
20680 coding_detection_info.
20682 * coding.h (struct coding_detection_info): New structure.
20683 (struct coding_system): Adjust prototype of the member `detector'.
20684 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20686 2008-02-01 Kenichi Handa <handa@m17n.org>
20688 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20690 2008-02-01 Dave Love <fx@gnu.org>
20692 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20693 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20694 to new local and nullify apropos_accumulate before returning.
20695 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20697 2008-02-01 Kenichi Handa <handa@m17n.org>
20699 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20702 2008-02-01 Dave Love <fx@gnu.org>
20704 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20706 2008-02-01 Kenichi Handa <handa@m17n.org>
20708 The following changes are to make character composition happen
20709 automatically on displaying.
20711 * Makefile.in (lisp, shortlisp): Add composite.elc.
20713 * composite.h (Qauto_composed, Vauto_composition_function)
20714 (Qauto_composition_function): Extern them.
20716 * composite.c (Vcomposition_function_table)
20717 (Qcomposition_function_table): Delete variables.
20718 (Qauto_composed, Vauto_composition_function)
20719 (Qauto_composition_function): New variables.
20720 (run_composition_function): Don't call
20721 compose-chars-after-function.
20722 (update_compositions): Clear `auto-composed' text property.
20723 (compose_chars_in_text): Delete this function.
20724 (syms_of_composite): Staticpro Qauto_composed and
20725 Qauto_composition_function. Declare Vauto_composition_function as
20728 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20730 * xdisp.c (it_props): Add an entry for Qauto_composed.
20731 (handle_auto_composed_prop): New function.
20733 * xselect.c (selection_data_to_lisp_data): Don't call
20734 compose_chars_in_text.
20736 2008-02-01 Dave Love <fx@gnu.org>
20738 * keyboard.c (read_char): Modify checking around use of
20739 Vkeyboard_translate_table.
20741 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20744 2008-02-01 Kenichi Handa <handa@m17n.org>
20746 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20747 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20748 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20749 the case that the last byte is '\r' correctly.
20750 (decode_coding): Flush out the unprocessed data correctly.
20751 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20753 2008-02-01 Dave Love <fx@gnu.org>
20755 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20756 Add XK_ISO... case.
20757 (xaw_scroll_callback): Revert last change.
20759 2008-02-01 Kenichi Handa <handa@m17n.org>
20761 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20763 2008-02-01 Kenichi Handa <handa@m17n.org>
20765 * xfaces.c (Vface_resizing_fonts): New variable.
20766 (struct font_name): New member `resizing_ratio'.
20767 (font_resizing_ratio): New function.
20768 (split_font_name): Set font->resizing_ratio.
20769 (better_font_p): Pay attention to font->resizing_ratio.
20770 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20771 RESX, and RESY fields.
20772 (try_alternative_families): Try scalable fonts if
20773 Vscalable_fonts_allowed is not Qt.
20774 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20776 2008-02-01 Dave Love <fx@gnu.org>
20778 * xterm.c (xaw_scroll_callback): Cast correctly.
20780 2008-02-01 Dave Love <fx@gnu.org>
20782 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20783 (lispy_kana_keys): Comment out.
20784 (make_lispy_event) [XK_kana_A]: Comment out.
20786 * xterm.c (xaw_scroll_callback): Cast call_data.
20787 (XTread_socket): Deal with ASCII keysyms.
20788 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20790 2008-02-01 Dave Love <fx@gnu.org>
20792 * xterm.c (Vx_keysym_table): New.
20793 (syms_of_xterm): Initialize it.
20794 (XTread_socket): Use it.
20795 From head: Eliminate incorrect optimization that tried to avoid
20796 decoding the output of X*LookupString.
20797 (x_get_font_repertory): Delete charset declaration.
20799 2008-02-01 Kenichi Handa <handa@m17n.org>
20801 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20803 (Fdefine_coding_system_internal): Setup
20804 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20806 2008-02-01 Dave Love <fx@gnu.org>
20808 * coding.c (Fcheck_coding_system): Doc fix.
20810 * editfns.c (Finsert_byte): Return a proper value.
20812 2008-02-01 Kenichi Handa <handa@m17n.org>
20814 * coding.c (decode_coding): Fix args to translate_chars. Pay
20815 attention to Vstandard_translation_table_for_decode.
20816 (encode_coding): Fix args to translate_chars. Pay attention to
20817 Vstandard_translation_table_for_encode.
20819 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20820 SINGLE_BYTE_CHAR_P.
20822 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20823 not by SINGLE_BYTE_CHAR_P.
20825 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20826 SINGLE_BYTE_CHAR_P.
20828 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20829 SINGLE_BYTE_CHAR_P.
20831 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20832 by SINGLE_BYTE_CHAR_P.
20834 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20835 SINGLE_BYTE_CHAR_P.
20837 2008-02-01 Dave Love <fx@gnu.org>
20839 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20841 2008-02-01 Dave Love <fx@gnu.org>
20843 * fns.c (Flanginfo): Fix typo.
20845 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20847 2008-02-01 Kenichi Handa <handa@m17n.org>
20849 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20850 (detect_coding_emacs_mule, detect_coding_iso_2022)
20851 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20852 incomplete byte sequence. Don't update *mask when correctly detected.
20853 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20854 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20855 (detect_coding, detect_coding_system): Adjust for the changes above.
20857 2008-02-01 Kenichi Handa <handa@m17n.org>
20859 * character.c (char_string): Rename from
20860 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20861 (string_char): Rename from string_char.
20863 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20864 if C is greater than MAX_3_BYTE_CHAR.
20865 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20866 string_char instead of string_char_with_unification.
20868 2008-02-01 Dave Love <fx@gnu.org>
20870 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20872 2008-02-01 Kenichi Handa <handa@m17n.org>
20874 * keymap.c (push_key_description): Pay attention to force_multibyte.
20876 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20878 2008-02-01 Dave Love <fx@gnu.org>
20880 * charset.c (define_charset_internal): Rename `supprementary'.
20882 * Makefile.in (lisp, shortlisp): Remove latin-N.
20884 2008-02-01 Dave Love <fx@gnu.org>
20886 * xfns.c (x_window, x_window): Use use_xim.
20888 * xterm.c (use_xim): Initialize.
20889 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20890 (x_term_init): Maybe set use_xim.
20892 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20894 2008-02-01 Kenichi Handa <handa@m17n.org>
20896 * search.c (search_buffer): Fix case-fold-search of multibyte
20898 (boyer_moore): Rename the last argument to char_high_bits.
20900 2008-02-01 Kenichi Handa <handa@m17n.org>
20902 * xdisp.c (display_string): Fix for the case of zero width glyph.
20904 * xfns.c (x_set_font): Change the error message of the case that
20905 x_new_fontset returns Qt.
20907 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20908 (Finternal_set_lisp_face_attribute): Use signal_error for the
20909 error of invalid fontset.
20911 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20912 fontset, return Qt.
20914 2008-02-01 Dave Love <fx@gnu.org>
20916 * unexelf.c (unexec): Make .got handling not SGI-specific.
20918 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20920 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20922 * keyboard.c (read_key_sequence): Fix type error.
20924 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20927 * fontset.c (fontset_add): Return Lisp_Object.
20929 2008-02-01 Dave Love <fx@gnu.org>
20931 * charset.h (charset_ordered_list_tick): Declare extern.
20933 2008-02-01 Kenichi Handa <handa@m17n.org>
20935 The following changes (and some of 2008-02-01 changes of mine) are
20936 for handling syntax, category, and case conversion for unibyte
20937 characters by converting them to multibyte on the fly. With these
20938 changes, we don't have to setup syntax and case tables for unibyte
20939 characters in each language environment.
20941 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20942 multibyte if necessary.
20944 * bytecode.c (Fbyte_code): Likewise.
20946 * character.h (LEADING_CODE_LATIN_1_MIN)
20947 (LEADING_CODE_LATIN_1_MAX): New macros.
20948 (unibyte_to_multibyte_table): Extern it.
20949 (unibyte_char_to_multibyte): New macro.
20950 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20951 (CHAR_LEADING_CODE): New macro.
20952 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20954 * character.c (unibyte_to_multibyte_table): New variable.
20955 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20956 (multibyte_char_to_unibyte): If C is an eight-bit character,
20957 convert it to the corresponding byte value.
20959 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20960 not 1, signals an error. Update the elements of
20961 unibyte_to_multibyte_table.
20962 (init_charset_once): Initialize unibyte_to_multibyte_table.
20963 (syms_of_charset): Define the charset `iso-8859-1'.
20965 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20966 as is without converting it to unibyte. In a unibyte buffer,
20967 convert C to multibyte before checking the syntax.
20969 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20971 * minibuf.c (Fminibuffer_complete_word): Use the macro
20972 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20974 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20976 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20977 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20978 that is zero, convert an eight-bit char to multibyte.
20979 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20981 (PATFETCH): Convert an eight-bit char to multibyte.
20982 (HANDLE_UNIBYTE_RANGE): New macro.
20983 (regex_compile): Setup the compiled pattern for multibyte chars
20984 even if the given regex string is unibyte. Use PATFETCH_RAW
20985 instead of PATFETCH in many places. To handle `charset'
20986 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20987 only for ASCII chars.
20988 (analyse_first) <exactn>: Simplify because the compiled pattern
20990 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20991 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20992 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20993 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20994 multibyte always 1.
20995 (re_search_2): In emacs, set the locale variable multibyte to 1,
20996 otherwise to 0. New local variable target_multibyte. Check it
20997 to decide the multibyteness of STR1 and STR2. If
20998 target_multibyte is zero, convert unibyte chars to multibyte
20999 before translating and checking fastmap.
21000 (TARGET_CHAR_AND_LENGTH): New macro.
21001 (re_match_2_internal): In emacs, set the locale variable multibyte
21002 to 1, otherwise to 0. New local variable target_multibyte. Check
21003 it to decide the multibyteness of STR1 and STR2. Use
21004 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21005 <charset, charset_not>: If multibyte is nonzero, check fastmap
21006 only for ASCII chars. Call bcmp_translate with
21007 target_multibyte, not with multibyte.
21008 <begline>: Declare the local variable C as `unsigned'.
21009 (bcmp_translate): Change the last arg name to target_multibyte.
21011 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21012 the regexp pattern and the matching target. Set cp->buf.multibyte
21013 to the multibyteness of the regexp pattern. Set
21014 cp->but.target_multibyte to the multibyteness of the matching target.
21015 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21016 FETCH_STRING_CHAR_ADVANCE.
21017 (Freplace_match): Convert unibyte chars to multibyte.
21019 * syntax.c (char_quoted, back_comment, scan_words)
21020 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21021 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21022 unibyte chars to multibyte.
21023 (skip_chars): Delete the arg syntaxp, and move the code for
21024 handling syntaxes to skip_syntaxes. Change callers.
21025 Fix the case that the multibyteness of STRING and the current
21026 buffer doesn't match.
21027 (skip_syntaxes): New function.
21028 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21029 SINGLE_BYTE_CHAR_P.
21031 2008-02-01 Kenichi Handa <handa@m17n.org>
21033 * xfaces.c (QCfontset): New variable.
21034 (LFACE_FONTSET): New macro.
21035 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21036 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21037 (Finternal_set_lisp_face_attribute)
21038 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21039 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21040 check also LFACE_FONTSET_INDEX.
21041 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21042 attrs[LFACE_FONT_INDEX].
21043 (syms_of_xfaces): Intern and staticpro QCfontset.
21045 * dispextern.h (enum lface_attribute_index): New member
21046 LFACE_FONTSET_INDEX.
21048 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21050 2008-02-01 Kenichi Handa <handa@m17n.org>
21052 * coding.c (coding_set_destination): Fix coding->destination for
21053 the case converting a region.
21054 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21055 (encode_coding_object): Fix coding->dst_pos and
21056 coding->dst_pos_byte for the case converting a region.
21058 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21060 * character.h (BYTE8_STRING): New macro.
21062 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21064 2008-02-01 Kenichi Handa <handa@m17n.org>
21066 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21067 characters by octal form.
21069 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21071 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21072 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21073 _fetch_multibyte_char_len.
21074 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21076 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21078 * casefiddle.c (casify_object): Simplify. Handle the case that
21079 the case conversion change the byte length.
21080 (casify_region): Likewise.
21082 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21084 * character.c (_fetch_multibyte_char_len): Delete this variable.
21085 (syms_of_character): Setup Vprintable_chars.
21087 * editfns.c (Fchar_equal): Fix for the unibyte case.
21088 (Finsert_byte): New function.
21089 (syms_of_editfns): Defsubr it.
21091 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21092 of direct code 0x3ffff.
21094 * search.c (Freplace_match): Fix for the unibyte case.
21096 2008-02-01 Kenichi Handa <handa@m17n.org>
21098 * lread.c (safe_to_load_p): Fix the logic.
21100 * syntax.c (scan_words): Don't treat characters belonging to
21101 different scripts as constituting a word.
21103 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21105 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21107 * emacs.c (main): In the case of --unibyte, instead of aborting on
21108 finding non-empty buffer, make it unibyte.
21110 2008-02-01 Kenichi Handa <handa@m17n.org>
21112 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21113 to create a fontset.
21115 2008-02-01 Dave Love <fx@gnu.org>
21117 * character.c (Funibyte_char_to_multibyte): Doc fix.
21119 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21121 2008-02-01 Kenichi Handa <handa@m17n.org>
21123 * fontset.c (fontset_add): Make the type `int'.
21124 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21126 * character.c (unibyte_char_to_multibyte)
21127 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21128 charset_unibyte, not charset_primary.
21130 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21132 * charset.c (charset_unibyte): Rename from charset_primary.
21133 (Funibyte_charset): Rename from Fprimary_charset.
21134 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21135 (syms_of_charset): Adjust for the above changes.
21137 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21138 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21139 it->multibyte_p is zero.
21141 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21144 2008-02-01 Kenichi Handa <handa@m17n.org>
21146 * coding.c (Fdefine_coding_system_internal): Fix category setting
21147 for a coding system of type iso-2022.
21149 2008-02-01 Kenichi Handa <handa@m17n.org>
21151 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21153 2008-02-01 Kenichi Handa <handa@m17n.org>
21155 * syntax.c (Vnext_word_boundary_function_table): New variable.
21156 (next-word-boundary-function-table): Declare it as a Lisp variable
21158 (scan_words): Call functions in Vnext_word_boundary_function_table
21161 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21163 * fontset.c (fs_load_font): If fontp->charset is not negative,
21164 return fontp without setting its members.
21166 2008-02-01 Dave Love <fx@gnu.org>
21168 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21170 * m/sparc.h (HAVE_ALLOCA): Delete.
21172 * s/irix6-5.h: Don't include strings.h.
21173 (bcopy, bzero, bcmp): Don't undef.
21175 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21177 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21178 (TIOCSIGSEND): Don't test IRIX6.
21179 (bcopy, bzero, bcmp): Define conditionally.
21181 2008-02-01 Kenichi Handa <handa@m17n.org>
21183 * buffer.c (Qas, Qmake, Qto): New variables.
21184 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21185 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21187 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21188 we are inserting a process output into a multibyte buffer.
21190 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21191 multibyte_char_to_unibyte.
21193 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21194 by the primary charset, make it eight-bit char.
21195 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21197 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21198 (charset_8_bit__control, charset_8_bit_graphic)
21199 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21200 (define_charset_internal): New function.
21201 (syms_of_charset): Call define_charset_internal for pre-defined
21204 * charset.h (charset_8_bit): Extern it.
21206 * coding.c (make_conversion_work_buffer): Adjust for the change
21207 of Fset_buffer_multibyte.
21208 (encode_coding_raw_text): Increment p0 in the loop.
21210 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21212 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21213 for the change of Fset_buffer_multibyte.
21215 * fns.c (Fstring_to_multibyte): New function.
21216 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21218 2008-02-01 Dave Love <fx@gnu.org>
21220 * xfns.c (x_put_x_image): Declare args.
21222 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21223 (try_font_list): Declare an arg.
21225 * xdisp.c (message2_nolog, set_message): Declare an arg.
21227 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21229 * syntax.c (scan_sexps_forward): Declare an arg.
21231 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21234 * lisp.h (Fnew_fontset): Declare.
21236 * keymap.c (push_key_description): Call CHARACTERP correctly.
21238 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21239 (face_for_char): Delete unused vars.
21240 (Fset_fontset_font): Doc fix. Delete unused vars.
21242 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21244 * composite.c (update_compositions): Declare arg.
21246 * cm.c (calccost, cmgoto): Declare args.
21248 * charset.c: Remove `emacs' conditional. Doc fixes.
21249 (map_char_table_for_charset): Declare.
21251 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21253 * ccl.c: Remove `emacs' conditional.
21255 2008-02-01 Kenichi Handa <handa@m17n.org>
21257 The following changes are to allow specifying multiple font
21258 patterns for a character range (specified by script or charset).
21260 * Makefile.in (abbrev.o): Depend on syntax.h.
21261 (xfaces.o): Depend on charset.h.
21263 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21264 SINGLE_BYTE_CHAR_P.
21266 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21268 * character.h (Vchar_script_table): Extern it.
21270 * character.c (Vscript_alist): Delete.
21271 (Vchar_script_table, Qchar_script_table): New variable.
21272 (syms_of_character): Declare Vchar_script_table as a lisp variable
21275 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21276 have property char-table-extra-slots, make no extra slot.
21278 * dispextern.h (struct face): Delete member `charset'.
21279 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21280 SINGLE_BYTE_CHAR_P.
21281 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21283 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21284 (generate_ascii_font_name): Rename from generate_ascii_font.
21286 * fontset.h (get_font_repertory_func): New prototype.
21287 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21288 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21290 * fontset.c (Qprepend, Qappend): New variables.
21291 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21292 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21293 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21294 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21295 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21296 (load_font_get_repertory): New functions.
21297 (fontset_set): Delete.
21298 (fontset_face): New arg FACE. Return face ID, not face.
21299 Complete re-write to handle new fontset structure. Change caller.
21300 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21301 (face_for_char): Don't call lookup_face.
21302 (make_fontset_for_ascii_face): New arg FACE.
21303 (fs_load_font): New arg CHARSET_ID. Don't check
21304 Vfont_encoding_alist here.
21305 (find_font_encoding): New function.
21306 (list_fontsets): Use STRINGP, not ! NILP.
21307 (accumulate_script_ranges): New function.
21308 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21309 re-written to handle new fontset structure.
21310 (Ffontset_font): Return a copy of element.
21311 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21312 docstring of font-encoding-alist.
21314 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21315 (Fset_fotset_font): Fix arguments to 5.
21317 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21319 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21320 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21321 (highlight_trailing_whitespace): Adjust for the change of
21324 * xfaces.c: Include charset.h.
21325 (load_face_font): Delete argument C. Change caller.
21326 (generate_ascii_font_name): Rename from generate_ascii_font.
21327 (font_name_registry): New function.
21328 (cache_face): Store ascii faces before non-ascii faces in buckets.
21329 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21330 Lookup only ascii faces.
21331 (lookup_non_ascii_face): New function.
21332 (lookup_named_face): Delete argument C. Change caller.
21333 (lookup_derived_face): Delete argument C. Change caller.
21334 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21335 a string, just call font_list with it.
21336 (choose_face_font): Delete arguments FACE and C. New arg
21337 FONT_SPEC. Change caller.
21338 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21340 (realize_non_ascii_face): New function.
21341 (realize_x_face): Call load_face_font here.
21342 (realize_tty_face): Delete argument C. Change caller.
21343 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21345 (dump_realized_face): Don't print charset of FACE.
21347 * xfns.c (x_set_font): Always call x_new_fontset and
21348 store_frame_parameter.
21349 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21350 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21352 * xterm.h (x_get_font_repertory): Extern it.
21354 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21355 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21356 it->multibyte_p is zero.
21357 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21358 (x_new_fontset): If FONTSETNAME doesn't match any existing
21359 fontsets, create a new one.
21360 (x_get_font_repertory): New function.
21362 2008-02-01 Kenichi Handa <handa@m17n.org>
21364 * coding.c (Ffind_coding_systems_region_internal): Detect an
21365 ASCII only string correctly.
21367 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21370 2008-02-01 Kenichi Handa <handa@m17n.org>
21372 * lread.c: Include "coding.h".
21373 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21374 (load_each_byte, unread_char): New variables.
21375 (readchar_backlog): Delete.
21376 (readchar): Return a character unless load_each_byte is nonzero.
21377 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21378 cons. If unread_char is not -1, simply return it.
21379 (unreadchar): Handle the case that readcharfun is
21380 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21381 (read_multibyte): Delete.
21382 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21383 (read_emacs_mule_char): New functions.
21384 (Fload): Even if the file doesn't have the extension ".elc", if
21385 safe_to_load_p returns a positive version number, assume that the
21386 file contains bytecompiled code. If the version is less than 22,
21387 load the file while decoding multibyte sequences by emacs-mule.
21388 (readevalloop): Don't use readchar_backlog.
21389 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21390 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21391 (read_escape): Delete the arg BYTEREP.
21392 (read1): Set load_each_byte to 1 temporarily while handling
21393 #@NUMBER. Don't call read_multibyte.
21394 (read_vector): Call Fread with a cons. If readcharfun is
21395 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21396 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21397 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21398 and Qload_force_doc_strings.
21400 2008-02-01 Kenichi Handa <handa@m17n.org>
21402 * xdisp.c (face_before_or_after_it_pos): Call
21403 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21405 2008-02-01 Kenichi Handa <handa@m17n.org>
21407 * character.h (TRAILING_CODE_P): New macro.
21408 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21409 (string_char_with_unification): Fix prototype.
21410 (Vscript_alist): Extern it.
21412 * character.c (Vscript_alist): New variable.
21413 (string_char_with_unification, str_as_unibyte)
21414 (string_escape_byte8): Add `const' to local variables.
21415 (syms_of_character): Declare script-alist as a Lisp variable.
21417 * charset.h (Vcharset_ordered_list): Extern it.
21418 (charset_ordered_list_tick): Extern it.
21419 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21420 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21421 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21422 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21423 (Funify_charset): Adjust for the change of Funify_charset.
21425 * charset.c (charset_ordered_list_tick): New variable.
21426 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21427 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21428 deunify instead of unify a charset.
21429 (string_xstring_p): Add `const' to local variables.
21430 (find_charsets_in_text): Add `const' to arguments and local variables.
21431 (encode_char): Adjust for the change of Funify_charset. Fix
21432 detecting of invalid code.
21433 (Fset_charset_priority): Increment charset_ordered_list_tick.
21434 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21437 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21438 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21439 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21440 (decode_coding_ccl, consume_chars)
21441 (Ffind_coding_systems_region_internal)
21442 (Fcheck_coding_systems_region): Add `const' to local variables.
21444 * print.c (print_object): Use octal form for printing the
21445 contents of a bool vector.
21447 2008-02-01 Dave Love <fx@gnu.org>
21449 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21450 <version == 20>: Refuse to load.
21452 2008-02-01 Dave Love <fx@gnu.org>
21454 * fns.c: Move coding.h.
21455 (Qcodeset, Qdays, Qmonths): New.
21456 (concat): Use CHARACTERP instead of INTEGERP.
21457 (Flocale_codeset): Delete.
21458 (Flanginfo): New function.
21459 (syms_of_fns): Change accordingly.
21461 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21463 2008-02-01 Dave Love <fx@gnu.org>
21465 * casetab.c (init_casetab_once, init_casetab_once): Fix
21466 CHAR_TABLE_SET call.
21468 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21470 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21472 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21473 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21474 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21476 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21478 * coding.c (ENCODE_DESIGNATION, decode_eol)
21479 (make_conversion_work_buffer, code_conversion_restore)
21480 (Fdefine_coding_system_internal): Convert Lisp types.
21481 (code_conversion_restore): Use EQ, not ==.
21482 (Fencode_coding_string): Fix code_convert_string call.
21484 * coding.h (code_convert_region): Fix prototype.
21486 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21488 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21489 (Ffontset_info): Convert Lisp types.
21491 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21493 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21495 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21497 * chartab.c: Include "...h", not <...h> in some cases.
21499 * callproc.c (Fcall_process): Remove unused variables.
21501 2008-02-01 Dave Love <fx@gnu.org>
21503 * coding.c (Fset_coding_system_priority): Allow null arg list.
21505 2008-02-01 Dave Love <fx@gnu.org>
21507 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21508 (Fself_insert_and_exit): Use CHARACTERP.
21510 * callproc.c (Fcall_process): Remove unused vars.
21512 * xterm.c (XTread_socket): Add extra dead keysyms.
21514 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21516 * dispextern.h: Remove prototypes for redraw_frame,
21517 redraw_garbaged_frames.
21519 * cmds.c (Fself_insert_command): Use CHARACTERP.
21521 * chartab.c (make_sub_char_table): Remove unused var.
21522 (Fset_char_table_default, Fmap_char_table): Doc fix.
21524 * keymap.c (access_keymap): Remove generic char code.
21525 (push_key_description): Use CHARACTERP.
21527 2008-02-01 Dave Love <fx@gnu.org>
21529 * charset.c: Doc fixes.
21530 (Funify_charset): Extra checking.
21532 2008-02-01 Dave Love <fx@gnu.org>
21534 * lread.c: Remove some unused variables.
21535 (safe_to_load_p): If safe, return the magic number version byte.
21536 (Fload): Maybe use load-with-code-conversion.
21538 2008-02-01 Kenichi Handa <handa@m17n.org>
21540 * category.c (Fmodify_category_entry): Don't modify the contents
21541 of category_set for characters out of the range. Avoid
21542 unnecessary modification.
21544 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21545 Vchar_unify_table. The default value of the table is now nil.
21547 * character.c (syms_of_character): Setup Vchar_width_table for
21548 eight-bit-control and raw-byte chars.
21550 * charset.h (enum define_charset_arg_index): Delete
21551 charset_arg_parents and add charset_arg_subset and
21552 charset_arg_superset.
21553 (enum charset_attr_index): Delete charset_parents and add
21554 charset_subset and charset_superset.
21555 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21556 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21557 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21558 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21559 (CHARSET_SUPERSET): New macros.
21560 (charset_work): Extern it.
21561 (ENCODE_CHAR): Use charset_work.
21562 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21563 (map_charset_chars): Extern it.
21565 * charset.c (load_charset_map): Set the default value of encoder
21566 and deunifier char-tables to nil.
21567 (map_charset_chars): Change argument. Change callers. Use
21568 map_char_table_for_charset instead of map_char_table.
21569 (Fmap_charset_chars): New optional args from_code and to_code.
21570 (Fdefine_charset_internal): Adjust for the change of
21571 `define-charset' (:parents -> :subset or :superset).
21572 (charset_work): New variable.
21573 (encode_char, syms_of_charset): Adjust for the change of
21574 Fdefine_charset_internal.
21575 (Ffind_charset_string): Setup the vector `charsets' correctly.
21577 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21578 the previous change.
21579 (char_table_ref_and_range): Adjust for the above change.
21580 (map_sub_char_table_for_charset): New function.
21581 (map_char_table_for_charset): New function.
21583 * keymap.c (describe_vector): Handle a char-table directly here.
21584 (describe_char_table): Delete.
21586 * lisp.h (map_charset_chars): Delete.
21588 2008-02-01 Dave Love <fx@gnu.org>
21590 * fns.c (count_combining): Comment out (unused).
21591 (Flocale_codeset): New.
21592 (syms_of_fns): Defsubr it.
21594 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21597 2008-02-01 Dave Love <fx@gnu.org>
21599 * Makefile.in (chartab.o): Depend on charset.h.
21601 2008-02-01 Kenichi Handa <handa@m17n.org>
21603 * character.c (syms_of_character): Set the default value of
21604 Vprintable_chars to Qnil.
21606 2008-02-01 Dave Love <fx@gnu.org>
21608 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21610 2008-02-01 Kenichi Handa <handa@m17n.org>
21612 * charset.c (load_charset_map): Handle the case that from < to
21615 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21616 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21617 Pay attention to raw-8-bit chars.
21619 2008-02-01 Kenichi Handa <handa@m17n.org>
21621 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21622 It is not bytecompiled now.
21624 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21625 (charset_jisx0208): New variables.
21626 (Fdefine_charset_internal): Setup them if appropriate.
21627 (init_charset_once): Initialize them to -1.
21629 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21630 (charset_jisx0208): Extern them.
21632 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21633 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21634 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21635 (setup_iso_safe_charsets): Fix arguments to Fassq.
21636 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21637 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21638 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21639 (encode_coding_iso_2022): Change the 1st arg to
21640 ENCODE_ISO_CHARACTER to a variable.
21642 2008-02-01 Kenichi Handa <handa@m17n.org>
21644 * charset.h (enum define_charset_arg_index): New enums
21645 charset_arg_min_code and charset_arg_max_code.
21646 (struct charset): New member char_index_offset.
21648 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21649 Take charset->char_index_offset into account.
21650 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21651 args[charset_arg_max_code]. Setup charset.char_index_offset.
21652 (syms_of_charset): Fix args to Fdefine_charset_internal.
21654 2008-02-01 Dave Love <fx@gnu.org>
21656 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21658 2008-02-01 Dave Love <fx@gnu.org>
21660 * coding.c: Doc fixes.
21661 (Fcoding_system_aliases): Fix return value.
21662 (Qmac): Remove (duplicated) definition.
21664 2008-02-01 Dave Love <fx@gnu.org>
21666 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21669 * character.c (Fstring): Doc fix.
21671 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21673 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
21674 (font-encoding-alist): Doc fix.
21676 2008-02-01 Dave Love <fx@gnu.org>
21678 * term.c (costs_set): Declare static, non-initialized for pcc.
21679 (encode_terminal_code): Remove unused var.
21681 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21684 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21686 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21687 (suffixes): Move out of make_subsidiaries for K&R.
21689 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21691 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21693 2008-02-01 Dave Love <fx@gnu.org>
21695 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21697 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21699 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21701 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21703 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21705 2008-02-01 Kenichi Handa <handa@m17n.org>
21707 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21708 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21710 2008-02-01 Kenichi Handa <handa@m17n.org>
21712 * coding.c (decode_coding_charset): Adjust for the change of
21713 Fdefine_coding_system_internal.
21714 (Fdefine_coding_system_internal): For a coding system of
21715 `charset' type, store a list of charset IDs in
21716 `charset_attr_charset_valids' element of coding attributes.
21718 2008-02-01 Kenichi Handa <handa@m17n.org>
21720 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21721 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21722 caller. Handle 2-byte and 3-byte charsets correctly.
21723 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21724 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21725 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21726 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21727 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21729 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21730 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21731 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21732 and alt&rule composition.
21733 (decode_coding_iso_2022): Handle composition correctly.
21734 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21736 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21737 re-defining a charset. If the charset has :emacs-mule-id, setup
21739 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21741 2008-02-01 Kenichi Handa <handa@m17n.org>
21743 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21744 (encode_coding_big5, encode_coding_charset): If coding requires safe
21745 encoding, produce a character specified by
21746 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21748 2008-02-01 Dave Love <fx@gnu.org>
21750 * xterm.c (XSetIMValues): Declare.
21752 * process.c: Conditionally include sys/wait.h, pty.h.
21754 * print.c (print_object): Fix print format for 64-bit systems.
21756 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21758 * buffer.c (emacs_strerror): Declare.
21760 * fontset.c (Fclear_face_cache): Declare.
21761 (accumulate_font_info): Comment-out (unused).
21762 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21765 * character.h (string_escape_byte8): Declare.
21767 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21769 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21770 (Fmap_charset_chars): Doc fix.
21772 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21773 (Fset_coding_system_priority, Fset_coding_system_priority)
21774 (Fdefine_coding_system_internal): Doc fix.
21776 2008-02-01 Dave Love <fx@gnu.org>
21778 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21780 2008-02-01 Kenichi Handa <handa@m17n.org>
21782 * character.c (string_escape_byte8): Make multibyte string with
21785 * charset.c (Fmake_char): Delete unnecessary code.
21787 2008-02-01 Kenichi Handa <handa@m17n.org>
21789 * xfns.c (x_encode_text): Allocate coding.destination here, and
21790 call encode_coding_object with dst_object Qnil.
21792 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21793 multibyte form correctly.
21795 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21796 against Vfont_encoding_alist.
21798 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21799 handling of charset list.
21800 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21801 (decode_coding_object): Move point to coding->dst_pos before
21802 calling post-read-conversion function.
21803 (encode_coding_object): Give correct arguments to
21804 pre-write-conversion. Ignore the return value of
21805 pre-write-conversion function. Pay attention to the case that
21806 pre-write-conversion changes the current buffer. If dst_object is
21807 Qt, even if coding->src_bytes is zero, allocate at least one byte
21808 to coding->destination.
21810 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21812 * charset.c (Fmake_char): Make it more backward compatible.
21813 (Fmap_charset_chars): Fix docstring.
21815 2008-02-01 Dave Love <fx@gnu.org>
21817 * coding.c: Doc fixes.
21818 (Fdefine_coding_system_alias): Use names, not symbols, in
21819 coding-system-alist.
21821 2008-02-01 Kenichi Handa <handa@m17n.org>
21823 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21824 of calling free_realized_face.
21826 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21828 * charset.c (read_hex): Don't treat SPC as a comment starter.
21829 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21830 (Fdecode_char): Fix typo.
21832 2008-02-01 Kenichi Handa <handa@m17n.org>
21834 * charset.h (struct charset): New member `code_space_mask'.
21836 * coding.c (coding_set_source): Delete the local variable beg_byte.
21837 (encode_coding_charset, Fdefine_coding_system_internal):
21838 Delete the local variable charset.
21839 (Fdefine_coding_system_internal): Setup
21840 attrs[coding_attr_charset_valids] correctly.
21842 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21843 member to check if CODE is valid or not.
21844 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21845 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21846 is within the range of charset->min_code and carset->max_code.
21848 2008-02-01 Dave Love <fx@gnu.org>
21850 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21852 * dispextern.h (generate_ascii_font): Fix return type.
21854 * xfaces.c (generate_ascii_font): Fix arg declaration.
21856 * coding.c (coding_inherit_eol_type)
21857 (Fset_terminal_coding_system_internal)
21858 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21860 2008-02-01 Kenichi Handa <handa@m17n.org>
21862 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21863 multiple charsets correctly.
21865 2008-02-01 Kenichi Handa <handa@m17n.org>
21867 * search.c (boyer_moore): Fix handling of multibyte character
21870 * xdisp.c (display_mode_element): When the variable `elt' is
21871 changed, update `this' and `lisp_string'.
21873 2008-02-01 Kenichi Handa <handa@m17n.org>
21875 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21877 * callproc.c (Fcall_process): Be sure to give the current buffer
21878 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21880 * charset.c (struct charset_map_entries): New struct.
21881 (load_charset_map): Rename from parse_charset_map. New args
21882 entries and n_entries. Change caller.
21883 (load_charset_map_from_file): Rename from load_charset_map.
21884 Change caller. New arg control_flag. Call load_charset_map at
21886 (load_charset_map_from_vector): New function.
21887 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21888 (encode_char): If the charset is compact, change a character index
21891 * coding.c (coding_alloc_by_making_gap): Check the case that the
21892 source and destination are the same correctly.
21893 (decode_coding_raw_text): Set coding->consumed_char and
21894 coding->consumed to 0.
21895 (produce_chars): If coding->chars_at_source is nonzero, update
21896 coding->consumed_char and coding->consumed before calling
21898 (Fdefine_coding_system_alias): Register ALIAS in
21899 Vcoding_system_alist.
21900 (syms_of_coding): Define `no-conversion' coding system at the tail.
21902 * fileio.c (Finsert_file_contents): Set coding_system instead of
21903 val. If the current buffer is multibyte, always call
21906 * xfaces.c (try_font_list): Give higher priority to fontset's
21907 family than face's family.
21909 2008-02-01 Kenichi Handa <handa@m17n.org>
21911 * callproc.c (Fcall_process): Be sure to give the current buffer
21912 to decode_coding_c_string.
21914 * xfaces.c (try_font_list): Give a family specified in a fontset
21915 higher priority than a family specified in a face.
21917 2008-02-01 Kenichi Handa <handa@m17n.org>
21919 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21920 Fix arguments to insert_from_buffer.
21922 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21924 2008-02-01 Kenichi Handa <handa@m17n.org>
21926 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21927 (decode_coding_gap): Set coding->dst_multibyte correctly.
21929 2008-02-01 Kenichi Handa <handa@m17n.org>
21931 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21932 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21933 (encode_coding_utf_16): Substitute coding->default_char for
21934 non-Unicode characters.
21935 (decode_coding): Don't call record_insert here.
21936 (setup_coding_system): Initialize `surrogate' of
21937 coding->spec.utf_16 to 0.
21938 (EMIT_ONE_BYTE): Fix for multibyte case.
21940 * insdel.c (insert_from_gap): Call record_insert.
21942 2008-02-01 Kenichi Handa <handa@m17n.org>
21944 * casefiddle.c (casify_region): Fix multibyte case.
21946 * character.c (c_string_width): Add return type `int'.
21947 (char_string_with_unification): Delete arg ADVANCED.
21949 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21950 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21951 (CHAR_STRING_ADVANCE): Make it do-while statement.
21953 * chartab.c (sub_char_table_set_range): Optimize for the case
21954 DEPTH == 3. Add workaround code for a GCC optimization bug.
21956 * charset.c (parse_charset_map): Remove an unused variable.
21958 * coding.c: Delete unused variables.
21960 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21961 earlier. If inserted is zero and the coding system doesn't
21962 require flushing, don't call decode_coding_gap.
21964 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21966 2008-02-01 Kenichi Handa <handa@m17n.org>
21968 The following changes are for using Unicode as an internal
21969 character model, and use UTF-8 format for buffer/string
21972 * .gdbinit (xchartable): Adjust for the change of char table structure.
21973 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21975 * Makefile.in (obj): Add character.o and chartab.o.
21976 (lisp, shortlisp): Remove utf-8.elc.
21977 (*.o): For many files, change dependency on charset.h to
21978 character.h, and add dependency on character.h.
21979 (character.o, chartab.o): New targets.
21981 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21982 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21983 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21986 * dired.c, filelock.c: Include "character.h".
21988 * alloc.c: Include "character.h" instead of "charset.h".
21989 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21990 (syms_of_alloc): Remove defsubr for Smake_char_table.
21992 * buffer.c: Include "character.h" instead of "charset.h", don't
21993 include "coding.h".
21994 (Fset_buffer_multibyte): Adjust for UTF-8.
21996 * buffer.h: EXFUN Fbuffer_live_p.
21998 * callproc.c: Include "character.h" instead of "charset.h".
21999 (Fcall_process): Big change for the new code-conversion APIs.
22001 * casetab.c: Include "character.h" instead of "charset.h".
22002 (set_canon, set_identity, shuffle): Adjust for the new
22003 map_char_table spec.
22004 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22005 accessing the char table structure.
22007 * chartab.c: New file that implements char table.
22009 * category.c: Include "character.h".
22010 (copy_category_entry): New function.
22011 (copy_category_table): Call map_char_table and copy_category_entry.
22012 (Fmake_category_table): Initialize all top-level slots.
22013 (char_category_set): New function.
22014 (modify_lower_category_set): Delete.
22015 (Fmodify_category_entry): Call char_table_ref_and_range.
22017 * category.h (CATEGORY_SET): Just call char_category_set.
22019 * ccl.c: Include "character.h".
22020 (Qccl, Qcclp): New variables.
22021 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22022 it's less than 256.
22023 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22024 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22026 (ccl_driver): Change types of argument, adjust code accordingly.
22027 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22029 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22031 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22032 New members src_multibyte, dst_multibyte, consumed, and produced.
22033 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22034 (CODING_SPEC_CCL_PROGRAM): New macro.
22035 (ccl_driver): Update prototype.
22036 (Qccl, Qcclp, Fccl_program_p): Extern them.
22037 (CHECK_CCL_PROGRAM): New macro.
22039 * character.c, character.h, chartab.c: New files.
22041 * charset.c: Mostly re-written. Move character and multibyte sequence
22042 handling codes to character.c.
22044 * charset.h: Mostly re-written. Move character and multibyte sequence
22045 handling codes to character.h.
22047 * coding.c, coding.h: Mostly re-written.
22049 * composite.c: Include "character.h" instead of "charset.h".
22050 (CHAR_WIDTH): Move to character.h.
22051 (HASH_KEY, HASH_VALUE): Delete.
22053 * composite.h (enum composition_method): Change order of enumeration
22056 * data.c: Include "character.h" instead of "charset.h".
22057 (Faref): Call CHAR_TABLE_REF for a char table.
22058 (Faset): Call CHAR_TABLE_SET for a char table.
22060 * dispextern.h (free_realized_face, check_face_attribytes)
22061 (generate_ascii_font): Extern them.
22062 (free_realized_multibyte_face): Delete extern.
22064 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22067 * editfns.c: Include "character.h" instead of "charset.h".
22068 (Fchar_to_string): Always call CHAR_STRING.
22070 * emacs.c (main): Call init_charset_once, init_charset,
22071 syms_of_chartab, and syms_of_character.
22073 * fileio.c: Include "character.h" instead of "charset.h".
22074 (Finsert_file_contents): Big change for the new code-conversion API.
22075 (choose_write_coding_system, Fwrite_region): Likewise.
22076 (build_annotations_2): Delete.
22077 (e_write): Big change for the new code-conversion API.
22079 * fns.c: Include "character.h" instead of "charset.h".
22080 (copy_sub_char_table): Move to chartab.c.
22081 (Fcopy_sequence): Call copy_char_table for a char table.
22082 (concat): Delete codes calling count_multibyte.
22083 (string_char_to_byte, string_byte_to_char): Adjust for the new
22085 (internal_equal): Adjust for the change of char table structure.
22086 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22087 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22088 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22089 (char_table_translate, optimize_sub_char_table)
22090 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22092 (char_table_ref_and_index): Delete.
22093 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22094 (Fmd5): Call preferred_coding_system instead of accessing
22095 Vcoding_category_list. Adjust for the new code-conversion API.
22096 (syms_of_fns): Move defsubr for char table related functions to
22099 * fontset.c: Mostly re-written.
22101 * fontset.h (struct font_info): Change type of the member encoding_type.
22102 (enum FONT_SPEC_INDEX): New enum.
22103 (fontset_font_pattern, fs_load_font): Update prototype.
22104 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22106 * indent.c: Include "character.h" instead of "charset.h".
22107 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22109 * insdel.c: Include "character.h" instead of "charset.h".
22110 (copy_text): Don't refer to Vnonascii_translation_table.
22111 (insert_from_gap): New function.
22113 * keyboard.c: Include "character.h" instead of "charset.h".
22114 (command_loop_1): Never call direct_output_forward_char before
22115 a non-ASCII character.
22116 (read_char): If Vkeyboard_translate_table is a char table, always
22117 translate a character.
22119 * keymap.c: Include "character.h".
22120 (store_in_keymap): Handle the case that IDX is a cons.
22121 (Fdefine_key): Handle the case that KEY is a cons and the car part
22122 is also a cons (range).
22123 (push_key_description): Adjust for the new character code.
22124 (describe_vector): Call describe_char_table for a char table.
22125 (describe_char_table): New function.
22127 * keymap.h (describe_char_table): Extern it.
22129 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22130 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22131 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22132 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22134 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22136 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22137 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22138 (CHARTAB_SIZE_BITS_3): New macros.
22139 (chartab_size): Extern it.
22140 (struct Lisp_Char_Table): Re-design.
22141 (struct Lisp_Sub_Char_Table): New structure.
22142 (HASH_KEY, HASH_VALUE): Move from fns.c.
22143 (CHARACTERBITS): Define as 22.
22144 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22145 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22146 (GC_SUB_CHAR_TABLE_P): New macro.
22147 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22148 (code_convert_string_norecord): Deleted extern.
22149 (init_character_once, syms_of_character, init_charset)
22150 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22152 * lread.c: Include "character.h".
22153 (read_multibyte): New arg NBYTES.
22154 (read_escape): Change the meaning of returned *BYTEREP.
22155 (to_multibyte): Delete.
22156 (read1): Adjust the handling of char table and string.
22158 * print.c: Include "character.h" instead of "charset.h".
22159 (print_string): Convert 8-bit raw bytes to octal form by
22160 string_escape_byte8.
22161 (print_object): Adjust for the new multibyte form. Print 8-bit
22162 raw bytes always in octal form. Handle sub char table correctly.
22164 * process.c: Include "character.h" instead of "charset.h".
22165 (read_process_output, send_process): Adjust for the new
22166 code-conversion API.
22168 * puresize.h (BASE_PURESIZE): Increase.
22170 * regex.c: Include "character.h" instead of "charset.h".
22171 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22172 (regex_compile): Accept a range whose starting and ending
22173 character have different leading bytes.
22174 (analyse_first): Adjust for the above change.
22176 * search.c: Include "character.h" instead of "charset.h".
22177 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22178 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22180 * syntax.c: Include "character.h" instead of "charset.h".
22181 (syntax_parent_lookup): Delete.
22182 (Fmodify_syntax_entry): Accept a cons as CHAR.
22183 (skip_chars): Adjust for the new multibyte form.
22184 (init_syntax_once): Call char_table_set_range instead of directly
22185 accessing the structure of a char table.
22187 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22188 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22189 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22190 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22192 * term.c: Include "buffer.h" and "character.h".
22193 (encode_terminal_code, write_glyphs): Adjust for the new
22194 code-conversion API.
22195 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22197 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22199 * xdisp.c: Include "character.h".
22200 (get_next_display_element): Adjust for the new multibyte form.
22201 (disp_char_vector): Adjust for the new char table structure.
22202 (decode_mode_spec_coding): Adjust for the new structure of
22204 (decode_mode_spec): Adjust for the new code-conversion API.
22206 * xfaces.c: Include "character.h" instead of "charset.h".
22207 (load_face_font): Adjust for the change of choose_face_font and
22209 (generate_ascii_font): New function.
22210 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22211 (set_font_frame_param): Adjust for the change of choose_face_font.
22212 (free_realized_face): Make it public.
22213 (free_realized_faces_for_fontset): Rename from
22214 free_realized_multibyte_face. Free also faces realized for ASCII.
22215 (choose_face_font): Change arguments. Adjust for the change of
22216 fontset_font_pattern and FS_LOAD_FONT.
22218 * xfns.c: Include "character.h".
22219 (x_encode_text): Adjust for the new code-conversion API.
22221 * xselect.c: Don't include "charset.h".
22222 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22224 * xterm.c: Include "character.h".
22225 (x_encode_char): New argument CHARSET. Change caller.
22226 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22227 Call ENCODE_CHAR instead of SPLIT_CHAR.
22228 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22229 CHAR_WIDTH instead of CHARSET_WIDTH.
22230 (XTread_socket): Adjust for the new code-conversion API.
22231 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22232 (x_load_font): Adjust for the change of struct font.
22234 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22236 * xfaces.c (face_at_buffer_position): Remove unused vars.
22238 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22240 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22241 Fix overflow checking.
22243 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22245 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22246 Cancel previous change.
22248 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22250 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22251 ccl->eight_bit_control. Fix check for buffer overflow.
22252 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22253 (ccl_driver): Initialize extra_bytes to 0.
22255 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22257 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22258 return it ORed with ctrl_modifier.
22260 2008-01-29 Miles Bader <miles@gnu.org>
22262 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22264 2008-01-28 Jason Rumney <jasonr@gnu.org>
22266 * w32.c (stat): Don't double check for networked drive.
22268 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22270 * window.c (run_window_configuration_change_hook): New function.
22271 Code extracted from set_window_buffer. Set the selected frame.
22272 (set_window_buffer): Use it.
22273 * window.h (run_window_configuration_change_hook): Declare.
22274 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22276 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22278 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22280 * Makefile.in: Remove references to unused macros.
22282 2008-01-26 Eli Zaretskii <eliz@gnu.org>
22284 * w32.c (g_b_init_get_sid_sub_authority)
22285 (g_b_init_get_sid_sub_authority_count): New static variables.
22286 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22287 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22288 (init_user_info): Use them to retrieve uid and gid.
22289 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22290 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22291 st_uid and st_gid of the file.
22293 2008-01-26 Jason Rumney <jasonr@gnu.org>
22295 * w32.c (logon_network_drive): New function.
22298 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
22300 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22301 invisible text covered with an ellipsis.
22303 2008-01-25 Richard Stallman <rms@gnu.org>
22305 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22306 jump back to beginning. Move some other initializations after that.
22307 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22309 (syms_of_xdisp): Init them.
22311 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22313 * buffer.c (reset_buffer_local_variables):
22314 Implement `permanent-local-hook'.
22315 (Qpermanent_local_hook): New variable.
22316 (syms_of_buffer): Init and staticpro it.
22318 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
22320 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22322 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22324 * fns.c (Fclrhash): Return TABLE.
22326 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22328 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22329 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22330 is set even without positional changes.
22331 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22333 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22335 2008-01-23 Jason Rumney <jasonr@gnu.org>
22337 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22339 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22340 the unicode range available in MULE by locale-coding-system.
22341 Improve dbcs lead byte detection. Set event timestamp and modifiers
22344 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22346 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22347 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22348 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22349 when used on child processes.
22351 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
22353 * dbusbind.c (Fdbus_method_return_internal): Rename from
22354 Fdbus_method_return.
22355 (Fdbus_unregister_object): Move to dbus.el.
22356 (Fdbus_call_method, Fdbus_method_return_internal)
22357 (Fdbus_send_signal): Improve debug messages.
22359 2008-01-20 Martin Rudalics <rudalics@gmx.at>
22361 * undo.c (undo_inhibit_record_point): New variable.
22362 (syms_of_undo): Initialize it.
22363 (record_point): Don't record point when undo_inhibit_record_point
22366 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22368 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22370 * xdisp.c (Qauto_hscroll_mode): New var.
22371 (syms_of_xdisp): Initialize it.
22372 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22374 (hscroll_windows): Don't check automatic_hscrolling_p here.
22376 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22377 vscroll if we're setting window-buffer to the value it already has.
22379 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22381 * m/intel386.h: Remove references to XENIX.
22383 2008-01-17 Andreas Schwab <schwab@suse.de>
22385 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22386 instead of HAVE_X86_64_LIB64_DIR.
22387 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22389 2008-01-17 Glenn Morris <rgm@gnu.org>
22391 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22392 to HAVE_X86_64_LIB64_DIR.
22394 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22401 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22403 * sysdep.c: Remove code containing references to symbols defined
22404 by unsupported systems.
22406 2008-01-16 Glenn Morris <rgm@gnu.org>
22408 * coding.c (select-safe-coding-system-function): Doc fix.
22410 2008-01-15 Glenn Morris <rgm@gnu.org>
22412 * config.in: Revert 2008-01-13 change: this is a generated file.
22414 2008-01-13 Tom Tromey <tromey@redhat.com>
22416 * lisp.h: Fix typo.
22418 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22424 * s/ptx4.h: Remove files for systems no longer supported.
22426 * callproc.c (Fcall_process): Fix previous change.
22428 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22430 * unexsunos4.c: Remove file, system not supported anymore.
22450 * alloc.c: Remove code containing references to symbols defined by
22451 unsupported systems.
22453 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22455 * coding.c (detect_coding_mask): Fix previous change.
22457 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22459 * coding.c (detect_coding_iso2022): New arg
22460 latin_extra_code_state. Allow Latin extra codes only
22461 when *latin_extra_code_state is nonzero.
22462 (detect_coding_mask): If there is a NULL byte, detect the encoding
22463 as UTF-16 or binary. If Latin extra codes exist, detect the
22464 encoding as ISO-2022 only when there's no other proper encoding is
22467 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22469 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22472 2008-01-08 Richard Stallman <rms@gnu.org>
22474 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22476 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
22478 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22479 menu bar in parentheses.
22481 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22485 * m/alliant-2800.h:
22493 * m/aviion-intel.h:
22588 * unexsni.c: Remove files for systems no longer supported.
22590 * m/intel386.h: Remove references to unsupported systems.
22592 * w32.c (get_emacs_configuration): Remove reference to i860.
22594 * sysdep.c: Remove dead code.
22596 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22599 * m/masscomp.h: Remove files. Platform is obsolete.
22601 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
22603 * dbusbind.c (Fdbus_method_return): New function.
22604 (xd_read_message): Add the serial number to the event.
22605 (Fdbus_register_method): Activate the function.
22607 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22609 * keyboard.c (read_key_sequence): Fix typo.
22611 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
22613 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22614 (xd_signature, xd_append_arg): Handle element type detection for
22616 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22617 SDATA () calls; this must be solved more general.
22618 (Fdbus_register_signal): Use SBYTES instead of strlen.
22620 2008-01-03 Magnus Henoch <magnus@zemdatav>
22622 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22623 unsigned int for byte values (necessary for big-endian platform).
22624 (Fdbus_call_method): Handle the case of no returned arguments.
22626 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22628 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22630 2007-12-31 Magnus Henoch <mange@freemail.hu>
22632 * dbusbind.c (xd_signature): Signature of variant is just "v".
22634 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
22636 * dbusbind.c: Fix several errors and compiler warnings.
22637 Reported by Tom Tromey <tromey@redhat.com>.
22638 (XD_ERROR, XD_DEBUG_MESSAGE)
22639 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22640 (xd_append_arg): Part for basic D-Bus types rewritten.
22641 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22642 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22644 (xd_read_message): Return Qnil. Don't signal an error; it is not
22645 useful during event reading.
22646 (Fdbus_register_signal): Signal an error if the check for
22648 (Fdbus_register_method): New function. The implementation is not
22649 complete, the call of the function signals an error therefore.
22650 (Fdbus_unregister_object): New function, renamed from
22651 Fdbus_unregister_signal. The initial check signals an error, if
22652 the object is not well formed.
22654 2007-12-30 Richard Stallman <rms@gnu.org>
22656 * textprop.c (get_char_property_and_overlay):
22657 Signal error if POSITION is out of range in a buffer.
22659 2007-12-29 Martin Rudalics <rudalics@gmx.at>
22661 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22662 because the original parameters are in pure storage now.
22664 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22666 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22668 2007-12-22 Eli Zaretskii <eliz@gnu.org>
22670 * callint.c (syms_of_callint) <command-history>: Add reference to
22671 history-length in the doc string.
22673 2007-12-17 Jason Rumney <jasonr@gnu.org>
22675 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22676 before passing as wParam.
22678 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
22680 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22681 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22682 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22683 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22685 (Fdbus_call_method): Fix docstring.
22687 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
22689 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22691 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22692 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22694 (xd_signature): New function.
22695 (xd_append_arg): Compute also signatures. Major rewrite.
22696 (xd_retrieve_arg): Make debug messages friendly.
22697 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22698 Check for signatures of arguments.
22700 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
22702 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22703 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22704 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22705 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22706 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22707 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22708 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22709 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22710 (xd_retrieve_value): Remove. Functionality included in ...
22711 (xd_append_arg): New function.
22712 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22714 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
22716 * dbusbind.c (top): Include <stdio.h>.
22717 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22718 dbus_message_new_method_call and dbus_message_new_signal.
22719 (Fdbus_register_signal): Rename unique_name to uname.
22720 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22721 non-existing unique name. Fix typos in matching rule. Return an
22722 object which is useful in Fdbus_unregister_signal.
22723 (Fdbus_unregister_signal): Reimplementation, in order to remove
22724 only the corresponding entry.
22725 (Vdbus_registered_functions_table): Change the order of entries.
22726 Apply these changes in xd_read_message and Fdbus_register_signal.
22728 2007-12-16 Andreas Schwab <schwab@suse.de>
22730 * fileio.c (Finsert_file_contents): Fix overflow check to not
22731 depend on undefined integer overflow.
22733 2007-12-14 Jason Rumney <jasonr@gnu.org>
22735 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22736 for characters above 127.
22738 2007-12-13 Jason Rumney <jasonr@gnu.org>
22740 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22741 before dereferencing array.
22742 (lookup_vk_code): Remove zero comparison.
22744 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
22746 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22747 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22748 Use `unsigned int' instead of `uint'.
22749 (xd_read_message, Fdbus_register_signal): Split expressions into
22750 multiple lines before operators "&&" and "||", according to the
22751 GNU Coding Standards.
22753 2007-12-14 Eli Zaretskii <eliz@gnu.org>
22755 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22757 2007-12-12 Juri Linkov <juri@jurta.org>
22759 * buffer.c (Frename_buffer): In interactive spec replace
22760 `read-buffer' with `read-string' that uses `buffer-name-history'
22761 as history, and the current buffer's name as default.
22763 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22765 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22766 manipulating the backtrace manually.
22767 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22768 (struct backtrace, backtrace_list): Remove.
22769 (command_loop_1): Remove dead var `no_direct'.
22771 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22772 preserve non-built-in buffer-local variables.
22773 (Fkill_all_local_variables): Don't re-create&re-set permanent
22774 buffer-local variables.
22776 2007-12-09 Juri Linkov <juri@jurta.org>
22778 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22779 Lisp code that uses `read-buffer' with current buffer as default.
22781 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
22783 * dbusbind.c (xd_read_message): Generate an event for every
22784 registered handler. There might be several handlers registered
22785 for the same signal.
22786 (Fdbus_register_signal): Don't overwrite a registration for the
22787 same signal. Add a new registration if handlers are different.
22788 (Vdbus_registered_functions_table): Rework doc string.
22790 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
22792 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22793 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22794 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22795 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22796 Unify argument lists.
22797 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22798 arguments and hash table keys. Use unique name for service.
22799 (Fdbus_unregister_signal): Remove checks.
22800 (Vdbus_registered_functions_table): Fix doc string.
22802 2007-12-05 Magnus Henoch <mange@freemail.hu>
22804 * process.c (make_process): Initialize pty_flag to 0.
22806 2007-12-05 Jason Rumney <jasonr@gnu.org>
22808 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22811 2007-12-05 Richard Stallman <rms@gnu.org>
22813 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22815 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22817 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22819 (mac_try_close_socket) [MAC_OSX]: New function.
22820 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22821 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22823 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22824 Use mac_try_close_socket.
22826 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22828 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22830 (copy_dysymtab): Compute relocation base here.
22831 (rebase_reloc_address) [__ppc64__]: New function.
22832 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22835 2007-12-05 Jason Rumney <jasonr@gnu.org>
22837 * w32proc.c (sys_spawnve): Quote args with wildcards.
22839 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22841 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22843 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22845 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
22847 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22848 Move check for Vdbus_registered_functions_table to
22849 xd_read_queued_messages.
22850 (xd_read_queued_messages): Protect xd_read_message calls by
22851 internal_condition_case_1.
22853 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
22855 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22856 Qdbus_system_bus and Qdbus_session_bus, respectively.
22857 (Vdbus_intern_symbols): Remove.
22858 (Vdbus_registered_functions_table): New hash table.
22859 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22860 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22861 Rewrite in order to manage registered functions by hash table
22862 Vdbus_registered_functions_table.
22864 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22866 * xterm.c: Update URL to Window Manager Specification in comment.
22868 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
22870 * config.in (HAVE_DBUS): Add.
22872 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22873 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22874 (obj): Add $(DBUS_OBJ).
22875 (LIBES): Add $(DBUS_LIBS).
22876 (dbusbind.o): New target.
22878 * dbusbind.c: New file.
22880 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22882 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22883 (Qdbus_event): New Lisp symbol.
22884 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22885 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
22886 (keys_of_keyboard): Define dbus-event.
22888 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22890 2007-12-01 Richard Stallman <rms@gnu.org>
22892 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22894 2007-11-30 Jason Rumney <jasonr@gnu.org>
22896 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22897 (w32con_reset_terminal_modes): Clear screen buffer.
22898 (w32_face_attributes): Don't use color indexes that are out of range.
22899 Only reverse the default colors.
22901 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22904 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22906 2007-11-29 Jason Rumney <jasonr@gnu.org>
22908 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22909 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22910 if the terminal colors are initialized.
22911 (unspecified_fg, unspecified_bg): Remove unused declarations.
22913 2007-11-29 Andreas Schwab <schwab@suse.de>
22915 * keyboard.c (apply_modifiers): Fix typo.
22917 2007-11-29 Richard Stallman <rms@gnu.org>
22919 * keymap.c (Fcurrent_local_map): Doc fix.
22921 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22923 * s/gnu-kfreebsd.h: New file.
22925 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22927 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22928 Don't cast redundantly.
22930 * keyboard.c (KEY_TO_CHAR): New macro.
22931 (parse_modifiers, apply_modifiers): Accept integer arguments.
22932 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22933 for chars and symbol keys.
22934 After doing such remapping, apply function-key-map again.
22936 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22938 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22941 2007-11-26 Andreas Schwab <schwab@suse.de>
22943 * process.c (list_processes_1): Fix indentation level of the
22946 2007-11-23 Andreas Schwab <schwab@suse.de>
22948 * editfns.c (Fformat): Handle %c specially since it requires the
22949 argument to be of type int.
22951 2007-11-23 Markus Triska <markus.triska@gmx.at>
22953 * emacs.c (main): Call init_editfns before init_process, since
22954 init_process sets Vprocess_connection_type depending on OS release.
22956 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22958 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22959 (find_symbol_value): Use do_symval_forwarding.
22961 * data.c (set_internal): Set the value in the `cons-cell' (for
22962 Buffer_Local_values) not only for frame-local variables.
22964 2007-11-22 Andreas Schwab <schwab@suse.de>
22966 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22968 * keymap.c (Fsingle_key_description): Likewise.
22969 * print.c (print_object): Likewise.
22971 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22973 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22974 file for image is nil.
22976 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22978 * term.c: Include stdarg.h.
22979 (fatal): Implement using varargs.
22980 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22982 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22984 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22985 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22986 Update call to buffer_slot_type_mismatch.
22987 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22988 (buffer_slot_type_mismatch): Update.
22989 * buffer.c (buffer_local_types): Remove.
22990 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22991 (defvar_per_buffer): Set the type in the buffer_objfwd.
22993 2007-11-21 Jason Rumney <jasonr@gnu.org>
22995 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22996 CreateFileMapping returns NULL on failure.
22998 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23000 * search.c (Fset_match_data): Remove the `evaporate' feature.
23001 (unwind_set_match_data): Don't use the `evaporate' feature.
23003 2007-11-21 Jason Rumney <jasonr@gnu.org>
23005 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23007 * w32console.c (w32con_write_glyphs): Remove unused variables.
23009 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23011 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23013 * s/darwin.h (MULTI_KBOARD): Remove.
23015 * macfns.c (x_create_tip_frame, Fx_create_frame)
23016 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23018 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23020 * buffer.c (Fbuffer_local_value): Remove redundant test.
23021 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23022 than in `current-buffer' to match the comment.
23023 Do the swap using swap_in_global_binding.
23025 * data.c (store_symval_forwarding, set_internal):
23026 * eval.c (specbind): Remove dead code.
23028 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23029 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23030 Since we do not want to see internal Lisp_*fwd objects here.
23032 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23034 * sysdep.c (init_system_name): Use getaddrinfo if available.
23036 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23037 (x_scroll_bar_note_movement): start, end, with, height in struct
23038 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23040 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23042 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23044 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23046 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23047 This undoes Richard's change of 14-Oct-2002.
23049 * alloc.c (allocate_other_vector):
23050 * lisp.h (allocate_other_vector): Remove.
23052 * window.c (struct save_window_data): Move non-lisp data to the end
23053 and make it `int' rather than Lisp_Object.
23054 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23055 Done wrap/unwrap integer values.
23056 (Fset_window_configuration, compare_window_configurations):
23057 Update use of fields to their new types.
23059 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23060 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23061 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23062 (SET_SCROLL_BAR_X_WINDOW): Remove.
23063 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23064 Access the new x_window field directly.
23065 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23066 Don't wrap/unwrap integers into Lisp_Objects.
23067 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23068 (x_scroll_bar_report_motion):
23069 Don't wrap/unwrap integers into Lisp_Objects.
23070 (x_term_init): Use SDATA.
23071 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23072 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23073 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23074 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23075 * xfns.c (x_set_background_color):
23076 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23077 Access the new x_window field directly.
23079 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23080 (allocate_pseudovector): Make non-static.
23082 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23083 (allocate_pseudovector): Declare.
23084 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23086 2007-11-15 Andreas Schwab <schwab@suse.de>
23088 * editfns.c (Fformat): Correctly format EMACS_INT values.
23089 Also take precision into account when formatting an integer.
23091 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23093 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23095 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23096 (syms_of_keyboard): Defsubr it.
23098 * data.c (swap_in_global_binding): Fix longstanding bug where
23099 store_symval_forwarding was not called with the right second argument,
23100 thus causing objfwd-ing from being dropped.
23102 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23104 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23105 (Fx_display_pixel_height, Fx_display_planes)
23106 (Fx_display_color_cells, Fx_server_max_request_size)
23107 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23108 (Fx_display_visual_class, Fx_display_save_under):
23109 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23110 (Fx_display_pixel_height, Fx_display_planes)
23111 (Fx_display_color_cells, Fx_server_max_request_size)
23112 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23113 (Fx_display_mm_height, Fx_display_mm_width)
23114 (Fx_display_backing_store, Fx_display_visual_class)
23115 (Fw32_select_font, Fx_display_save_under):
23116 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23117 (Fx_display_pixel_height, Fx_display_planes)
23118 (Fx_display_color_cells, Fx_server_max_request_size)
23119 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23120 (Fx_display_save_under): Fix typos in docstrings.
23122 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23124 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23125 corresponding to deleted entries; they are an implementation detail.
23126 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23128 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23129 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23130 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23131 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23132 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23133 (Fw32_define_rgb_color, Fw32_load_color_file)
23134 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23135 Fix typos in docstrings.
23136 (Fx_server_version): Reflow docstring.
23137 (Fw32_shell_execute): Doc fixes.
23139 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
23141 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23142 if w32_parse_hot_key returned nil.
23144 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23146 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23148 2007-11-09 Jason Rumney <jasonr@gnu.org>
23150 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23152 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23154 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23155 Remove W32_SCROLL_BAR_CLICK_EVENT.
23157 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23158 Add MULTIMEDIA_KEY_EVENT.
23160 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23161 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23162 (make_lispy_event) [WINDOWSNT]: Use it to translate
23163 MULTIMEDIA_KEY_EVENT.
23165 * w32term.h (WM_APPCOMMAND): Define if not already.
23166 (GET_APPCOMMAND_LPARAM): Likewise.
23168 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23171 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23172 (syms_of_w32fns): Export and initialize it.
23173 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23175 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
23177 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23180 * xdisp.c (handle_face_prop): Fix last change.
23182 2007-11-09 Richard Stallman <rms@gnu.org>
23184 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23185 not just for after-strings and before-strings.
23186 Call face_for_overlay_string and pass the overlay to it.
23187 (handle_display_prop): Determine whether property came from an overlay.
23188 Pass OVERLAY arg to handle_single_display_spec.
23189 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23190 (load_overlay_strings): Fill in it->string_overlays.
23191 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23193 * xfaces.c (face_for_overlay_string): Function renamed from
23194 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23196 * dispextern.h (struct it): New elt string_overlays.
23197 New elt from_overlay, also in stack.
23198 Rearrange a few elements.
23199 (face_for_overlay_string): Decl renamed from
23200 face_at_buffer_position_no_overlays, and add argument.
23202 2007-11-09 Richard Stallman <rms@gnu.org>
23204 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23205 to get the base face for an overlay string.
23207 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23209 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23211 * xdisp.c (handle_stop): Move some code out of loop.
23213 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23215 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23216 Fix conversion from Lisp object to ATSUFontID.
23218 2007-11-09 Jason Rumney <jasonr@gnu.org>
23220 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23222 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23224 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23225 Don't assume regions are aligned to page boundary.
23226 (print_load_command_name): Add LC_UUID if defined.
23228 2007-11-09 Richard Stallman <rms@gnu.org>
23230 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23232 2007-11-07 Jason Rumney <jasonr@gnu.org>
23234 * s/windows95.h: Remove.
23236 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23238 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23239 abort with a message on unhandled store_type values.
23241 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23243 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23244 Remove HAVE_X11R5 and HAVE_X11R4.
23246 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23248 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23250 2007-11-01 Johan Bockgård <bojohan@gnu.org>
23252 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23253 Don't set s->stippled_p here, since it has already been set by
23254 x_set_glyph_string_gc from x_draw_glyph_string.
23256 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23258 * sunfns.c: Remove file.
23262 * m/sparc.h: Remove Sun windows code.
23264 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23266 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23267 (init_keyboard): Set current_kboard's window-system to nil.
23268 (tty_read_avail_input): Typo.
23269 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23271 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23278 * Makefile.in: Remove all mentions of X10.
23280 * dispnew.c (syms_of_display): Don't mention version 10.
23282 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
23284 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23285 ($(BLD)/abbrev.$(O)): Remove.
23287 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23289 Rewrite abbrev.c in Elisp.
23290 * image.c (Qcount): Don't declare as extern.
23291 (syms_of_image): Initialize and staticpro `Qcount'.
23292 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23293 * emacs.c (main): Don't call syms_of_abbrev.
23294 * Makefile.in (obj): Remove abbrev.o.
23295 (abbrev.o): Remove.
23296 * abbrev.c: Remove.
23298 2007-10-26 Martin Rudalics <rudalics@gmx.at>
23300 * window.c (window_min_size_2): Don't count header-line.
23302 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23304 * frame.h (struct frame): Move all bit fields after the first bit
23305 field to take advantage of the available space. Group all the
23306 chars together to reduce wasted space due to padding.
23308 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
23310 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23312 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23313 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23314 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23315 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23316 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23317 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23318 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23319 (last_marked, mark_object_loop_halt): Make static.
23321 * frame.c (syms_of_frame) <delete-frame-functions>:
23322 Fix typo in docstring.
23324 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
23326 * w32.c (init_environment): Fix tiny memory leak.
23327 (w32_get_resource): Remove unused variable `ok'.
23329 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23331 Make `window-system' into a keyboard-local variable (rather than
23332 frame-local as done originally by multi-tty).
23334 * keyboard.h (struct kboard): Add Vwindow_system.
23335 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23336 (mark_kboards): Mark Vwindow_system.
23338 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23339 (init_display): Don't set the obsolete `window-system' frame-param.
23341 * xterm.c (x_term_init):
23342 * w32term.c (w32_create_terminal):
23343 * term.c (init_tty): Set Vwindow_system.
23344 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23345 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23347 * xfns.c (Fx_create_frame, x_create_tip_frame):
23348 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23349 * macfns.c (Fx_create_frame):
23350 Don't set the obsolete `window-system' frame-param.
23352 * frame.h (Qwindow_system): Remove.
23353 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23354 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23356 2007-10-24 Richard Stallman <rms@gnu.org>
23358 * frame.c (x_figure_window_size): For fullscreen case,
23359 set USPosition | PPosition without clobbering rest of window_prompting.
23361 * keyboard.c (Fcurrent_idle_time): Doc fix.
23363 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23365 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23367 * process.c (unwind_request_sigio): Only define if __ultrix__.
23369 * callproc.c (child_setup): Remove spurious *.
23371 * lisp.h (Fget_text_property): Declare.
23372 (have_menus_p): Declare it here rather than in sys-dep header files.
23373 * macterm.h (have_menus_p):
23374 * msdos.h (have_menus_p):
23375 * xterm.h (have_menus_p): Remove.
23377 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23378 (Fmake_variable_frame_local): Just check the variable's const-ness
23379 rather than checking nil or t.
23381 2007-10-22 Jason Rumney <jasonr@gnu.org>
23383 * w32fns.c: Include math.h.
23384 (w32_abort): Declaration moved to nt/config.nt.
23386 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23387 (abort): Redefinition moved to nt/config.nt.
23389 * m/windowsnt.h: Remove.
23391 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
23393 * emacs.c (Fdump_emacs): Fix typo in message.
23394 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23395 <installation-directory>: Reflow docstring.
23397 2007-10-22 Juri Linkov <juri@jurta.org>
23399 * minibuf.c: Allow minibuffer default to be a list of default values.
23400 With empty input use the first element of this list as returned default.
23402 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23403 (read_minibuf): If defalt is cons, set histstring to its car.
23404 (Fread_string): If default_value is cons, set val to its car.
23405 (Fread_buffer): If def is cons, use its car.
23406 (Fcompleting_read): If defalt is cons, set val to its car.
23408 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
23410 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23412 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
23414 * doc.c (Fdocumentation): Check for advice in all cases.
23416 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
23418 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23420 2007-10-19 Richard Stallman <rms@gnu.org>
23422 * doc.c (Fdocumentation): Check for and handle an advised function.
23424 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
23426 * process.c (Fset_process_filter): Doc fix.
23428 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23430 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23431 which caused key-translation-map to applied repeatedly (thus breaking
23434 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23436 * xselect.c (x_own_selection, x_handle_selection_clear)
23437 (x_clear_frame_selections):
23438 * w32menu.c (list_of_panes, list_of_items):
23439 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23440 * textprop.c (validate_plist, interval_has_all_properties)
23441 (interval_has_some_properties, interval_has_some_properties_list)
23442 (add_properties, text_property_list):
23443 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23444 * minibuf.c (Fassoc_string):
23445 * macselect.c (x_own_selection, x_clear_frame_selections)
23446 (Fx_disown_selection_internal):
23447 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23448 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23450 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
23452 * process.c: Link to libs for calling res_init() if available.
23453 (Fmake_network_process): Call res_init() before getaddrinfo or
23454 gethostbyname, if possible.
23456 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23458 * lread.c (read1): Set pvectype for char_tables.
23460 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23461 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23463 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23465 * alloc.c (free_misc): Use XMISCTYPE.
23466 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23468 2007-10-17 Glenn Morris <rgm@gnu.org>
23470 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23471 (syms_of_minibuf): Add Qcompletion_ignore_case.
23472 * dired.c (Qcompletion_ignore_case): Change to external.
23473 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23474 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23475 (Fread_file_name): Use it rather than intern'ing.
23477 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23478 (Fread_coding_system): Ignore case of user input.
23480 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23482 * xdisp.c (handle_display_prop): Ignore display specs after
23483 replacing one when string text is being replaced.
23484 (handle_single_display_spec): Pretend as if characters with display
23485 property haven't been consumed only when buffer text is being replaced.
23487 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23489 * xfns.c (Fx_create_frame, Fx_display_list):
23490 * window.c (window_fixed_size_p, enlarge_window)
23491 (shrink_window_lowest_first):
23492 * macterm.c (init_font_name_table):
23493 * macfns.c (Fx_create_frame, Fx_display_list):
23494 * lread.c (close_load_descs):
23495 * keyboard.c (read_char_x_menu_prompt):
23496 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23497 * coding.c (code_convert_region_unwind): Test the type of an object
23498 rather than just !NILP before extracting data from it.
23500 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23502 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23503 (XMISCANY): New macro.
23504 (XMISCTYPE): Use it.
23505 (struct Lisp_Misc_Any): New type.
23506 (union Lisp_Misc): Use it.
23507 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23508 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23509 (find_symbol_value, set_internal, default_value, Fset_default)
23510 (Fmake_variable_buffer_local, Fmake_local_variable)
23511 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23512 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23513 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23514 * alloc.c (allocate_buffer): Set the size and tag.
23515 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23517 (die): Follow the GNU convention for error messages.
23518 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23519 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23521 (set_buffer_internal_1):
23522 * frame.c (store_frame_param):
23523 * eval.c (specbind):
23524 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23526 * doc.c (Fsnarf_documentation): Simplify.
23528 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23530 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23531 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23533 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23535 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23537 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23539 * eval.c (do_autoload): Don't save autoloads.
23541 * data.c (Ffset): Save autoload of the function being set.
23543 2007-10-07 John Paul Wallington <jpw@pobox.com>
23545 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23546 parameter before setting up faces.
23548 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23550 * ccl.c (Fregister_code_conversion_map):
23551 * keyboard.c (append_tool_bar_item): Reformat last change.
23553 * lisp.h (eabs): Rename from `abs'. All callers changed.
23555 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23557 * buffer.c (add_overlay_mod_hooklist):
23558 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23559 * fontset.c (make_fontset):
23560 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23561 (append_tool_bar_item):
23562 * macmenu.c (grow_menu_items):
23563 * w32menu.c (grow_menu_items):
23564 * xmenu.c (grow_menu_items): Use larger_vector.
23566 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23568 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23569 selected frame'' on MSDOS).
23571 2007-10-12 Martin Rudalics <rudalics@gmx.at>
23573 * frame.c (Qexplicit_name): New variable.
23574 (x_report_frame_params): Report it in parameter alist.
23575 (syms_of_frame): Intern and staticpro it.
23577 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23579 * macfns.c (x_create_tip_frame): Set terminal for frame.
23581 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23583 * frame.c (Qenvironment): Remove.
23584 (syms_of_frame) <Qenvironment>: Don't initialize.
23585 (Fdelete_frame): Don't treat the `environment' param specially.
23586 * frame.h (Qenvironment): Don't declare.
23587 * callproc.c (set_initial_environment): Don't set unused frame param.
23589 * frame.c (Fframe_with_environment): Remove.
23590 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23592 * lisp.h (Fframe_with_environment): Don't declare.
23594 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
23596 * indent.c (indent_tabs_mode, last_known_column)
23597 (last_known_column_modified): Make static.
23598 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23600 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23602 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23604 2007-10-09 Jason Rumney <jasonr@gnu.org>
23606 * w32term.c (x_set_window_size): Disable code that attempts to tell
23607 Lisp code about a size change before it actually happens.
23609 2007-10-09 Richard Stallman <rms@gnu.org>
23611 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23612 return HANDLED_RETURN.
23614 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23616 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23617 when there's an unread command event.
23619 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23620 window autoselection act appropriately when leaving selected frame.
23621 (syms_of_frame): Initialize focus_follows_mouse.
23622 * frame.h (focus_follows_mouse): Extern it.
23623 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23624 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23625 * msdos.c (dos_rawgetc): Likewise.
23626 * w32term.c (w32_read_socket): Likewise.
23627 * xterm.c (handle_one_xevent): Likewise.
23628 * xdisp.c (syms_of_xdisp): In doc-string of
23629 mouse-autoselect-window mention focus-follows-mouse.
23631 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23633 * macterm.c (mac_load_query_font): Fix missing return value.
23634 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23637 2007-10-08 Richard Stallman <rms@gnu.org>
23639 * xdisp.c (get_window_cursor_type): Implement documented behavior
23640 for cursor-in-non-selected-windows = t.
23642 2007-10-08 Jason Rumney <jasonr@gnu.org>
23644 * w32.c (w32_get_resource): Always close registry keys.
23646 2007-10-08 Jason Rumney <jasonr@gnu.org>
23648 * makefile.w32-in (LIBS): Add COMCTL32.
23650 * w32fns.c (globals_of_w32fns): Init common controls.
23652 2007-10-08 Richard Stallman <rms@gnu.org>
23654 * image.c (our_memory_buffer): Rename from omfib_buffer.
23656 2007-10-08 Richard Stallman <rms@gnu.org>
23658 * buffer.c (Foverlays_at): Doc fix.
23660 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23662 * fns.c (Fplist_put): Preserve uneven tail data.
23664 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23666 * termhooks.h (enum event_kind): Remove trailing comma.
23668 * frame.h (enum): Remove trailing comma.
23670 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23672 * w32proc.c (delete_child): Don't terminate threads of zombies.
23674 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23676 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23678 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23679 last-repeatable-command.
23680 (init_kboard): Initialize Vlast_repeatable_command.
23681 (command_loop_1): Set it to real_this_command unless that was
23682 bound to an input event.
23683 (mark_kboards): Mark it.
23685 2007-10-08 Richard Stallman <rms@gnu.org>
23687 * eval.c (condition-case): Doc fix.
23689 2007-10-08 Masatake YAMATO <jet@gyve.org>
23691 * xfaces.c (tty_supports_face_attributes_p): Fix code
23692 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23693 was copied and not edited.
23695 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23697 Add new `input-decode-map' keymap and use it for terminal
23699 * keyboard.h (struct kboard): Add Vinput_decode_map.
23700 Remove Vlocal_key_translation_map.
23701 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23702 (init_kboard): Init input-decode-map.
23703 Replace local-key-translation-map back with key-translation-map.
23704 (syms_of_keyboard): Declare input-decode-map.
23705 Remove local-key-translation-map. Update docstrings.
23706 (mark_kboards): Mark Vinput_decode_map.
23707 Don't mark Vlocal_key_translation_map.
23708 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23709 Replace local-key-translation-map back with key-translation-map.
23710 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23711 Bind in input-decode-map rather than function-key-map.
23713 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23714 This was made redundant by the previous introduction of XSETPVECTYPE.
23716 2007-10-09 Richard Stallman <rms@gnu.org>
23718 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23720 2007-09-29 Richard Stallman <rms@gnu.org>
23722 * eval.c (internal_condition_case_2, internal_condition_case_1)
23723 (internal_condition_case): Reenable abort if x_catching_errors ()
23724 to see if that really happens and why.
23726 2007-10-06 Andreas Schwab <schwab@suse.de>
23728 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23730 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
23732 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23734 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23736 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23738 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23740 * window.h (struct window):
23741 * window.c (struct save_window_data, struct saved_window):
23742 * termhooks.h (struct terminal):
23743 * process.h (struct Lisp_Process):
23744 * frame.h (struct frame):
23745 * buffer.h (struct buffer):
23746 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23747 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23748 The size field of (pseudo)vectors is now unsigned.
23749 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23751 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23752 Turn `count' into an integer.
23754 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23755 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23756 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23757 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23758 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23760 * alloc.c (allocate_pseudovector): New fun.
23761 (ALLOCATE_PSEUDOVECTOR): New macro.
23762 (allocate_window, allocate_terminal, allocate_frame)
23763 (allocate_process): Use it.
23764 (mark_vectorlike): New function.
23765 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23766 (mark_terminals): Use it.
23767 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23768 (Fmake_byte_code): Use XSETPVECTYPE.
23770 * frame.c (Fframe_parameters): Minor simplification.
23772 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23774 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23776 * buffer.c (Fget_buffer_create, init_buffer_once):
23777 * lread.c (defsubr):
23778 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23780 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23781 defined differently in the m/*.h files.
23782 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23783 (XSETPVECTYPE): New macro.
23784 (XSETPSEUDOVECTOR): Use it.
23786 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23787 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23789 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23790 * lread.c (defvar_per_buffer):
23791 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23793 * window.c (candidate_window_p): Only consider as visible frames that
23794 are on the same terminal.
23796 * m/ibms390x.h (MARKBIT): Remove unused macro.
23798 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
23800 * lread.c (Fload): Fix typo in docstring.
23802 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23804 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23805 of a non-zero value can't yield zero.
23807 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23809 * term.c (term_clear_mouse_face, term_mouse_highlight)
23810 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23812 * print.c (safe_debug_print): Use XHASH.
23814 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23815 Lisp elements such as tags.
23816 (XHASH): New macro.
23818 (SREF, SSET, STRING_COPYIN): Use SDATA.
23819 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23821 * alloc.c (mark_terminal): Remove left-over declaration.
23822 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23823 (allocate_vectorlike): Remove type argument. Adjust callers.
23824 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23825 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23827 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23828 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23829 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23830 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23831 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23834 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23835 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23836 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23838 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23840 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23843 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23845 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23847 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23849 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23851 (handle_one_term_event): Use Gpm_DrawPointer.
23852 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23853 Signal errors instead of returning nil. Always return nil.
23854 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23855 Make it a noop if gpm-mouse was not activated.
23856 (syms_of_term): Update names.
23858 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23860 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23861 (init_sys_modes): Check that gpm_tty is the current tty.
23863 * alloc.c (allocate_terminal): Set the vector size to only count the
23864 lisp fields. Initialize those to nil.
23865 (mark_object): Don't treat terminals specially.
23866 (mark_terminal): Remove.
23867 (mark_terminals): Use mark_object instead.
23869 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23870 the GC to the beginning.
23873 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23875 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23877 2007-09-25 Jason Rumney <jasonr@gnu.org>
23879 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23881 * w32console.c (create_w32cons_output): Remove.
23883 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23885 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23886 (reset_sys_modes): Use reset_terminal_modes_hook.
23888 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23890 * eval.c (do_autoload): Don't output any message.
23892 2007-09-24 Juri Linkov <juri@jurta.org>
23894 * emacs.c (standard_args): Change priority of "--no-splash"
23895 from 40 to 3. Add "--no-desktop" with the same priority.
23897 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23899 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23900 and optimize the case where they are all 1.
23902 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
23904 * lisp.h (abs): Define if not defined.
23905 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23906 Don't define `abs', since it's defined in lisp.h.
23908 2007-09-22 Eli Zaretskii <eliz@gnu.org>
23910 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23911 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23912 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23913 (init_tty): Use DEV_TTY instead of "/dev/tty".
23914 [WINDOWSNT]: No need to protect from NAME arg being null.
23916 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23918 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23921 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23923 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23924 (gpm_tty): Change its type.
23925 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23926 (gpm_tty): Change its type and initialize it.
23927 (Fterm_open_connection): Check the frame is indeed a tty.
23928 Use the new gpm_tty.
23929 (Fterm_close_connection): Use the new gpm_tty.
23930 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23931 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23933 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
23935 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23936 underline_color, to draw strike-through.
23938 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23940 * lisp.h (allocate_terminal): Declare.
23942 * window.c (candidate_window_p): Consider frames that are being placed
23943 by the user as somewhere between visible and iconified.
23944 (window_loop): Prefer windows on the current frame.
23945 (Fselect_window): Move the use of select-frame to the beginning so we
23946 can just delegate all the work (it'll call us back anyway).
23948 * frame.c (Qdisplay_environment_variable):
23949 * frame.h (Qdisplay_environment_variable): Delete.
23951 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23952 of the first arg, since that value may be a union.
23954 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23955 parameter rather than Qdisplay_environment_variable. If all else
23956 fails, look for DISPLAY in initial-environment.
23958 2007-09-21 Glenn Morris <rgm@gnu.org>
23960 * Makefile.in (emacstool): Remove target.
23961 (lisp, shortlisp): Remove termdev.elc.
23963 2007-09-21 Markus Triska <markus.triska@gmx.at>
23965 * xterm.c (x_delete_display): Compile session management conditionally.
23967 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23969 * callproc.c (getenv_internal_1): New function.
23970 (getenv_internal): Use it.
23971 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23973 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23974 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23975 (Fset_terminal_parameter): Work with dead terminals as well.
23976 (Fmodify_terminal_parameters): Remove.
23978 * terminal.c (get_terminal): Handle terminals.
23979 Make sure the terminal returned is live.
23980 (create_terminal): Use allocate_terminal.
23981 (mark_terminals): Move to alloc.c.
23982 (delete_terminal): Use terminal->name as liveness status.
23983 NULL out fields after freeing their contents.
23984 Don't deallocate the object.
23985 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23986 rather than an int.
23987 (Fterminal_live_p): Accept non-integer arguments.
23988 (Fterminal_list): Return terminal objects rather than an ints.
23990 * alloc.c (enum mem_type): New member for `terminal' objects.
23991 (allocate_terminal): New function.
23992 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23994 (mark_terminal): New fun.
23995 (mark_terminals): Move from terminal.c.
23997 * term.c (get_tty_terminal): Don't treat output_initial specially.
23998 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23999 (delete_tty): Use terminal->name as liveness status.
24001 * termhooks.h (struct terminal): Make it into a pseudovector.
24002 Remove `deleted' replaced by checking `name's nullness.
24004 * print.c (print_object): Handle terminals.
24006 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24007 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24009 * frame.c (make_terminal_frame):
24010 * keyboard.c (tty_read_avail_input):
24011 * w32term.c (x_delete_terminal):
24012 * xfns.c (Fx_create_frame, x_create_tip_frame):
24013 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24015 2007-09-20 Glenn Morris <rgm@gnu.org>
24017 * process.c (Fmake_network_process): Doc fix.
24019 2007-09-19 Jason Rumney <jasonr@gnu.org>
24021 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24023 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24025 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24026 Fix a C warning regarding variable constness.
24028 * xterm.c (handle_one_xevent): Fix a C warning.
24030 2007-09-18 Jason Rumney <jasonr@gnu.org>
24032 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24034 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24036 * gtkutil.c (gdpy_def): New variable.
24037 (xg_initialize): Initialize gdpy_def.
24038 (xg_display_close): If no other display exists, set gdpy_def to a
24041 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24043 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24044 when we have no file name for the icon.
24045 (xg_tool_bar_expose_callback): Remove.
24046 (xg_create_tool_bar): Don't connect expose signal to
24047 xg_tool_bar_expose_callback.
24048 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24050 2007-09-16 Andreas Schwab <schwab@suse.de>
24052 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24053 values instead of zapping them.
24055 2007-09-14 Glenn Morris <rgm@gnu.org>
24057 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24058 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24059 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24060 scope and rename to omfib_buffer for clarity.
24061 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24063 2007-09-14 Kenichi Handa <handa@m17n.org>
24065 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24067 2007-09-13 Jason Rumney <jasonr@gnu.org>
24069 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24071 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24073 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24074 (mac_term_init): Call here instead, passing rif.
24076 2007-09-13 Glenn Morris <rgm@gnu.org>
24078 * s/hpux.h: No longer define `static' as nothing.
24080 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24082 * callint.c (Fcall_interactively): Remove unused var `fun'.
24084 2007-09-12 Romain Francoise <romain@orebokech.com>
24086 * window.c (prefer_window_split_horizontally, display_buffer):
24087 Revert 2007-09-08 change.
24089 2007-09-12 Glenn Morris <rgm@gnu.org>
24091 * alloca.c: Remove file.
24092 * Makefile.in (alloca): Do not undef.
24093 (allocaobj, alloca.o): Remove.
24094 (otherobj): Remove allocaobj.
24095 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24096 * regex.c (C_ALLOCA): Remove all references and code that was only
24097 used when this was defined.
24098 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24099 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24100 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24102 * Makefile.in (SOURCES, unlock, relock): Delete.
24104 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24105 (menu_grab_callback): All uses changed.
24107 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24108 (x_reply_selection_request): All uses changed.
24110 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24112 * lread.c (load_warn_old_style_backquotes): Change message to look
24113 better when it appears in the middle of byte-compiler messages.
24115 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24117 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24119 * xterm.c (x_create_terminal): Add comment.
24121 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24123 2007-09-10 Richard Stallman <rms@gnu.org>
24125 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24127 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24129 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24130 (DEFUN): Document `intspec', use it instead of `prompt'.
24132 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24134 * data.c (Finteractive_form): If the interactive specification starts
24135 with a `(', use it as a Lisp form.
24137 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24138 name and file modes.
24140 * callint.c (Fcall_interactively): Comment fixes.
24142 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24144 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24145 and compiled functions.
24147 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24149 * window.c (prefer_window_split_horizontally): New variable.
24150 (display_buffer): Consider splitting window horizontally depending
24151 on prefer_window_split_horizontally.
24153 2007-09-08 Eli Zaretskii <eliz@gnu.org>
24155 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24157 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24159 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24161 * frame.c (x_set_frame_parameters): Check number is positive before
24164 * window.c (freeze_window_start): Don't presume selected_window holds
24166 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24168 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24170 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24172 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24174 * window.c (Vsplit_window_preferred_function): New var.
24175 (Fdisplay_buffer): Use it.
24176 (syms_of_window): Export, and initialize it.
24178 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24180 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24182 2007-09-06 Glenn Morris <rgm@gnu.org>
24184 * gtkutil.c (menu_grab_callback) <cnt>:
24185 * xselect.c (x_reply_selection_request) <cnt>: Move static
24186 variable to file scope.
24188 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24190 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24191 consistent values of selected_frame and selected_window.
24193 2007-09-04 Jason Rumney <jasonr@gnu.org>
24195 * w32console.c (initialize_w32_display): Zero unused hooks.
24197 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24199 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24200 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24202 2007-09-04 Jason Rumney <jasonr@gnu.org>
24204 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24205 in w32console.c. Set up input. Remove XXX comments that have been
24206 confirmed as correct.
24208 * s/ms-w32.h (MULTI_KBOARD): Define.
24210 * w32console.c (one_and_only_w32cons): Remove.
24211 (initialize_w32_display): Take terminal argument.
24213 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24214 initialize_w32_display.
24215 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24217 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24219 * keyboard.c (discard_mouse_events): Discard it.
24220 (make_lispy_event): Translate it to a lisp event.
24221 (lispy_wheel_names): Add wheel-left and right events.
24222 (syms_of_keyboard): Enlarge wheel_syms.
24224 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24225 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24227 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24229 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24230 from WM_MOUSEHWHEEL.
24231 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24233 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24236 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24237 keyboard for the terminal.
24239 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24241 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24242 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24243 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24244 and resume-tty-function to resume-tty-hook.
24245 (Fsuspend_tty, Fresume_tty): Use new names.
24247 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24249 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24250 if it starts with "n:".
24252 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24254 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24256 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24259 * frame.c (Qterm_environment_variable): Remove.
24260 (syms_of_frame): Don't init and staticpro it.
24262 * callproc.c (getenv_internal): Remove special case for $TERM.
24264 * callproc.c (Vinitial_environment): New variable.
24265 (set_initial_environment): Initialize it.
24266 (syms_of_callproc): Declare it.
24267 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24268 TERM under which a process runs is never related to the TERM in which
24271 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24273 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24274 * s/darwin.h: ... do it here.
24276 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24278 * lisp.h (set_initial_environment): Rename from set_global_environment.
24280 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24281 removed by mistake on the multi-tty branch.
24283 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24284 (Fmodify_frame_parameters): Return a value.
24286 * image.c (png_load): Comment-out var only used in commented-out code.
24288 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24289 before passing it to mark_object.
24291 * xfaces.c (internal_resolve_face_name): Return a value.
24292 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24294 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24295 (x_icon): Comment-out var only used in commented-out code.
24297 2007-08-29 Romain Francoise <romain@orebokech.com>
24299 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24300 QUIT hasn't been provided.
24302 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24304 * callproc.c (child_setup, getenv_internal): Use the
24305 display-environment-variable and term-environment-variable frame params.
24306 (set_initial_environment): Initialise Vprocess_environment.
24308 * config.in: Disable multi-keyboard support on a mac.
24310 * frame.c (Qterm_environment_variable)
24311 (Qdisplay_environment_variable): New variables.
24312 (syms_of_frame): Intern and staticpro them.
24313 (Fmake_terminal_frame): Disable output method test.
24315 * frame.h: Declare them here.
24317 * macfns.c (x_set_mouse_color): Get rif from the frame.
24318 (x_set_tool_bar_lines): Don't use updating_frame.
24319 (mac_window): Add 2 new parameters for consistency with other systems.
24320 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24321 frame parameters following what is done in X11 and w32. Don't use
24322 FRAME_MAC_DISPLAY_INFO.
24323 (Fx_open_connection, start_hourglass): Remove window-system check.
24324 (x_create_tip_frame): Get the keyboard from the terminal.
24326 * macmenu.c: Reorder includes.
24327 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24329 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24330 terminal parameter.
24331 (x_clear_frame): Add a frame parameter.
24332 (note_mouse_movement): Get rif from the frame.
24333 (mac_term_init): Initialize the terminal.
24334 (mac_initialize): Make static and move terminal initialization ...
24335 (mac_create_terminal): ... to this new function.
24337 * macterm.h (struct mac_display_info): Add terminal.
24338 (mac_initialize): Delete declaration.
24340 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24342 * sysdep.c: Comment out text after #endif.
24344 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24345 is defined. Better initialize ttys in windows. Use terminal
24346 specific mouse_position_hook.
24348 * termhooks.h (union display_info): Add mac_display_info.
24350 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24351 Set the default minibuffer frame, window_system and the rest of the
24352 frame parameters following what is done in X11.
24354 * w32term.c (w32_initialize): Make static.
24356 * xselect.c (x_handle_selection_clear): Only access
24357 terminal->kboard when MULTI_KBOARD is defined.
24359 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24360 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24362 2007-08-29 Jason Rumney <jasonr@gnu.org>
24364 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24365 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24367 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24368 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24370 * keyboard.c (restore_kboard_configuration): Only define when
24371 MULTI_KBOARD defined.
24373 * makefile.w32-in: Update dependancies from Makefile.in.
24374 (OBJ1): Add terminal.$(O)
24376 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24377 Don't define function body.
24378 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24380 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24382 * w32.c (request_sigio, unrequest_sigio): Remove.
24384 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24385 (w32con_clear_frame, w32con_clear_end_of_line)
24386 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24387 (w32con_delete_glyphs, w32con_set_terminal_window)
24388 (scroll_line, w32_sys_ring_bell): Add frame arg.
24389 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24391 (PICK_FRAME): Remove.
24392 (w32con_write_glyphs): Use frame specific terminal coding.
24393 (one_and_only_w32cons): New global variable.
24394 (initialize_w32_display): Use it for storing hooks.
24395 (create_w32cons_output): New function.
24397 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24400 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24402 (x_set_tool_bar_lines): Don't use updating_frame.
24403 (Fx_create_frame): Set terminal and ref count.
24404 (Fx_open_connection): Remove window-system check.
24406 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24408 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24409 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24410 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24412 (x_delete_terminal, w32_create_terminal): New functions.
24413 (w32_term_init): Create a terminal.
24414 (w32_initialize): Move terminal specific initialization to
24415 w32_create_terminal.
24417 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24418 (w32_clear_rect, w32_clear_area): Use background from frame.
24419 (w32_display_info): Add terminal.
24420 (w32_sys_ring_bell, x_delete_display): Declare here.
24422 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24424 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24426 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24428 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24429 Fix get_named_tty calls for the controlling tty.
24431 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24433 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
24435 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24437 * term.c (tty_insert_glyphs): Add missing first parameter.
24439 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24441 * buffer.c (Fbuffer_list, Fbury_buffer):
24442 Take frame->buried_buffer_list into account.
24444 * cm.c (current_tty): New variable, for cmputc().
24446 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24447 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24448 (cmgoto): Add tty parameter. Pass it on to calccost().
24449 Use emacs_tputs() instead of tputs().
24451 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24453 (current_tty): New variable, for cmputc().
24454 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24456 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24457 (internal_condition_case, internal_condition_case_1)
24458 (internal_condition_case_2): Don't abort when x_catching_errors.
24460 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24461 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24462 prevent crashes caused by bogus longjmps in read_char.
24464 * keymap.h (Fset_keymap_parent): Add EXFUN.
24466 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24467 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24468 Remove redundant definition.
24470 * macfns.c (x_set_mouse_color, x_make_gc):
24471 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24473 * w32term.c (x_free_frame_resources):
24474 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24475 (w32_initialize): Use the accessor macros for terminal characteristics.
24477 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24478 Use the accessor macros for terminal characteristics.
24479 * msdos.c (internal_terminal_init): Use the accessor macros for
24480 terminal characteristics.
24481 (ScreenVisualBell, internal_terminal_init):
24482 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24484 * termopts.h (no_redraw_on_reenter): Declare.
24486 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24487 (mark_terminals, mark_ttys): Declare.
24488 (Fgarbage_collect): Call them.
24489 (mark_object): Mark buried_buffer_list.
24491 * prefix-args.c: Include stdlib.h for exit.
24493 * syssignal.h: Add comment.
24495 * indent.c: Include stdio.h.
24497 * window.h (Vinitial_window_system): Declare.
24498 (Vwindow_system): Delete declaration.
24500 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24502 * image.c (lookup_image): Don't initialize `c' until the xasserts
24505 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24506 FRAME_FOREGROUND_PIXEL.
24508 * print.c (print_preprocess): Don't lose print_depth levels while
24511 * widget.c (update_from_various_frame_slots):
24512 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24514 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24516 (window_internal_height): Remove bogus make_number call.
24517 (init_window_once): Call make_terminal_frame with two zero parameters.
24519 * fileio.c (Fread_file_name): Update comment.
24521 * callint.c (Fcall_interactively):
24522 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24523 Make sure it is correctly unwound.
24525 * xsmfns.c (x_session_close): New function.
24527 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24528 Delete declarations.
24530 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24531 (x_output): Remove background_pixel and foreground_pixel fields.
24532 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24533 (x_delete_device, x_session_close): Declare.
24535 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24536 (read_filtered_event): Call `read_char' with a local
24537 `wrong_kboard_jmpbuf'.
24539 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24540 Don't call single_kboard_state. Use FRAME_RIF.
24542 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24545 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24546 (Fframe_with_environment, Fset_input_meta_mode)
24547 (Fset_quit_char): EXFUN.
24548 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24549 (init_sys_modes, reset_sys_modes): Update prototypes.
24550 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24552 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24553 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24554 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24555 Delete declarations.
24556 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24557 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24560 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24561 already does that during init_display(). Call syms_of_keymap
24562 before syms_of_keyboard. Call `syms_of_terminal'.
24563 Call set_initial_environment, not set_process_environment.
24564 (shut_down_emacs): Call reset_all_sys_modes() instead of
24567 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24568 (internal_resolve_face_name, resolve_face_name_error): New functions.
24569 (resolve_face_name): Protect against loops and errors thrown by Fget.
24570 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24571 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24573 * scroll.c: Replace CURTTY() with local variables throughout the
24574 file (where applicable).
24575 (calculate_scrolling, calculate_direct_scrolling)
24576 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24579 * keymap.c (Vfunction_key_map): Remove.
24580 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24581 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24582 (Vkey_translation_map): Remove.
24583 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24584 (Fdescribe_buffer_bindings)
24585 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24586 Update for terminal-local key-translation-map.
24588 * Makefile.in (callproc.o): Update dependencies.
24589 (lisp, shortlisp): Add termdev.elc.
24590 (obj): Add terminal.o.
24591 (terminal.o): Add dependencies.
24592 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24593 (data.o, fns.o): Add termhooks.h dependency.
24594 (SOME_MACHINE_LISP): Add dnd.elc.
24595 (minibuf.o): Fix typo.
24596 Update dependencies.
24598 * data.c (do_symval_forwarding, store_symval_forwarding)
24599 (find_symbol_value): Use the selected frame's keyboard, not
24602 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24605 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24607 (syms_of_xmenu): Update defsubr.
24608 (mouse_position_for_popup, Fx_popup_menu)
24609 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24610 (set_frame_menubar, free_frame_menubar)
24611 (create_and_show_popup_menu, xmenu_show)
24612 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24615 * xselect.c (x_own_selection): Abort if not an X frame.
24616 (some_frame_on_display): Check if it is an X frame.
24617 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24619 * coding.c: Include frame.h and termhooks.h.
24620 (terminal_coding, keyboard_coding): Delete.
24621 (Fset_terminal_coding_system_internal)
24622 (Fset_keyboard_coding_system_internal)
24623 (Fkeyboard_coding_system)
24624 (Fterminal_coding_system): Add a terminal parameter.
24625 Get terminal_coding from the terminal.
24626 (init_coding_once): Don't call setup_coding_system here.
24628 * dispextern.h (set_scroll_region, turn_off_insert)
24629 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24630 (tty_clear_end_of_line, tty_setup_colors)
24631 (delete_tty, updating_frame)
24632 (produce_special_glyphs, produce_glyphs, write_glyphs)
24633 (insert_glyphs): Remove.
24634 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24635 (tty_turn_off_highlight, get_tty_size): Add declaration.
24636 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24638 * frame.h (enum output_method): Add output_initial.
24639 (struct x_output): Delete.
24640 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24641 Access foreground_pixel and background_pixel directly from the frame.
24642 (tty_display): Delete.
24643 (struct frame): Add buried_buffer_list, foreground_pixel,
24644 background_pixel and terminal. Delete kboard.
24645 (union output_data): Add tty.
24646 (FRAME_KBOARD): Get the kboard from the terminal.
24647 (FRAME_INITIAL_P): New macro.
24648 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24649 (Qterm_environment_variable, Qdisplay_environment_variable)
24650 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24653 * termchar.h (tty_output, tty_display_info): New structures.
24654 (tty_list): Declare.
24655 (FRAME_TTY, CURTTY): New macros.
24656 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24657 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24658 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24659 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24661 * callproc.c: Include frame.h and termhooks.h, for terminal
24663 (add_env): New function.
24664 (child_setup): Use it.
24665 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24666 (getenv_internal): Fix get_terminal_param call.
24667 (Fgetenv_internal, egetenv): Update doc.
24668 (syms_of_callproc): Initialize Vprocess_environment to nil.
24669 Register and initialize them. Remove obsolete defvars. Update doc
24671 (child_setup): Handle Vlocal_environment_variables.
24672 (getenv_internal): Add terminal parameter.
24673 Handle Vlocal_environment_variables.
24674 (Fgetenv_internal): Add terminal parameter.
24675 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24676 environment in a frame (not terminal) parameter. Update doc strings.
24677 (set_initial_environment): Rename from set_global_environment.
24678 Store Emacs environment in initial frame parameter.
24680 * xdisp.c (redisplay_internal): Update references to
24681 `previous_terminal_frame'.
24682 (display_mode_line, Fformat_mode_line): Replace calls to
24683 `push_frame_kboard' with `push_kboard'.
24684 (get_glyph_string_clip_rects): Add extra parentheses and
24685 braces to prevent compiler warnings.
24686 (calc_pixel_width_or_height): Add xassert to check that the
24687 frame is alive. Don't call `lookup_image' on a termcap frame.
24688 (message2_nolog, message3_nolog, redisplay_internal)
24689 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24690 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24691 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24692 (Fx_display_pixel_width, Fx_display_pixel_height)
24693 (Fx_display_planes, Fx_display_color_cells)
24694 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24695 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24696 (Fx_display_backing_store, Fx_display_visual_class)
24697 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24698 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24700 * xfns.c (x_set_foreground_color x_set_background_color)
24701 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24702 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24703 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24704 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24705 terminal that is being deleted.
24706 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24707 frame parameter, and make sure it overrides any user-supplied setting.
24708 (Fx_close_connection, Fx_synchronize): Unify argument names with
24709 the rest of the DEFUNs.
24711 * dispnew.c (Fsend_string_to_terminal): Update call to
24712 `get_tty_terminal'.
24713 (Fredraw_frame, Fsend_string_to_terminal)
24714 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24715 FRAME_TERMCAP_P and FRAME_TTY.
24716 (window_change_signal): Don't believe width/height values that are
24718 (Vinitial_window_system): Rename from Vwindow_system.
24719 (termscript, Wcm, rif): Delete.
24721 * termhooks.h (struct terminal): New struct containing the
24722 previously global text display hooks and new members NAME,
24723 DELETED and PARAM_ALIST.
24724 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24725 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24726 (FRAME_RIF): New macros.
24727 (get_terminal_param, get_device): New declarations.
24728 (termscript): Delete declaration.
24730 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24731 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24732 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24733 FRAME_FOREGROUND_PIXEL.
24734 (x_fully_uncatch_errors): Disable definition.
24735 (x_scroll_bar_expose): Fix reference to foreground pixel.
24736 (XTread_socket): Disable loop on all X displays.
24737 (x_delete_terminal): Don't set terminal->deleted and let
24738 delete_terminal delete the frames on the terminal.
24739 (x_delete_display): Doc update to reflect changes in
24741 (x_display_info) <terminal>: Move member earlier in the struct.
24742 (deleting_tty): Remove old variable.
24743 (Fsuspend_tty): Call clear_tty_hooks.
24744 (Fresume_tty, init_tty): Call set_tty_hooks.
24745 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24746 errors on X frames.
24747 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24748 (handle_one_xevent): Initialize `f' to NULL.
24749 (x_delete_terminal, x_create_terminal): New functions.
24750 (XTset_terminal_modes, XTreset_terminal_modes)
24751 (XTread_socket, x_connection_closed, x_term_init)
24752 (x_term_init, x_delete_display): Add terminal parameter.
24753 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24756 * frame.c: Include termchar.h.
24757 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24758 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24759 (Qdisplay_environment_variable): New vars.
24760 (Fframep): Deal with output_initial.
24761 (Fframe-live-p): Doc fix.
24762 (Fwindow-system): New function.
24763 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24764 (make_terminal_frame): Don't create frames on a terminal that is
24765 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24766 (store_frame_param): Check for found_for_frame before calling XFRAME.
24767 (Fmake_terminal_frame): Handle NULL tty names correctly.
24768 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24769 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24770 frames to refer to a deleted frame in their 'environment parameter.
24771 (Fframe_with_environment): New function.
24772 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24773 (get_future_frame_param): New function.
24774 (Fmake_terminal_frame): Use it.
24775 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24777 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24778 * sysdep.c (reset_sys_modes): Update for renames.
24780 * keyboard.c (tty_read_avail_input): New function.
24781 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24782 (syms_of_keyboard): Defsubr them.
24783 (Fset_input_meta_mode, Fset_quit_char): New functions.
24784 (Fset_input_mode): Split to above functions.
24785 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24786 parameter. Use it in call to `read_char'.
24787 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24788 Set wrong_kboard_jmpbuf correctly in recursive calls.
24789 Use current_kboard to access Vkeyboard_translate_table.
24790 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24791 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24792 Update longjmp invocations. Remember the original current_kboard,
24793 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24794 changes it. Comment out unnecessary calls to
24795 `record_single_kboard_state' and `any_kboard_state'.
24796 Update recursive calls.
24797 (wrong_kboard_jmpbuf): Remove global variable.
24798 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24799 Handle deleted interrupted_kboards correctly; that is a legal
24800 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24801 and read_char calls. Abort if interrupted_kboard died in read_char.
24802 (any_kboard_state, single_kboard_state)
24803 (push_frame_kboard): Remove function.
24804 (pop_kboard): Switch out of single_kboard mode if the kboard has
24805 been deleted. Remove unused variable. Help debugging by not
24806 changing current_kboard unnecessarily. Set current_kboard to the
24807 kboard of the selected frame when the stored kboard object has
24808 been deleted before pop_kboard.
24809 (temporarily_switch_to_single_kboard): Change first parameter to a
24810 frame pointer. Throw an error when caller wants to change kboards
24811 while in single_kboard mode. Don't push_kboard if we weren't in
24812 single kboard state. Don't pop_kboard if we popped into any
24814 (restore_kboard_configuration): Abort if pop_kboard changed the
24815 kboard in single_kboard mode. Call pop_kboard only after setting
24816 up single_kboard mode.
24817 (Frecursive_edit): Switch to single_kboard mode only in nested
24819 (cmd_error, command_loop, command_loop_1, timer_check):
24820 Comment out unnecessary call to `any_kboard_state' and
24821 `record_single_kboard_state'.
24822 (delete_kboard): Exit single_kboard mode if we have just deleted
24823 that kboard. Use FRAME_KBOARD.
24824 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24825 `fatal_error_signal'.
24826 (record_single_kboard_state): Don't push_kboard if we weren't in
24827 single kboard state. Don't pop_kboard if we popped into any
24829 (push_frame_kboard): Rename to push_kboard.
24830 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24831 (read_avail_input): Read input from all terminals.
24832 (mark_kboards): Also mark Vkeyboard_translate_table.
24833 (kbd_buffer_store_event_hold): Simplify condition.
24834 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24835 (Vkeyboard_translate_table): Move to struct kboard.
24836 (init_kboard): Initialize Vkeyboard_translate_table.
24837 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24838 Vkeyboard_translate_table. Update doc strings. Update docs of
24839 local-function-key-map and function-key-map.
24841 * terminal.c: New file.
24843 * term.c: Include errno.h.
24844 (Vring_bell_function, device_list, initial_device)
24845 (next_device_id, ring_bell, update_begin, update_end)
24846 (set_terminal_window, cursor_to, raw_cursor_to)
24847 (clear_to_end, clear_frame, clear_end_of_line)
24848 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24849 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24850 (syms_of_term): Move their initialization to terminal.c.
24851 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24852 (Ftty_display_color_cells)
24853 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24854 (clear_tty_hooks, set_tty_hooks)
24855 (init_tty, maybe_fatal): New functions.
24856 (Ftty_type): Return nil if terminal is not on a tty instead of
24857 throwing an error. Doc update.
24858 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24859 Doc update. Initialize new subrs and variables.
24860 (delete_tty): Use terminal->deleted.
24861 (tty_set_terminal_modes): Rename from set_terminal_modes.
24862 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24863 (set_scroll_region): Rename to `tty_set_scroll_region'.
24864 (turn_on_insert): Rename to `tty_turn_on_insert'.
24865 (turn_off_insert): Rename to `tty_turn_off_insert'.
24866 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24867 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24868 (toggle_highligh): Rename to `tty_toggle_highlight'.
24869 (background_highlight): Rename to `tty_background_highlight'.
24870 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24871 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24872 (tty_set_scroll_region, tty_background_highlight)
24873 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24874 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24875 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24876 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24877 Add static modifier.
24878 (tty_reset_terminal_modes, tty_set_terminal_window)
24879 (tty_set_scroll_region, tty_background_highlight)
24880 (tty_highlight_if_desired, tty_cursor_to)
24881 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24882 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24883 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24886 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24888 * keyboard.c: Qrtl is new.
24889 (parse_tool_bar_item): Handle :rtl keyword.
24890 (syms_of_keyboard): Intern :rtl keyword.
24892 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24894 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24895 so no Lisp code is executed.
24896 (file_for_image, find_rtl_image): New functions.
24897 (xg_get_image_for_pixmap): Use file_for_image.
24898 (update_frame_tool_bar): If direction is RTL, use RTL image if
24899 defined. Use Gtk stock images if defined.
24901 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24903 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24904 for nonexistent or zero-width glyph in composition glyph.
24906 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24908 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24910 * xdisp.c (Finvisible_p): New function.
24911 (syms_of_xdisp): defsubr it.
24913 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
24915 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24918 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24920 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24922 2007-08-24 Martin Rudalics <rudalics@gmx.at>
24924 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24925 whether decoding has modified buffer contents.
24927 2007-08-24 Jason Rumney <jasonr@gnu.org>
24929 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24930 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24931 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24932 (init_svg_functions) [HAVE_NTGUI]: New function.
24933 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24934 (svg_load_image): Use them.
24935 (svg_load_image) [HAVE_NTGUI]: Implement background.
24937 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24939 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24940 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24941 (LIBX): Remove @RSVG_LIBS@.
24942 (LIBES): Add $(RSVG_LIBS).
24944 * image.c (svg_load_image): Blend with specified background if exists.
24945 Use IMAGE_BACKGROUND. Add Mac OS Support.
24947 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24948 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24950 [MAC_OSX] (socket_callback): Do nothing.
24951 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24953 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24955 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24957 2007-08-22 Glenn Morris <rgm@gnu.org>
24959 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24961 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24963 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24965 * image.c: Add support for SVG images. Some additional comments
24966 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24967 (svg_image_p): New function to test for SVG image.
24968 (svg_load): New function to load SVG image.
24969 (svg_load_image): New function, helper for svg_load.
24970 (Qsvg): New Lisp_object.
24971 (svg_keyword_index): New enum.
24972 (svg_format): New static `image_keyword' struct.
24973 (svg_type): New static `image_type' struct.
24974 (librsvg/rsvg.h): Include it.
24976 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24978 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24980 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24982 * lread.c (Qold_style_backquotes): New var.
24983 (syms_of_lread): Init and staticpro it.
24984 (load_warn_old_style_backquotes): New fun.
24985 (Fload): Use them to warn about old style backquotes.
24986 (end_of_file_error, Fload): Remove unused vars.
24988 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24990 * lread.c (Vold_style_backquotes): New var.
24991 (syms_of_lread): Init and export it to Elisp.
24992 (read1): Set it when we find an old-style (back)quote.
24994 2007-08-22 Jason Rumney <jasonr@gnu.org>
24996 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24998 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25000 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25002 2007-08-19 Richard Stallman <rms@gnu.org>
25004 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25006 2007-08-19 Andreas Schwab <schwab@suse.de>
25008 * alloc.c (pure): Round PURESIZE up.
25010 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25012 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25015 2007-08-16 Richard Stallman <rms@gnu.org>
25017 * eval.c (Fcommandp): Add parens to clarify.
25019 * minibuf.c (Fall_completions): Use enum for type of table.
25021 * emacs.c (USAGE2): Improve text.
25023 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25025 * term.c (tty_default_color_capabilities): Declare static
25026 variables in file scope, to avoid HPUX compiler problem.
25028 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25030 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25031 to gtk_toolbar_insert.
25033 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25035 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25037 * insdel.c (reset_var_on_error): New fun.
25038 (signal_before_change, signal_after_change):
25039 Use it to reset (after|before)-change-functions to nil in case of error.
25040 Bind inhibit-modification-hooks to t.
25041 Don't bind (after|before)-change-functions to nil while they run.
25043 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25045 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25046 filling pixmap with stippled background.
25048 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25050 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25051 Don't use invisible frame as parent window for repositioning.
25053 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25055 * print.c (new_backquote_output): Rename from old_backquote_output.
25056 (print): Inverse its logic (according to its name) so as to match the
25057 behavior of new_backquote_flag in lread.c.
25059 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25061 * gmalloc.c (posix_memalign): New function.
25063 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25064 ActivateControl/DeactivateControl here.
25065 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25066 frame-notice-user-settings is non-nil.
25067 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25068 for kEventParamFMFontStyle.
25069 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25070 mac_pass_command_to_system and mac_pass_control_to_system here.
25071 (XTread_socket): Call ActivateControl/DeactivateControl here.
25072 (XTread_socket) [TARGET_API_MAC_CARBON]:
25073 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25074 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25075 for window repositioning.
25077 2007-08-08 Glenn Morris <rgm@gnu.org>
25079 * Replace `iff' in doc-strings and comments.
25081 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25083 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25085 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25087 * fileio.c (Finsert_file_contents): Run format-decode and
25088 after_insert_file_functions on entire buffer when REPLACE is
25089 non-nil and inhibit modification_hooks and point_motion_hooks.
25090 For consistency, run after_insert_file_functions iff something
25091 got inserted. Move signal_after_change and update_compositions
25092 after code running after_insert_file_functions. Make sure that
25093 undo_list doesn't record intermediate steps of the decoding process.
25095 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25098 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25099 Call malloc_enable_thread on interactive startup.
25101 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25102 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25103 [USE_PTHREAD]: Conditionalize with it.
25104 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25105 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25108 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25110 * xdisp.c (redisplay_window): When restoring original buffer
25111 position, make sure it is still valid.
25113 * image.c (png_load): Ignore png-supplied background color.
25115 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25117 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25118 Use kCFAbsoluteTimeIntervalSince1970.
25120 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25122 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25123 event loop should be quit.
25124 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25125 Quit dialog event loop if quit_dialog_event_loop is set.
25127 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25128 (Selection): New typedef. Use instead of ScrapRef.
25129 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25130 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25131 (mac_clear_selection): Rename from clear_scrap.
25132 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25133 scrap_has_target_type. All uses changed.
25134 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25135 (mac_selection_has_target_p): New functions.
25136 (mac_put_selection_value): Rename from put_scrap_string.
25137 (mac_get_selection_value): Rename from get_scrap_string.
25138 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25139 (put_scrap_private_timestamp, scrap_has_target_type)
25140 (get_scrap_private_timestamp): Remove functions.
25141 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25142 (x_own_selection, x_get_local_selection):
25143 Use mac_valid_selection_value_p.
25144 (x_own_selection): Don't use put_scrap_private_timestamp.
25145 Record OWNERSHIP-INFO into Vselection_alist instead.
25146 (x_get_local_selection): Don't check type if request is local.
25147 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25148 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25150 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25152 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25153 add comment explaining why.
25155 2007-08-03 Richard Stallman <rms@gnu.org>
25157 * fileio.c (Fvisited_file_modtime): Use make_time.
25159 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25161 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25164 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25166 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25168 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25170 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25172 2007-07-30 Richard Stallman <rms@gnu.org>
25174 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25176 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25178 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25180 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
25182 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25183 remote default-directory.
25185 * buffer.c (mode-line-format): Update doc string.
25187 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25189 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25191 (x_scroll_bar_create): Set bar->fringe_extended_p.
25192 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25193 on frame edge. Check fringe background extension. Don't clear
25194 extended fringe background area.
25196 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25197 (w32_fill_area): Enclose multiple statements with do ... while (0).
25199 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25200 Extend fringe background to scroll bar gap.
25201 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25202 Set bar->fringe_extended_p.
25203 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25204 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25205 background extension. Don't clear extended fringe background area.
25207 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25208 New member fringe_extended_p.
25210 2007-07-25 Glenn Morris <rgm@gnu.org>
25212 * Relicense all FSF files to GPLv3 or later.
25214 * COPYING: Switch to GPLv3.
25216 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25218 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25220 * data.c (Finteractive_form): Check for the presence of an
25221 `interactive-form' symbol property more thoroughly.
25223 * data.c (Finteractive_form): Use an `interactive-form' property if
25224 present, analogous to the function-documentation property.
25226 2007-07-24 Jason Rumney <jasonr@gnu.org>
25228 * w32fns.c (x_real_positions): Get real position from OS instead of
25231 2007-07-23 Jason Rumney <jasonr@gnu.org>
25233 * filelock.c (current_lock_owner): Allow for @ sign in username.
25235 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
25237 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25238 remote default-directory.
25240 * buffer.c (mode-line-format): Describe above case in doc string.
25242 2007-07-20 Eli Zaretskii <eliz@gnu.org>
25244 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25245 Define if not defined.
25247 2007-07-18 Jason Rumney <jasonr@gnu.org>
25249 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25251 2007-07-18 Richard Stallman <rms@gnu.org>
25253 * data.c (Fsetq_default): Doc fix.
25255 * eval.c (Fsetq): Doc fix.
25257 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
25259 * coding.c (Ffind_operation_coding_system):
25260 * eval.c (For, Fand): Doc fixes.
25261 Reported by Johan Bockgård.
25263 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25265 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25267 * xterm.h: Declare x_ewmh_activate_frame.
25269 * xterm.c (x_ewmh_activate_frame): New function.
25270 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25272 2007-07-17 Martin Rudalics <rudalics@gmx.at>
25274 * window.c (Fdisplay_buffer): If largest or LRU window is the
25275 only window, split it even if it is not eligible for splitting.
25276 This restores the original behavior broken by the 2007-07-15
25279 2007-07-17 Glenn Morris <rgm@gnu.org>
25281 * abbrev.c (abbrev_check_chars): New function.
25282 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25283 Call abbrev_check_chars to check abbrev characters are word
25284 constituents. Doc fix.
25286 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25288 * process.c (Fstart_process, Fmake_network_process)
25289 (read_process_output): Fix up last changes.
25291 2007-07-16 Eli Zaretskii <eliz@gnu.org>
25293 * makefile.w32-in (clean): Don't delete *~.
25295 2007-07-16 Andreas Schwab <schwab@suse.de>
25297 * window.c (Fdisplay_buffer): Use NILP.
25298 (Fset_window_scroll_bars): Likewise.
25300 2007-07-15 Martin Rudalics <rudalics@gmx.at>
25302 * window.c (window_min_size_2): New function.
25303 (window_min_size_1, size_window, Fdisplay_buffer)
25304 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25305 windows without mode- or header-lines when window-min-height is
25307 (size_window): Reset nodelete_p after testing it, following an
25308 earlier note by Kim F. Storm.
25309 (display_buffer): Do not set split_height_threshold to twice the
25310 value of window_min_height to avoid changing the value of a
25311 customizable variable. Rather explicitly check whether the
25312 height of the window that shall be splitted is at least as large
25313 as split_height_threshold.
25314 (Fwindow_full_width_p): New defun.
25315 (syms_of_window): Defsubr it.
25317 * window.h: Add EXFUN for Fwindow_full_width_p.
25319 2007-07-14 Jason Rumney <jasonr@gnu.org>
25321 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25323 2007-07-14 Richard Stallman <rms@gnu.org>
25325 * eval.c (maybe_call_debugger): New function.
25326 (find_handler_clause): Use maybe_call_debugger.
25327 Call it when the handler says `debug'.
25328 Eliminate DEBUGGER_VALUE_PTR.
25329 (Fsignal): Eliminate debugger_value.
25330 (Qdebug): New variable.
25331 (syms_of_eval): Initialize it.
25333 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
25336 * keyboard.c (Ftrack_mouse):
25337 * print.c (Fwith_output_to_temp_buffer):
25338 * window.c (Fsave_window_excursion): Doc fix.
25340 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25342 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25344 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25346 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25347 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25348 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25349 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25350 Remove unused encoding_carryover.
25351 * process.c: Adjust all functions accordingly.
25353 2007-07-12 Richard Stallman <rms@gnu.org>
25355 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25357 2007-07-11 Jason Rumney <jasonr@gnu.org>
25359 * makefile.w32-in (LIBS): Include OLE32.
25361 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25362 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25364 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25366 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25367 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25368 from a Lisp_Object into a bare pointer.
25369 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25370 Adjust the code correspondingly.
25372 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25374 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25375 (term_show_mouse_face): Remove unused var `j'.
25376 (handle_one_term_event): Remove unused vars `i' and `j'.
25377 Don't cast return value of ttyname since it's not necessary.
25379 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25381 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25382 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25384 * fns.c (map_char_table): Use an array of int for `indices' rather than
25385 an array of Lisp_Objects (which are only ever integers anyway).
25386 (Fmap_char_table): Update caller.
25387 * lisp.h: Update prototype.
25388 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25389 * fontset.c (Ffontset_info):
25390 * casetab.c (set_case_table): Update callers.
25392 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25394 * keymap.c (struct accessible_keymaps_data)
25395 (struct where_is_internal_data): New structures.
25396 (accessible_keymaps_1, where_is_internal_1): Use them to change
25397 interface to adhere to the one used by map_keymap.
25398 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25399 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25401 * keymap.h (map_keymap_function_t): More informative prototype.
25403 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25405 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25406 (looking_at_1): Don't change search_regs and last_thing_searched
25407 if `inhibit-changing-match-data' is non-nil.
25408 (string_match_1, search_buffer, set_search_regs): Likewise.
25409 (syms_of_search): Add Lisp level definition for
25410 `inhibit-changing-match-data' and set it to nil.
25411 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25412 start and end of the match, instead of using values in search_regs.
25414 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25416 * minibuf.c (Fcompleting_read): New value `confirm-only'
25417 for `require-match'.
25419 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25421 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25422 part of the 2007-06-27 change to syms_of_fileio.
25424 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25426 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25427 Check WINDOWP before using XWINDOW. Consolidate return statements.
25429 2007-06-27 Richard Stallman <rms@gnu.org>
25431 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25433 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
25435 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25437 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25439 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25440 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25441 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25442 (_free_internal, memalign): Use them.
25443 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25444 Initialize to PTHREAD_MUTEX_INITIALIZER.
25445 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25446 (morecore_nolock): Rename from morecore. All uses changed.
25447 Use only nolock versions of internal allocation functions.
25448 (_malloc_internal_nolock, _realloc_internal_nolock)
25449 (_free_internal_nolock): New functions created from
25450 _malloc_internal, _realloc_internal, and _free_internal.
25451 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25452 Copy hook value to automatic variable before its use.
25453 (memalign): Copy hook value to automatic variable before its use.
25455 2007-06-26 Kenichi Handa <handa@m17n.org>
25457 * coding.c (Ffind_operation_coding_system): Docstring improved.
25458 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25460 2007-06-25 David Kastrup <dak@gnu.org>
25462 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25463 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25464 cater for additional parameter.
25466 * keymap.h: Adjust number of parameters to `current-active-maps'.
25468 * doc.c (Fsubstitute_command_keys): Adjust call of
25469 `current-active-maps'.
25471 2007-06-25 David Kastrup <dak@gnu.org>
25473 * callint.c (Fcall_interactively): Make the parsing of interactive
25474 specs somewhat more readable.
25476 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25478 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25479 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25480 if extended background has already been filled.
25482 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25484 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25485 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25487 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25488 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25489 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25490 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25491 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25492 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25493 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25494 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25495 Run timers during dialog popup.
25496 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25498 2007-06-21 Jason Rumney <jasonr@gnu.org>
25500 * image.c (convert_mono_to_color_image): Swap fore and background.
25502 2007-06-20 Jason Rumney <jasonr@gnu.org>
25504 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25505 (w32_free_bdf_font): Unmap memory not handle.
25507 2007-06-20 Sam Steingold <sds@gnu.org>
25509 * gmalloc.c (__morecore): Fix the declaration to comply with the
25512 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
25514 * w32term.c (w32_delete_display): Remove leftover declaration.
25515 (w32_define_cursor, w32_initialize): Make static.
25517 * w32.c (_wsa_errlist): Fix typo in error message.
25518 (init_environment): Ignore any environment variable from the
25519 registry having a null value.
25521 2007-06-20 Glenn Morris <rgm@gnu.org>
25523 * Makefile.in (LIBGIF): Default to -lgif.
25525 2007-06-17 Jason Rumney <jasonr@gnu.org>
25527 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25530 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
25532 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25533 Fix typo in docstring.
25535 2007-06-16 Eli Zaretskii <eliz@gnu.org>
25537 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25538 and their keybindings.
25540 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
25542 * composite.c (update_compositions): Fix last fix.
25544 2007-06-14 Jason Rumney <jasonr@gnu.org>
25546 * w32.c (get_process_times_fn): New function pointer.
25547 (globals_of_w32): Intialize it if present in kernel32.dll.
25548 (w32_get_internal_run_time): New function.
25550 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25552 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25554 * composite.c (update_compositions): Check the validness of
25557 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25559 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25560 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25562 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25563 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25565 * macgui.h (USE_MAC_TOOLBAR): New define.
25567 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25568 Return immediately unless popup is activated.
25570 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25571 background to scroll bar gap.
25572 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25573 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25574 scroll bars on frame edge. Check fringe background extension.
25575 Don't clear extended fringe background area.
25576 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25577 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25578 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25579 [USE_MAC_TOOLBAR]: New macros.
25580 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25581 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25582 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25583 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25584 [USE_MAC_TOOLBAR]: New functions.
25585 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25586 manually if previous repositioning has failed.
25587 (mac_handle_keyboard_event): Use precomputed event kind.
25588 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25589 as tool bar item click. Handle mouse movement over tool bar items.
25591 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25592 toolbar_win_gravity.
25593 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25594 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25597 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25598 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25600 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
25602 * image.c (search_image_cache): Remove unused variable.
25604 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
25606 * xfns.c, xmenu.c: Link to xaw3d if available.
25608 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25610 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25611 frame_foreground and frame_background.
25613 * image.c (lookup_image): Save frame foreground and background colors.
25614 (search_image_cache): Check if saved and current frame colors match.
25616 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25618 * regex.c (regex_compile): Remove the `regnum' counter.
25619 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25621 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25623 * term.c: Include intervals.h to declare Fget_text_property.
25625 2007-06-10 Jason Rumney <jasonr@gnu.org>
25627 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25629 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
25631 * callint.c (Fcall_interactively):
25632 * editfns.c (Fdelete_and_extract_region):
25633 * fileio.c (Fread_file_name):
25634 * fns.c (Fmapconcat):
25635 * keyboard.c (cmd_error_internal):
25636 * keymap.c (Fkey_description):
25638 * minibuf.c (read_minibuf):
25639 * search.c (wordify):
25640 * sunfns.c (sel_read):
25641 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25642 * xfns.c (x_default_scroll_bar_color_parameter):
25643 * xmenu.c (menu_help_callback):
25644 * xselect.c (Fx_get_atom_name):
25645 * xterm.c (x_term_init): Use empty_unibyte_string.
25647 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25649 * alloc.c (init_strings): Initialize canonical empty strings.
25650 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25651 canonical empty string when the requested size is 0.
25653 * emacs.c (empty_unibyte_string): Rename from empty_string.
25654 (empty_multibyte_string): New canonical empty string.
25655 (syms_of_emacs): Don't initialize empty_string.
25657 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25658 string, if appropriate.
25659 (empty_unibyte_string, empty_multibyte_string): New externs.
25660 (empty_string): Remove extern.
25662 * lread.c (syms_of_lread): Use empty_unibyte_string.
25664 2007-06-07 Jason Rumney <jasonr@gnu.org>
25666 * s/ms-w32.h: Don't define HAVE_TZNAME.
25668 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25670 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25672 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25674 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25675 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25677 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25678 Don't call next handler.
25679 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25680 Remove argument. Install handler to application.
25681 (set_frame_menubar): Don't change deep_p.
25682 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25683 FRAME_OUTER_TO_INNER_DIFF_Y.
25684 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25685 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25686 [HAVE_DIALOGS]: New macros.
25687 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25689 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25691 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25692 init_service_handler. All callers changed. Return OSStatus value.
25694 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25695 All callers changed so as not to call SetPortWindowPort.
25696 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25697 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25698 mac_draw_string_common.
25699 (mac_draw_image_string_qd): Likewise.
25700 (mac_draw_string_common): Use them. Add INLINE.
25701 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25702 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25704 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25705 and FRAME_OUTER_TO_INNER_DIFF_Y.
25706 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25707 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25708 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25709 repositioning window to mac_handle_window_event.
25710 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25711 saving window location to mac_handle_window_event
25712 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25713 (install_menu_target_item_handler): Remove argument in extern.
25714 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25715 Also accept command events.
25716 (do_keystroke): New function created from XTread_socket.
25717 (init_command_handler): Remove functions.
25718 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25719 and save window location by kEventWindowShowing and kEventWindowHiding
25720 handlers here. Don't call next handler for window state change and
25722 (mac_handle_application_event, mac_handle_keyboard_event)
25723 [TARGET_API_MAC_CARBON]: New functions.
25724 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25725 kEventWindowShowing and kEventWindowHiding events. Move installation
25726 of mouse, font, text input and menu target item handlers to
25727 install_application_handler.
25728 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25729 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25731 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25733 (XTread_socket) [TARGET_API_MAC_CARBON]:
25734 Consolidate SendEventToEventTarget calls.
25735 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25736 Move application activation handler to mac_handle_application_event.
25737 Move keyboard handler to mac_handle_keyboard_event.
25738 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25739 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25740 init_command_handler. Call install_application_handler.
25742 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25743 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25745 2007-06-07 Glenn Morris <rgm@gnu.org>
25747 * emacs.c (main): Use `emacs-copyright' in --version output.
25749 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
25751 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25753 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25755 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25757 * macgui.h: Replace WindowPtr with WindowRef.
25759 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25760 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25761 Replace ControlHandle with ControlRef.
25762 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25764 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25765 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25766 Replace ControlHandle with ControlRef.
25767 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25768 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25770 * macterm.h (struct scroll_bar): Rename member control_handle_low
25771 and control_handle_high to control_ref_low and control_ref_high.
25773 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25774 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25775 respectively. All uses changed.
25776 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25777 (install_window_handler, remove_window_handler): Replace WindowPtr
25778 with WindowRef in externs.
25780 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
25782 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25784 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
25786 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25788 * frame.c (Fmouse_position, Fmouse_pixel_position):
25789 Condition on HAVE_GPM too.
25791 * term.c (term_mouse_highlight): Remove unused variables.
25792 (Fterm_open_connection): Set gpm_zerobased to 1.
25793 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25794 Use zero based co-ordinates.
25795 (handle_one_term_event): Report a drag as mouse movement too.
25797 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25799 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
25801 * image.c (search_image_cache): New function. Require background
25802 color match if background color is unspecified in the image spec.
25803 (uncache_image, lookup_image): Use it.
25805 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
25807 * window.c (Fshrink_window): Reflow docstring.
25809 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
25811 * Version 22.1 released.
25813 2007-06-01 Richard Stallman <rms@gnu.org>
25815 * xfns.c (x_encode_text): Add GCPRO.
25817 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25819 * xfns.c (x_set_name_internal): Save encoded name before
25820 x_encode_text in case string data is relocated.
25822 2007-05-31 Richard Stallman <rms@gnu.org>
25824 * buffer.c (syms_of_buffer): Doc fix.
25826 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
25828 * sysdep.c (init_sys_modes): Add rather than replace with
25831 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25834 * termhooks.h (term_mouse_moveto): New extern.
25836 * term.c (mouse_face_window): Rename...
25837 (Qmouse_face_window): ...to this.
25838 (term_show_mouse_face, term_clear_mouse_face)
25839 (term_mouse_highlight): Use Qmouse_face_window.
25840 (term_mouse_moveto): New function.
25841 (term_mouse_position): Make it work.
25842 (syms_of_term): Uncomment assignment to mouse_position_hook.
25843 Staticpro Qmouse_face_window.
25845 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25847 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25848 around current_column call.
25850 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25852 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25853 * xdisp.c (next_element_from_buffer):
25854 * window.c (delete_window):
25855 * term.c (term_mouse_highlight):
25856 * msdos.c (getdefdir):
25857 * macterm.c (mac_create_bitmap_from_bitmap_data)
25858 (init_font_name_table):
25860 * data.c (Fmake_local_variable):
25861 * ccl.c (ccl_driver): Likewise.
25863 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25865 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25866 Call mac_wakeup_from_rne on window size change.
25868 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
25870 * image.c (uncache_image): Fix typo.
25872 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25874 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25876 2007-05-22 Richard Stallman <rms@gnu.org>
25878 * xterm.c (x_connection_closed): Remove NO_RETURN.
25880 2007-05-22 Martin Rudalics <rudalics@gmx.at>
25882 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25884 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
25886 * image.c (uncache_image): New function.
25887 (Fimage_refresh): New function.
25889 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25891 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25893 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25895 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25896 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25898 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25900 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25901 conditional on [HAVE_GPM_H].
25903 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25905 * syntax.c (skip_chars): Update syntax-table only after we checked that
25906 the new location is valid.
25908 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25910 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25911 mac_get_window_bounds.
25913 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25915 * Makefile.in (LIBGPM): Allow it to be set from configure.
25916 If set then link Emacs with it.
25918 * config.in: Regenerate.
25920 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25923 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25925 (handle_one_term_event, term_gpm): New externs.
25927 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25928 and allow it to be interrupted by SIGIO.
25930 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25931 (wait_reading_process_output): Wait on gpm_fd too.
25932 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25933 (add_gpm_wait_descriptor_called_flag): New variable.
25934 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25936 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25937 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25938 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25939 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25940 (make_lispy_event): Add case GPM_CLICK_EVENT.
25941 (read_avail_input): Handle mouse input.
25943 * term.c (write_glyphs_with_face): New function.
25944 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25945 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25946 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25947 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25948 (last_mouse_x, last_mouse_y): New variables.
25949 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25950 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25951 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25952 (Fterm_close_connection): New functions.
25953 (term_init): Initialise mouse_face_window.
25955 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
25957 * xdisp.c (redisplay_window): If first window line is a
25958 continuation line, recompute the new window start instead of
25961 2007-05-18 Glenn Morris <rgm@gnu.org>
25963 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25964 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25966 2007-05-17 Glenn Morris <rgm@gnu.org>
25968 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25970 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25972 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25973 dead key repeat and up events.
25975 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
25977 * image.c (pbm_load): Check image size for monochrome pbm.
25979 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
25981 * xterm.c (XTread_socket): Revert last change.
25983 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
25985 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25987 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25989 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25991 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25994 2007-05-07 Andreas Schwab <schwab@suse.de>
25996 * keymap.c (Flookup_key): Fix typo in last change.
25998 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26000 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26001 mapping for unibyte strings.
26003 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26005 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26006 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26008 2007-04-29 Richard Stallman <rms@gnu.org>
26010 * insdel.c (replace_range): For undo, record insertion first.
26012 2007-04-29 Andreas Schwab <schwab@suse.de>
26014 * lisp.h (VECSIZE): Use OFFSETOF.
26016 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26018 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26021 2007-04-28 Richard Stallman <rms@gnu.org>
26023 * lread.c (read_escape): In a string, \s is always space.
26025 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26027 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26029 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26030 submenu for menu bar items.
26032 See ChangeLog.10 for earlier changes.
26034 ;; Local Variables:
26036 ;; add-log-time-zone-rule: t
26039 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26041 This file is part of GNU Emacs.
26043 GNU Emacs is free software: you can redistribute it and/or modify
26044 it under the terms of the GNU General Public License as published by
26045 the Free Software Foundation, either version 3 of the License, or
26046 (at your option) any later version.
26048 GNU Emacs is distributed in the hope that it will be useful,
26049 but WITHOUT ANY WARRANTY; without even the implied warranty of
26050 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26051 GNU General Public License for more details.
26053 You should have received a copy of the GNU General Public License
26054 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26056 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40