* editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
[emacs.git] / src / ChangeLog
blob0309fe1641f149e516a3e0dfc5ea79178168cbf8
1 2010-08-02  Juanma Barranquero  <lekktu@gmail.com>
3         * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4         Wording by Drew Adams <drew.adams@oracle.com>.
6 2010-08-01  Jan Djärv  <jan.h.d@swipnet.se>
8         * xterm.h (struct x_output): Add ttip_widget, ttip_window and
9         ttip_lbl.
11         * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
12         calling gtk_widget_queue_draw.
13         (x_free_frame_resources): Call xg_free_frame_widgets.
15         * xfns.c (x_gtk_use_system_tooltips): New variable.
16         (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
17         new gtkutil tooltip functions to show the tooltip.
18         (Fx_hide_tip): Call xg_hide_tooltip.
19         (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
21         * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
22         (xg_show_tooltip, xg_hide_tooltip): Declare.
24         * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
25         (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets): New
26         functions.
27         (xg_create_frame_widgets): Set ttip_* to 0.  Set a dummy tooltip
28         text so qttip_cb is called.  Connect query-tooltip to qttip_cb.
29         Remove code that is commented out.
31 2010-08-01  Stefan Monnier  <monnier@iro.umontreal.ca>
33         * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
35 2010-07-31  Chong Yidong  <cyd@stupidchicken.com>
37         * xselect.c (x_own_selection): Use list4.
39 2010-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
41         * buffer.c (Qwindow): Do not define, already defined in data.c.
42         (syms_of_buffer): Do not intern and staticpro Qwindow.  (Bug#6760)
44 2010-07-29  Chad Brown  <yandros@mit.edu>
46         Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
47         * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
48         * config.in: Undef HAVE_DIRENT_H.
49         * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
50         * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
52 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
54         Rename s/usg5-4.h -> s/usg5-4-common.h.
55         * s/usg5-4.h: Rename file to ...
56         * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
57         * s/unixware.h:
58         * s/sol2-6.h:
59         * s/irix6-5.h: Update includes accordingly.
61 2010-07-29  Jan Djärv  <jan.h.d@swipnet.se>
63         * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
65         * xterm.h (struct x_output): Add toolbar_top_height,
66         toolbar_bottom_height, toolbar_left_width, toolbar_right_width.  Remove
67         toolbar_height.
68         if USE_GTK: Add hbox_widget and toolbar_in_hbox.
69         (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
70         (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
71         (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
73         * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
75         * xfns.c (x_set_tool_bar_position): New function.
76         (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
77         (x_frame_parm_handlers): Add x_set_tool_bar_position.
78         (syms_of_xfns): if USE_GTK, provide move-toolbar.
80         * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
81         and FRAME_TOOLBAR_LEFT_WIDTH.
83         * gtkutil.h (xg_change_toolbar_position): Declare.
85         * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
86         (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
87         (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
88         (xg_create_frame_widgets): Create a hobox for placing widgets
89         vertically.  Use gtk_box_pack_start.
90         (xg_height_or_width_changed): Renamed from xg_height_changed.
91         (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
92         (xg_update_frame_menubar, free_frame_menubar): Change to
93         xg_height_or_width_changed.
94         (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
95         size correctly.  Remove hardcoded 4, instead use handlebox size -
96         toolbar size.
97         (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
98         size correctly.  Use handlebox size + toolbar size as additional
99         size.
100         (xg_pack_tool_bar): POS is a new parameter.
101         Set orientation of tool bar based on pos.
102         Only make handlebox_widget if NULL.
103         Check if tool bar goes to vbox or hbox depending on pos.
104         (xg_update_tool_bar_sizes): New function.
105         (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
106         height, call xg_update_tool_bar_sizes instead.
107         (free_frame_tool_bar): Remove from hbox or vbox depending on
108         toolbar_in_hbox,  Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
109         (xg_change_toolbar_position): New function.
111         * frame.h (struct frame): Add tool_bar_position.
112         (Qbottom): Declare.
114         * frame.c (Qtool_bar_position): New variable.
115         (make_frame): Set tool_bar_position to Qtop.
116         (frame_parms): Add tool-bar-position.
117         (x_report_frame_params): Store tool_bar_position.
118         (x_set_fringe_width): Reset wm size hint after fringe changes.
120 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
122         Make lisp_time_argument declaration work on all systems.
123         * lisp.h (lisp_time_argument): Move declaration ...
124         * systime.h (lisp_time_argument): ... here
125         * editfns.c (lisp_time_argument): Remove declaration.  (Bug#6751)
127 2010-07-29  Jan Djärv  <jan.h.d@swipnet.se>
129         * vm-limit.c (POINTER): Add typedef for it.
130         (start_of_data): Change return type from POINTER to char *.
132         * frame.h (Qtty_color_mode): Move declaration out of ifdef
133         HAVE_WINDOW_SYSTEM.
135 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
137         * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
138         Remove reference to __osf__, unused.
140         * mem-limits.h: Remove duplicated includes.
141         (NULL): Remove definition, unused.
142         (POINTER): Remove definition.
143         (start_of_data): Use char* in prototype, as the function
144         definition does.
146         Remove extern declarations from .c files, and them to .h files.
147         * keyboard.h (Qhelp_echo, waiting_for_input)
148         (input_available_clear_time, ignore_mouse_drag_p)
149         (Vdouble_click_time, real_this_command, Vthis_original_command):
150         * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
151         (Voverriding_local_map_menu_flag):
152         * lisp.h (Qinteractive_form, use_file_dialog)
153         (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
154         (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
155         (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
156         (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
157         (Qfunction, debug_on_next_call, Qfield)
158         (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
159         (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
160         (Qfile_directory_p, Qinsert_file_contents)
161         (Qcompletion_ignore_case, Qcompletion_ignore_case)
162         (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
163         (history_delete_duplicates, minibuffer_auto_raise, Qonly)
164         (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
165         (Qminibuffer_prompt)
166         (Vtemporary_file_directory,char_ins_del_vector, Qface):
167         * xterm.h (gray_bitmap_width, gray_bitmap_height)
168         (gray_bitmap_bits, xic_create_fontsetname):
169         * coding.h (Vtranslation_table_for_input): Add extern declarations.
171         * xsmfns.c (Vuser_login_name):
172         * xrdb.c (Vdouble_click_time):
173         * xfaces.c (xic_create_fontsetname):
174         * w32select.c (waiting_for_input):
175         * print.c (minibuffer_auto_raise):
176         * msdos.c (Qhelp_echo):
177         * macros.c (real_this_command):
178         * keymap.c (Voverriding_local_map):
179         * xterm.c (poll_for_input_1, gray_bitmap_width)
180         (gray_bitmap_height, gray_bitmap_bits;
181         * xmenu.c ( Voverriding_local_map)
182         (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
183         (use_file_dialog, Xt_app_con):
184         * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
185         (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
186         (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
187         (Qtool_bar_lines, ignore_mouse_drag_p):
188         * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
189         (Qrear_nonsticky, nconc2):
190         * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
191         (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
192         (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
193         * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
194         (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
195         * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
196         (gc_in_progress):
197         * doc.c (Voverriding_local_map, Qremap):
198         * dired.c (completion_ignore_case, Qcompletion_ignore_case)
199         (Vcompletion_regexp_list):
200         * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
201         (Qcompletion_ignore_case):
202         * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
203         (Vhistory_length, Vthis_original_command, real_this_command)
204         (Qface, Qminibuffer_prompt, history_delete_duplicates):
205         * image.c (Qrisky_local_variable):
206         * fontset.c (QCname):
207         * fns.c (minibuffer_auto_raise, QCname):
208         * dispnew.c (char_ins_del_cost):
209         * composite.c (font_fill_lglyph_metrics):
210         * cmds.c (Qface, Vtranslation_table_for_input):
211         * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
212         * ccl.c (charset_unicode):
213         * callproc.c (Vtemporary_file_directory):
214         * buffer.c (emacs_strerror): Remove extern declarations.
216         * data.c (Qwindow): Make non-static, used from other files too.
217         * frame.c (validate_x_resource_name): Remove shadow definition for i.
219         * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
220         SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
221         * s/usg5-4.h (COFF):
222         * s/template.h:
223         * s/msdos.h (COFF, NO_REMAP):
224         * s/ms-w32.h (NO_REMAP):
225         * s/hpux10-20.h (NO_REMAP):
226         * m/sparc.h (SEGMENT_MASK):
227         * m/m68k.h (NO_REMAP):
228         * m/intel386.h (SEGMENT_MASK):
229         * m/arm.h (NO_REMAP):
230         * m/alpha.h (COFF):
231         * m/template.h: Remove references to unused defines.
233 2010-07-28  Jan Djärv  <jan.h.d@swipnet.se>
235         * xsettings.c (Ftool_bar_get_system_style): Also check for
236         Qtext_image_horiz.
238         * xdisp.c (Qtext_image_horiz): Define.
239         (syms_of_xdisp): Initialize Qtext_image_horiz.  Add text-image-horiz
240         to documentation of tool-bar-style.
242         * lisp.h (Qtext_image_horiz): Declare.
244         * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
245         style text_image_horiz.
247 2010-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
249         * emacs.c (Fkill_emacs): Remove return statement.
251         * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
252         (encode_terminal_code, produce_composite_glyph): Remove unused variables.
253         (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
254         local extern declarations.
256         * xmenu.c: Do not included lwlib.h, not needed.
258         * m/iris4d.h (XUINT, XSET): Remove, not needed.
260         * process.c: Move definitions earlier to minimize #ifdefs.
262         * xterm.h (x_get_customization_string, x_load_resources)
263         (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
264         (x_check_errors, x_property_data_to_lisp, defined_color)
265         (xic_set_xfontset, x_defined_color): Use const.
267         * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
268         (x_text_icon, x_check_errors, x_connection_closed): Use const.
270         * xselect.c (selection_data_to_lisp_data)
271         (x_property_data_to_lisp):
272         * xrdb.c (x_get_string_resource, file_p)
273         (x_get_customization_string, magic_file_p, search_magic_path)
274         (get_system_app, get_user_app, x_load_resources, x_get_resource)
275         (x_get_string_resource): Use const.
277         * xfns.c: Include xlwmenu.h when USE_LUCID.
278         (x_defined_color, xic_set_xfontset): Use const.
279         (Fx_hide_tip): Remove local extern declaration.
281         * xfaces.c (Qmouse_face): Remove declaration.
282         (face_color_gray_p, tty_defined_color, defined_color)
283         (face_color_gray_p, face_color_supported_p). Add const.
285         * xdisp.c (do_mouse_tracking): Remove declaration.
286         (add_to_log): Use const.
288         * minibuf.c (Qmouse_face): Remove declaration.
290         * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
292         * keyboard.h (do_mouse_tracking): Add declaration.
294         * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
295         (QCdata, QCtype, Qcenter): Remove declarations.
297         * frame.c (x_get_resource_string, x_get_string_resource)
298         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
299         (x_default_parameter): Use const.
301         * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
302         (QCheight, QCsize, QCname): Remove declarations.
304         * emacs.c (main): Remove local extern declaration.
306         * editfns.c (region_limit, syms_of_editfns): Remove local extern
307         declarations.
309         * dispnew.c: Remove duplicate #include <unistd.h>.
310         (update_window, update_frame_1, init_display): Remove local extern
311         declarations.
313         * dispextern.h (add_to_log): Remove declaration.
314         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
315         (x_frame_get_and_record_arg, x_default_parameter): Add const.
317         * dired.c (scmp): Add const.
318         (directory_files_internal): Remove local extern declaration.
320         * data.c (Finteractive_form): Use const.
322         * composite.c (syms_of_composite): Remove local extern declarations.
324         * charset.c (add_to_log): Remove declaration.
326         * character.c (strwidth, parse_str_to_multibyte): Add const.
328         * character.h (strwidth, parse_str_to_multibyte): Likewise.
330         * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
332         * lisp.h (Fkill_emacs): Mark as NO_RETURN.
333         (Lisp_Subr): Make doc and intspec constant.
334         (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
335         (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
336         (QCheight, QCsize, QCname, QCwidth, QCforeground)
337         (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
338         (display_arg): Add declarations.
340 2010-07-27  Christoph Scholtes  <cschol2112@gmail.com>
342         * minibuf.c (Fread_buffer): Doc fix (bug#6528).
344         * window.c (Fwindow_height): Doc fix (bug#6518).
346 2010-07-27  Juanma Barranquero  <lekktu@gmail.com>
348         * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
350 2010-07-26  Dan Nicolaescu  <dann@ics.uci.edu>
352         * keyboard.c (Ftop_level, Fexit_recursive_edit)
353         (Fabort_recursive_edit): Remove return statements in NO_RETURN
354         functions.
356         * frame.h (Qtty_color_mode): Add declaration.
358         * lisp.h (Ftop_level, Fexit_recursive_edit)
359         (Fabort_recursive_edit): Mark as NO_RETURN.
361 2010-07-26  Kenichi Handa  <handa@m17n.org>
363         * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
364         number of glyphs gets smaller than the original length.  (Bug#6621)
366 2010-07-26  Juanma Barranquero  <lekktu@gmail.com>
368         * lread.c (unreadpure, mapatoms_1): Make static.
370 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
372         * terminfo.c (tparam): Fix prototype of tparm.
374 2010-07-25  Andreas Schwab  <schwab@linux-m68k.org>
376         * emacs.c (main) [PROFILING]: Use __executable_start if defined to
377         find start of text segment.
378         * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
379         is defined.
381         * callproc.c (set_initial_environment): Avoid unbalanced braces.
383 2010-07-25  Ken Brown  <kbrown@cornell.edu>
385         * vm-limit.c (check_memory_limits): Fix previous change;
386         accidentally reverted an earlier change.
388 2010-07-25  Ken Brown  <kbrown@cornell.edu>
390         * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
391         * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
393 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
395         * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
396         * dired.c (opendir, readdir): Fix prototypes.
397         * editfns.c (w32_get_internal_run_time): Fix prototypes.
398         * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
399         * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
400         (telldir): Remove declaration.
401         * ralloc.c (real_morecore, __morecore): Fix prototypes.
402         * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
403         * syssignal.h (strsignal): Fix prototype.
404         * term.c (tparam): Fix prototype.
405         (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
406         (term_get_fkeys): Set inside "#ifndef DOS_NT".
407         * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
408         and __morecore.
409         * w32gui.h (XParseGeometry): Fix prototype.
410         * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
411         * w32term.c (my_set_focus): Declare inside #if 0.
412         * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
413         (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
414         (drain_message_queue, get_next_msg, post_msg, parse_button)
415         (ClipboardSequence_Proc): Fix prototypes.
416         (wait_for_sync): Remove declaration.
418 2010-07-24  Juanma Barranquero  <lekktu@gmail.com>
420         * w32fns.c (w32_to_x_color): Remove, unused.
422 2010-07-24  Andreas Schwab  <schwab@linux-m68k.org>
424         * lisp.h: Remove leftover P_.
426 2010-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
428         * ecrt0.c, unexalpha.c: Remove files, unused.
430 2010-07-24  Andreas Schwab  <schwab@linux-m68k.org>
432         * cmds.c (internal_self_insert): Make static.
433         * lisp.h (internal_self_insert): Remove declaration.
435 2010-07-23  Juanma Barranquero  <lekktu@gmail.com>
437         * alloc.c (free_float):
438         * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
439         * frame.c (delete_frame_handler):
440         * ralloc.c (reorder_bloc):
441         * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
442         Remove unused static functions.
444         * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
445         it is called only from NS code.
447         * w32term.c (my_set_focus): #ifdef away; it is called only from
448         "#ifdef 0" code.
450         * w32fns.c (x_edge_detection):
451         * xfaces.c (may_use_scalable_font_p):
452         Remove obsolete static declarations.
454 2010-07-20  Juanma Barranquero  <lekktu@gmail.com>
456         * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
457         (emacs_blocked_realloc, uninterrupt_malloc):
458         * fringe.c (w32_reset_fringes):
459         * image.c (convert_mono_to_color_image, lookup_rgb_color)
460         (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
461         * sound.c (be2hs, do_play_sound):
462         * vm-limit.c (get_lim_data, ret_lim_data):
463         * w32term.c (x_free_frame_resources):
464         * xfaces.c (x_create_gc, x_free_gc):
465         Convert definitions to standard C.
467 2010-07-20  Stefan Monnier  <monnier@iro.umontreal.ca>
469         * eval.c (Feval, Ffuncall): Use the new names.
471         * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
472         (DEFUN): Add braces around the union initialisation and use ## to
473         specify the right union alternative and avoid a cast.
475 2010-07-18  Juanma Barranquero  <lekktu@gmail.com>
477         * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
479 2010-07-17  Chong Yidong  <cyd@stupidchicken.com>
481         * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
483 2010-07-17  Jan Djärv  <jan.h.d@swipnet.se>
485         * gtkutil.c (xg_event_is_for_menubar): Also check that event window
486         is related to the menu bar (Bug#6499).
487         (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
489 2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
491         * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
493         * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
495         * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
496         i.e. don't put back ButtonRelease (Bug#6608).
498         * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
499         instead of Window.  Call xg_event_is_for_menubar when
500         USE_GTK (Bug#6499).
502         * gtkutil.h (xg_event_is_for_menubar): Declare.
504         * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
506 2010-07-16  Eli Zaretskii  <eliz@gnu.org>
508         * w32fns.c (x_set_foreground_color): Fix setting the cursor color
509         when it's the same as the old foreground.  (Bug#6609)
511 2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
513         * xmenu.c (free_frame_menubar): Only call x_set_window_size if
514         widget is non-null (Bug#6645).
516 2010-07-15  Andreas Schwab  <schwab@linux-m68k.org>
518         * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
519         Convert old-style definition.
521         * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
522         timestamp argument.
524 2010-07-15  Eli Zaretskii  <eliz@gnu.org>
526         * fringe.c (update_window_fringes): Restore mistakenly reverted
527         code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
529 2010-07-14  Jan Djärv  <jan.h.d@swipnet.se>
531         * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
532         (SET_SAVED_KEY_EVENT): Remove (not used).
533         (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
534         remove size parameter.
535         (handle_one_xevent): Check popup_activated () for menu for Xt also.
536         Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
537         Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
538         ButtonRelease.
539         (x_set_window_size_1): scroll_bar_actual_width is always
540         SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
542         * xdisp.c (pending_menu_activation): Remove extern declaration.
543         (prepare_menu_bars): Remove setting of pending_menu_activation.
545         * xmenu.c (pending_menu_activation): Remove.
546         (x_activate_menubar): Set popup_activated_flag for Xt also.
547         Remove setting of pending_menu_activation.
548         (set_frame_menubar): Remove check of pending_menu_activation.
549         Declare menubar_size before code.  Correct spelling in comment.
551 2010-07-14  Kenichi Handa  <handa@m17n.org>
553         * font.c (font_open_entity): Cancel previous change.
554         (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
556 2010-07-13  Eli Zaretskii  <eliz@gnu.org>
558         Remove subprocesses #ifdefs.
559         * process.c <inhibit_sentinels>: Move to the common part.
560         (Fwaiting_for_user_input_p): Move to the common part; return nil
561         if async subprocesses aren't supported.
562         * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
563         MS-DOS.  Remove "#ifdef subprocesses".
564         (sys_subshell, sys_select): Remove "#ifdef subprocesses".
565         (gettimeofday): Remove "#ifdef subprocesses".
566         (wait_without_blocking): Remove function.
567         (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
568         Remove "#ifdef subprocesses".
569         (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
570         compiled on MS-DOS.
571         * callproc.c (Fcall_process) [!MSDOS]: Don't call
572         wait_for_termination on MS-DOS.
573         * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
574         initialization of inhibit_sentinels.
575         * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
576         subprocesses" conditional.
577         * callproc.c (Fcall_process) [!subprocesses]: Don't call
578         wait_for_termination, since `buffer' cannot be an integer when
579         async subprocesses are not supported
580         * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
581         for ifdefing away the call to Fprocess_status.
583         * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
584         away the entire body of the function.
586 2010-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
588         Remove subprocesses #ifdefs from term.c.
589         * process.c (add_keyboard_wait_descriptor)
590         (delete_keyboard_wait_descriptor): Move to common section, do
591         nothing when subprocesses is not defined.
592         * term.c (Fsuspend_tty, Fresume_tty, init_tty):
593         Remove subprocesses #ifdefs.
595         Convert maybe_fatal to standard C.
596         * lisp.h (verror): Declare.
597         * eval.c (verror): New function containing the code from ...
598         (error): ... this.  Call verror.
599         * term.c (vfatal): New function containing the code from ...
600         (fatal): ... this.  Call vfatal.
601         (maybe_fatal): Convert to standard C, use variable number of
602         arguments.  Declare as non-return.
603         (init_tty): Fix maybe_fatal call.
605 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
607         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
608         (_scroll_bar_note_movement): Convert definitions to standard C.
609         * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
610         * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
612 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
614         * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
615         (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
616         (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
617         (xaw_jump_callback, xaw_scroll_callback)
618         (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
619         (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
620         definitions to standard C.
621         * xmenu.c (menubar_id_to_frame, popup_get_selection)
622         (popup_activate_callback, popup_deactivate_callback)
623         (menu_highlight_callback, menubar_selection_callback)
624         (apply_systemfont_to_dialog, apply_systemfont_to_menu)
625         (free_frame_menubar, popup_selection_callback, as)
626         (create_and_show_popup_menu, dialog_selection_callback)
627         (create_and_show_dialog):
628         * xfns.c (hack_wm_protocols, x_window):
629         * xfaces.c (x_update_menu_appearance):
630         * widget.c (get_default_char_pixel_size, pixel_to_char_size)
631         (char_to_pixel_size, round_size_to_char, get_wm_shell)
632         (set_frame_size, update_wm_hints, setup_frame_gcs)
633         (update_various_frame_slots, update_from_various_frame_slots)
634         (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
635         (EmacsFrameSetValues, EmacsFrameQueryGeometry)
636         (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
638 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
640         * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
642 2010-07-12  Eli Zaretskii  <eliz@gnu.org>
644         * process.c (setup_process_coding_systems): Move to the part
645         shared by non-subprocesses systems, and make its body empty when
646         subprocesses is not defined.
647         (close_process_descs): Move to the part shared by non-subprocesses
648         systems.
649         (wait_reading_process_output) [!subprocesses]: Convert arg list to
650         ANSI C.
652 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
654         * editfns.c (transpose_markers): Convert old-style definition.
655         * emacs.c (abort, shut_down_emacs, fixup_locale)
656         (synchronize_system_time_locale)
657         (synchronize_system_messages_locale, syms_of_emacs): Likewise.
658         * floatfns.c (extract_float, matherr, init_floatfns)
659         (syms_of_floatfns): Likewise.
660         * fns.c (make_hash_table): Likewise.
661         * ftfont.c (ftfont_get_otf, ftfont_otf_features)
662         (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
663         (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
664         (ftfont_variation_glyphs): Likewise.
665         * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
666         * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
667         * lread.c (read_filtered_event): Likewise.
668         * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
669         * process.c (wait_reading_process_output): Likewise.
670         * scroll.c (do_line_insertion_deletion_costs): Likewise.
671         * search.c (search_buffer, boyer_moore): Likewise.
672         * syntax.c (scan_sexps_forward): Likewise.
673         * xdisp.c (try_scrolling): Likewise.
674         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
675         (face_at_string_position): Likewise.
676         * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
677         * xselect.c (x_get_window_property, receive_incremental_selection)
678         (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
679         Likewise.
680         * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
682 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
684         * callproc.c (child_setup): Remove subprocesses conditional.
685         Remove code dealing with SET_EMACS_PRIORITY, unused.
687         * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
688         * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
690         * emacs.c (__do_global_ctors, __do_global_ctors_aux)
691         (__do_global_dtors, __main): Use void in definition.
692         (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
693         Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
694         the only users from ...
695         * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
696         * s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
697         (HAVE_VOLATILE): Remove, unused.
699         Convert more function definitions to standard C.
700         * xdisp.c (window_box_edges, handle_single_display_spec)
701         (display_string): Convert definition to standard C.
702         * scroll.c (do_direct_scrolling, scrolling_1):
703         * dispnew.c (allocate_matrices_for_frame_redisplay)
704         (mirrored_line_dance):
705         * coding.c (code_convert_string):
706         * charset.c (map_charset_chars):
707         * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
708         (Fregister_ccl_program, Fregister_code_conversion_map):
709         * keyboard.c (kbd_buffer_nr_stored): Likewise.
710         (head_table): Make static and const.
712 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
714         * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
715         (PROFILING_LDFLAGS): Set from substitution.
716         (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
717         CFLAGS last.
719 2010-07-12  Kenichi Handa  <handa@m17n.org>
721         * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
722         (shortlisp): Likewise.
724         * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
726         * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
727         of FONT_ENTITY_INDEX.
728         (Ffont_get): If KEY is :otf and the font-object doesn't have the
729         property, get the property value dynamically.
730         (Ffont_put): Accept font-entity and font-object too.
731         (Ffont_get_glyhphs): Renamed from Fget_font_glyphs.  Arguments and
732         return value changed.
733         (syms_of_font): Adjusted for the above change.
735 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
737         * blockinput.h: Remove obsolete comment.
739         * lisp.h: Include <stddef.h>.
740         (OFFSETOF): Don't define.
741         (VECSIZE): Use offsetof instead of OFFSETOF.
742         (PSEUDOVECSIZE): Likewise.
743         * process.c (conv_sockaddr_to_lisp): Likewise.
744         * alloc.c: Don't include <stddef.h>.
745         * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
747         * process.c: Remove obsolete comment.
749 2010-07-11  Chong Yidong  <cyd@stupidchicken.com>
751         * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
753 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
755         * callint.c (Fcall_interactively): Use strchr, strrchr instead of
756         index, rindex.
757         * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
758         * editfns.c (Fuser_full_name, Fformat): Likewise.
759         * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
760         * fileio.c (Ffile_symlink_p): Likewise.
761         * filelock.c (current_lock_owner): Likewise.
762         * font.c (font_parse_name, font_parse_family_registry): Likewise.
763         * fontset.c (fontset_pattern_regexp): Likewise.
764         * lread.c (read1): Likewise.
765         * sysdep.c (init_system_name): Likewise.
766         * xfns.c (select_visual): Likewise.
767         * s/hpux10-20.h (index, rindex): Don't define.
768         * s/ms-w32.h (index): Likewise.
769         * s/usg5-4.h: Likewise.
771         * callproc.c (relocate_fd): Use F_DUPFD if defined.
773         * alloc.c (pending_malloc_warning, malloc_warning): Add const.
774         * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
775         (egetenv): Likewise.
776         * doprnt.c (doprnt): Likewise.
777         * editfns.c (set_time_zone_rule, format2): Likewise.
778         * emacs.c (decode_env_path): Likewise.
779         * eval.c (signal_error, error): Likewise.
780         * insdel.c (replace_range_2): Likewise.
781         * keyboard.c (cmd_error_internal): Likewise.
782         * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
783         * print.c (write_string, write_string_1, print_error_message):
784         Likewise.
785         * vm-limit.c (warn_function, memory_warnings): Likewise.
786         * xdisp.c (message1, message1_nolog, message_with_string)
787         (vmessage, message, message_nolog): Likewise.
788         * emacs.c: Remove duplicate declaration.
789         * keyboard.h: Likewise.
790         * lisp.h: Update prototypes.
792         * eval.c: Fix indentation problem.
794         * keyboard.c: Include "process.h"
796         * eval.c: Remove obsolete noinline declaration.
797         * fns.c: Likewise.
799 2010-07-11  Ken Raeburn  <raeburn@raeburn.org>
801         * doprnt.c (doprnt): Take a va_list argument instead of count and
802         pointer.
803         * eval.c (error): Change to a standard-C variadic function.
804         * xdisp.c (vmessage): Renamed from message, made static, and
805         changed to take a va_list argument.
806         (message): New variadic wrapper.
807         (message_nolog): Now a variadic function, calling vmessage.
808         * lisp.h: Include stdarg.h for va_list.
809         (doprnt, error, message, message_nolog): Decls updated.
811 2010-07-11  Eli Zaretskii  <eliz@gnu.org>
813         * process.c (syms_of_process) <delete-exited-processes>: Define
814         even if !subprocesses.
815         (delete_exited_processes): Ditto.
817         * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
818         (delete_exited_processes): Don't define.
820 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
822         * frame.c (make_frame): Initialize menu_bar_lines and
823         tool_bar_lines members.
824         (make_initial_frame, make_terminal_frame): Initialize
825         menu_bar_lines using value of menu-bar-mode.
827         * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
829 2010-07-10  Eli Zaretskii  <eliz@gnu.org>
831         * process.c: Reshuffle #include's.  Condition some of the global
832         and static variables on `subprocesses'.
833         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
834         Leave only one implementation.
835         (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
836         (kill_buffer_processes, Flist_system_processes)
837         (Fprocess_attributes, init_process, syms_of_process): Unify the
838         implementations for with subprocesses and without them.
840 2010-07-09  Jan Djärv  <jan.h.d@swipnet.se>
842         * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
843         correct size for Motif.
844         (free_frame_menubar): Call x_set_window_size to update frame size.
846         * xfns.c (x_window): Set borderWidth to 0 for pane and
847         EmacsFrame.  Frame size calculation is wrong otherwise.
849 2010-07-09  Michael Albinus  <michael.albinus@gmx.de>
851         * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
852         allows to suppress errors when polling in Emacs' main loop.
853         (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
854         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
855         (Fdbus_method_error_internal, Fdbus_send_signal)
856         (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
857         (Fdbus_register_method): Use it.  (Bug#6579)
859 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
861         * alloc.c: Convert DEFUNs to standard C.
862         * buffer.c:
863         * bytecode.c:
864         * callint.c:
865         * callproc.c:
866         * casefiddle.c:
867         * casetab.c:
868         * category.c:
869         * character.c:
870         * charset.c:
871         * chartab.c:
872         * cmds.c:
873         * coding.c:
874         * composite.c:
875         * data.c:
876         * dbusbind.c:
877         * dired.c:
878         * dispnew.c:
879         * doc.c:
880         * dosfns.c:
881         * editfns.c:
882         * emacs.c:
883         * eval.c:
884         * fileio.c:
885         * filelock.c:
886         * floatfns.c:
887         * fns.c:
888         * font.c:
889         * fontset.c:
890         * frame.c:
891         * fringe.c:
892         * image.c:
893         * indent.c:
894         * insdel.c:
895         * keyboard.c:
896         * keymap.c:
897         * lread.c:
898         * macros.c:
899         * marker.c:
900         * menu.c:
901         * minibuf.c:
902         * msdos.c:
903         * nsfns.m:
904         * nsmenu.m:
905         * nsselect.m:
906         * print.c:
907         * process.c:
908         * search.c:
909         * sound.c:
910         * syntax.c:
911         * term.c:
912         * terminal.c:
913         * textprop.c:
914         * undo.c:
915         * w16select.c:
916         * w32console.c:
917         * w32fns.c:
918         * w32font.c:
919         * w32menu.c:
920         * w32proc.c:
921         * w32select.c:
922         * window.c:
923         * xdisp.c:
924         * xfaces.c:
925         * xfns.c:
926         * xmenu.c:
927         * xselect.c:
928         * xsettings.c:
929         * xsmfns.c: Likewise.
931 2010-07-08  Eli Zaretskii  <eliz@gnu.org>
933         * process.c (kbd_is_on_hold, hold_keyboard_input)
934         (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
936 2010-07-08  Jan Djärv  <jan.h.d@swipnet.se>
938         * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
939         (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
940         unless USE_LUCID.
942 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
944         * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
945         declaration.
947         Clean up include guards.
948         * tparam.c: Remove include guards for config.h, string.h and code
949         that assumes #ifndef emacs.
950         * termcap.c:
951         * unexalpha.c:
952         * sysdep.c:
953         * filemode.c:
954         * filelock.c:
955         * bidi.c: Likewise.
957         Remove prefix-args.c
958         * prefix-args.c: Remove file.
959         * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
960         * Makefile.in (temacs${EXEEXT}): Remove references to
961         PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
962         (mostlyclean): Remove reference to prefix-args.
963         (prefix-args): Remove.
965         Simplify cstart_of_data, start_of_code and related code.
966         * mem-limits.h: Remove !emacs and _LIBC conditional code.
967         (start_of_data): Merge into start_of_data function.
968         * sysdep.c (start_of_text): Remove.  Move simplified versions of
969         it in the only users: unexaix.c and unexec.c.
970         (read_input_waiting): Remove local declaration of quit_char.
971         (start, etext): Remove declarations.
972         (start_of_data): Merge with the version in mem-limits.h and move
973         to vm-limits.c.
974         * vm-limit.c (start_of_data): Merged and simplified version of the
975         code formerly in mem-limits.h and sysdep.c.
976         * unexec.c (start): New declaration, moved from sysdep.c.
977         (start_of_text): Simplified version of the code formerly in sysdep.c.
978         * unexaix.c (start_of_text): Simplified version of the code
979         formerly in sysdep.c.
980         * m/alpha.h (HAVE_TEXT_START): Remove.
981         (TEXT_START): Move ...
982         * unexalpha.c (TEXT_START): ... here.
983         * s/hpux10-20.h (TEXT_START): Remove.
984         * s/darwin.h (TEXT_START):
985         * m/mips.h (TEXT_START):
986         * m/macppc.h (HAVE_TEXT_START):
987         * m/m68k.h (TEXT_START):
988         * m/iris4d.h (TEXT_START):
989         * m/intel386.h (TEXT_START):
990         * m/ibmrs6000.h (TEXT_START):
991         * m/ia64.h (HAVE_TEXT_START):
992         * s/msdos.h (TEXT_START): Likewise.
994 2010-07-07  Andreas Schwab  <schwab@linux-m68k.org>
996         * alloc.c (overrun_check_malloc, overrun_check_realloc)
997         (overrun_check_free, xstrdup, allocate_string)
998         (allocate_string_data, compact_small_strings, Fmake_string)
999         (make_unibyte_string, make_multibyte_string)
1000         (make_string_from_bytes, make_specified_string, make_float)
1001         (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1002         (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1003         memcpy, memmove, memset, memcmp.
1004         * atimer.c (start_atimer, set_alarm): Likewise.
1005         * buffer.c (clone_per_buffer_values, report_overlay_modification)
1006         (mmap_realloc, init_buffer_once): Likewise.
1007         * callint.c (Fcall_interactively): Likewise.
1008         * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1009         (getenv_internal_1): Likewise.
1010         * casefiddle.c (casify_object): Likewise.
1011         * ccl.c (ccl_driver): Likewise.
1012         * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1013         * charset.c (load_charset_map_from_file)
1014         (load_charset_map_from_file, load_charset_map_from_vector)
1015         (Fdefine_charset_internal): Likewise.
1016         * cm.c (Wcm_clear): Likewise.
1017         * coding.c (decode_eol, decode_coding_object)
1018         (Fset_coding_system_priority, make_subsidiaries): Likewise.
1019         * data.c (Faset): Likewise.
1020         * dired.c (directory_files_internal, file_name_completion_stat):
1021         Likewise.
1022         * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1023         (clear_glyph_row, copy_row_except_pointers)
1024         (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1025         (save_current_matrix, restore_current_matrix)
1026         (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1027         (mirror_line_dance, scrolling_window): Likewise.
1028         * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1029         Likewise.
1030         * doprnt.c (doprnt): Likewise.
1031         * editfns.c (Fuser_full_name, make_buffer_string_both)
1032         (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1033         * emacs.c (sort_args): Likewise.
1034         * eval.c (Fapply, Ffuncall): Likewise.
1035         * fileio.c (Ffile_name_directory, make_temp_name)
1036         (Fexpand_file_name, search_embedded_absfilename)
1037         (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1038         (auto_save_error): Likewise.
1039         * fns.c (Fstring_equal, Fcopy_sequence, concat)
1040         (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1041         (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1042         (Fmake_hash_table): Likewise.
1043         * fringe.c (Fdefine_fringe_bitmap): Likewise.
1044         * ftfont.c (ftfont_text_extents): Likewise.
1045         * getloadavg.c (getloadavg): Likewise.
1046         * image.c (define_image_type, make_image, make_image_cache)
1047         (x_create_x_image_and_pixmap, xbm_image_p)
1048         (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1049         (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1050         (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1051         (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1052         (tiff_image_p, tiff_read_from_memory, gif_image_p)
1053         (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1054         Likewise.
1055         * indent.c (scan_for_column, compute_motion): Likewise.
1056         * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1057         (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1058         * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1059         * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1060         (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1061         (store_user_signal_events, menu_bar_items, tool_bar_items)
1062         (process_tool_bar_item, append_tool_bar_item)
1063         (read_char_minibuf_menu_prompt, read_key_sequence)
1064         (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1065         Likewise.
1066         * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1067         Likewise.
1068         * lisp.h (STRING_COPYIN): Likewise.
1069         * lread.c (Fload, read1, oblookup): Likewise.
1070         * msdos.c (Frecent_doskeys): Likewise.
1071         * nsfns.m (Fx_create_frame): Likewise.
1072         * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1073         Likewise.
1074         * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1075         (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1076         Likewise.
1077         * nsmenu.m (ns_update_menubar): Likewise.
1078         * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1079         * print.c (print_unwind, printchar, strout, print_string)
1080         (print_error_message): Likewise.
1081         * process.c (conv_lisp_to_sockaddr, set_socket_option)
1082         (Fmake_network_process, Fnetwork_interface_list)
1083         (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1084         (init_process): Likewise.
1085         * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1086         * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1087         Likewise.
1088         * scroll.c (do_scrolling, do_direct_scrolling)
1089         (scrolling_max_lines_saved): Likewise.
1090         * search.c (search_buffer, wordify, Freplace_match): Likewise.
1091         * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1092         * syntax.c (skip_chars, skip_syntaxes): Likewise.
1093         * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1094         (emacs_set_tty): Likewise.
1095         * term.c (encode_terminal_code, calculate_costs)
1096         (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1097         Likewise.
1098         * termcap.c (tgetst1, gobble_line): Likewise.
1099         * termhooks.h (EVENT_INIT): Likewise.
1100         * tparam.c (tparam1): Likewise.
1101         * unexalpha.c (unexec): Likewise.
1102         * unexec.c (write_segment): Likewise.
1103         * unexmacosx.c (unexec_write_zero): Likewise.
1104         * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1105         (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1106         * w32font.c (w32font_list_family, w32font_text_extents)
1107         (w32font_list_internal, w32font_match_internal)
1108         (w32font_open_internal, compute_metrics, Fx_select_font):
1109         Likewise.
1110         * w32menu.c (set_frame_menubar, add_menu_item)
1111         (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1112         * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1113         * w32uniscribe.c (uniscribe_list_family): Likewise.
1114         * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1115         * window.c (make_window, replace_window, set_window_buffer)
1116         (Fsplit_window): Likewise.
1117         * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1118         (add_to_log, message3, x_consider_frame_title)
1119         (append_space_for_newline, extend_face_to_end_of_line)
1120         (decode_mode_spec_coding, init_glyph_string): Likewise.
1121         * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1122         (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1123         (face_attr_equal_p, make_realized_face, make_face_cache)
1124         (free_realized_faces, lookup_named_face, smaller_face)
1125         (face_with_height, lookup_derived_face)
1126         (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1127         (Finternal_set_font_selection_order, realize_default_face)
1128         (compute_char_face, face_at_buffer_position)
1129         (face_for_overlay_string, face_at_string_position, merge_faces):
1130         Likewise.
1131         * xfns.c (xic_create_fontsetname, Fx_create_frame)
1132         (Fx_window_property, x_create_tip_frame)
1133         (Fx_backspace_delete_keys_p): Likewise.
1134         * xfont.c (xfont_list, xfont_match, xfont_list_family)
1135         (xfont_text_extents): Likewise.
1136         * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1137         * xrdb.c (magic_file_p, x_get_resource): Likewise.
1138         * xselect.c (x_queue_event, x_get_window_property)
1139         (receive_incremental_selection): Likewise.
1140         * xsmfns.c (x_session_check_input): Likewise.
1141         * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1142         (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1143         Likewise.
1144         * character.h (BCOPY_SHORT): Removed.
1145         * config.in: Regenerate.
1146         * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1147         * emacs.c (main) [PROFILING]: Don't declare
1148         dump_opcode_frequencies.
1149         * lisp.h (safe_bcopy): Remove declaration.
1150         (memset) [!HAVE_MEMSET]: Declare.
1151         (memcpy) [!HAVE_MEMCPY]: Likewise.
1152         (memmove) [!HAVE_MEMMOVE]: Likewise.
1153         (memcmp) [!HAVE_MEMCMP]: Likewise.
1154         * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1155         (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1156         Don't define.
1157         (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1158         * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1159         (BCOPY_DOWNWARD_SAFE): Don't define.
1160         * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1161         (memcpy) [!HAVE_MEMCPY]: Define.
1162         (memmove) [!HAVE_MEMMOVE]: Define.
1163         (memcmp) [!HAVE_MEMCMP]: Define.
1165 2010-07-07  Jan Djärv  <jan.h.d@swipnet.se>
1167         * process.c (kbd_is_on_hold): New variable.
1168         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1169         New functions.
1170         (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1171         select on empty input mask.
1172         (init_process): Initialize kbd_is_on_hold to 0.
1174         * process.h (hold_keyboard_input, unhold_keyboard_input)
1175         (kbd_on_hold_p): Declare.
1177         * keyboard.c (input_available_signal): Declare.
1178         (kbd_buffer_nr_stored): New function.
1179         (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1180         more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1181         (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1182         returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1183         (tty_read_avail_input): If input is on hold, return.
1184         Don't read more that free slots in kbd_buffer (Bug#6571).
1186 2010-07-07  Eli Zaretskii  <eliz@gnu.org>
1188         * msdos.h:
1189         * msdos.c:
1190         * dosfns.c:
1191         * w16select.c: Convert function definitions to ANSI C.
1193         * msdos.h (ctrl_break_func, install_ctrl_break_check):
1194         Remove unused prototypes.
1196 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
1198         * coding.c, sysdep.c: Convert some more functions to standard C.
1200 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
1202         * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1203         (encode_coding_object): Use SPECPDL_INDEX.
1204         (syms_of_coding): Use DOS_NT.
1206 2010-07-07  Dan Nicolaescu  <dann@ics.uci.edu>
1208         * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1210         Make the function member of Lisp_Subr use standard C prototypes.
1211         * lisp.h (struct Lisp_Subr): Use a union for the function member.
1212         (DECL_ALIGN): Add a cast for the function.
1213         * eval.c (Feval, Ffuncall): Use the proper type for each type
1214         function call.
1216 2010-07-06  Chong Yidong  <cyd@stupidchicken.com>
1218         * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1219         fringe face id, so face-remapping-alist works (Bug#6091).
1221 2010-07-06  Juanma Barranquero  <lekktu@gmail.com>
1223         * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1224         * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1225         * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1227 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
1229         * xterm.c (x_get_keysym_name): Change type of parameter to int.
1230         * lisp.h: Declare x_get_keysym_name.
1231         * keyboard.c (modify_event_symbol): Don't declare
1232         x_get_keysym_name here.
1234 2010-07-06  Dan Nicolaescu  <dann@ics.uci.edu>
1236         * ecrt0.c: Revert conversion to standard C.
1238 2010-07-05  Dan Nicolaescu  <dann@ics.uci.edu>
1240         * vm-limit.c (memory_warnings):
1241         * keyboard.c (modify_event_symbol):
1242         * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1243         (round2, emacs_rint):
1244         * process.c (send_process, old_sigpipe): Convert function
1245         definitions and declarations to standard C.
1247 2010-07-05  Juanma Barranquero  <lekktu@gmail.com>
1249         * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1250         * xdisp.c: Convert function definitions to standard C.
1252         * cm.c (cmputc): Arg C is now int, not char.
1253         * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1255 2010-07-05  James Cloos  <cloos@jhcloos.com>
1257         * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1259         * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1260         _NET_WM_ICON_NAME atoms.
1262         * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1263         and _NET_WM_ICON_NAME properties, too, matching what is
1264         done in the Gtk+ case.
1266 2010-07-05  Jan Djärv  <jan.h.d@swipnet.se>
1268         * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1270         * xsmfns.c (SSDATA): New macro.
1271         (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1272         passed to strlen/strcpy/strcat.
1273         (create_client_leader_window): Surround with #ifndef USE_GTK.  Cast
1274         7:th arg to XChangeProperty to (unsigned char *)
1276         * xsettings.c (something_changedCB, parse_settings)
1277         (apply_xft_settings): Reformat prototype.
1278         (something_changedCB, init_gconf): Remove unused variable i.
1279         (read_settings): Remove unused variable long_len.
1281         * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1282         (xg_get_image_for_pixmap, create_dialog)
1283         (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1284         (menuitem_highlight_callback, make_menu_item)
1285         (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1286         (xg_create_scroll_bar, xg_update_scrollbar_pos)
1287         (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1288         (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1289         (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1290         (xg_tool_bar_item_expose_callback): Reformat prototype.
1291         (xg_update_menubar): GList *group => GSList *group.
1292         (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1293         before use.
1294         (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1295         to GTK_IMAGE (wimage).
1297 2010-07-05  Dan Nicolaescu  <dann@ics.uci.edu>
1299         * atimer.c: Use "" instead of <> for local includes for
1300         consistency with the rest of the code.
1302         * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1303         * xrdb.c (get_system_name):
1304         * window.c (shrink_windows):
1305         * syntax.c (forw_comment):
1306         * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1307         (ins_del_costs):
1308         * mem-limits.h (start_of_data):
1309         * lread.c (readevalloop):
1310         * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1311         (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1312         * frame.c (x_get_focus_frame):
1313         * floatfns.c (fmod_float):
1314         * fileio.c (choose_write_coding_system):
1315         * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1316         (malloc_initialize_hook, sort_args, synchronize_locale):
1317         * doprnt.c (doprnt):
1318         * dired.c (compile_pattern):
1319         * data.c (fmod_float):
1320         * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1321         (map_char_table_for_charset):
1322         * charset.c (define_charset_internal):
1323         * alloc.c (Fgarbage_collect): Convert declarations or definitions
1324         to standard C.
1326 2010-07-04  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
1327             Stefan Monnier  <monnier@iro.umontreal.ca>
1329         * lread.c (read1): Fix up last change to not mess up `c'.
1331 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
1333         * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1335 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
1337         Fix prototypes.
1339         * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
1340         * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
1341         * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1342         arg, as required by internal_condition_case_1.
1343         * print.c (strout): Use const char* for arg PTR.
1344         * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1345         (analyse_first): Fix "const const".
1346         * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
1347         * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
1348         * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
1350 2010-07-04  Dan Nicolaescu  <dann@ics.uci.edu>
1352         * alloc.c: Convert function definitions to standard C.
1353         * atimer.c:
1354         * bidi.c:
1355         * bytecode.c:
1356         * callint.c:
1357         * callproc.c:
1358         * casefiddle.c:
1359         * casetab.c:
1360         * category.c:
1361         * ccl.c:
1362         * character.c:
1363         * charset.c:
1364         * chartab.c:
1365         * cmds.c:
1366         * coding.c:
1367         * composite.c:
1368         * data.c:
1369         * dbusbind.c:
1370         * dired.c:
1371         * dispnew.c:
1372         * doc.c:
1373         * doprnt.c:
1374         * ecrt0.c:
1375         * editfns.c:
1376         * fileio.c:
1377         * filelock.c:
1378         * filemode.c:
1379         * fns.c:
1380         * font.c:
1381         * fontset.c:
1382         * frame.c:
1383         * fringe.c:
1384         * ftfont.c:
1385         * ftxfont.c:
1386         * gtkutil.c:
1387         * indent.c:
1388         * insdel.c:
1389         * intervals.c:
1390         * keymap.c:
1391         * lread.c:
1392         * macros.c:
1393         * marker.c:
1394         * md5.c:
1395         * menu.c:
1396         * minibuf.c:
1397         * prefix-args.c:
1398         * print.c:
1399         * ralloc.c:
1400         * regex.c:
1401         * region-cache.c:
1402         * scroll.c:
1403         * search.c:
1404         * sound.c:
1405         * strftime.c:
1406         * syntax.c:
1407         * sysdep.c:
1408         * termcap.c:
1409         * terminal.c:
1410         * terminfo.c:
1411         * textprop.c:
1412         * tparam.c:
1413         * undo.c:
1414         * unexelf.c:
1415         * window.c:
1416         * xfaces.c:
1417         * xfns.c:
1418         * xfont.c:
1419         * xftfont.c:
1420         * xgselect.c:
1421         * xmenu.c:
1422         * xrdb.c:
1423         * xselect.c:
1424         * xsettings.c:
1425         * xsmfns.c:
1426         * xterm.c: Likewise.
1428 2010-07-03  Eli Zaretskii  <eliz@gnu.org>
1430         * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1431         frames other than the initial one.  Fix reversal of colors when
1432         `reverse' is specified in the frame parameters.  Call
1433         update_face_from_frame_parameter instead of
1434         internal-set-lisp-face-attribute.  Initialize screen colors from
1435         initial_screen_colors[] when f->default_face_done_p is zero,
1436         instead of depending on being called with default-frame-alist as
1437         the alist argument.
1439         * xfaces.c (update_face_from_frame_parameter): Move out of
1440         HAVE_WINDOW_SYSTEM portion.  Condition window-system only parts
1441         with HAVE_WINDOW_SYSTEM.
1443         * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1444         to menu-bar-mode, if not set in the frame parameters or in
1445         default-frame-alist.
1447         * w32console.c (sys_tputs): Adjust argument list to prototype in
1448         term.c.
1450 2010-07-03  Juanma Barranquero  <lekktu@gmail.com>
1452         * lisp.h (memory_warnings): Fix prototype.
1454         * cm.h (evalcost): Fix prototype.
1456         * cm.c (evalcost): Fix arg type.
1458 2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>
1460         * term.c (term_clear_mouse_face, Fidentity):
1461         * syssignal.h (signal_handler_t):
1462         * lisp.h (memory_warnings):
1463         * coding.h (preferred_coding_system):
1464         * cm.h (evalcost):
1465         * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1467 2010-07-02  Eli Zaretskii  <eliz@gnu.org>
1469         * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1470         from prototypes.
1472         * msdos.h (load_pixmap): Don't define away.
1474 2010-07-02  Jan Djärv  <jan.h.d@swipnet.se>
1476         * lisp.h:
1477         * atimer.h: Remove define for P_.
1479         * alloc.c: Remove __P and P_ from .c and .m files.
1480         * atimer.c:
1481         * buffer.c:
1482         * callint.c:
1483         * category.c:
1484         * charset.c:
1485         * chartab.c:
1486         * cm.c:
1487         * coding.c:
1488         * composite.c:
1489         * data.c:
1490         * dired.c:
1491         * dispnew.c:
1492         * doc.c:
1493         * editfns.c:
1494         * emacs.c:
1495         * eval.c:
1496         * fileio.c:
1497         * filelock.c:
1498         * fns.c:
1499         * font.c:
1500         * fontset.c:
1501         * frame.c:
1502         * ftfont.c:
1503         * ftxfont.c:
1504         * gmalloc.c:
1505         * gtkutil.c:
1506         * image.c:
1507         * indent.c:
1508         * intervals.c:
1509         * keyboard.c:
1510         * keymap.c:
1511         * lread.c:
1512         * marker.c:
1513         * menu.c:
1514         * minibuf.c:
1515         * print.c:
1516         * process.c:
1517         * scroll.c:
1518         * search.c:
1519         * sound.c:
1520         * strftime.c:
1521         * syntax.c:
1522         * sysdep.c:
1523         * term.c:
1524         * terminal.c:
1525         * textprop.c:
1526         * unexalpha.c:
1527         * w32console.c:
1528         * w32fns.c:
1529         * w32font.c:
1530         * w32menu.c:
1531         * w32term.c:
1532         * w32uniscribe.c:
1533         * window.c:
1534         * xdisp.c:
1535         * xfaces.c:
1536         * xfns.c:
1537         * xfont.c:
1538         * xftfont.c:
1539         * xmenu.c:
1540         * xselect.c:
1541         * xterm.c: Likewise.
1543         Remove P_ and __P macros.
1544         * atimer.h: Remove P_ and __P macros.
1545         * buffer.h:
1546         * category.h:
1547         * ccl.h:
1548         * character.h:
1549         * charset.h:
1550         * cm.h:
1551         * coding.h:
1552         * composite.h:
1553         * dispextern.h:
1554         * disptab.h:
1555         * dosfns.h:
1556         * font.h:
1557         * fontset.h:
1558         * frame.h:
1559         * gtkutil.h:
1560         * indent.h:
1561         * intervals.h:
1562         * keyboard.h:
1563         * keymap.h:
1564         * lisp.h:
1565         * macros.h:
1566         * md5.h:
1567         * menu.h:
1568         * msdos.h:
1569         * nsterm.h:
1570         * puresize.h:
1571         * region-cache.h:
1572         * syntax.h:
1573         * syssignal.h:
1574         * systime.h:
1575         * termhooks.h:
1576         * w32font.h:
1577         * w32term.h:
1578         * widget.h:
1579         * window.h:
1580         * xgselect.h:
1581         * xsettings.h:
1582         * xterm.h: Likewise.
1584 2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>
1586         * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1588         Cleanup old code.
1589         * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1590         * syssignal.h: Remove code for Lynx, not supported anymore.
1591         * vm-limit.c: Remove unused code the depends on emacs not being
1592         defined and NO_LIM_DATA being defined.
1593         * mem-limits.h: Remove dead code.
1595 2010-07-01  Jan Djärv  <jan.h.d@swipnet.se>
1597         * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1599         * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1600         (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1602         * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1603         parameters, they are already absolute.
1605         * nsterm.m (x_set_window_size, initFrameFromEmacs):
1606         Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
1608         * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1610         * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1611         Update FRAME_TOOLBAR_HEIGHT.
1613         * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1614         Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1616 2010-06-30  Chong Yidong  <cyd@stupidchicken.com>
1618         * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1619         check default-frame-alist.
1621 2010-06-30  Andreas Schwab  <schwab@linux-m68k.org>
1623         * process.c (create_process): Avoid using invalid file descriptors.
1625         * callproc.c (child_setup): Avoid closing a file descriptor twice.
1627 2010-06-30  Jan Djärv  <jan.h.d@swipnet.se>
1629         * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1630         Improve documentation.  Return font regardless of use_system_font.
1631         (syms_of_xsettings): Improve documentation for font-use-system-font.
1633 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
1635         * xfaces.c (realize_face): Garbage the frame if a face is removed
1636         (Bug#6593).
1638 2010-07-05  Andreas Schwab  <schwab@linux-m68k.org>
1640         * keyboard.c: Remove duplicate <setjmp.h>.
1641         (read_key_sequence): Remove volatile qualifiers.
1643 2010-07-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1645         * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1646         (struct glyph_row): New members left_fringe_offset and
1647         right_fringe_offset.
1649         * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1650         specially.
1651         * w32term.c (w32_draw_fringe_bitmap): Likewise.
1652         * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1654         * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
1655         Take account of bitmap offset.
1656         (draw_window_fringes): Take account of window vscroll.
1657         (update_window_fringes): Likewise.  Extend top-aligned top indicator
1658         or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1659         in one row.  Don't set redraw_fringe_bitmaps_p outside row comparison.
1660         Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1662 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
1664         * w32fns.c (Qtooltip): Declare.
1665         Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1667 2010-07-03  Jan Djärv  <jan.h.d@swipnet.se>
1669         * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1670         grab on just Press (Bug#6499).
1672 2010-07-02  Chong Yidong  <cyd@stupidchicken.com>
1674         * frame.c (Qtooltip): New var.
1675         (delete_frame): Use it.  Fix faulty if statement.  Don't update
1676         mode line for tooltip frames.  Suggested by Martin Rudalics.
1678         * xfns.c (x_create_tip_frame):
1679         * w32fns.c (x_create_tip_frame): Use it.
1681 2010-06-17  Naohiro Aota  <naota@elisp.net>  (tiny change)
1683         * xftfont.c (xftfont_open): Check font width one by one also when
1684         spacing is dual.
1686         * ftfont.c (ftfont_open): Ditto.
1688 2010-06-30  Glenn Morris  <rgm@gnu.org>
1690         * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1692         * Makefile.in (CANNOT_DUMP): Update for configure name change.
1694         * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1695         * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1696         * s/darwin.h (SYSTEM_MALLOC):
1697         * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1699 2010-06-29  Jan Djärv  <jan.h.d@swipnet.se>
1701         * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1702         (ns_get_screen): Don't assign integer to f.
1703         (Fx_display_color_cells): Declarations before statements.
1705 2010-06-28  Jan Djärv  <jan.h.d@swipnet.se>
1707         * xfns.c (x_default_font_parameter): Remove got_from_system
1708         (Bug#6526).
1710         * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1711         (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1712         defines based on what configure finds.
1714         * xterm.c (XTflash): Use gtk_widget_get_window.
1715         (xg_scroll_callback): Use gtk_adjustment_get_upper and
1716         gtk_adjustment_get_page_size.
1717         (handle_one_xevent): Use gtk_widget_get_mapped.
1718         (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1719         messages.
1721         * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1723         * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1724         HAVE_GTK_FILE_SELECTION_NEW.
1726         * gtkutil.c (xg_display_open, xg_display_close): Remove
1727         HAVE_GTK_MULTIDISPLAY, it is always defined.
1728         (xg_display_open): Return type is void.
1729         (gtk_widget_set_has_window)
1730         (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1731         (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1732         (gtk_adjustment_set_page_increment)
1733         (gtk_adjustment_get_step_increment): #define these if not found
1734         by configure.
1735         (remove_submenu): New define based on Gtk+ version.
1736         (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1737         gtk_widget_get_window.
1738         (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1739         (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1740         (create_dialog): Use gtk_dialog_get_action_area and
1741         gtk_dialog_get_content_area.
1742         (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1743         and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW.  File chooser is always
1744         available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1745         (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1746         g_object_ref and g_object_unref.
1747         (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1748         gtk_widget_get_sensitive.
1749         (xg_update_submenu): Use remove_submenu.
1750         (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1751         properties instead to get old x and y position.
1752         (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1753         gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
1754         gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
1755         (xg_get_tool_bar_widgets): New function.
1756         (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1757         (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1758         (toolbar_set_orientation): New #define based on if configure
1759         finds gtk_orientable_set_orientation.
1760         (xg_create_tool_bar): Call toolbar_set_orientation.
1761         (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1762         instead of gtk_box_pack_start_defaults.
1764 2010-06-28  Chong Yidong  <cyd@stupidchicken.com>
1766         * cmds.c (Fdelete_backward_char): Move into Lisp.
1768 2010-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
1770         * s/freebsd.h (BSD4_2): Remove redundant definition.
1771         bsd-common.h defines it already.
1773 2010-06-27  Chong Yidong  <cyd@stupidchicken.com>
1775         * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1776         menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
1777         tool-bar-mode, which are now set using these X resources at
1778         startup, to determine the defaults (Bug#2249).
1780         * w32fns.c (Fx_create_frame):
1781         * nsfns.m (Fx_create_frame): Likewise.
1783         * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1785 2010-06-24  Juanma Barranquero  <lekktu@gmail.com>
1787         * gtkutil.c (xg_update_scrollbar_pos):
1788         Avoid C99 mid-block variable declaration.
1790 2010-06-22  Jan Djärv  <jan.h.d@swipnet.se>
1792         * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1794         * gtkutil.h (xg_show_scroll_bar): Remove.
1796         * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1797         if height is less than scroll bar min size.
1798         (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1800         * xfns.c (x_default_font_parameter): Try to open font from system
1801         before using it (bug#6478).  Rename got_from_gconf to got_from_system.
1803 2010-06-22  Keith Packard  <keithp@keithp.com>  (tiny change)
1805         * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1807 2010-06-20  Eli Zaretskii  <eliz@gnu.org>
1809         * xdisp.c (try_scrolling): When scroll-conservatively is set to
1810         most-positive-fixnum, be extra accurate when scrolling window
1811         start, to avoid missing the cursor line.
1813 2010-06-19  Eli Zaretskii  <eliz@gnu.org>
1815         * xdisp.c (try_scrolling): Compute the limit for searching point
1816         in forward scroll from scroll_max, instead of an arbitrary limit
1817         of 10 screen lines.  See
1818         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1819         and
1820         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1821         for details.
1823 2010-06-16  Glenn Morris  <rgm@gnu.org>
1825         * editfns.c (Fbyte_to_string): Pacify compiler.
1827 2010-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
1829         * lread.c (read1): Phase out old-style backquotes a bit more.
1831 2010-06-12  Eli Zaretskii  <eliz@gnu.org>
1833         * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1834         bidimirror.h.
1836         * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1838         * bidi.c (bidi_initialize): Remove explicit initialization of
1839         bidi_type_table; include biditype.h instead.  Don't support
1840         entries whose second codepoint is zero.  Initialize bidi_mirror_table.
1841         (bidi_mirror_char): Use bidi_mirror_table.
1843         * biditype.h: New file.
1845         * bidimirror.h: New file.
1847         * window.c (syms_of_window): Doc fix (bug#6409).
1849 2010-06-12  Romain Francoise  <romain@orebokech.com>
1851         * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1852         ediff-hook.
1854 2010-06-10  Glenn Morris  <rgm@gnu.org>
1856         * editfns.c (Fbyte_to_string): Pacify compiler.
1858         * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1860 2010-06-26  Andreas Schwab  <schwab@linux-m68k.org>
1862         * alloc.c (Fmake_byte_code): Don't access undefined argument
1863         (Bug#6517).
1865 2010-06-25  Chong Yidong  <cyd@stupidchicken.com>
1867         * xdisp.c (next_element_from_image): Ensure that after-strings are
1868         read the next time we hit handle_stop (Bug#1336).
1870 2010-06-23  Andreas Schwab  <schwab@linux-m68k.org>
1872         * lread.c (read1): Signal error if #s is not followed by paren.
1874 2010-06-19  Chong Yidong  <cyd@stupidchicken.com>
1876         * image.c (free_image): Mark frame as garbaged (Bug#6426).
1878         * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1880 2010-06-15  Glenn Morris  <rgm@gnu.org>
1882         * editfns.c (Fbyte_to_string): Pacify compiler.
1884 2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
1886         * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1887         Check `object's type before accessing its guts.
1889 2010-06-09  Dan Nicolaescu  <dann@ics.uci.edu>
1891         * s/usg5-4.h: Fix previous change.
1892         Suggested by Lawrence Mitchell <wence@gmx.li>
1894 2010-06-08  Andreas Schwab  <schwab@linux-m68k.org>
1896         * minibuf.c (Fall_completions): Add more checks.
1898 2010-06-08  Juanma Barranquero  <lekktu@gmail.com>
1900         * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1902 2010-06-08  Dan Nicolaescu  <dann@ics.uci.edu>
1904         * lread.c (X_OK): Remove, unused.
1906         * dispnew.c: Remove obsolete comment.
1908         Remove INCLUDED_FCNTL.
1909         * xterm.c (INCLUDED_FCNTL):
1910         * callproc.c (INCLUDED_FCNTL):
1911         * alloc.c (INCLUDED_FCNTL):
1912         * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1913         (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1915 2010-06-07  Martin Rudalics  <rudalics@gmx.at>
1917         * window.c (Fselect_window): Move `record_buffer' up to the
1918         beginning of this function, so the buffer gets recorded
1919         even if the selected window does not change.
1920         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1922 2010-06-07  Juanma Barranquero  <lekktu@gmail.com>
1924         * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1925         (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1927 2010-06-06  Dan Nicolaescu  <dann@ics.uci.edu>
1929         Remove BSTRING related code, all platforms define it.
1930         * s/usg5-4.h (BSTRING): Remove definition.
1931         * s/template.h (BSTRING):
1932         * s/msdos.h (BSTRING):
1933         * s/ms-w32.h (BSTRING):
1934         * s/hpux10-20.h (BSTRING):
1935         * s/gnu-linux.h (BSTRING):
1936         * s/darwin.h (BSTRING):
1937         * s/cygwin.h (BSTRING):
1938         * s/bsd-common.h (BSTRING):
1939         * s/aix4-2.h (BSTRING): Likewise.
1940         * sysdep.c: Remove code depending on BSTRING not being defined.
1942 2010-06-05  Juanma Barranquero  <lekktu@gmail.com>
1944         Remove obsolete macro BASE_LEADING_CODE_P.
1945         * character.h (BASE_LEADING_CODE_P): Remove.
1946         * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1947         * buffer.c (Fset_buffer_multibyte):
1948         * indent.c (scan_for_column, compute_motion):
1949         * insdel.c (count_combining_before, count_combining_after):
1950         Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1952 2010-06-04  Juanma Barranquero  <lekktu@gmail.com>
1954         Turn `directory-sep-char' into a noop.
1956         * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1957         (DIRECTORY_SEP): Define unconditionally.
1959         * s/ms-w32.h (DIRECTORY_SEP): Remove.
1961         * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1962         call dostounix_filename directly.
1964         * fileio.c (CORRECT_DIR_SEPS): Remove.
1965         (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1966         (Fsubstitute_in_file_name): Use dostounix_filename instead.
1967         (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1968         (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1970         * w32proc.c (CORRECT_DIR_SEPS): Remove.
1971         (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1973 2010-06-03  Andreas Schwab  <schwab@linux-m68k.org>
1975         * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1976         (Bug#6346)
1978 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
1980         * ccl.c (Fccl_program_p): Fix typo in docstring.
1982 2010-06-03  Dan Nicolaescu  <dann@ics.uci.edu>
1984         Move UNEXEC definition to autoconf.
1985         * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1986         * s/sol2-10.h (UNEXEC):
1987         * s/irix6-5.h (UNEXEC):
1988         * s/hpux10-20.h (UNEXEC):
1989         * s/gnu-linux.h (UNEXEC):
1990         * s/darwin.h (UNEXEC):
1991         * s/cygwin.h (UNEXEC):
1992         * s/bsd-common.h (UNEXEC):
1993         * s/aix4-2.h (UNEXEC):
1994         * m/alpha.h (UNEXEC): Likewise.
1995         * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1997 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
1999         Remove obsolete pre-unicode2 macros.
2000         * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2001         * composite.c (composition_reseat_it):
2002         * data.c (Faset):
2003         * fns.c (Ffillarray):
2004         * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2005         [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2007 2010-06-03  Juri Linkov  <juri@jurta.org>
2009         * buffer.c (Fother_buffer): Add CHECK_FRAME.
2010         (Fswitch_to_buffer): Remove unused variable `err'.
2012 2010-06-03  Glenn Morris  <rgm@gnu.org>
2014         * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2016         * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2017         now that AH_BOTTOM does it.
2019         * m/hp800.h (HAVE_ALLOCA):
2020         * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2022         * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2023         Remove NOT_C_CODE tests, it is always true now.
2025 2010-06-02  Dan Nicolaescu  <dann@ics.uci.edu>
2027         Fix config.h includes.
2028         * xsettings.c:
2029         * xgselect.c:
2030         * nsterm.m:
2031         * nsselect.m:
2032         * nsimage.m:
2033         * nsfont.m:
2034         * nsfns.m:
2035         * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2036         other files do.
2038         * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2040         * s/sol2-6.h: Remove obsolete comments.
2042         Remove unnecessary alloca.h includes.
2043         * keymap.c: Do not include alloca.h, config.h does that.
2044         * sysdep.c: Likewise.  Do not define fwrite, not used.
2046 2010-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
2048         * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2049         the HAVE_TERMIO where it belongs (bug#6149).
2051 2010-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
2053         * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2054         of bug#6305).
2056 2010-05-30  Eli Zaretskii  <eliz@gnu.org>
2058         * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2059         state is always cached (bug#6306).
2061 2010-05-29  Eli Zaretskii  <eliz@gnu.org>
2063         Fix cursor motion in bidi-reordered continued lines.
2064         * xdisp.c (try_cursor_movement): Backup to non-continuation line
2065         only after finding point's row.  Fix the logic.  Rewrite the loop
2066         over continuation lines in bidi-reordered buffers.  Return
2067         CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2068         rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2070 2010-05-28  Michael Albinus  <michael.albinus@gmx.de>
2072         * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2074 2010-05-28  Kenichi Handa  <handa@m17n.org>
2076         * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2077         Don't sheck SPEC if it is nil.
2078         (font_list_entities): Call font_delete_unmatched if
2079         Vface_ignored_fonts is non-nil.  (Bug#6287)
2081 2010-05-28  Glenn Morris  <rgm@gnu.org>
2083         * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2085 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
2087         * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2088         whether to trash.
2089         (internal_delete_file, Frename_file): Callers changed.
2090         (delete_by_moving_to_trash): Doc fix.
2091         (Fdelete_directory_internal): Don't move to trash.
2093         * callproc.c (delete_temp_file):
2094         * buffer.c (Fkill_buffer): Callers changed.
2096         * lisp.h: Update prototype.
2098 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
2100         * xdisp.c (redisplay_window): After redisplay, check if point is
2101         still valid before setting it (Bug#6177).
2103 2010-05-27  Glenn Morris  <rgm@gnu.org>
2105         * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2106         Convert comments to Makefile format.
2108         * Makefile.in (bootstrap-clean): No more Makefile.c.
2110 2010-05-26  Glenn Morris  <rgm@gnu.org>
2112         * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2113         (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2115         * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2116         Remove.
2117         (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2119 2010-05-26  Kenichi Handa  <handa@m17n.org>
2121         * composite.c (composition_compute_stop_pos): Fix condition for
2122         backward scanning.
2124 2010-05-25  Glenn Morris  <rgm@gnu.org>
2126         * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2127         Move before TEMACS_LDFLAGS.
2128         (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2129         (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2131         * Makefile.in (NOT_C_CODE): No longer define.
2132         (config.h): No longer include.
2134         * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2135         variables it may reference.
2137         * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2138         (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2140 2010-05-25  Kenichi Handa  <handa@m17n.org>
2142         * dispextern.h (struct composition_it): New members rule_idx and
2143         charpos.
2145         * xdisp.c (set_iterator_to_next): While scanning backward, assume
2146         that the character positions of IT point the last character of the
2147         current grapheme cluster.
2148         (next_element_from_composition): Don't change character positions
2149         of IT.
2150         (append_composite_glyph): Set glyph->charpos to
2151         it->cmp_it.charpos.
2153         * composite.c (autocmp_chars): Change the first argument to RULE,
2154         and try composition with RULE only.
2155         (composition_compute_stop_pos): Record the index number of the
2156         composition rule in CMP_IT->rule_idx.
2157         (composition_reseat_it): Call autocmp_chars repeatedly until the
2158         correct rule of the composition is found.
2159         (composition_update_it): Set CMP_IT->charpos.  Assume the CHARPOS
2160         is at the last character of the current grapheme cluster when
2161         CMP_IT->reversed_p is nonzero.
2163 2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
2165         * editfns.c (Fbyte_to_string): New function.
2167 2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
2169         * process.c (Fmake_network_process): Set :host to nil if it's not used.
2170         Suggested by Masatake YAMATO <yamato@redhat.com>.
2172 2010-05-23  Eli Zaretskii  <eliz@gnu.org>
2174         * dispextern.h (init_iterator): Sync prototype with changed definition.
2176 2010-05-20  enami tsugutomo  <tsugutomo.enami@jp.sony.com>
2178         * s/netbsd.h: If terminfo is found, use it in preference to
2179         termcap.  (Bug#6190)  [Backport from trunk]
2181 2010-05-19  Eli Zaretskii  <eliz@gnu.org>
2183         Redesign and reimplement bidi-aware edge positions of glyph rows.
2185         * dispextern.h (struct glyph_row): New members minpos and maxpos.
2186         (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2187         (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2188         and maxpos members instead of start.pos and end.pos, respectively.
2190         * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2191         row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2192         (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2193         (try_window_reusing_current_matrix, try_window_id):
2194         Use ROW->minpos rather than ROW->start.pos.
2195         (init_from_display_pos, init_iterator): Use EMACS_INT for
2196         character and byte positions.
2197         (find_row_edges): Rename from find_row_end.  Accept additional
2198         arguments for minimum and maximum buffer positions seen by
2199         display_line for this row.  Don't use iterator to find the
2200         position following the maximum one; instead, increment the
2201         position found by display_line directly.  Fix logic; eol_pos
2202         should be tested before the rest.  Handle the case of characters
2203         delivered from display vector (bug#6036).  Fix tests related to
2204         it->method.  Handle the truncated_on_right_p rows.
2205         (RECORD_MAX_MIN_POS): New macro.
2206         (display_line): Use it to record the minimum and maximum buffer
2207         positions for glyphs in the row being assembled.  Record the
2208         position of the newline that terminates the line.  If word wrap is
2209         in effect, restore minimum and maximum positions seen up to the
2210         wrap point, when iterator returns to it.
2211         (try_window_reusing_current_matrix): Give up if in bidi-reordered
2212         row and cursor not already at point.  Restore original pre-bidi
2213         code for unidirectional buffers.
2215         * dispnew.c (increment_row_positions, check_matrix_invariants):
2216         Increment and check row->start.pos and row->end.pos, in addition
2217         to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2219         * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2220         Display truncated_on_left_p and truncated_on_right_p flags.
2221         Formatting fixes.
2222         (pmtxrows): Display the ordinal number of each row.  Don't display
2223         rows beyond the last one.
2225         * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2226         it is not copied by bidi_copy_it.
2228 2010-05-22  Eli Zaretskii  <eliz@gnu.org>
2230         * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2231         (Bug#6237)
2233 2010-05-22  Chong Yidong  <cyd@stupidchicken.com>
2235         * image.c (Fimage_flush): Rename from image-refresh.
2237 2010-05-21  Chong Yidong  <cyd@stupidchicken.com>
2239         * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2240         just one window.
2242         * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2243         (clear_image_cache): If the number of cached images is unusually
2244         large, decrease the cache eviction delay (Bug#6230).
2246 2010-05-21  Glenn Morris  <rgm@gnu.org>
2248         * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2249         Move these rules to ns.mk.
2250         * ns.mk: New file.
2252         * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2254         * Makefile.in (CANNOT_DUMP): New, set by configure.
2255         (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2257 2010-05-20  Juri Linkov  <juri@jurta.org>
2259         * fileio.c (Fdelete_file): Change interative spec to use
2260         `read-file-name' like in `find-file-read-args' where the default
2261         value is `default-directory' instead of `buffer-file-name'.
2262         http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2264 2010-05-20  Kevin Ryde  <user42@zip.com.au>
2266         * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2267         (Voverriding_terminal_local_map, Vsystem_key_alist)
2268         (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2270 2010-05-20  Glenn Morris  <rgm@gnu.org>
2272         * Makefile.in (DEPDIR): New constant.
2273         (DEPFLAGS): Set with configure, not cpp.
2274         (MKDEPDIR): New, set by configure.
2275         (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2276         (clean): Use $DEPDIR.
2277         (deps_frag): Include from configure.
2278         Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2279         * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2281         * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2282         reallocation of the cache.  (Bug#6210)
2284 2010-05-19  Glenn Morris  <rgm@gnu.org>
2286         * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2288         * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2289         (GNULIB_VAR): Remove.
2290         (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2292         * m/ibms390x.h (LINKER):
2293         * m/macppc.h (LINKER) [GNU_LINUX]:
2294         * s/aix4-2.h (ORDINARY_LINK):
2295         * s/cygwin.h (LINKER):
2296         * s/darwin.h (ORDINARY_LINK):
2297         * s/gnu.h (ORDINARY_LINK):
2298         * s/netbsd.h (LINKER):
2299         * s/usg5-4.h (ORDINARY_LINK):
2300         Move to configure.
2302         * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2304 2010-05-18  Chong Yidong  <cyd@stupidchicken.com>
2306         * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2307         prevent stack overflow if number of arguments is too large
2308         (Bug#6214).
2310 2010-05-18  Juanma Barranquero  <lekktu@gmail.com>
2312         * charset.c (load_charset_map_from_file): Don't call close after fclose.
2314 2010-05-18  Glenn Morris  <rgm@gnu.org>
2316         * s/gnu-linux.h: Combine two conditionals.
2318         * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
2319         $(POST_ALLOC_OBJ).
2321         * Makefile.in (RALLOC_OBJ): New, set by configure.
2322         (rallocobj): Replace with the previous variable.
2323         (otherobj): Use $RALLOC_OBJ.
2325         * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2326         * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2328         * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2329         (gmallocobj, vmlimitobj): Replace with previous two variables.
2330         (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2332 2010-05-17  Glenn Morris  <rgm@gnu.org>
2334         * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2335         (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2337 2010-05-16  Glenn Morris  <rgm@gnu.org>
2339         * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2341         * Makefile.in (clean): Get rid of HAVE_NS conditional.
2343         * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2344         trailing "/".
2346         * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2347         (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2349         * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2350         (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2351         (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2352         (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2353         Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2355         * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2356         Remove ${STARTFLAGS}, nothing ever sets it.
2358 2010-05-16  Dan Nicolaescu  <dann@ics.uci.edu>
2360         * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2362 2010-05-16  Glenn Morris  <rgm@gnu.org>
2364         * Makefile.in (LIBX_BASE): Always define.
2366         * Makefile.in (LIBX_OTHER): Move out of cpp section.
2368         * Makefile.in (LIBXT): Always define.
2370 2010-05-15  Glenn Morris  <rgm@gnu.org>
2372         * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
2374         * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2375         (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2377 2010-05-15  Ken Raeburn  <raeburn@raeburn.org>
2379         * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue.  (Bug#5916)
2380         (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2382         * emacs.c (main): Initialize initial-environment and
2383         process-environment before generating from env, not after.
2385         Handle --version reasonably in CANNOT_DUMP configuration.
2386         * emacs.c (emacs_version, emacs_copyright): New string variables.
2387         (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2388         (syms_of_emacs): Defvar them, and initialize them from the C
2389         string variables.
2390         (main): If initialization hasn't been done, print initial version
2391         info from the C strings, instead of starting an interactive session.
2393 2010-05-15  Eli Zaretskii  <eliz@gnu.org>
2395         * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2396         of bidi_it->paragraph_dir.  Call bidi_initialize if needed.
2397         (bidi_paragraph_init): Remove redundant assertion that we are at
2398         the beginning of a line after call to bidi_find_paragraph_start.
2400         * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2401         (syms_of_xdisp): Defsubr it.
2403         * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2405         * Makefile.in: Fix MSDOS-related comments.
2407 2010-05-15  Glenn Morris  <rgm@gnu.org>
2409         * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2410         (really-lwlib, really-oldXMenu): Always define.
2411         ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2413         * Makefile.in: Simplify cpp conditional.
2415         * Makefile.in (${ns_appdir}): Simplify using umask.
2417         * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2419 2010-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
2421         * eval.c (specbind): Remove left-over duplicate test.
2422         Disallow let-binding frame-local vars.  Add comment.
2424 2010-05-14  Eli Zaretskii  <eliz@gnu.org>
2426         Make the cache of bidi iterator states dynamically allocated.
2427         * bidi.c (bidi_cache_shrink): New function.
2428         (bidi_init_it): Call it.
2429         (bidi_cache_iterator_state): Enlarge the cache if needed.
2431         * bidi.c (bidi_move_to_visually_next): Rename from
2432         bidi_get_next_char_visually.  All callers changed.
2434 2010-05-14  Kenichi Handa  <handa@m17n.org>
2436         * dispextern.h (struct composition_it): New member reversed_p.
2438         * composite.c (composition_compute_stop_pos): Search backward if
2439         ENDPOS < CHARPOS.
2440         (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2441         Set CMP_IT->reversed_p.
2442         (composition_update_it): Pay attention to CMP_IT->reversed_p.
2444         * xdisp.c (set_iterator_to_next):
2445         Call composition_compute_stop_pos with negative ENDPOS if we are
2446         scanning backward.  Call composition_compute_stop_pos if scan
2447         direction is changed.
2448         (next_element_from_buffer): Call composition_compute_stop_pos with
2449         negative ENDPOS if we are scanning backward.
2450         (next_element_from_composition): Pay attention to
2451         IT->cmp_it.reversed_p.
2453 2010-05-14  Kenichi Handa  <handa@m17n.org>
2455         * font.c (font_range): Return the range for the font found at first.
2457 2010-05-14  Glenn Morris  <rgm@gnu.org>
2459         * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2461         * Makefile.in (mktime, X11, register): Move undefs to configure.
2463         * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2464         (MSDOS_X_OBJ): New variable.
2465         (MSDOS_SUPPORT_REAL): New constant.
2466         (MSDOS_SUPPORT): Set as a variable, not with cpp.
2467         (obj): Use MSDOS_X_OBJ.
2468         (lisp): Use MSDOS_SUPPORT as a variable.
2470         * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2471         (GPM_MOUSE_SUPPORT): Now it's a constant.
2472         (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2473         not cpp.
2475         * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
2476         (ns_appresdir): Remove, unused.
2478         * Makefile.in (SHELL): Move outside cpp section.
2480         * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2482 2010-05-13  Glenn Morris  <rgm@gnu.org>
2484         * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2485         (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2487         * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2488         HAVE_WINDOW_SYSTEM must be too.
2490         * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2491         (lisp): Remove WINNT_SUPPORT.
2493         * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2494         Let configure set these variables (to empty) in this case as well.
2496         * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2497         (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2499         * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2500         (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2501         (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2502         (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2503         (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
2504         the values output by configure.
2505         (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2507 2010-05-12  Glenn Morris  <rgm@gnu.org>
2509         * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2510         (LINKER_WAS_SPECIFIED): Remove.
2512         * Makefile.in (LIB_GCC): Set using configure, not cpp.
2513         (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2514         * m/arm.h (LIB_GCC) [GNU_LINUX]:
2515         * s/cygwin.h (LIB_GCC):
2516         * s/freebsd.h (LIB_GCC):
2517         * s/gnu-linux.h (LIB_GCC):
2518         * s/msdos.h (LIB_GCC):
2519         * s/netbsd.h (LIB_GCC):
2520         Move to configure.
2522 2010-05-11  Karel Klic  <kklic@redhat.com>
2524         * ftfont.c: Fix incorrect parentheses of #if condition for
2525         definining M17N_FLT_USE_NEW_FEATURE.
2527 2010-05-11  Glenn Morris  <rgm@gnu.org>
2529         * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2530         * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2532 2010-05-10  Eli Zaretskii  <eliz@gnu.org>
2534         * xdisp.c (init_iterator): Don't turn on bidi reordering in
2535         unibyte buffers.  See
2536         http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2538 2010-05-10  Glenn Morris  <rgm@gnu.org>
2540         * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2541         (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2542         (LIBES): Use LIBS_SYSTEM as a variable.
2543         * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM.  Always define.
2544         * s/aix4-2.h (LIBS_SYSTEM):
2545         * s/freebsd.h (LIBS_SYSTEM):
2546         * s/hpux10-20.h (LIBS_SYSTEM):
2547         * s/sol2-6.h (LIBS_SYSTEM):
2548         * s/unixware.h (LIBS_SYSTEM):
2549         Move to configure.
2551         * s/aix4-2.h (MAIL_USE_LOCKF):
2552         * s/bsd-common.h (MAIL_USE_FLOCK):
2553         * s/darwin.h (MAIL_USE_FLOCK):
2554         * s/gnu-linux.h (MAIL_USE_FLOCK):
2555         * s/irix6-5.h (MAIL_USE_FLOCK):
2556         * s/template.h (MAIL_USE_FLOCK):
2557         Move to configure.
2559 2010-05-08  Chong Yidong  <cyd@stupidchicken.com>
2561         * Version 23.2 released.
2563 2010-05-08  Andreas Schwab  <schwab@linux-m68k.org>
2565         * composite.c (autocmp_chars): Save point as marker before calling
2566         auto-composition-function (Bug#5984).
2568         * lisp.h (restore_point_unwind): Add prototype.
2570         * fileio.c (restore_point_unwind): Remove static attribute.
2572 2010-05-08  Kenichi Handa  <handa@m17n.org>
2574         * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2575         new feature of libotf and m17n-flt.
2576         (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2577         Call OTF_check_features even if no specific feature is given.
2578         (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2579         (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2580         that OUT is NULL.  Use OTF_drive_gsub_with_log and
2581         OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2582         OTF_drive_gpos.
2583         (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
2584         (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2585         Setup mflt_enable_new_feature and mflt_try_otf.
2587 2010-05-08  Jan Djärv  <jan.h.d@swipnet.se>
2589         * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2591         * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2592         box and toolbar (Bug #6139).
2593         (xg_create_tool_bar): Remove comment (Bug #6139).
2594         (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2595         (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2597 2010-05-08  Juanma Barranquero  <lekktu@gmail.com>
2599         * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2600         Update dependencies.
2602 2010-05-08  Eli Zaretskii  <eliz@gnu.org>
2604         * fringe.c (update_window_fringes): Set up truncation bitmaps for
2605         R2L lines.
2607 2010-05-08  Glenn Morris  <rgm@gnu.org>
2609         * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2611         * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2612         (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2613         (termcapobj): Replace with TERMCAP_OBJ.
2614         (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2615         (LIBES): Use LIBS_TERMCAP as a variable.
2617         * s/freebsd.h (osreldate.h): No longer include, since this file
2618         does not use __FreeBSD_version any more.
2620         * s/aix4-2.h (TERMINFO):
2621         * s/cygwin.h (TERMINFO):
2622         * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2623         * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2624         * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2625         * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2626         * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2627         * s/irix6-5.h (TERMINFO):
2628         * s/netbsd.h (LIBS_TERMCAP):
2629         * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2630         * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2631         * s/usg5-4.h (TERMINFO):
2632         Move to configure.
2634 2010-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
2636         * eval.c (unbind_to): Don't unbind a local binding into the global
2637         binding when the local binding disappeared.  Inversely, don't unbind
2638         a global binding into a newly created local binding.
2639         * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2640         can specify the frame to use, when applicable.  Adjust callers.
2642 2010-05-07  Vincent Belaïche  <vincent.belaiche@gmail.com>
2643             Stefan Monnier  <monnier@iro.umontreal.ca>
2645         * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2647 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
2649         * w32fns.c: Include w32.h.
2650         (Fw32_shell_execute): Decode the error message before passing it
2651         to `error'.  (Bug#6126)
2653         * msdos.c (dos_set_window_size):
2654         * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2655         instead of `XSYMBOL (foo)->value'.
2657 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
2659         Fix the MS-DOS build, broken by autoconfiscation.
2661         * Makefile.in: Don't use Make-style comments past the "start of
2662         cpp stuff" line.
2663         (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2665         * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2666         edited directly by msdos/sed1v2.inp).
2668 2010-05-07  Glenn Morris  <rgm@gnu.org>
2670         * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2671         (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2672         (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2673         move out of cpp section.
2674         * s/freebsd.h (LD_SWITCH_SYSTEM):
2675         * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2676         * s/netbsd.h (LD_SWITCH_SYSTEM):
2677         * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2679 2010-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
2681         Define LIB_STANDARD and START_FILES using autoconf.
2682         * s/usg5-4.h (LIB_STANDARD):
2683         * s/netbsd.h (START_FILES):
2684         * s/irix6-5.h (LIB_STANDARD):
2685         * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2686         * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2687         * s/freebsd.h (START_FILES):
2688         * s/darwin.h (START_FILES):
2689         * s/cygwin.h (START_FILES):
2690         * s/aix4-2.h (LIB_STANDARD):
2691         * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2692         * Makefile.in (STARTFILES): Rename to START_FILES, define using
2693         autoconf, not cpp.
2695 2010-05-06  Dan Nicolaescu  <dann@ics.uci.edu>
2697         Remove NEED_BSDTTY and NEED_UNISTD_H.
2698         * s/hpux10-20.h (NEED_BSDTTY): Remove.
2699         * s/aix4-2.h (NEED_UNISTD_H): Remove.
2700         * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2701         <sys/ptyio.h> and <unistd.h>.
2703         * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2705         * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2706         * s/gnu.h (START_FILES): Remove empty definition.
2708 2010-05-06  Jan Djärv  <jan.h.d@swipnet.se>
2710         * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2712 2010-05-06  Glenn Morris  <rgm@gnu.org>
2714         * Makefile.in (CPP, LN_S): Remove unused variables.
2716 2010-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
2718         * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2720 2010-05-05  Lawrence Mitchell  <wence@gmx.li>
2722         * m/sparc.h: Fix typo in earlier change.
2724 2010-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
2726         Misc tweaks.
2727         * eval.c (Fdefvaralias): Remove unintended nested if.
2728         (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2730 2010-05-04  Bernhard Herzog  <bh@intevation.de>  (tiny change)
2732         * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2734 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
2736         Remove BSD_PGRPS.
2737         * s/bsd-common.h (BSD_PGRPS): Remove undef.
2738         * s/gnu-linux.h (BSD_PGRPS): Remove.
2739         * term.c (dissociate_if_controlling_tty):
2740         * sysdep.c (narrow_foreground_group, widen_foreground_group)
2741         (init_sys_modes, reset_sys_modes):
2742         * emacs.c (main):
2743         * callproc.c (Fcall_process, child_setup): Remove code depending
2744         on BSD_PGRPS.
2746         Remove POSIX_SIGNALS.
2747         * s/usg5-4.h (POSIX_SIGNALS):
2748         * s/netbsd.h (POSIX_SIGNALS):
2749         * s/msdos.h (POSIX_SIGNALS):
2750         * s/ms-w32.h (POSIX_SIGNALS):
2751         * s/hpux11.h (POSIX_SIGNALS):
2752         * s/gnu.h (POSIX_SIGNALS):
2753         * s/gnu-linux.h (POSIX_SIGNALS):
2754         * s/freebsd.h (POSIX_SIGNALS):
2755         * s/darwin.h (POSIX_SIGNALS):
2756         * s/cygwin.h (POSIX_SIGNALS):
2757         * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2758         * s/unixware.h:
2759         * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2760         * process.c (create_process):
2761         * syssignal.h:
2762         * sysdep.c (wait_for_termination, init_signals):
2763         * process.c (create_process):
2764         * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2765         remove all code that assumes the contrary.
2767 2010-05-04  Glenn Morris  <rgm@gnu.org>
2769         * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2770         variable.
2771         * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2772         (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2773         * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2774         (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2775         LD_SWITCH_SYSTEM_tmp.
2776         * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2777         New variables, set by configure.
2779         * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2780         * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2781         (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2782         * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2783         (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2785         * s/aix4-2.h (C_SWITCH_SYSTEM):
2786         * m/alpha.h (C_SWITCH_MACHINE):
2787         Move to configure.in.
2788         * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2789         New variables, set by configure.
2790         (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2791         $c_switch_machine and $c_switch_system.
2793 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
2795         * s/hpux10-20.h (LIB_STANDARD): New definition.
2796         * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2797         on it, not used anymore.
2799 2010-05-03  Chong Yidong  <cyd@stupidchicken.com>
2801         * eval.c (internal_condition_case_n): Rename from
2802         internal_condition_case_2.
2803         (internal_condition_case_2): New function.
2805         * xdisp.c (safe_call): Use internal_condition_case_n.
2807         * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2808         (internal_delete_file, Frename_file): Callers changed.
2810         * buffer.c (Fkill_buffer):
2811         * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2813         * lisp.h: Update prototypes.
2815 2010-05-03  Glenn Morris  <rgm@gnu.org>
2817         * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2818         (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2819         (LIBXT): Set with configure, not cpp.
2820         (LIBX): Remove.
2821         (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2823 2010-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
2825         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2826         The FreeBSD is not needed, the default works, Solaris version is
2827         not needed, and the remaining case is not supported by configure.
2829 2010-05-02  Jan Djärv  <jan.h.d@swipnet.se>
2831         * xsmfns.c (CHDIR_OPT): New define.
2832         (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2833         restarting emacs.
2835         * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2836         shut_down_emacs.
2838         * emacs.c (USAGE1): Mention --chdir.
2839         (main): Handle --chdir.
2840         (standard_args): Add --chdir.
2841         (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2842         #5552).
2844 2010-05-01  Dan Nicolaescu  <dann@ics.uci.edu>
2846         Remove LD_SWITCH_MACHINE.
2847         * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2848         (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2850         Clean up IRIX code.
2851         * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2852         * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2854         Clean up AIX code.
2855         * m/ibmrs6000.inp: Remove file, unused.
2856         * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2857         (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2858         definition ...
2859         * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2861         * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2862         unused.
2864 2010-05-01  Eli Zaretskii  <eliz@gnu.org>
2866         Emulate POSIX_SIGNALS on MS-Windows.
2868         * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2869         (SIG_SETMASK, SIG_UNBLOCK): Define.
2871         * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2872         (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2873         from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2875         * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2876         New stubs.
2878         Miscellaneous fixes of bidi display.
2880         * xdisp.c (find_row_end): New function, refactored from display_line.
2881         (display_line): Use it.
2882         (extend_face_to_end_of_line): In almost-filled rows, extend only
2883         if the row is R2L and not continued.
2884         (display_line): Fix prepending of truncation glyphs to R2L rows.
2885         Preserve overlay and string info in row->end.
2886         (insert_left_trunc_glyphs): Support addition of left truncation
2887         glyphs to R2L rows.
2888         (set_cursor_from_row): Don't place cursor on the vertical border
2889         glyph between adjacent windows.  Fix a crash when a display string
2890         is continued to the next line.  Don't return zero if cursor was
2891         found by `cursor' property of a display string.
2892         (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2893         test for that explicitly.
2895 2010-05-01  Glenn Morris  <rgm@gnu.org>
2897         * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2898         for clarity.
2899         (OTHER_OBJ): Remove.
2900         (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2901         (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2903 2010-05-01  Karel Klíč  <kklic@redhat.com>
2905         * fileio.c (Ffile_selinux_context): Context functions may return null.
2907 2010-04-30  Dan Nicolaescu  <dann@ics.uci.edu>
2909         * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
2911 2010-04-30  Glenn Morris  <rgm@gnu.org>
2913         * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable.  (Bug#6065)
2914         (OTHER_OBJ): Define as a separate variable, for clarity.
2916 2010-04-30  Jan Djärv  <jan.h.d@swipnet.se>
2918         * xsettings.c: include limits.h and update file comment.
2920 2010-04-30  Glenn Morris  <rgm@gnu.org>
2922         * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2923         Set with configure, not cpp.
2924         (LIBW): Remove, replace with $TOOLKIT_LIBW.
2926         * Makefile.in (mallocobj): Remove.
2927         (otherobj): Simplify using @OTHER_OBJ@.
2929         * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2930         (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2931         Don't bother making nsgui.h dependency platform-specific.
2933         * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2935 2010-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
2937         * process.c (read_process_output, exec_sentinel): Don't burp if the
2938         sentinel/filter kills the current buffer (bug#6060).
2940         Fix wrong-docstring problem introduced with hash-consing.  (Bug#6008)
2941         * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2942         Remove unused var `args'.
2943         * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2944         (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2945         * doc.c (store_function_docstring): Use XSETCAR.
2947 2010-04-28  Glenn Morris  <rgm@gnu.org>
2949         * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2950         (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2952         * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2954         * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2955         (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2957         * Makefile.in (FONT_OBJ): New, set by configure.
2958         (FONT_DRIVERS): Use $FONT_OBJ.
2960         * Makefile.in (LIBXMU): Set with configure, not cpp.
2961         * s/aix4-2.h (LIBXMU):
2962         * s/hpux10-20.h (LIBXMU):
2963         Remove definition, now set in configure.
2965         * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2967         * m/amdx86-64.h [i386]: Move this test to configure.in.
2969 2010-04-27  Glenn Morris  <rgm@gnu.org>
2971         * Makefile.in (LIBXTR6): Set with configure, not cpp.
2972         * s/unixware.h (NEED_LIBW): Remove definition.
2974         * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2975         (TOOLKIT_LIBW): New, set by configure.
2976         (@X_TOOLKIT_TYPE@): No longer define it.
2978         * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2979         (MOTIF_LIBW): Set with configure, not cpp.
2980         * s/aix4-2.h (LIB_MOTIF):
2981         * s/gnu-linux.h (LIB_MOTIF):
2982         * s/unixware.h (LIB_MOTIF): Move to configure.in.
2984 2010-04-27  Dan Nicolaescu  <dann@ics.uci.edu>
2986         Reduce CPP usage.
2987         * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2988         (obj): Use autoconf for unexec instead of cpp.
2989         (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2990         definitions and undefs.  Inline definitions in the only user.
2991         (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
2993 2010-04-27  Glenn Morris  <rgm@gnu.org>
2995         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2996         since the defaults (set by the system file) are fine in most cases.
2997         [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2998         * m/ibms390x.h (START_FILES, LIB_STANDARD):
2999         * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3000         * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3001         Remove definitions, since they are set correctly in s/gnu-linux.h.
3002         * s/freebsd.h (START_FILES, LIB_STANDARD):
3003         * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3004         * s/hpux10-20.h (START_FILES):
3005         * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3006         Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3008         * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3009         (MOTIF_LIBW): Use $LIBXP.
3010         (otherobj): Use $WIDGET_OBJ.
3012 2010-04-26  Dan Nicolaescu  <dann@ics.uci.edu>
3014         * Makefile.in (LIBS_MACHINE): Remove, unused.
3016         Use autoconf instead of cpp for LIB_MATH.
3017         * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3018         * s/cygwin.h (LIB_MATH): Likewise.
3019         * Makefile.in (LIB_MATH): Do not define with cpp.
3020         (LIBES): Use autoconf for LIB_MATH.
3022 2010-04-26  Kenichi Handa  <handa@m17n.org>
3024         * composite.c (Ffind_composition_internal): Fix the return value
3025         for an automatic composition.
3027 2010-04-25  Dan Nicolaescu  <dann@ics.uci.edu>
3029         Remove all NO_ARG_ARRAY uses.
3030         * fns.c (concat2, concat3, nconc2):
3031         * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3032         (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3033         * m/xtensa.h (NO_ARG_ARRAY):
3034         * m/template.h (NO_ARG_ARRAY):
3035         * m/sparc.h (NO_ARG_ARRAY):
3036         * m/sh3.h (NO_ARG_ARRAY):
3037         * m/mips.h (NO_ARG_ARRAY):
3038         * m/macppc.h (NO_ARG_ARRAY):
3039         * m/iris4d.h (NO_ARG_ARRAY):
3040         * m/intel386.h (NO_ARG_ARRAY):
3041         * m/ibms390x.h (NO_ARG_ARRAY):
3042         * m/ibms390.h (NO_ARG_ARRAY):
3043         * m/ibmrs6000.h (NO_ARG_ARRAY):
3044         * m/ia64.h (NO_ARG_ARRAY):
3045         * m/hp800.h (NO_ARG_ARRAY):
3046         * m/arm.h (NO_ARG_ARRAY):
3047         * m/amdx86-64.h (NO_ARG_ARRAY):
3048         * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3050 2010-04-25  Eli Zaretskii  <eliz@gnu.org>
3052         * xdisp.c (display_line): Don't assume 2nd call to
3053         get_next_display_element cannot return zero.  (Bug#6030)
3054         (iterate_out_of_display_property): New function, body from pop_it.
3055         (pop_it): Use it.
3057 2010-04-24  Glenn Morris  <rgm@gnu.org>
3059         * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3060         For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3061         (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3062         since CRT_DIR defaults to /usr/lib.  Suggested by Dan Nicolaescu.
3064 2010-04-24  Eli Zaretskii  <eliz@gnu.org>
3066         * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3067         use `get_next_display_element' and `set_iterator_to_next' to
3068         advance to the next character, when looking for the character that
3069         begins the next row.
3071         * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3072         definition of "struct Lisp_Symbol".
3074 2010-04-24  Glenn Morris  <rgm@gnu.org>
3076         * Makefile.in (CRT_DIR): New variable, set by configure.
3077         * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3078         Use $CRT_DIR rather than HAVE_LIB64_DIR.  (Bug#5655)
3080 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
3082         * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3084         * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3086         Remove redundant flags.
3087         * s/freebsd.h (C_SWITCH_SYSTEM):
3088         * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3089         * s/netbsd.h (C_SWITCH_SYSTEM):
3090         * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3091         of these.
3093         Simplify m/intel386.h.
3094         * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3095         user: ecrt0.c.
3096         (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3097         (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3098         the only user: s/unixware.h.
3099         * ecrt0.c: Remove #ifndef static.  Inline CRT0_DUMMIES definition
3100         from m/intel386.h.
3101         * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3102         moved here from m/intel386.h.
3104         * m/mips.h: Remove #if 0 code.
3106 2010-04-23  Eli Zaretskii  <eliz@gnu.org>
3108         Fix display of composed characters from L2R scripts in bidi buffers.
3109         * xdisp.c (set_iterator_to_next, next_element_from_composition):
3110         After advancing IT past the composition, resync the bidi iterator
3111         with IT's position.  (Bug#5977)
3113 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
3115         * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3116         (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3118 2010-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
3120         * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3122 2010-04-23  Eli Zaretskii  <eliz@gnu.org>
3124         Support `display' text properties and overlay strings in bidi buffers.
3125         * xdisp.c (pop_it): When the stack is popped after displaying
3126         from a string, bidi-iterate to exit from the text portion covered
3127         by the `display' property or overlay.  (Bug#5988, bug#5920)
3129 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
3131         * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3132         (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3134         * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3135         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3137         Simplify STARTFILES definition.
3138         * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3139         relying on Makefile.in to define it.
3140         * s/cygwin.h (START_FILES): Likewise.
3141         * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3143         Clean up Solaris code.
3144         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3145         (LIB_MOTIF): Remove, configure takes care of this.
3146         (NOT_USING_MOTIF): Remove, unused.
3147         * xrdb.c: Remove #if 0-ed #include.
3148         (SYSV): Remove conditional for old SysV.
3149         * sysdep.c (closedir): Remove conditional code for Solaris,
3150         Solaris has closedir.
3152 2010-04-22  Jan Djärv  <jan.h.d@swipnet.se>
3154         * xsettings.c (read_and_apply_settings): Check if current_font is
3155         NULL before strcmp (Bug#6001).
3157 2010-04-21  Dan Nicolaescu  <dann@ics.uci.edu>
3159         Clean up HP-UX files.
3160         * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3161         (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3162         (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3163         * s/hpux10-20.h: ... to the only user, here.
3165 2010-04-21  Eli Zaretskii  <eliz@gnu.org>
3167         * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3168         use buffer-local values of paragraph-start and paragraph-separate.
3169         <paragraph_start_re, paragraph_separate_re>: Rename from
3170         fallback_paragraph_start_re and fallback_paragraph_separate_re.
3171         (Bug#5992)
3173 2010-04-21  Jan Djärv  <jan.h.d@swipnet.se>
3175         * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3176         current_tool_bar_style are new.
3177         (store_config_changed_event): Rename from store_font_changed_event.
3178         (XSETTINGS_TOOL_BAR_STYLE): New define.
3179         (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3180         (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3181         HAVE_XFT.
3182         (something_changedCB): store_font_changed_event is now
3183         store_config_changed_event.
3184         (parse_settings): Rename from parse_xft_settings.  Read
3185         non-xft xsettings outside #ifdef HAVE_XFT.
3186         (read_settings): Renamed from read_xft_settings.
3187         (apply_xft_settings): Take current settings as parameter.  Do not
3188         call read_(xft)_settings.
3189         (read_and_apply_settings): New function.
3190         (xft_settings_event): Do non-xft stuff out of HAVE_XFT.  Call
3191         read_and_apply_settings if there are settings to be read.
3192         (init_xsettings): Renamed from init_xfd_settings.
3193         Call read_and_apply_settings unconditionally.
3194         (xsettings_initialize): Call init_xsettings.
3195         (Ftool_bar_get_system_style): New function.
3196         (syms_of_xsettings): Define Qmonospace_font_name and
3197         Qtool_bar_style.  Initialize current_tool_bar_style to nil.
3198         defsubr Stool_bar_get_system_style.  Fprovide on
3199         dynamic-setting.
3200         Move misplaced HAVE_GCONF
3202         * xsettings.h (Ftool_bar_get_system_style): Declare.
3204         * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3205         Qtext, Qboth, Qboth_horiz are new.
3206         (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3207         Vtool_bar_style, tool_bar_max_label_size.
3209         * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3211         * keyboard.c: QClabel is new.
3212         (parse_tool_bar_item): Take out QClabel from tool bar items.
3213         Try to construct a label if ther is no QClabel.
3214         (syms_of_keyboard): Intern :label as QClabel.
3216         * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3217         (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3218         New.
3220         * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3221         dynamic-setting.el.
3223         * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3224         (xg_make_tool_item, xg_show_toolbar_item): New function.
3225         (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3226         Call xg_make_tool_item to make a tool bar item.
3227         Call xg_show_toolbar_item.  Use wtoolbar instead of x->toolbar_widget.
3229         * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3230         into account for toolbars.
3232 2010-04-21  Jan Djärv  <jan.h.d@swipnet.se>
3234         * data.c (make_blv): Declarations before code (Bug#5993).
3236 2010-04-21  Glenn Morris  <rgm@gnu.org>
3238         * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3239         Define using autoconf, not cpp.
3240         (LIBXSM): New variable, set by autoconf.
3241         (LIBXT): Use $LIBXSM.
3243 2010-04-21  Dan Nicolaescu  <local_user@dannlt>
3245         Remove NOMULTIPLEJOBS, unused.
3246         * s/template.h (NOMULTIPLEJOBS):
3247         * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3249         Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3250         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3251         * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3252         detects -znocombreloc and passes it to the linker
3253         * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3255 2010-04-21  Glenn Morris  <rgm@gnu.org>
3257         * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3259 2010-04-21  Karel Klíč  <kklic@redhat.com>
3261         * Makefile.in (LIBSELINUX_LIBS): New.
3262         (LIBES): Add $LIBSELINUX_LIBS.
3263         * eval.c, lisp.h (call7): New function.
3264         * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3265         (Ffile_selinux_context, Fset_file_selinux_context):
3266         New functions.
3267         (Fcopy_file): New parameter preserve-selinux-context.
3268         (Frename_file): Preserve selinux context when renaming by copy-file.
3270 2010-04-21  Juanma Barranquero  <lekktu@gmail.com>
3271             Eli Zaretskii  <eliz@gnu.org>
3273         Don't depend on cm.c or termcap.c on Windows, use stubs.
3274         * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3275         ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3276         * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3277         (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3278         (sys_tputs, sys_tgetstr): New stubs.
3279         * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3280         (tputs, tgetstr): New; define to sys_*.
3282 2010-04-20  Juanma Barranquero  <lekktu@gmail.com>
3284         * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3286 2010-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
3288         * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3289         Just signal a warning rather than an error when inside a let.
3290         (Fmake_variable_frame_local): Add the same test.
3292         * font.c (syms_of_font): Make the style table vars read-only.
3294         * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3295         * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3297         * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3299 2010-04-20  Eli Zaretskii  <eliz@gnu.org>
3301         Fix R2L paragraph display on TTY.
3303         * xdisp.c (unproduce_glyphs): New function.
3304         (display_line): Use it when produced glyphs are discarded from R2L
3305         glyph rows.
3306         (append_composite_glyph): In R2L rows, prepend the glyph rather
3307         than appending it.
3309         * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3310         rather than append it.  Set up the resolved_level and bidi_type
3311         attributes of the appended glyph.
3312         (produce_special_glyphs): Mirror the backslash continuation
3313         character in R2L lines.
3315         Implement display of R2L paragraphs in GUI sessions.
3317         * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3318         append_stretch_glyph.
3319         (set_cursor_from_row) <cursor_x>: Remove unused variable.  Fix
3320         off-by-one error in computing x at end of text in the row.
3321         (append_stretch_glyph): In reversed row, prepend the glyph rather
3322         than append it.  Set resolved_level and bidi_type of the glyph.
3323         (extend_face_to_end_of_line): If the row is reversed, prepend a
3324         stretch glyph whose width is such that the rightmost glyph will be
3325         drawn at the right margin of the window.  Fix off-by-one error on
3326         TTY frames in testing whether a line needs face extension.  Fix
3327         face extension at ZV.  If this is the last glyph row, use
3328         DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3329         region face.
3330         (set_cursor_from_row, display_line): Use
3331         MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3332         row->continuation_lines_width.
3333         (next_element_from_buffer): Don't call bidi_paragraph_init if we
3334         are at ZV.  Fixes a crash when reseated to ZV by
3335         try_window_reusing_current_matrix.
3336         (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3337         which happens with R2L glyph rows.  Fixes a crash when inserting a
3338         character at end of an R2L line.
3339         (set_cursor_from_row): Don't be fooled by truncated rows: don't
3340         treat them as having zero-width characters.  Improve comments.
3341         Don't reverse pos_before and pos_after for reversed glyph rows.
3342         Set cursor.x to negative value when the cursor might be on the
3343         left fringe.
3344         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3345         left fringe, not the right one.
3346         (notice_overwritten_cursor, draw_phys_cursor_glyph)
3347         (erase_phys_cursor): For reversed cursor_row, support cursor on
3348         the left fringe.
3350         * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3351         of continuation indicators on the fringes.
3352         (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3353         left fringe.
3355         * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3356         draw cursor on the left fringe.
3358         * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3359         cursor on the left fringe.
3361         * dispnew.c (update_text_area): Handle reversed desired rows when
3362         the cursor is on the left fringe.
3363         (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3364         below, not by 0, for when the cursor is on the left fringe.
3366 2010-04-20  Jan Djärv  <jan.h.d@swipnet.se>
3368         * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3369         widget is a scrollbar.
3371 2010-04-20  Kenichi Handa  <handa@m17n.org>
3373         * charset.c (char_charset): Consider Vcharset_non_preferred_head
3374         only when the arg CHARSET_LIST is nil.
3376 2010-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
3378         Make variable forwarding explicit rather the using special values.
3379         Basically, this makes the structure of buffer-local values and object
3380         forwarding explicit in the type of Lisp_Symbols rather than use
3381         special Lisp_Objects for that.  This tends to lead to slightly more
3382         verbose code, but is more C-like, simpler, and makes it easier to make
3383         sure we handled all cases, among other things by letting the compiler
3384         help us check it.
3385         * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3386         Removing forwarding objects.
3387         (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3388         (struct Lisp_Symbol): Make the various forms of variable-forwarding
3389         explicit rather than hiding them inside Lisp_Object "values".
3390         (XFWDTYPE): New macro.
3391         (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3392         (XBUFFER_LOCAL_VALUE): Remove.
3393         (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3394         (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3395         (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3396         (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3397         (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3398         Remove the Lisp_Misc_* header.
3399         (struct Lisp_Buffer_Local_Value): Redefine.
3400         (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3401         (struct Lisp_Misc_Any): Add filler to get the right size.
3402         (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3403         Lisp_Intfwd.
3404         (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3405         (DEFVAR_KBOARD): Allocate a forwarding object.
3406         * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3407         (let_shadows_global_binding_p): New function.
3408         (union Lisp_Val_Fwd): New type.
3409         (make_blv): New function.
3410         (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3411         (store_symval_forwarding, swap_in_global_binding, Fboundp)
3412         (swap_in_symval_forwarding, find_symbol_value, Fset)
3413         (let_shadows_buffer_binding_p, set_internal, default_value)
3414         (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3415         (Fkill_local_variable, Fmake_variable_frame_local)
3416         (Flocal_variable_p, Flocal_variable_if_set_p)
3417         (Fvariable_binding_locus):
3418         * xdisp.c (select_frame_for_redisplay):
3419         * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3420         (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3421         * frame.c (store_frame_param):
3422         * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3423         * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3424         value structure.
3425         * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3426         (clone_per_buffer_values): Only adjust markers into the current buffer.
3427         (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3428         (Fbuffer_local_value, set_buffer_internal_1)
3429         (swap_out_buffer_local_variables):
3430         Adapt to the new symbol value structure.
3431         (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3432         (defvar_per_buffer): Take a new arg for the fwd object.
3433         (buffer_lisp_local_variables): Return a proper alist (different fix
3434         for bug#4138).
3435         * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3436         (Fgarbage_collect): Don't handle buffer_defaults specially.
3437         (mark_object): Handle new symbol value structure rather than the old
3438         special Lisp_Misc_* objects.
3439         (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3440         * term.c (set_tty_color_mode):
3441         * bidi.c (bidi_initialize): Don't access the ->value field directly.
3442         * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3443         a buffer_local_flags.
3444         * print.c (print_object): Get rid of impossible forwarding objects.
3446 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
3448         * bidi.c (bidi_get_type, bidi_get_category)
3449         (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
3450         (bidi_type_of_next_char, bidi_level_of_next_char):
3451         Declare static.  Use `INLINE' rather than `inline'.
3453 2010-04-19  Juanma Barranquero  <lekktu@gmail.com>
3455         * dired.c (Ffile_attributes): Fix typo in docstring.
3457 2010-04-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
3459         * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3460         NSInteger (Bug#5811).
3462 2010-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3464         * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3465         (PTY_OPEN): New defines.  Use openpty (Bug#726, Bug#5819).
3467 2010-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3469         * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3471 2010-04-19  Chong Yidong  <cyd@stupidchicken.com>
3473         * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3474         terminal frames (Bug#5837).
3476 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
3478         * .gdbinit (xsubchartable): New command.
3480 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
3482         * xdisp.c (display_line): Don't write beyond the last glyph row in
3483         the desired matrix.  Fixes a crash in "emacs -nw" (bug#5972), see
3484         http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3485         and
3486         http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3488 2010-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
3490         * alloc.c (Fpurecopy): Hash-cons if requested.
3491         (syms_of_alloc): Update purify-flag docstring.
3493 2010-04-18  Jan Djärv  <jan.h.d@swipnet.se>
3495         * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3496         (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3498 2010-04-17  Eli Zaretskii  <eliz@gnu.org>
3500         Fix a crash when an NSM character is inserted at BEGV.
3502         * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3503         (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3504         NEUTRAL_B or UNKNOWN_BT.
3506 2010-04-16  Eli Zaretskii  <eliz@gnu.org>
3508         * xdisp.c (set_cursor_from_row): Don't consider possibility of
3509         other rows with cursor unless they are different from this row and
3510         this row is part of a continued line.  (Bug#5943)
3512 2010-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
3514         * s/freebsd.h: Restore osreldate.h include.
3515         Suggested by Naohiro Aota.
3517 2010-04-16  Jan Djärv  <jan.h.d@swipnet.se>
3519         * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3521 2010-04-16  Ken Brown  <kbrown@cornell.edu>  (tiny change)
3523         * s/cygwin.h: Avoid linking against static libgcc.
3525 2010-04-15  Juri Linkov  <juri@jurta.org>
3527         * window.c: Add Qscroll_command.
3528         Remove Vscroll_preserve_screen_position_commands.
3529         (window_scroll_pixel_based, window_scroll_line_based): Check the
3530         `scroll-command' property on the last command instead of searching
3531         the last command in Vscroll_preserve_screen_position_commands.
3532         (syms_of_window): Initialize and staticpro `Qscroll_command'.
3533         Put Qscroll_command property on Qscroll_up and Qscroll_down.
3534         (scroll-preserve-screen-position): Doc fix.
3535         (Vscroll_preserve_screen_position_commands): Remove variable.
3537 2010-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
3539         * xdisp.c (message): Do not use NO_ARG_ARRAY.
3541 2010-04-14  Dan Nicolaescu  <dann@ics.uci.edu>
3543         Reduce cpp use in Makefile.in.
3544         * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3545         (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3546         (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3547         (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3548         (CRT0_COMPILE): Remove, inline it in the only user.
3550 2010-04-14  Juri Linkov  <juri@jurta.org>
3552         * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3553         `scroll-up-command' and `M-v' from `scroll-down' to
3554         `scroll-down-command'.
3556 2010-04-14  Juri Linkov  <juri@jurta.org>
3558         * window.c (Vscroll_preserve_screen_position_commands): New variable
3559         with the default value as the list of Qscroll_down and Qscroll_up.
3560         (window_scroll_pixel_based, window_scroll_line_based): Search the
3561         last command in the list Vscroll_preserve_screen_position_commands
3562         instead of comparing with Qscroll_up and Qscroll_down.
3564 2010-04-13  Jan Djärv  <jan.h.d@swipnet.se>
3566         * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3567         (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3568         does that.
3570         * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3571         to zero.
3573 2010-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
3575         * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3577         Try to solve the problem of spurious EOF chars in long lines of text
3578         sent to interactive subprocesses.
3579         * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3580         (system_process_attributes): Remove unused var `ttotal'.
3581         * process.c (send_process): Don't bother breaking long line with EOF
3582         chars when talking to ttys any more.
3583         (wait_reading_process_output): Output a warning when called in such
3584         a way that it could block without being interruptible.
3586         Try to detect file modification within the same second.
3587         * buffer.h (struct buffer): New field modtime_size.
3588         * buffer.c (reset_buffer): Initialize it.
3589         * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3590         (Fverify_visited_file_modtime): Check it.
3591         (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3592         (Fset_visited_file_modtime): Set (or clear) it.
3594 2010-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
3596         * process.c (status_notify): Remove unused var `ro'.
3598 2010-04-12  Jan Djärv  <jan.h.d@swipnet.se>
3600         * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3601         more than one visual (Bug#5938).
3603 2010-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
3605         * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3606         Undefine.
3608 2010-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
3610         Remove C_SWITCH_SYSTEM_TEMACS.
3611         * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3612         (malloc, realloc, free): Use emacs, not temacs for conditional
3613         definition.
3615         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3616         (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3618         Use autoconf, not cpp for some variables.
3619         * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3620         (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3621         (ALL_CFLAGS): Use them as make variables.
3622         (really-lwlib, really-oldXMenu): Do not pass them.
3624 2010-04-11  Jan Djärv  <jan.h.d@swipnet.se>
3626         * xmenu.c (apply_systemfont_to_dialog): New.
3627         (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3629 2010-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
3631         * process.c (exec_sentinel): Preserve current-buffer.
3633         * process.c (read_process_output): Move the save-current-buffer to
3634         apply to both the filter and the non-filter branches.
3636 2010-04-10  Dan Nicolaescu  <dann@ics.uci.edu>
3638         * s/msdos.h (UNEXEC): New definition.
3640 2010-04-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3642         * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3643         (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3645         * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3646         Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3647         set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
3648         TRY_WINDOW_CHECK_MARGINS.
3650         * xfns.c (Fx_show_tip): Undo last change.  Call try_window with
3651         TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).  Subtract last glyph's
3652         width only when it is for padding.
3654 2010-04-09  Jan Djärv  <jan.h.d@swipnet.se>
3656         * xfns.c (Fx_show_tip): Call try_window in a loop until
3657         fonts_changed_p is zero (Bug#2423).
3659 2010-04-08  Eli Zaretskii  <eliz@gnu.org>
3661         * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3662         the end of TEXT_AREA.  (Bug#5856)
3664 2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
3666         * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3667         HAVE_GCONF.
3669 2010-04-08  Eli Zaretskii  <eliz@gnu.org>
3671         * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3672         prev.orig_type, for resolving type of NSM.  (Bug#5858)
3674 2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
3676         * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3677         (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3678         in current_font.
3679         (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
3680         (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3681         New functions.
3682         (syms_of_xsettings): Initialize current_font.
3683         defsubr Sfont_get_system_normal_font.
3685         * xsettings.h (Ffont_get_system_normal_font,
3686         xsettings_get_system_normal_font): Declare.
3688         * xfns.c (extern xlwmenu_default_font): Remove.
3689         (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3690         to xlwmenu.c.
3692         * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3693         menu items in UTF-8.
3695         * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3696         (apply_systemfont_to_menu): New function.
3697         (set_frame_menubar, create_and_show_popup_menu): Call
3698         apply_systemfont_to_menu.
3700 2010-04-07  Jan Djärv  <jan.h.d@swipnet.se>
3702         * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3703         FRAME_LINE_TO_PIXEL_Y.
3705         * xterm.c (x_set_window_size_1): Don't add border_width/height to
3706         pixelwidth/height.
3708 2010-04-07  Dan Nicolaescu  <dann@ics.uci.edu>
3710         Simplify code for HP machines.
3711         * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3712         for GNU_LINUX, not needed.
3713         (UNEXEC, NEED_BSDTTY): Move definitions...
3714         * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3716         * m/iris4d.h (UNEXEC): Move definition ...
3717         * s/irix6-5.h (UNEXEC): ... here.
3719 2010-04-04  Jan Djärv  <jan.h.d@swipnet.se>
3721         * xfns.c (set_machine_and_pid_properties): New function.
3722         (Fx_create_frame): Call set_machine_and_pid_properties.
3724 2010-04-03  Eli Zaretskii  <eliz@gnu.org>
3726         * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3727         bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3728         BIDI_EOB.  Fixes infloop with vertical cursor motion at ZV.
3730         * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3731         in this function.  (Bug#5703)
3733 2010-04-03  Chong Yidong  <cyd@stupidchicken.com>
3735         * nsterm.h: Fix last change.
3737 2010-04-03  Dan Nicolaescu  <dann@ics.uci.edu>
3739         * m/intel386.h (NO_REMAP): Move definition ...
3740         * s/msdos.h (NO_REMAP): ... here.
3742         * m/vax.h (CRT0_DUMMIES): Remove, unused.
3744         * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3745         used on those platforms.
3747 2010-04-02  Dan Nicolaescu  <dann@ics.uci.edu>
3749         Remove extern errno declarations.
3750         * xterm.c:
3751         * xrdb.c:
3752         * w32term.c:
3753         * unexec.c:
3754         * unexaix.c:
3755         * sysdep.c:
3756         * process.c:
3757         * lread.c:
3758         * keyboard.c:
3759         * floatfns.c:
3760         * filelock.c:
3761         * fileio.c:
3762         * emacs.c (main):
3763         * ecrt0.c:
3764         * dispnew.c:
3765         * callproc.c:
3766         * buffer.c: Remove errno extern declarations.
3767         * s/netbsd.h (NEED_ERRNO): Remove.
3769 2010-04-01  Dan Nicolaescu  <dann@ics.uci.edu>
3771         Remove all uses of LIBX11_SYSTEM.
3772         * Makefile.in (LIBX11_SYSTEM): Remove.
3773         * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3774         instead.
3776 2010-04-01  Eli Zaretskii  <eliz@gnu.org>
3778         Remove support for DJGPP v1.x (bug#5813).
3780         * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
3781         * s/msdos.h:
3782         * unexec.c (make_hdr, copy_text_and_data):
3783         * sysdep.c (wait_for_termination, sys_subshell):
3784         * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
3785         (IT_set_terminal_modes, __write, _rename, gethostname)
3786         (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3787         (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3788         the value of __DJGPP__.
3789         (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3790         compatibility code.
3791         * lread.c:
3792         * gmalloc.c (memalign):
3793         * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3794         * emacs.c (main):
3795         * dosfns.c (init_dosfns):
3796         * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3798 2010-04-01  Eli Zaretskii  <eliz@gnu.org>
3800         * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3801         string with `cursor' property comes from an `after-string'
3802         overlay.  (Bug#5816)
3804 2010-04-01  Glenn Morris  <rgm@gnu.org>
3806         * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3807         Define as Makefile variables.
3808         (LIBX): Use above variables rather than directly using autoconf.
3810 2010-03-31  Dan Nicolaescu  <dann@ics.uci.edu>
3812         Clean up BSD_SYSTEM use.
3813         * xterm.c:
3814         * process.c:
3815         * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3816         for including <sys/ioctl.h>.
3817         * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3818         code is only used for MSDOS.
3820 2010-03-31  Juri Linkov  <juri@jurta.org>
3822         * image.c: Add `Qextension_data'.
3823         (syms_of_image): Initialize and staticpro `Qextension_data'.
3824         (Fimage_metadata): Rename from `Fimage_extension_data'.
3825         (gif_load): Put GIF extension data to the property
3826         `Qextension_data'.
3828 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
3830         * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3831         * nsterm.h: Fix prototype.
3833 2010-03-31  Eli Zaretskii  <eliz@gnu.org>
3835         * xdisp.c (highlight_trailing_whitespace): Support highlight of
3836         trailing whitespace in right-to-left rows.
3838 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
3840         Get rid of the direct_output optimizations.
3841         * keyboard.c (nonundocount): Remove extern declaration.
3842         (command_loop_1): Remove brittle optimisation for cheap and
3843         common operations.
3844         * xdisp.c (redisplay_internal): Don't bother checking
3845         redisplay_performed_directly_p any more.
3846         * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3847         any more.
3848         * dispnew.c (redisplay_performed_directly_p)
3849         (direct_output_for_insert, direct_output_forward_char):
3850         * dispextern.h (redisplay_performed_directly_p)
3851         (direct_output_for_insert, direct_output_forward_char): Remove.
3852         * cmds.c (nonundocount): Make it static.
3854 2010-03-31  Bernhard Herzog  <bh@intevation.de>  (tiny change)
3856         * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3858 2010-03-31  Jan Djärv  <jan.h.d@swipnet.se>
3860         * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3861         invisible (Bug#5766).
3863 2010-03-31  Adrian Robert  <adrian.b.robert@gmail.com>
3865         * xdisp.c (x_consider_frame_title, update_window_cursor):
3866         Remove HAVE_NS conditionals.
3867         (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
3869         * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3870         filename for the title.
3871         (ns_set_doc_edited): Do nothing if the selected window is a
3872         minibuffer window.
3874         * nsterm.h: Add prototypes for ns_set_name_as_filename and
3875         ns_set_doc_edited.
3877         * nsterm.m: Remove unneeded prototype.
3879 2010-03-31  Glenn Morris  <rgm@gnu.org>
3881         * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3882         in the DOC file.  (Bug#5336)
3884 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
3886         * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3888 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
3890         * window.c (keys_of_window): Remove redundant/overridden bindings.
3892 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
3894         * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3895         Restore original behavior when the iterator is not bidi_p.
3897 2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
3899         * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3901 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
3903         * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3904         are outside the range of cached character positions.
3906 2010-03-30  Juanma Barranquero  <lekktu@gmail.com>
3908         * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3910 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
3912         Initial support for bidirectional editing.
3914         * Makefile.in (obj): Include bidi.o.
3915         (bidi.o): New target.
3917         * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3918         ($(BLD)/bidi.$(O)): New target.
3920         * bidi.c: New file.
3922         * buffer.h (struct buffer): New members bidi_display_reordering
3923         and bidi_paragraph_direction.
3925         * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3926         and bidi_paragraph_direction.
3927         (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3928         and bidi-paragraph-direction.
3929         (Fbuffer_swap_text): Swap the values of
3930         bidi_display_reordering and bidi_paragraph_direction.
3932         * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3933         (bidi_type_t, bidi_dir_t): New types.
3934         (bidi_saved_info, bidi_stack, bidi_it): New structures.
3935         (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3936         prev_stop, base_level_stop, and eol_pos.
3937         (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3938         (IT_STACK_SIZE): Enlarge to 5.
3939         (struct glyph_row): New member reversed_p.
3940         <string_buffer_position>: Update prototype.
3941         (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3942         glyph_row if bidi_it.paragraph_dir == R2L.
3943         (struct glyph): New members resolved_level and bidi_type.
3945         * dispnew.c (direct_output_forward_char): Give up if we need bidi
3946         processing or buffer's direction is right-to-left.
3947         (prepare_desired_row): Preserve the reversed_p flag.
3948         (row_equal_p): Compare the reversed_p attributes as well.
3950         * xdisp.c (init_iterator): Initialize it->bidi_p.  Call
3951         bidi_init_it and set it->paragraph_embedding from the current
3952         buffer's value of bidi_paragraph_direction.
3953         (reseat_1): Initialize bidi_it.first_elt.
3954         (set_iterator_to_next, next_element_from_buffer): Use the value of
3955         paragraph_embedding to determine the paragraph direction.
3956         (set_iterator_to_next): Under bidi reordering, call
3957         bidi_get_next_char_visually.  Call bidi_paragraph_init if the
3958         new_paragraph flag is set in the bidi iterator.
3959         (next_element_from_buffer): If bidi_it.first_elt is set,
3960         initialize paragraph direction and find the first character to
3961         display in the visual order.  If reseated to a middle of a line,
3962         prime the bidi iterator starting at the line's beginning.  Handle
3963         the situation where we overstepped stop_charpos due to
3964         non-linearity of the bidi iteration.  Likewise for when we back up
3965         beyond the previous stop_charpos.  When moving across stop_charpos,
3966         record it in prev_stop.
3967         (display_line): Set row->end and it->start for the next row to the
3968         next character in logical order.  Always extend reversed_p rows to
3969         the end of line, even if they end at ZV.  Copy the reversed_p flag
3970         to the next glyph row.  Keep calling set_cursor_from_row for
3971         bidi-reordered rows even if we already have a possible candidate
3972         for cursor position.  Set row_end after all the row's glyphs have
3973         been produced, by looping over the glyphs.  Record the position
3974         after EOL in it->eol_pos, and use it to set end_pos of the last
3975         row produced for a continued line.
3976         <Qright_to_left, Qleft_to_right>: New variables.
3977         (syms_of_xdisp): Initialize and staticpro them.
3978         (string_buffer_position_lim): New function.
3979         (string_buffer_position): Most of code moved to
3980         string_buffer_position_lim.  Last argument and return value are
3981         now EMACS_INT; all callers changed.
3982         (set_cursor_from_row): Rewritten to support bidirectional text and
3983         reversed glyph rows.
3984         (text_outside_line_unchanged_p, try_window_id): Disable
3985         optimizations if we are reordering bidirectional text and the
3986         paragraph direction can be affected by the change.
3987         (append_glyph, append_composite_glyph)
3988         (produce_image_glyph, append_stretch_glyph): Set the
3989         resolved_level and bidi_type members of each glyph.
3990         (append_glyph): If the glyph row is reversed, prepend the glyph
3991         rather than appending it.
3992         (handle_stop_backwards): New function.
3993         (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3994         (reseat): call handle_stop_backwards to recompute prev_stop and
3995         base_level_stop for the new position.
3996         (handle_invisible_prop): Under bidi iteration, skip invisible text
3997         using bidi_get_next_char_visually.  If we are `reseat'ed, init the
3998         paragraph direction.  Update IT->prev_stop after skipping
3999         invisible text.
4000         (move_it_in_display_line_to): New variables prev_method
4001         and prev_pos.  Compare for strict equality in
4002         BUFFER_POS_REACHED_P.
4003         (try_cursor_movement): Examine all the candidate rows that occlude
4004         point, to return the best match.  If rows are bidi-reordered
4005         and point moved backwards, back up to the row that is not a
4006         continuation line, and start looking for a suitable row from
4007         there.
4009         * term.c (append_glyph): Reverse glyphs by pre-pending them,
4010         rather than appending, if the glyph_row's reversed_p flag is set.
4011         Set the resolved_level and bidi_type members of each glyph.
4013         * .gdbinit (pbiditype): New command.
4014         (pgx): Use it to display bidi level and type of the glyph.
4015         (pitx): Display some bidi information about the iterator.
4016         (prowlims, pmtxrows): New commands.
4018 2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
4020         Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4021         * s/usg5-4.h (LIBS_DEBUG):
4022         * s/irix6-5.h (C_DEBUG_SWITCH):
4023         * s/gnu-linux.h (LIBS_DEBUG):
4024         * s/darwin.h (LIBS_DEBUG):
4025         * s/bsd-common.h (LIBS_DEBUG):
4026         * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4027         * m/iris4d.h (LIBS_DEBUG):
4028         * m/hp800.h (LIBS_DEBUG): Remove definitions.
4030         * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4031         (LIBS_DEBUG): Remove definition.
4033 2010-03-27  Chong Yidong  <cyd@stupidchicken.com>
4035         * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4036         Windows.
4038 2010-03-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4040         * process.c (Fmake_network_process): Don't call turn_on_atimers around
4041         `connect' (Bug#5723).
4043 2010-03-25  Helmut Eller  <eller.helmut@gmail.com>
4045         * process.c (Fmake_network_process): Call `select' for interrupted
4046         `connect' rather than creating new socket (Bug#5173).
4048 2010-03-24  Jan Djärv  <jan.h.d@swipnet.se>
4050         * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4052         * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4054         * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4056 2010-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4058         * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4059         XLoadQueryFont.
4061 2010-03-24  Kenichi Handa  <handa@m17n.org>
4063         * coding.c (decode_coding_ccl): Fix previous change for the
4064         multibyte case.
4065         (encode_coding_ccl): Don't setup ccl program here.  Fix for the
4066         case that the output buffer is fullfilled.
4067         (encode_coding): Setup ccl program here.
4069 2010-03-23  Dan Nicolaescu  <dann@ics.uci.edu>
4071         * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4073         Simplify LIBS_MACHINE definitions.
4074         * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4075         * m/iris4d.h (LIBS_MACHINE): Likewise.
4076         * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4077         * s/aix4-2.h (LIBS_SYSTEM): ... here.
4078         * s/netbsd.h: Remove commented out code.
4080 2010-03-22  Dan Nicolaescu  <dann@ics.uci.edu>
4082         Remove dead code dealing with POSIX_SIGNALS.
4083         * atimer.c (set_alarm): Remove dead code, all USG systems define
4084         POSIX_SIGNALS.
4085         * data.c (arith_error): Likewise.
4086         * keyboard.c (input_available_signal, handle_user_signal)
4087         (interrupt_signal): Likewise.
4088         * process.c (sigchld_handler): Likewise.
4089         (create_process): Remove if 0 code.  Remove HPUX conditional when
4090         !defined (POSIX_SIGNALS), it cannot be true.
4091         * syssignal.h: Remove USG5_4 and USG conditionals when
4092         !POSIX_SIGNALS, they cannot be true.
4094         * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4095         NO_SOCK_SIGIO, not used anymore.
4097 2010-03-21  Dan Nicolaescu  <dann@ics.uci.edu>
4099         * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4100         support vax on BSDs.
4102         * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4103         * s/aix4-2.h (ORDINARY_LINK): ... here.
4105 2010-03-21  Andreas Schwab  <schwab@linux-m68k.org>
4107         * Makefile.in (abs_builddir): Define.
4108         (bootstrap_exe): Use it.
4109         (VPATH): Use $(srcdir) instead of @srcdir@.
4111 2010-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
4113         * Makefile.in (bootstrap_exe): Use an absolute name.
4115 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
4117         Remove support for old GNU/Linux using libc version 5.
4118         * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4119         * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4121         Consolidate redundant definitions in s/bsd-common.h.
4122         * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4123         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4124         (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4125         doing it in all files that include this one.
4126         * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4127         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4128         (LDAV_SYMBOL, KERNEL_FILE): Remove.
4129         * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4130         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4131         (LDAV_SYMBOL, KERNEL_FILE): Remove.
4132         * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4133         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4134         (LDAV_SYMBOL, KERNEL_FILE): Remove.
4136         Consolidate redundant definitions.
4137         * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4138         it's undefined in all files that include this one.
4139         (POSIX_SIGNALS): Define here instead of doing it in all files that
4140         include this one.
4141         * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4142         (POSIX_SIGNALS): Do not define.
4143         * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4144         (POSIX_SIGNALS): Do not define.
4145         * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4146         (POSIX_SIGNALS): Do not define.
4148         Remove support for old UNIX System V systems.
4149         * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4150         * s/usg-5-4-2.h: Remove.
4152         Remove support for Solaris on PPC and for old versions.
4153         * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4154         (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4155         that cancel each other.
4156         * s/sol2-3.h:
4157         * s/sol2-4.h:
4158         * s/sol2-5.h: Remove.
4159         * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4160         (NO_REMAP): Remove, unused.
4161         (UNEXEC): Move definition ...
4162         * s/aix4-2.h (UNEXEC): ... here.
4164         * s/openbsd.h: Remove support for non-ELF and for systems that do
4165         not support shared libraries.
4166         * s/netbsd.h:
4167         * s/freebsd.h: Likewise.
4169 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
4171         Remove non-working support for lynxos 3.0.
4172         * s/lynxos.h: Remove file.
4174         * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4175         COFF_BSD_SYMBOLS, nothing defines it anymore.
4177 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
4179         Remove obsolete uses of HAVE_SHM.
4180         * emacs.c (standard_args):
4181         (Fdump_emacs):
4182         (syms_of_emacs): Remove code depending on HAVE_SHM.
4184         * alloc.c: Remove HAVE_SHM dependent definition.
4186         * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4188 2010-03-18  Glenn Morris  <rgm@gnu.org>
4190         * emacs.c (USAGE4): Hard-code bug address.
4191         (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4192         (bug_reporting_address): Remove.
4193         (main): Don't call bug_reporting_address.
4195         * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4196         (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4198 2010-03-15  Chong Yidong  <cyd@stupidchicken.com>
4200         * xfns.c (Fx_create_frame):
4201         * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4202         on left.
4204 2010-03-13  Andreas Politz  <politza@fh-trier.de>  (tiny change)
4206         * editfns.c (Fformat): Account for string precision when computing
4207         field width (Bug#5710).
4209 2010-03-12  Chong Yidong  <cyd@stupidchicken.com>
4211         * xfns.c (Fx_create_frame): Set default to Qright.
4213         * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4214         all window systems.
4216 2010-03-12  Eli Zaretskii  <eliz@gnu.org>
4218         These changes remove termcap.c from the build on Posix platforms.
4219         * Makefile.in (termcapobj): Move termcap.o from here...
4220         (MSDOS_OBJ): ...to here.
4221         (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4222         now identical to when LIBS_TERMCAP is defined.
4224         * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4226         * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4228         * config.in: Regenerated.  (See top-level ChangeLog.)
4230 2010-03-10  Chong Yidong  <cyd@stupidchicken.com>
4232         * Branch for 23.2.
4234 2010-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
4236         Cleanup setup of gl_state in various parts of the code.
4237         * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4238         (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4239         * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4240         (skip_chars):
4241         * regex.c (regex_compile): Use it.
4242         (re_compile_pattern): Don't set gl_state.current_syntax_table since
4243         it's now set in regex_compile when/if we need it.
4245 2010-03-05  Stefan Monnier  <monnier@iro.umontreal.ca>
4247         Make it possible to C-g in a tight bytecode loop again (bug#5680).
4248         * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4249         (QUIT): Use it to consolidate code and remove redundancy.
4250         * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4252         * regex.c (regex_compile): Setup gl_state as well.
4254         * syntax.c (skip_chars): Setup gl_state (bug#3823).
4255         (in_classes): Use CONSP before XCAR/XCDR.
4257 2010-03-03  Chong Yidong  <cyd@stupidchicken.com>
4259         * keymap.c (Fwhere_is_internal): Use Fequal to compare
4260         definitions, so that keyboard macros are correctly handled
4261         (Bug#5481).
4263 2010-03-02  Eli Zaretskii  <eliz@gnu.org>
4265         * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4266         text that could be relocated inside the call to emacs_mule_char.
4267         (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4268         (CODING_DECODE_CHAR): Add a comment describing its purpose.
4270 2010-03-02  Kenichi Handa  <handa@m17n.org>
4272         * character.c (parse_str_as_multibyte): Fix handling of the
4273         multibyte form of raw-bytes.
4274         (str_as_multibyte): Likewise.
4276         * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4277         form of raw-bytes.
4279 2010-02-28  Chong Yidong  <cyd@stupidchicken.com>
4281         * charset.c (load_charset_map_from_file)
4282         (load_charset_map_from_vector): Zero out allocated
4283         charset_map_entries before using them.
4285 2010-02-27  Andreas Schwab  <schwab@linux-m68k.org>
4287         * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4289 2010-02-27  Chong Yidong  <cyd@stupidchicken.com>
4291         * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4292         "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
4294 2010-02-26  Kenichi Handa  <handa@m17n.org>
4296         * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4298         * xdisp.c (reseat_to_string): Fix previous change.
4300 2010-02-26  David Reitter  <david.reitter@gmail.com>
4302         * nsfont.m (nsfont_draw): ns_antialias_text should be a
4303         Lisp_Object (Bug#4736).
4305 2010-02-25  Kenichi Handa  <handa@m17n.org>
4307         * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4309 2010-02-24  Jan Djärv  <jan.h.d@swipnet.se>
4311         * xterm.c (XTflash): Move declarations before statements.
4313         * gtkutil.c (xg_get_gdk_display): Remove (unused).
4314         (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4315         (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4316         (xg_create_tool_bar): Remove unused variables.
4317         (x_wm_set_size_hint): Move declarations before statements.
4318         (xg_create_frame_widgets): Remove variable grav.
4320 2010-02-21  Chong Yidong  <cyd@stupidchicken.com>
4322         * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4324 2010-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
4326         * term.c (fatal): Add a final \n if needed (bug#5596).
4328 2010-02-18  Chong Yidong  <cyd@stupidchicken.com>
4330         * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4332 2010-02-18  Glenn Morris  <rgm@gnu.org>
4334         * callint.c (Finteractive): Doc fix.
4336 2010-02-18  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>  (tiny change)
4338         * coding.c (record_conversion_result):
4339         Handle CODING_RESULT_INSUFFICIENT_DST.
4340         (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4341         memory allocation error.
4343 2010-02-17  Kenichi Handa  <handa@m17n.org>
4345         * coding.c (decode_coding_ccl): Don't setup ccl program here.
4346         Fix for the case that the output buffer is fullfilled.
4347         (decode_coding): Setup ccl program here.  Keep looping when the
4348         decoder stopped because the output buffer is
4349         fullfilled (bug#5534).
4351         * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4353 2010-02-13  Jan Djärv  <jan.h.d@swipnet.se>
4355         * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
4356         bug #5571.
4357         (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
4358         overdrawn.
4360 2010-02-10  Jan Djärv  <jan.h.d@swipnet.se>
4362         * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4363         doing_interact here.
4364         (ice_connection_closed): New function.
4365         (x_session_check_input, smc_die_CB, ice_io_error_handler)
4366         (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4367         (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4368         returns I/O error.
4369         (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4370         bug #5512.
4372 2010-02-08  Francis Devereux  <francis@devrx.org>  (tiny change)
4374         * nsfont.m (nsfont_open): The system's value for the font descent
4375         is negative, so round it down to avoid clipping.
4377 2010-02-06  Chong Yidong  <cyd@stupidchicken.com>
4379         * charset.c (load_charset_map_from_file)
4380         (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
4381         instead of xmalloc (Bug#5526).  Suggested by Vivek Dasmohapatra.
4383 2010-02-05  Chong Yidong  <cyd@stupidchicken.com>
4385         * charset.c (load_charset_map_from_file): Allocate large
4386         charset_map_entries structure on the heap rather than the stack.
4387         (Bug#5526).
4389 2010-01-31  Kenichi Handa  <handa@m17n.org>
4391         * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
4392         size in NAME is invalid, return -1 (Bug#5396).
4394 2010-01-31  Chong Yidong  <cyd@stupidchicken.com>
4396         * nsterm.m (ns_defined_color): Block input.  Suggested by Mike
4397         <deactivated@gmail.com> (Bug#3605).
4399 2010-01-31  David De La Harpe Golden  <david@harpegolden.net>
4401         * fileio.c (Frename_file): Correctly rename symlinks to
4402         directories (Bug#5496).
4404 2010-01-31  Filipe Cabecinhas  <filcab@gmail.com>  (tiny change)
4406         * nsterm.m (ns_ring_bell): Handle visible bell like X.
4408 2010-01-30  Andreas Schwab  <schwab@linux-m68k.org>
4410         * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4412 2010-01-29  Chong Yidong  <cyd@stupidchicken.com>
4414         * frame.c (DEFAULT_ROWS): Change default to 35.
4416         * xfns.c (x_default_font_parameter): Change default XFT font to
4417         monospace-10 (Bug#3643).
4419 2010-01-29  Eli Zaretskii  <eliz@gnu.org>
4421         * w32inevt.c (key_event): Remove unnecessary comparison of
4422         event->uChar.AsciiChar with 128.
4424 2010-01-28  Chong Yidong  <cyd@stupidchicken.com>
4426         * fileio.c (Frename_file): Fix last change (Bug#5487).
4428         * m/mips.h: Remove DATA_START.  Suggested by Dan Nicolaescu.
4430         * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4432 2010-01-28  Jan Djärv  <jan.h.d@swipnet.se>
4434         * xfns.c (Fx_create_frame): Remove window size matching code from
4435         2010-01-15.
4436         (x_get_current_desktop, x_get_desktop_workarea): Remove.
4438 2010-01-27  Jason Rumney  <jasonr@gnu.org>
4440         * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
4441         (key_event): Use unicode for characters 128 and higher (Bug#4567).
4443 2010-01-27  Kenichi Handa  <handa@m17n.org>
4445         * regex.c (analyse_first): Fix setting of fastmap for unibyte
4446         pattern string (Bug#4209).
4448 2010-01-27  David De La Harpe Golden  <david@harpegolden.net>
4450         * fileio.c (Frename_file): Call copy-directory and
4451         delete-directory for directories, in order to handle cross-device
4452         renaming (Bug#3353).
4454 2010-01-25  Jan Djärv  <jan.h.d@swipnet.se>
4456         * xfns.c (Fx_create_frame): If frame height is too big, try
4457         sizes 24 and 10.  Bug #3643.
4459 2010-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
4461         Try and fix bug#788, hopefully for real this time.
4462         * keymap.c (shadow_lookup): Add `remap' arg.
4463         (describe_map, describe_vector): Update calls to shadow_lookup.
4464         (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4465         `remapped' so this flag is applicable to `sequence'.  Be careful to
4466         perform remapping during shadow_lookup check of remapped_sequences.
4468 2010-01-24  Eric Bélanger  <snowmaniscool@gmail.com>  (tiny change)
4470         * image.c (png_load): Use png_sig_cmp instead of the obsolete
4471         png_check_sig, which has been removed in libpng 1.4.
4473 2010-01-23  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
4475         * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4476         lacks this header file).
4478 2010-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4480         * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4481         as in Emacs 22.
4483 2010-01-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4485         * lisp.h (make_pure_string): String pointer arg now points to const.
4487         * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4488         args now point to const.
4490 2010-01-22  Eli Zaretskii  <eliz@gnu.org>
4492         * lread.c (Fload): Don't treat files without .elc extension as
4493         byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4494         them.  (bug#5303)
4496 2010-01-20  Kenichi Handa  <handa@m17n.org>
4498         * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4499         treat the source as actual byte sequence.
4501 2010-01-19  Alan Mackenzie  <acm@muc.de>
4503         Fix spurious before-change-functions invocation from (insert ?\n).
4504         * textprop.c (set_text_properties): Rename parameter
4505         `signal_after_change_p' to `coherent_change_p', and make the
4506         invocation of `modify_region' conditional on it.
4508 2010-01-19  Jan Djärv  <jan.h.d@swipnet.se>
4510         * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4511         for debug purpose.
4512         (syms_of_xsettings): Declare xft-settings.
4514 2010-01-18  Chong Yidong  <cyd@stupidchicken.com>
4516         * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4518 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
4520         * xterm.c (event_handler_gdk): Block input (Bug#5037).
4522 2010-01-16  Chong Yidong  <cyd@stupidchicken.com>
4524         * emacs.c (standard_args): Adjust arg priorities to reflect how
4525         they are processed in startup.el.
4527 2010-01-16  Andreas Schwab  <schwab@linux-m68k.org>
4529         * Makefile.in (lisp, shortlisp): Update.
4531 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
4533         * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4534         code, link the new kboard into all_kboard before running Lisp code,
4535         and protect the new terminal with GCPRO (Bug#5365).
4536         (x_term_init): Remove unused var `atom'.
4537         (x_delete_display, x_delete_terminal): Remove unused var `i'.
4539 2010-01-15  Jan Djärv  <jan.h.d@swipnet.se>
4541         * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4542         (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4543         to find out usable size of the desktop.  Don't make frames larger than
4544         this.  Bug #3643.
4546 2010-01-15  Kenichi Handa  <handa@m17n.org>
4548         * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS.  Callers changed.
4550 2010-01-15  Chong Yidong  <cyd@stupidchicken.com>
4552         * nsterm.m (Qnone): Define.
4554         * nsfns.m (Qnone): Move definition to nsterm.m.
4556 2010-01-14  Kenichi Handa  <handa@m17n.org>
4558         * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4559         systems.
4561 2010-01-14  Kenichi Handa  <handa@m17n.org>
4563         Make auto-composition work on all buffers even if they are
4564         fundamental mode.
4566         * composite.c (Vauto_composition_mode): New variable.
4567         (composition_compute_stop_pos): Check Vauto_composition_mode
4568         instead of Vauto_composition_function.
4569         (composition_adjust_point, Ffind_composition_internal): Likewise.
4570         (syms_of_composite): Declare Lisp variable
4571         "auto-composition-mode" here.
4573 2010-01-13  Chong Yidong  <cyd@stupidchicken.com>
4575         * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4576         during call to vendor-specific-keysyms (Bug#5365).
4578 2010-01-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4580         * keyboard.c (input_available_signal) [SYNC_INPUT]:
4581         Call SIGNAL_THREAD_CHECK (Bug#5333).
4583         * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4584         Call SIGNAL_THREAD_CHECK.
4586 2010-01-13  Stefan Monnier  <monnier@iro.umontreal.ca>
4588         Try to fix bug#5314.  This is probably not the final word, tho.
4589         * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4590         recent-auto-save-p as a side-effect.
4591         * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4592         * buffer.c (Fkill_buffer, reset_buffer):
4593         * editfns.c (Fsubst_char_in_region):
4594         * fileio.c (Finsert_file_contents, Fdo_auto_save)
4595         (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4597 2010-01-13  Kenichi Handa  <handa@m17n.org>
4599         Display buffer name, etc. in mode line by composing correctly.
4601         * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4602         STRING is not nil.
4603         (display_mode_element): Adjust for the change of
4604         decode_mode_spec and display_line.
4605         (decode_mode_spec): Change arg MULTIBYTE to STRING.
4606         (display_string): Handle the case that STRING is non-null and
4607         LISP_STRING is not nil.
4609         * xterm.c (x_draw_composite_glyph_string_foreground):
4610         Pay attention to s->face->overstrike.
4612         * composite.c (composition_reseat_it): Don't check PT if STRING is
4613         non nil.
4615 2010-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4617         * keyboard.c (read_char): Don't apply previous change when current
4618         buffer is unchanged by command execution.
4620 2010-01-12  Jan Djärv  <jan.h.d@swipnet.se>
4622         * keyboard.c (read_char): Return after executing from special map.
4624 2010-01-12  Glenn Morris  <rgm@gnu.org>
4626         * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4627         bug-gnu-emacs rather than emacs-pretest-bug.
4629 2010-01-11  Chong Yidong  <cyd@stupidchicken.com>
4631         * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4632         initializing the Lisp variables that depend on them.
4634 2010-01-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4636         * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4637         Clear areas that will not be updated after change of menu bar lines.
4638         Clear the menu bar window's current matrix when the window gets empty.
4640 2010-01-09  Chong Yidong  <cyd@stupidchicken.com>
4642         * intervals.h, textprop.c (extend_property_ranges): Return value
4643         and args changed.  Discard properties that begin at or after the
4644         new end (Bug#5306).
4646         * editfns.c (Fformat): Caller changed.
4648         * nsterm.m (ns_set_default_prefs): Delete function.
4649         (syms_of_nsterm): Initialize ns_command_modifier,
4650         ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4651         ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4653         * xdisp.c (pos_visible_p): Check for invisible text at the correct
4654         position (Bug#4040).
4656 2010-01-09  Eli Zaretskii  <eliz@gnu.org>
4658         * editfns.c (Ffloat_time): Doc fix.
4660 2010-01-09  Jan Djärv  <jan.h.d@swipnet.se>
4662         * xfns.c (Fx_create_frame): Don't create frame larger than display
4663         by default bug#3643.
4665 2010-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4667         * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4668         (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4669         windows above internal border.
4671         * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4672         (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4673         windows above internal border.
4675         * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4676         tool bar windows specially.
4678         * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4680         * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4681         specially.
4682         (XTflash): Take account of menu bar height.
4684         * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4685         specially.
4687 2010-01-08  Jan Djärv  <jan.h.d@swipnet.se>
4689         * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
4690         also be true before we can return early (bug #5339).
4692 2010-01-06  David Reitter  <david.reitter@gmail.com>
4694         * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4695         (Fns_display_usable_bounds): Rewrite, computing bounds properly
4696         (Bug#3233).
4698 2010-01-06  Jan Djärv  <jan.h.d@swipnet.se>
4700         * font.c (font_open_entity): Enable chache and call cached_font_ok
4701         for the driver if defined.
4702         (QCuser_spec): New symbol.
4703         (font_spec_from_name): Save name as user-spec.
4704         (font_load_for_lface): Keep user-spec instead of name.
4705         (font_open_by_name): Save name as user-spec.
4706         (syms_of_font): Initialize QCuser_spec.
4707         (font_clear_prop): Clear name if it exists in font (bug#5157).
4709         * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4710         (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4711         (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4713         * font.h (struct font_driver): Add cached_font_ok.
4715         * xterm.c (x_clear_frame): Queue draw for scroll bars.
4717 2010-01-05  Jan Djärv  <jan.h.d@swipnet.se>
4719         * xterm.c (x_new_font): Move code for setting rows/cols before
4720         resizing ...
4721         (x_set_window_size): ... to here.  Bug #2568.
4723         * gtkutil.c (xg_clear_under_internal_border): New function.
4724         (xg_frame_resized, xg_frame_set_char_size):
4725         Call xg_clear_under_internal_border.
4726         (xg_update_scrollbar_pos): Clear under old scroll bar position.
4728 2010-01-05  Chong Yidong  <cyd@stupidchicken.com>
4730         * keyboard.c (read_key_sequence): Catch keyboard switch after
4731         making a new tty frame (Bug#5095).
4733 2010-01-05  Kenichi Handa  <handa@m17n.org>
4735         * fontset.c (fontset_find_font): Fix getting the frame pointer.
4737 2010-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
4739         * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4740         Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4741         (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4743 2010-01-03  Michael Albinus  <michael.albinus@gmx.de>
4745         * dbusbind.c (xd_add_watch): Improve debug message.
4746         (xd_remove_watch): Improve debug message.  If DATA is the session
4747         bus, unset D-Bus session environment.
4748         (Fdbus_init_bus): Pass the bus as argument to
4749         dbus_connection_set_watch_functions.  (Bug#5283)
4751 2010-01-01  Chong Yidong  <cyd@stupidchicken.com>
4753         * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4755         * lread.c (syms_of_lread): Make it clearer that these are the
4756         names of loaded files (Bug#5068).
4758         * eval.c (run_hook_with_args): Handle the case where the global
4759         value has the obsolete single-function form (Bug#5026).
4761 2009-12-27  Chong Yidong  <cyd@stupidchicken.com>
4763         * minibuf.c (Fall_completions): Minor optimization.
4765 2009-12-26  Eli Zaretskii  <eliz@gnu.org>
4767         * .gdbinit (pgx): Fix display of composite glyphs.
4768         Display cmp.from and cmp.to as well.
4769         (pitx): Fix last change.
4771 2009-12-25  Kenichi Handa  <handa@m17n.org>
4773         * composite.h (composition_adjust_point): Update prototype.
4775         * composite.c (composition_reseat_it): Don't make a composition
4776         spanning over point.
4777         (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4778         composable characters.
4779         (composition_adjust_point): New arg NEW_PT.  Callers changed.
4781         * keyboard.c (command_loop_1): Force redisplay if the last point
4782         was within a composition.
4783         (adjust_point_for_property): Don't adjust point for automatic
4784         composition when called after buffer modification.
4786 2009-12-19  Eli Zaretskii  <eliz@gnu.org>
4788         * .gdbinit (pitx): Don't use enum names, use their values.
4789         Remove reference to non-existing value GET_FROM_COMPOSITION.
4790         (pgx): Don't use enum names, use their values.
4791         (pitmethod): New helper command.
4792         (pitx): Use it to display iteration method.
4793         (pgrowit): New command.
4795         * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4797         Update dependencies in Makefile.in.
4799         * Makefile.in (alloc.o): Depend on termhooks.h.
4800         (atimer.o): Depend on blockinput.h.
4801         (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4802         and frame.h.
4803         (callint.o): Depend on systime.h, coding.h, and composite.h.
4804         (callproc.o): Depend on buffer.h.
4805         (casefiddle.o): Don't depend on charset.h.
4806         (casetab.o): Depend on character.h.
4807         (ccl.o): Depend on composite.h.
4808         (chartab.o): Depend on ccl.h.
4809         (cm.o): Depend on dispextern.h.
4810         (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4811         (coding.o): Don't depend on $(INTERVALS_H).
4812         (composite.o): Don't depend on dispextern.h explicitly (it's in
4813         $(INTERVALS_H)).  Depend on ccl.h.
4814         (data.o): Depend on systime.h, coding.h, composite.h,
4815         dispextern.h, font.h, and ccl.h.
4816         (dired.o): Depend on composite.h.
4817         (dispnew.o): Depend on coding.h.  Don't depend explicitly on
4818         composite.h (it's in $(INTERVALS_H)).
4819         (doc.o): Depend on systime.h, coding.h, and composite.h.
4820         (editfns.o): Don't depend explicitly on dispextern.h.
4821         (emacs.o): Depend on frame.h and coding.h.
4822         (eval.o): Depend on coding.h, composite.h, and xterm.h.
4823         (fileio.o): Depend on frame.h and commands.h.  Don't depend
4824         explicitly on dispextern.h.
4825         (filelock.o): Don't depend on epaths.h and charset.h.  Depend on
4826         composite.h.
4827         (fns.o): Don't depend on termhooks.h.
4828         (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4829         (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4830         coding.h, $(INTERVALS_H), window.h, xterm.h.
4831         (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4832         (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4833         (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4834         fontset.h, ccl.h, and ftfont.h.
4835         (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4836         (gtkutil.o): Depend on dispextern.h and composite.h.
4837         (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4838         termhooks.h, and ccl.h.
4839         (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4840         (intervals.o): Depend on systime.h and coding.h.
4841         (keyboard.o): Depend on composite.h and coding.h.
4842         (keymap.o): Depend on coding.h and frame.h.
4843         (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4844         (macros.o): Depend on systime.h, coding.h, and composite.h.
4845         (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4846         and atimer.h.
4847         (minibuf.o): Depend on systime.h and coding.h.  Don't depend on
4848         dispextern.h explicitly.
4849         (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4850         Don't depend explicitly on dispextern.h and composite.h.
4851         (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4852         (regex.o): Don't depend on charset.h.
4853         (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4854         (search.o): Don't depend explicitly on composite.h.
4855         (sound.o): Depend on atimer.h and systime.h.
4856         (syntax.o): Don't depend explicitly on composite.h.
4857         (sysdep.o): Depend on coding.h and composite.h.
4858         (term.o): Depend on xterm.h and buffer.h.
4859         (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4860         (textprop.o): Don't depend on dispextern.h explicitly.
4861         (undo.o): Depend on dispextern.h.
4862         (window.o): Depend on coding.h and termhooks.h.  Don't depend on
4863         dispextern.h and composite.h explicitly.
4864         (xdisp.o): Depend on ccl.h.
4865         (xfaces.o): Depend on coding.h and ccl.h.
4866         (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4867         (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4868         (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4869         ftfont.h.
4870         (xgselect.o): New dependency.
4871         (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4872         (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4873         (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4874         coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4875         (xsmfns.o): Depend on frame.h and dispextern.h.
4876         (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4877         sysselect.h.
4879 2009-12-19  Andreas Schwab  <schwab@linux-m68k.org>
4881         * font.c (Fclear_font_cache): Pass correct cache argument to
4882         font_clear_cache.
4884 2009-12-16  Andreas Schwab  <schwab@linux-m68k.org>
4886         * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4887         twice.
4889 2009-12-15  Chong Yidong  <cyd@stupidchicken.com>
4891         * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4892         calling file-remote-p.  Reported by Jim Meyering.
4894 2009-12-15  Michael Albinus  <michael.albinus@gmx.de>
4896         * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
4897         avoid compiler warnings.  (Bug #5217)
4899 2009-12-14  Kenichi Handa  <handa@m17n.org>
4901         * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4902         in 8-bit encoding.
4904 2009-12-13  Pat Thoyts  <patthoyts@users.sourceforge.net>  (tiny change)
4906         * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4907         tooltip windows.
4909 2009-12-13  Jan Djärv  <jan.h.d@swipnet.se>
4911         * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4912         Xatom_net_window_type.
4914         * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4915         Xatom_net_window_type.
4917         * xterm.c (my_log_handler): New function.
4918         (x_term_init): Set my_log_handler as log handler during gtk_init
4919         so we can filter out buggy messages.  (Bug #5120).
4921         * xterm.c (xg_scroll_callback): Parameter list changed,
4922         use parameter GtkScrollType to determine scroll/line/page.
4923         Only allow dragging if a button < 4 is grabbed (bug #5177).
4924         (xg_end_scroll_callback): New function.
4925         (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4926         xg_create_scroll_bar.
4928         * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4929         (scroll_end_callback): Remove.
4930         (xg_create_scroll_bar): Add parameter end_callback, bind it to
4931         button-release-event.  Replace value-changed event with change-value,
4932         bug #5177.
4933         (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4934         bug #5177.
4936         * gtkutil.h (XG_LAST_SB_DATA): Remove.
4937         (xg_create_scroll_bar): Add GCallback end_callback.
4939         * xftfont.c (QClcdfilter): New variable.
4940         (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4941         (syms_of_xftfont): Initialize QClcdfilter.
4943 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
4945         * xsettings.c (struct xsettings): Add member seen.
4946         (parse_xft_settings): Update member seen with what we have read.
4947         Return non-zero if Xft-settings have been parsed, 0 otherwise.
4948         (apply_xft_settings): Only update Xft settings with what member seen
4949         indicates as new.
4951 2009-12-12  Eli Zaretskii  <eliz@gnu.org>
4953         * dispextern.h (struct text_pos): Use EMACS_INT.
4954         (struct glyph): Use EMACS_INT for charpos.
4955         (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4956         region_beg_charpos, region_end_charpos,
4957         redisplay_end_trigger_charpos, and also for
4958         iterator_stack_entry.end_charpos and
4959         iterator_stack_entry.stop_charpos.
4961 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
4963         * gtkutil.c (scroll_end_callback): New function (bug #5177).
4964         (xg_create_scroll_bar): Call scroll_end_callback on button release
4965         event (bug #5177).
4966         (xg_event_is_for_scrollbar): != replaced with ==.
4968 2009-12-12  Kenichi Handa  <handa@m17n.org>
4970         * ftfont.c (struct ftfont_info): New member matrix.
4971         (ftfont_open): Setup xftfont_info->matrix.
4972         (MFLTFontFT): New member matrix.
4973         (FLOOR, CEIL, ROUND): New macros.
4974         (ftfont_get_metrics): Handle matrix transformation.
4975         (ftfont_shape_by_flt): New arg matrix.  Callers changed.
4977         * xftfont.c (struct xftfont_info): New member matrix.
4978         (xftfont_open): Setup xftfont_info->matrix.
4980 2009-12-10  Kenichi Handa  <handa@m17n.org>
4982         * xdisp.c (append_space_for_newline): Consider face-remapping.
4984 2009-12-09  Andreas Schwab  <schwab@linux-m68k.org>
4986         * xsettings.c: Include "keyboard.h".
4988         * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4990         Fix implicit function declarations.
4991         * cmds.c: Include "frame.h".
4992         * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4993         * frame.h: Move declaration of delete_frame outside of
4994         HAVE_WINDOW_SYSTEM.
4996 2009-12-09  Ken Brown  <kbrown@cornell.edu>  (tiny change)
4998         * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5000         * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5001         GTK builds.
5003 2009-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5005         * unexelf.c (unexec): Don't search for .data twice.
5007 2009-12-05  Chong Yidong  <cyd@stupidchicken.com>
5009         * xdisp.c (push_display_prop): Don't set avoid_cursor_p.  Return 0
5010         if push failed.
5011         (handle_line_prefix): Set avoid_cursor_p here.  Check return value
5012         of push_display_prop (Bug#5000).
5014         * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5015         value of font_list_entities (Bug#5085).
5017 2009-12-04  Juanma Barranquero  <lekktu@gmail.com>
5019         Fix `string-to-number' to deal consistently with integers and floats.
5020         * lread.c (isfloat_string): New argument ignore_trailing to accept all
5021         trailing characters, not just whitespace.
5022         (read1): Pass new arg 0 to keep old behavior.
5023         * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5024         trailing chars, as it is already done for integers.  Doc fixes.
5025         * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5027 2009-12-04  Eli Zaretskii  <eliz@gnu.org>
5029         * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5030         Delete unused enumeration value.
5032 2009-12-03  Eli Zaretskii  <eliz@gnu.org>
5034         * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5036 2009-12-03  Daniel Hackney  <dan@haxney.org>  (tiny change)
5038         * process.c (Fmake_network_process): Fix up the tests for
5039         "connectionless socket", so they DTRT for seqpacket sockets as well.
5041 2009-12-03  Stefan Monnier  <monnier@iro.umontreal.ca>
5043         * process.c (Qseqpacket): New symbol.
5044         (HAVE_SEQPACKET): New macro.
5045         (Fmake_network_process): Accept new :type `seqpacket'.
5046         (init_process): Add `seqpacket' feature when applicable.
5047         (syms_of_process): Initialize Qseqpacket.
5049 2009-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5051         * font.c (font_load_for_lface, font_open_by_name): Don't store name
5052         if entity is Qnil.
5054 2009-11-30  Stefan Monnier  <monnier@iro.umontreal.ca>
5056         * print.c (print_preprocess): Preprocess the key_and_value table of
5057         hashtables, even tho they're "hidden" (bug#5082).
5059 2009-11-29  Jan Djärv  <jan.h.d@swipnet.se>
5061         * frame.c (frame_make_pointer_invisible)
5062         (frame_make_pointer_visible): Declare f before statements.
5064 2009-11-28  Eli Zaretskii  <eliz@gnu.org>
5066         * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5067         omitted dependencies on lisp.h.
5069 2009-11-27  Jan Djärv  <jan.h.d@swipnet.se>
5071         * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5072         is NULL.
5074         * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5076         * frame.c (frame_make_pointer_invisible)
5077         (frame_make_pointer_visible): Just return if there isn't any selected
5078         frame.
5080         * search.c (simple_search): Remove warning by making *p const.
5082 2009-11-26  Dan Nicolaescu  <dann@ics.uci.edu>
5084         * xdisp.c (power_letter): Remove duplicate const.
5086 2009-11-25  Jan Djärv  <jan.h.d@swipnet.se>
5088         * term.c (delete_tty): Remove check for last terminal (bug#4970).
5090         * xsettings.c: Revert changes from 2009-11-23.  Just use Xft
5091         defaults (bug #5025).
5093 2009-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
5095         * insdel.c (adjust_markers_for_delete): Move it in the
5096         right direction!  (bug#4803)
5098 2009-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5100         * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5102         * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5104 2009-11-24  Glenn Morris  <rgm@gnu.org>
5106         * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5108 2009-11-23  Jan Djärv  <jan.h.d@swipnet.se>
5110         * Makefile.in: Must create deps for ecrt0.o in its rule.
5112         * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5113         because that is what Gtk+ font dialog understands.
5115         * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5116         of Fcopy_sequence.
5117         (font_open_by_name): Put name given into QCname for font-object returned.
5119         * frame.c (x_set_font): Save original font name as frame parameter
5120         font-parameter.
5122         * xsettings.c (set_default_xft_settings): New function.
5123         (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5124         is found.
5126 2009-11-22  Andreas Schwab  <schwab@linux-m68k.org>
5128         * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5129         searching backwards through multibyte buffer.
5131 2009-11-21  Jan Djärv  <jan.h.d@swipnet.se>
5133         * xterm.c: #include xgselect.h.
5134         (x_initialize): Call xgselect_initialize.
5136         * xsettings.c (something_changedCB): C++ comments => C comments.
5137         (init_gconf): Do not deal with any GLib file descriptors, xg_select
5138         does that now.
5140         * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5141         (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5142         (scroll_bar_button_cb): Remove.
5143         (create_menus): C++ comments => C comments.  Don't bind grab-notify
5144         event.
5145         (xg_create_scroll_bar): Don't bind button-press-event and
5146         button-release-event.
5148         * process.c: Include xgselect.h if defined (USE_GTK) ||
5149         defined (HAVE_GCONF).
5150         (wait_reading_process_output): Call xg_select for the same condition.
5152         * xgselect.c (xg_select): New function to better integrate with
5153         GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.
5155         * xgselect.h: New file, declare xg_select, xgselect_initialize.
5157         * Makefile.in (XOBJ): Add xgselect.o.
5159 2009-11-21  Andreas Schwab  <schwab@linux-m68k.org>
5161         * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5162         Remove ignored second argument.  All callers changed.
5163         * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5164         (RE_STRING_CHAR_AND_LENGTH): Likewise.
5165         * xdisp.c (string_char_and_length): Likewise.
5167 2009-11-21  Dan Nicolaescu  <dann@ics.uci.edu>
5169         * xterm.c (x_new_font):
5170         * print.c (print_object):
5171         * cmds.c (Fself_insert_command): Move declarations before statements.
5173 2009-11-20  Ken Brown  <kbrown@cornell.edu>  (tiny change)
5175         * s/cygwin.h: Remove unneeded linker flags.
5177 2009-11-20  Jan Djärv  <jan.h.d@swipnet.se>
5179         * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5181         * xsettings.h: Declare xsettings_get_system_font.
5183         * xsettings.c (xsettings_get_system_font): New function.
5184         (init_gconf): No use initiating gconf unless we have Xft also.
5185         (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5186         HAVE_GCONF.
5188         * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5189         add a blank entry so it doesn't collapse into nothing.
5191 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
5193         * lread.c (Funintern): Comment out last change.
5195 2009-11-19  Richard Stallman  <rms@gnu.org>
5197         * lread.c (Funintern): Error if symbol is t or nil.
5199 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
5201         * insdel.c (make_gap_larger): Don't make as many assumptions about the
5202         representation of Lisp integers.
5203         Reported by MJ Chan <mjchan.inbox@gmail.com>.
5205 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
5207         * lisp.h: Remove declaration of Ffont_get_system_font.
5208         * xfns.c: Move include of "xsettings.h".
5209         * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5211 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
5213         * xsettings.c (something_changedCB, Ffont_get_system_font):
5214         Check use_system_font.
5215         (syms_of_xsettings): DEFVAR font-use-system-font.
5217 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
5219         * xfns.c (x_default_font_parameter): Remove dead assignment.
5221         * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5223 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
5225         * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5226         not have FC_LCD_*.  #define them if not there.
5228         * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5230         * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5232         * xterm.c (handle_one_xevent): Call xft_settings_event for
5233         ClientMessage, PropertyNotify and DestroyNotify.
5234         (x_term_init): If we have XFT, get DPI from Xft.dpi.
5235         Call xsettings_initialize.
5237         * xftfont.c (xftfont_fix_match): New function.
5238         (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5239         Call xftfont_fix_match after XftFontMatch.
5241         * xfont.c (xfont_driver): Initialize all members.
5243         * xfns.c (x_default_font_parameter):
5244         Try font from Ffont_get_system_font.
5245         Do not get font from x_default_parameter if we got one from
5246         Ffont_get_system_font.
5247         (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5249         * w32font.c (w32font_driver): Initialize all members.
5251         * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5253         * lisp.h: Declare syms_of_xsettings.
5255         * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5256         Handle CONFIG_CHANGED_EVENT.
5258         * ftfont.c (ftfont_filter_properties): New function.
5260         * frame.c (x_set_font): Remove unused variable lval.
5262         * font.h (struct font_driver): Add filter_properties.
5264         * font.c (font_put_extra): Don't return if val is nil, it means
5265         boolean option is off.
5266         (font_parse_fcname): Collect all extra properties in extra_props
5267         and call filter_properties for all drivers with extra_props and
5268         font as parameter.
5269         (font_open_entity): Do not use cache, it does not pick up new
5270         fontconfig settings like hinting.
5271         (font_load_for_lface): If spec had a name in it, store it in entity.
5273         * emacs.c (main): Call syms_of_xsettings.
5275         * config.in: HAVE_GCONF is new.
5277         * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5278         xsettings.o is new.
5280 2009-11-17  Kenichi Handa  <handa@m17n.org>
5282         * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5283         back to the default font in case that no suitable font is found.
5285 2009-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
5287         * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5288         Suggested by Chad Brown <yandros@mit.edu>.
5289         (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5291 2009-11-16  Jan Djärv  <jan.h.d@swipnet.se>
5293         * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5295 2009-11-14  Andreas Schwab  <schwab@linux-m68k.org>
5297         * Makefile.in: Ignore errors from mkdir when creating deps directory.
5299 2009-11-14  Jan Djärv  <jan.h.d@swipnet.se>
5301         * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5302         has a parent.
5304         * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5305         dependency files in deps/.  Include those files into Makefile.
5307         * config.in: Generated (AUTO_DEPEND).
5309 2009-11-13  Michael Albinus  <michael.albinus@gmx.de>
5311         * dbusbind.c (Vdbus_registered_objects_table): Rename from
5312         Vdbus_registered_functions_table, because it contains also
5313         properties.  Fix docstring.
5314         (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
5316 2009-11-13  Stefan Monnier  <monnier@iro.umontreal.ca>
5318         * alloc.c (mark_object): Don't reprocess marked strings.
5319         Check vector's markbit earlier.  Adjust calls to mark_vectorlike.
5320         (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5322 2009-11-13  Kenichi Handa  <handa@m17n.org>
5324         * category.c (word_boundary_p): Adjust for the change of the
5325         semantics of Vword_combining_categories.
5326         (Vword_combining_categories): Describe the slight change of the
5327         semantics.
5329 2009-11-13  Eli Zaretskii  <eliz@gnu.org>
5331         * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5333         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5335 2009-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>
5337         * xdisp.c (syms_of_xdisp): Fix typo in last change.
5339 2009-11-12  Juanma Barranquero  <lekktu@gmail.com>
5341         * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5343 2009-11-11  David Reitter  <david.reitter@gmail.com>
5345         * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5346         variables to fix 2009-11-09 change.
5348 2009-11-11  Dan Nicolaescu  <dann@ics.uci.edu>
5350         * process.c (ifflag_def): Make flag_sym constant.
5351         (Fnetwork_interface_info): Use a constant pointer.
5352         (ifflag_table):
5353         * xfns.c (cursor_bits):
5354         * xdisp.c (power_letter):
5355         * termcap.c (speeds, esctab):
5356         * sysdep.c (baud_convert):
5357         * keyboard.c (lispy_accent_codes, modifier_names):
5358         * image.c (xbm_format, xpm_format, pbm_format, png_format)
5359         (jpeg_format, tiff_format, gif_format, svg_format)
5360         (interlace_start, interlace_increment, gs_format):
5361         * gtkutil.c (separator_names):
5362         * fringe.c (swap_nibble):
5363         * fns.c (base64_value_to_char, base64_char_to_value):
5364         * fileio.c (make_temp_name_tbl):
5365         * coding.c (suffixes): Make constant.
5367         * frame.c (make_initial_frame):
5368         * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5369         build_string.
5370         * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5372         * s/freebsd.h:
5373         * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5375         * Makefile.in: Add dependencies to lisp.h.  Remove dependencies
5376         for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5378         * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5379         * xterm.c (syms_of_xterm):
5380         * xfaces.c (syms_of_xfaces):
5381         * xdisp.c (syms_of_xdisp):
5382         * lread.c (syms_of_lread):
5383         * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5384         build_string.
5386         * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5388 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
5390         * fns.c (Fplist_get): Merge the active and the commented out code.
5392 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
5394         * keyboard.h: Declare timer_check.
5396         * keyboard.c (timer_check_2): New function that does what the old
5397         timer_check did.
5398         (timer_check): Call timer_check_2 until -1 or a non-zero time is
5399         returned, i.e. don't return -1 with timers pending.
5401         * process.c: Remove extern declaration of timer_check.
5403         * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5404         even if timer_check returned -1.
5406         * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5407         xg_dialog_data.
5408         (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5409         the event loop.
5410         (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5411         (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5412         Destroy the dialog after xg_dialog_run.
5414 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
5416         * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5418 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
5420         * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5422 2009-11-09  Juanma Barranquero  <lekktu@gmail.com>
5424         * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5426 2009-11-09  Stefan Monnier  <monnier@iro.umontreal.ca>
5428         * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5429         w32menu.c, and nsmenu.m.
5430         Simplify the obsolete case where position is nil.
5431         (cleanup_popup_menu): New function, moved from nsmenu.m.
5432         (struct skp): Remove slot `notreal'.
5433         (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5434         adjust callers.
5435         (single_menu_item): Adjust call to parse_menu_item.
5436         (syms_of_menu): Defsubr x-popup-menu.
5437         * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5438         (keymap_panes): Don't export any more.
5439         (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5440         (xmenu_show): Declare.
5441         * keyboard.c (parse_menu_item): Remove arg `notreal'.
5442         (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5443         * keyboard.h (parse_menu_item): Update declaration.
5444         * xmenu.c (Fx_popup_menu): Remove.
5445         (syms_of_xmenu): Don't defsubr x-popup-menu.
5446         * w32menu.c (Fx_popup_menu): Remove.
5447         (syms_of_w32menu): Don't defsubr x-popup-menu.
5448         * nsmenu.m (cleanup_popup_menu): Remove.
5449         (ns_menu_show): Rename from ns_popup_menu and remove all the code
5450         moved to menu.c's Fx_popup_menu.
5451         (Fx_popup_menu): Remove.
5452         (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5453         menu_items (it's done in menu.c already).
5455 2009-11-08  Stefan Monnier  <monnier@iro.umontreal.ca>
5457         * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5458         Use `tem' less.  Make sure KEYEQ holds a string or nil (bug#4879).
5460 2009-11-08  Chong Yidong  <cyd@stupidchicken.com>
5462         * xmenu.c (Fx_popup_menu): Extract event timestamp.  Pass it to
5463         xmenu_show.  Hide any tooltip before opening a menu.
5464         (xmenu_show): New arg.  Pass it to create_and_show_popup_menu.
5465         (create_and_show_popup_menu): New arg.  Pass it to gtk_menu_popup.
5467 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
5469         Let integers use up 2 tags to give them one extra bit and thus double
5470         their range.
5471         * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5472         (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5473         New macros.
5474         (enum Lisp_Type): Use them.  Give explicit values.
5475         (Lisp_Type_Limit): Remove.
5476         (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5477         (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5478         Pay attention to USE_2_TAGS_FOR_INTS.
5479         (INTEGERP): Use LISP_INT_TAG_P.
5480         * fns.c (internal_equal): Simplify the default case.
5481         (sxhash): Use case_Lisp_Int.
5482         * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5483         any more.
5484         (Ftype_of): Use case_Lisp_Int.
5485         (store_symval_forwarding): Take into account the fact that Ints can
5486         now have more than one tag.
5487         * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5488         buffer_slot_type_mismatch):
5489         * xfaces.c (face_attr_equal_p):
5490         * print.c (print_object):
5491         * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5492         Use case_Lisp_Int.
5494 2009-11-06  Eli Zaretskii  <eliz@gnu.org>
5496         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5498         * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5499         warning.
5501 2009-11-06  Jan Djärv  <jan.h.d@swipnet.se>
5503         * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5505         * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5507         * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5508         ButtonPressRelease and MotionNotify (bug#4870).
5510 2009-11-06  Dan Nicolaescu  <dann@ics.uci.edu>
5512         * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5514         * xterm.c (syms_of_xterm):
5515         * xselect.c (syms_of_xselect):
5516         * xmenu.c (syms_of_xmenu):
5517         * xfns.c (syms_of_xfns):
5518         * xfaces.c (syms_of_xfaces):
5519         * xdisp.c (syms_of_xdisp):
5520         * window.c (syms_of_window):
5521         * w32fns.c (syms_of_w32fns):
5522         * undo.c (syms_of_undo):
5523         * textprop.c (syms_of_textprop):
5524         * terminal.c (syms_of_terminal):
5525         * syntax.c (syms_of_syntax):
5526         * sound.c (syms_of_sound):
5527         * search.c (syms_of_search):
5528         * print.c (syms_of_print):
5529         * minibuf.c (syms_of_minibuf):
5530         * macros.c (syms_of_macros):
5531         * keymap.c (syms_of_keymap, initial_define_key)
5532         (initial_define_lispy_key):
5533         * keyboard.c (syms_of_keyboard):
5534         * insdel.c (syms_of_insdel):
5535         * image.c (syms_of_image):
5536         * fringe.c (syms_of_fringe):
5537         * frame.c (syms_of_frame):
5538         * fontset.c (syms_of_fontset):
5539         * fns.c (syms_of_fns):
5540         * fns.c (syms_of_fns):
5541         * fileio.c (syms_of_fileio):
5542         * fileio.c (syms_of_fileio):
5543         * eval.c (syms_of_eval):
5544         * doc.c (syms_of_doc):
5545         * dispnew.c (syms_of_display):
5546         * dired.c (syms_of_dired):
5547         * dbusbind.c (syms_of_dbusbind):
5548         * data.c (syms_of_data):
5549         * composite.c (syms_of_composite):
5550         * coding.c (syms_of_coding):
5551         * cmds.c (syms_of_cmds):
5552         * charset.c (define_charset_internal, syms_of_character):
5553         * ccl.c (syms_of_ccl):
5554         * category.c (syms_of_category, init_category_once):
5555         * casetab.c (syms_of_casetab):
5556         * casefiddle.c (syms_of_casefiddle):
5557         * callint.c (syms_of_callint):
5558         * bytecode.c (syms_of_bytecode):
5559         * buffer.c (keys_of_buffer, syms_of_buffer):
5560         * alloc.c (syms_of_alloc):
5561         * process.c (syms_of_process, init_process):
5562         * lread.c (syms_of_lread, init_obarray):
5563         * font.c (build_style_table):
5564         * emacs.c (syms_of_emacs, main): Replace calls to intern with
5565         intern_c_string, calls to make_pure_string with
5566         make_pure_c_string.  Use pure_cons instead of Fcons.
5568         * process.c (socket_options): Make it const.
5569         (set_socket_option, init_process): Use a const pointer.
5571         * lread.c (intern_c_string): New function.
5572         (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5573         (defvar_int): Uset it.  Make the name const char*.
5575         * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5576         (defvar_int): Update prototypes.
5577         (DEFUN, EXFUN): Support for prototypes is now required.
5578         (intern_c_string): New prototype.
5579         (struct Lisp_Subr): Make symbol_name constant.
5581         * font.c (struct table_entry): Remove unused member.  Make NAMES
5582         constant.
5583         (weight_table, slant_table, width_table): Make constant.
5585         * emacs.c (struct standard_args): Make name and longname constant.
5587         * character.h (DEFSYM): Use intern_c_string.
5589 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
5591         * alloc.c (make_pure_c_string): New function.
5593         * eval.c (Fautoload): Purecopy all arguments.
5595 2009-11-05  Kenichi Handa  <handa@m17n.org>
5597         * fileio.c (Finsert_file_contents): Be sure set coding-system of
5598         the buffer in case of replace.
5600 2009-11-04  Dan Nicolaescu  <dann@ics.uci.edu>
5602         * puresize.h (BASE_PURESIZE): Increase to 1620000.
5604 2009-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
5606         * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5607         when applicable (bug#4851).
5609         * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5610         (P_): Support for prototypes is now required.
5612 2009-10-31  Chong Yidong  <cyd@stupidchicken.com>
5614         * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5615         (Bug#4827).
5617 2009-10-30  Eli Zaretskii  <eliz@gnu.org>
5619         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
5621 2009-10-30  Dan Nicolaescu  <dann@ics.uci.edu>
5623         * puresize.h (BASE_PURESIZE): Increase to 1470000.
5625         * lread.c (Fload): Purecopy the file name when building
5626         Vpreloaded_file_list.
5628 2009-10-29  Jason Rumney  <jasonr@wanchan.jasonrumney.net>
5630         * w32fns.c (syms_of_w32fns): Change default value of
5631         w32-scroll-lock-modifier to nil.  (Bug#2827)
5633 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
5635         * minibuf.c (Fall_completions): Fix typos in docstring.
5637 2009-10-26  Andreas Schwab  <schwab@redhat.com>
5639         * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5641 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
5643         * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5644         For delta < 0, skip check that only makes sense when the mini-window
5645         is going to be enlarged.  (Bug#4534)
5647 2009-10-25  Chong Yidong  <cyd@stupidchicken.com>
5649         * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5650         string in menu maps (Bug#4471).
5652 2009-10-24  Chong Yidong  <cyd@stupidchicken.com>
5654         * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5655         FRAME_NS_VIEW on terminal frames (Bug#4765).
5657 2009-10-24  Andreas Schwab  <schwab@linux-m68k.org>
5659         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5660         DBUS_TYPE_UINTnn separately to get proper sign extension.
5662         * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5663         can properly handle unsigned types.
5664         (make_uid, make_gid): Remove.
5666         * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5667         types again.
5669         * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
5670         (system_process_attributes): Likewise.
5672 2009-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
5674         * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5676         * eval.c (Fautoload): Purecopy the filename.  Simplify.
5678         * category.c (Fdefine_category): Purecopy docstring.
5680 2009-10-23  Andreas Schwab  <schwab@linux-m68k.org>
5682         * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5684         * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5686 2009-10-23  Chong Yidong  <cyd@stupidchicken.com>
5688         * window.c (Fwindow_edges, Fwindow_pixel_edges)
5689         (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5690         (Bug#4775).
5692 2009-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
5694         * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5695         (init_fileio_once):
5696         * lisp.h (init_fileio_once): Remove.
5697         * emacs.c (main): Don't call init_fileio_once.
5699 2009-10-23  Dan Nicolaescu  <dann@ics.uci.edu>
5701         * puresize.h (BASE_PURESIZE): Increase to 1430000.
5703 2009-10-21  Andreas Schwab  <schwab@linux-m68k.org>
5705         * doprnt.c (doprnt): Fix overflow check.
5707 2009-10-21  Jan Djärv  <jan.h.d@swipnet.se>
5709         * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5711         * xterm.h (x_wait_for_event): Declare it.
5713         * xterm.c (pending_event_wait): New variable.
5714         (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5715         see pending_event_wait.eventtype.
5716         (handle_one_xevent): Don't change gravity when parent changes.
5717         (x_new_font): Call change_frame_size with new rows/columns before we
5718         try to resize the frame.
5719         (x_wait_for_event): New function.
5720         (x_set_window_size_1): Don't change gravity unless change_gravity
5721         is set.
5722         Call XResizeWindow with FRAME_OUTER_WINDOW.  If we are visible,
5723         don't change frame size, instead wait for the ConfigureNotify.
5724         (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5725         (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5726         (x_initialize): Initialize pending_event_wait.
5728         * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5729         size.
5731         * widget.c (EmacsFrameSetValues): Add comment.
5732         (EmacsFrameSetCharSize): Just call x_set_window_size.
5734         * gtkutil.c (xg_frame_set_char_size): Flush events and call
5735         x_wait_for_event.
5736         (flush_and_sync): Remove again.
5737         (xg_get_font_name): Suggest monospace if no previous font is known.
5739 2009-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
5741         * character.c (char_resolve_modifier_mask): Don't resolve meta to the
5742         8th bit, since that only made sense in the ASCII world (bug#4751).
5744 2009-10-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5746         * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5747         processing pending events when event is filtered for input method.
5748         (Bug#3681)
5750 2009-10-20  Juanma Barranquero  <lekktu@gmail.com>
5752         * fns.c: Add #endif accidentally removed in previous change.
5754 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
5756         * fns.c: Remove code for unsupported system: MAC_OS.
5757         * image.c: Likewise.  Include setjmp.h.
5759 2009-10-19  Jan Djärv  <jan.h.d@swipnet.se>
5761         * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5762         pixel -1 (bug #4742).
5764 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
5766         * process.c (create_pty): Remove conditionals for no longer
5767         supported systems: UNIPLUS and RTU.
5769         * xterm.c:
5770         * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5772         * alloc.c: Do not define struct catchtag.
5773         * eval.c: Move struct catchtag definition ...
5774         * lisp.h: ... here.
5776         * image.c: Move png.h #include earlier to avoid warnings.
5778         * xterm.c:
5779         * xsmfns.c:
5780         * xselect.c:
5781         * xrdb.c:
5782         * xmenu.c:
5783         * xftfont.c:
5784         * xfont.c:
5785         * xfns.c:
5786         * xfaces.c:
5787         * xdisp.c:
5788         * window.c:
5789         * widget.c:
5790         * w32xfns.c:
5791         * w32uniscribe.c:
5792         * w32term.c:
5793         * w32select.c:
5794         * w32reg.c:
5795         * w32proc.c:
5796         * w32menu.c:
5797         * w32inevt.c:
5798         * w32heap.c:
5799         * w32font.c:
5800         * w32fns.c:
5801         * w32console.c:
5802         * w32.c:
5803         * w16select.c:
5804         * vm-limit.c:
5805         * unexsol.c:
5806         * unexec.c:
5807         * unexcw.c:
5808         * unexaix.c:
5809         * undo.c:
5810         * tparam.c:
5811         * textprop.c:
5812         * terminfo.c:
5813         * terminal.c:
5814         * termcap.c:
5815         * term.c:
5816         * syntax.c:
5817         * sound.c:
5818         * sheap.c:
5819         * search.c:
5820         * scroll.c:
5821         * region-cache.c:
5822         * regex.c:
5823         * ralloc.c:
5824         * process.c:
5825         * print.c:
5826         * nsterm.m:
5827         * nsselect.m:
5828         * nsmenu.m:
5829         * nsimage.m:
5830         * nsfont.m:
5831         * nsfns.m:
5832         * msdos.c:
5833         * minibuf.c:
5834         * menu.c:
5835         * marker.c:
5836         * macros.c:
5837         * keymap.c:
5838         * keyboard.c:
5839         * intervals.c:
5840         * insdel.c:
5841         * indent.c:
5842         * gtkutil.c:
5843         * ftxfont.c:
5844         * ftfont.c:
5845         * fringe.c:
5846         * frame.c:
5847         * fontset.c:
5848         * font.c:
5849         * fns.c:
5850         * floatfns.c:
5851         * filelock.c:
5852         * fileio.c:
5853         * emacs.c:
5854         * editfns.c:
5855         * dosfns.c:
5856         * doprnt.c:
5857         * doc.c:
5858         * dispnew.c:
5859         * dired.c:
5860         * dbusbind.c:
5861         * data.c:
5862         * composite.c:
5863         * coding.c:
5864         * cmds.c:
5865         * cm.c:
5866         * chartab.c:
5867         * charset.c:
5868         * character.c:
5869         * ccl.c:
5870         * category.c:
5871         * casetab.c:
5872         * casefiddle.c:
5873         * callproc.c:
5874         * callint.c:
5875         * bytecode.c:
5876         * buffer.c:
5877         * atimer.c: Include setjmp.h.  (Bug#4643)
5879 2009-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
5881         Remove leftover table unibyte_to_multibyte_table.
5882         * character.c (unibyte_to_multibyte_table): Remove.
5883         (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5884         * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5885         * character.h (UNIBYTE_TO_CHAR): New macro.
5886         (MAKE_CHAR_MULTIBYTE): Use it.
5887         (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5888         * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5889         (message_dolog, set_message_1):
5890         * search.c (Freplace_match):
5891         * editfns.c (Fcompare_buffer_substrings):
5892         * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5893         (concat):
5894         * insdel.c (copy_text, count_size_as_multibyte):
5895         Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5896         * term.c (produce_glyphs):
5897         * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5898         * regex.c (RE_CHAR_TO_MULTIBYTE):
5899         * cmds.c (internal_self_insert):
5900         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5902         * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5904 2009-10-17  Dan Nicolaescu  <dann@ics.uci.edu>
5906         * puresize.h (BASE_PURESIZE): Increase to 1310000.
5908 2009-10-16  Juanma Barranquero  <lekktu@gmail.com>
5910         * buffer.c (Fbuffer_name): Doc fix.  (Bug#4728)
5912 2009-10-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
5914         * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5915         still needed under Tiger.
5917         * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5919         * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5920         __Apple__.
5922         * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5924 2009-10-15  Kenichi Handa  <handa@m17n.org>
5926         * print.c (print_object): Escape a symbol like "2E10" too.
5928 2009-10-11  Adrian Robert  <Adrian.B.Robert@gmail.com>
5930         Cleanups and changes for 64-bit compile under Snow Leopard.
5931         Based on suggestions by Erik Charlebois.
5933         * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5935         * nsfont.m (ns_char_width): Replace deprecated call.
5936         (ns_findfonts, nsfont_list_family): Use long format in printf, and
5937         cast argument.
5938         (nsfont_open): Use ns_char_width() everywhere.
5939         (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
5941         * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5943         * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5944         where appropriate.
5946         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5947         where appropriate.
5948         (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5949         Use stringWithUTF8String.
5950         (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5952         * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5953         Add formal protocol mention to inheritance.
5954         [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5956         * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5957         Fix printf format.
5958         (ns_query_color): Use CGFloat where appropriate.
5959         (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
5960         (EmacsScroller-mouseDown:): Use long format in printf, and cast
5961         argument.
5963         * config.in (NS_HAVE_NSINTEGER): Drop.
5965         * dbusbind.c (dbus-method-return-internal)
5966         (dbus-method-error-internal): Use long format in printf, and cast
5967         argument.
5969         * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5970         in printf, and cast argument.
5972         * process.c (list_processes_1): Use long format in printf, and
5973         cast argument.
5975 2009-10-11  Glenn Morris  <rgm@gnu.org>
5977         * frame.c (Fframe_pixel_height): Doc fix.  (Bug#4535)
5979 2009-10-08  Jan Djärv  <jan.h.d@swipnet.se>
5981         * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5982         menu bar with a small width so it doesn't enlarge the frame.
5984 2009-10-08  Juanma Barranquero  <lekktu@gmail.com>
5986         * fontset.c (Fset_fontset_font): Fix typos in error messages.
5988 2009-10-06  Glenn Morris  <rgm@gnu.org>
5990         * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5991         SOME_MACHINE_LISP (this enters indirectly via DOC).
5993 2009-10-05  Eli Zaretskii  <eliz@gnu.org>
5995         * dired.c (Ffile_attributes): Doc fix.  (Bug#4638)
5997 2009-10-04  Eli Zaretskii  <eliz@gnu.org>
5999         * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6000         Doc fix.
6002 2009-10-03  Martin Rudalics  <rudalics@gmx.at>
6004         * window.c (Fdelete_window): Check WINDOW argument.  (Bug#4618)
6006 2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
6008         * lisp.h (Qdelete_directory_internal): Remove, because it is not
6009         used anymore outside fileio.c.
6011         * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6013 2009-10-01  Juanma Barranquero  <lekktu@gmail.com>
6015         * lisp.h (Qdelete_directory_internal):
6016         Declare, instead of Qdelete_directory.
6018         * w32fns.c (Fsystem_move_file_to_trash): Use it.
6020 2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
6022         * eval.c (Fcalled_interactively_p): Add `kind' argument.
6024 2009-10-01  Michael Albinus  <michael.albinus@gmx.de>
6026         * fileio.c (Fdelete_directory_internal): Rename from
6027         Fdelete_directory.  It is not a command anymore.  It has no file
6028         name handler.
6030 2009-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
6032         * xdisp.c (get_next_display_element): Use an enum in last change.
6034 2009-09-28  Kenichi Handa  <handa@m17n.org>
6036         * xdisp.c (get_next_display_element): Pay attention to
6037         unibyte_display_via_language_environment in handling
6038         Vnobreak_char_display.
6040 2009-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
6042         * nsterm.h (ns_app_name): New extern variable.
6044         * nsterm.m (ns_app_name): New variable.
6045         (ns_term_init): Set and use it.
6046         (ns_term_shutdown): Use it.
6048         * nsmenu.m (ns_update_menubar): Use ns_app_name.  Sync with xmenu.c.
6049         (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6051         * nsfns.m (ns_set_name_iconic, ns_set_name)
6052         (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6053         (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6055         * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6056         Remove double-casting in client_data comparison.
6058 2009-09-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6060         * keyboard.c (make_lispy_event): Remember last wheel direction.
6061         (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6063 2009-09-26  Glenn Morris  <rgm@gnu.org>
6065         * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6066         internal.elc.  Add term/pc-win.elc.
6067         (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6068         term/x-win.elc.
6069         (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6070         term/w32-win.elc.
6071         (NS_SUPPORT): New.
6072         (lisp): Add NS_SUPPORT.
6073         (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6075 2009-09-25  David Reitter  <david.reitter@gmail.com>
6077         * nsmenu.m (EmacsMenu-clear): Recognize application menu
6078         on Mac OS X 10.6+ (bug#4513).
6080 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
6082         * frame.c (xrdb_get_resource): Return nil for empty string resources;
6083         some parts of Emacs code (like font selection) don't grok them.
6084         See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6086 2009-09-24  Andreas Schwab  <schwab@redhat.com>
6088         * coding.c (decode_coding_iso_2022): Fix operator precedence.
6090 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
6092         * dired.c (Fdirectory_files): Fix typo in docstring.
6094 2009-09-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
6096         * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6097         (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6098         (EmacsScroller-setPosition:portion:whole:): Remove -display call
6099         under GNUstep.
6100         (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6102         * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6103         glyph advancement.
6105 2009-09-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
6107         * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6108         (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6110         * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6111         deleted (bug #4492).
6113         * nsfont.m (Vns_reg_to_script): New lisp variable.
6114         (syms_of_nsfont): Declare it.
6115         (ns_registry_to_script): New function.
6116         (ns_get_req_script): Call it.
6117         (ns_findfonts): Don't give up on non-unicode registry.
6119         * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6121 2009-09-20  Tom Tromey  <tromey@redhat.com>
6123         * eval.c (find_handler_clause): Make stack-trace-on-error work in
6124         batch mode (bug#4228).
6126 2009-09-18  Rob Christie  <robchristie@gmail.com>  (tiny change)
6128         * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6129         carefully.  (Bug #4339)
6131 2009-09-18  Chong Yidong  <cyd@stupidchicken.com>
6133         * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6135 2009-09-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
6137         * emacs.c (inhibit_x_resources): Update doc string for NS.
6138         (main) [HAVE_NS]: Don't process --no-init-file option.  Remove
6139         legacy code for -NXHost.  Fix error printf in daemon case.
6141         * nsterm.h (ns_no_defaults): Remove.
6143         * nsterm.m (ns_no_defaults): Remove.
6144         (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6145         (ns_use_qd_smoothing): Remove legacy variable.
6146         (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6147         don't update the NSWindow itself.
6148         (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6149         state detection and store user rect ourselves.  (Bug #3581)
6151         * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6152         ns_use_qd_smoothing.
6154         * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6155         platform versions.  Drop support for emacs-20-style face specs.
6156         (x-close-connection): Drop PSFlush() under OS X.
6157         (x-focus-frame): Activate the app first.  (Bug #4180)
6159 2009-09-17  Juanma Barranquero  <lekktu@gmail.com>
6161         * emacs.c (inhibit_x_resources): New variable.
6162         (main) [HAVE_NS]: Don't process --quick command line option.
6163         (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6165         * lisp.h (inhibit_x_resources): Declare it extern.
6167         * w32reg.c (x_get_string_resource):
6168         * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6170 2009-09-17  Eli Zaretskii  <eliz@gnu.org>
6172         * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6173         Add lisp/term/internal.elc.
6175 2009-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
6177         * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6178         (bug#4461).
6180 2009-09-17  Dan Nicolaescu  <dann@ics.uci.edu>
6182         * puresize.h (BASE_PURESIZE): Increase to 1290000.
6184         * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6185         (OBJECTS_MACHINE): Remove, unused.
6187 2009-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>
6189         * frame.c (x_get_resource_string): Remove unused.
6191 2009-09-15  Jan Djärv  <jan.h.d@swipnet.se>
6193         * xterm.c (x_new_font): Call change_frame_size before calling
6194         x_set_window_size, in case frame size won't change.
6196         * frame.c (x_set_font): Remove dead code.
6198 2009-09-15  Stefan Monnier  <monnier@iro.umontreal.ca>
6200         * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6202 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
6204         * lread.c (Fload): Don't output a message after loading an obsolete
6205         package any more (done in Lisp now).
6207 2009-09-12  Chong Yidong  <cyd@stupidchicken.com>
6209         * fns.c (syms_of_fns): Doc fix (Bug#4227).
6211 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
6213         * keymap.c (Fwhere_is_internal): Use nconc2.
6215 2009-09-11  Alan Mackenzie  <acm@muc.de>
6217         * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6218         batch mode.
6220 2009-09-11  Andreas Schwab  <schwab@linux-m68k.org>
6222         * xdisp.c (display_mode_element): Detect cycles.
6224 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
6226         * keymap.c (where_is_internal): Don't erroneously return nil right after
6227         filling the cache.
6228         (where_is_internal_1): Fix up typo.
6230 2009-09-11  Glenn Morris  <rgm@gnu.org>
6232         * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6233         share a common doc-string.
6235 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
6237         * keymap.c (get_keymap): Return the actual keymap symbol rather than
6238         t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6240         * keymap.c (QCadvertised_binding): New constant.
6241         (syms_of_keymap): Initialize it.
6242         (Fwhere_is_internal): Try and use bindings from :advertised-binding
6243         if applicable.
6245 2009-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
6247         * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6248         (parse_menu_item): Streamline since bindings are recomputed all the
6249         time anyway.  Don't bother checking Vdefine_key_rebound_commands any
6250         more and don't support lmenu's menu-alias any more either.
6252         * keymap.c (where_is_internal_data): Make noindirect a boolean.
6253         (where_is_internal): Strip it down to only traverse the keymaps.
6254         Move the cache handling from Fwhere_is_internal to here.
6255         (Fwhere_is_internal): Move the handling of remapping and the choice of
6256         the best binding from where_is_internal to here.
6257         Unify the cached/noncached paths, so remapping is also handled
6258         correctly when the cache is used, and so the cache can be used to
6259         speed up remap-handling when applicable.
6260         Give preference to non-remapped bindings.
6261         * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6262         non-remapped bindings.
6263         * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6264         command remapping.
6266         * xdisp.c (display_mode_element): Move list length limit from 50 to
6267         5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6269 2009-09-09  Adrian Robert  <Adrian.B.Robert@gmail.com>
6271         * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6273 2009-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
6275         * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6276         (Bug#4334)
6278         * keymap.c (where_is_internal): Filter out shadowed remappings.
6279         Assume that where_is_internal returns unshadowed bindings to simplify
6280         the code and get rid of the gotos.  Use ASIZE.
6282 2009-09-04  Jan Djärv  <jan.h.d@swipnet.se>
6284         * xterm.c (x_focus_changed): If we get a focusout and pointer
6285         is invisible, make it visible.
6287         * xterm.h: Remove condition for declaration of
6288         x_*_window_to_frame.
6290 2009-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
6292         * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6293         initial terminal as well.
6295 2009-09-02  Jan Djärv  <jan.h.d@swipnet.se>
6297         * xterm.h: Rename x_non_menubar_window_to_frame to
6298         x_menubar_window_to_frame.
6300         * xterm.c: Remove declarations also in xterm.h.
6301         (XTmouse_position): Do not return valid positions
6302         for clicks in the menubar and the toolbar for Gtk+.
6304         * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6305         if the widget for the event has the same top level as a frame,
6306         return the frame.
6307         (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6308         internal windows, bug #4122.
6309         (x_non_menubar_window_to_frame): Remove.
6311 2009-09-02  Glenn Morris  <rgm@gnu.org>
6313         * buffer.c (default-major-mode): Move most of the doc from here...
6314         (major-mode): ... to here.
6316 2009-08-30  Nick Roberts  <nickrob@snap.net.nz>
6318         * process.c (wait_reading_process_output): Keep the descriptor
6319         when pty is used by a non-child process, e.g., in I/O buffer of
6320         GDB this allows inferior to be restarted.
6322 2009-08-29  Eli Zaretskii  <eliz@gnu.org>
6324         * xdisp.c (redisplay_internal): Remove redundant test and collapse
6325         both branches into one.
6327 2009-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
6329         * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6330         (main): Use enable-multibyte-characters rather than
6331         default-enable-multibyte-characters.  Output a warning message when
6332         running a unibyte session.
6334 2009-08-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6336         * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6337         LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6338         (copy_data_segment): Also copy __program_vars section.
6339         (copy_dyld_info) [LC_DYLD_INFO]: New function.
6340         (dump_it) [LC_DYLD_INFO]: Use it.
6342         * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6344 2009-08-28  Eli Zaretskii  <eliz@gnu.org>
6346         * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6347         $(SRC)/buildobj.h.
6348         (buildobj.h): Renamed from $(SRC)/buildobj.h.
6349         (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6350         $(SRC)/buildobj.h.
6351         (clean): Add buildobj.h.
6353 2009-08-28  Teodor Zlatanov  <tzz@lifelogs.com>
6355         * print.c (print_object): Set escapeflag to 1 when printing
6356         hashtable keys and values.
6358 2009-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
6360         * lread.c (read_integer): Use doubles (and potentially return a float
6361         number) as we do in string-to-number.
6362         (read1): Use strtol to read integers, signal errors on strtol's
6363         overflow and use floats if strtol's output is too large for
6364         Elisp integers.
6366 2009-08-27  Eli Zaretskii  <eliz@gnu.org>
6368         * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6369         (make-buildobj-SH): Fix last change.
6370         (SRC): Move to before where it's first used.
6372 2009-08-27  Kenichi Handa  <handa@m17n.org>
6374         * process.c (send_process): Use encode_coding_object instead of
6375         encode_coding_string to perform eol-conversion even if the string
6376         is unibyte.
6378         * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6379         character.
6381         * cmds.c (Fself_insert_command): Avoid unnecessay
6382         unibyte->multibyte conversion.  (Bug#4240)  (Bug#4037)
6384 2009-08-26  Dan Nicolaescu  <dann@ics.uci.edu>
6386         * callproc.c (Fcall_process): Remove always true #if.
6388         * lisp.h: Replace #if 0 code for checking with text pointing to
6389         the --enable-checking configure flag.
6391         * emacs.c (main): Mention the --enable-profiling configure flag
6392         instead of using CFLAGS.
6394 2009-08-26  Ken Raeburn  <raeburn@raeburn.org>
6396         * Makefile.in (buildobj.h): New target.
6397         (doc.o): Depend on it.
6398         (temacs${EXEEXT}): Don't generate buildobj.lst.
6399         (mostlyclean): Delete buildobj.h, not buildobj.lst.
6400         * makefile.w32-in ($(SRC)/buildobj.h): New target.
6401         ($(BLD)/doc.$(O)): Depend on it.
6402         (make-buildobj-CMD, make-buildobj-SH): New targets.  (Syntax help
6403         provided by Eli Zaretskii.)
6404         ($(TEMACS)): Don't generate buildobj.lst.
6405         * doc.c: Include buildobj.h.
6406         (buildobj): New static variable.
6407         (Fsnarf_documentation): Use it, instead of opening and reading
6408         buildobj.lst.
6410 2009-08-25  Michael Albinus  <michael.albinus@gmx.de>
6412         * dbusbind.c (Fdbus_call_method)
6413         (Fdbus_call_method_asynchronously): Use English numeric format for
6414         timeout values in doc string.
6416 2009-08-25  Kenichi Handa  <handa@m17n.org>
6418         * alloc.c (mark_char_table): New function.
6419         (mark_object): Use mark_char_table for a char-table.
6421         * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6422         (CHAR_TABLE_REF): Use it.
6424 2009-08-23  Ken Raeburn  <raeburn@raeburn.org>
6426         * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6427         before invoking the newly build emacs to check for load-path
6428         shadowing.
6430 2009-08-22  Glenn Morris  <rgm@gnu.org>
6432         * Makefile.in (bootstrap_exe): New variable.
6433         (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6434         Use ${bootstrap_exe}.
6436 2009-08-22  Eli Zaretskii  <eliz@gnu.org>
6438         * coding.h (encode_coding_string): Don't encode unibyte strings.
6439         (Bug#4047)
6441 2009-08-22  Michael Albinus  <michael.albinus@gmx.de>
6443         * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6445         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove.  It was
6446         intended as hotfix only.
6447         (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6449 2009-08-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
6451         * nsterm.m (ns_get_color): Update documentation properly for last
6452         change, and clean up loose ends in the code left by it.  Fix
6453         longstanding bug with 16-bit hex parsing, and add support for
6454         yet another X11 format (rgb:r/g/b) for compatibility.
6455         * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6456         timer_check() to avoid crash on Leopard/PPC.  Bug #2154.
6458 2009-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>
6460         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6462 2009-08-20  Michael Albinus  <michael.albinus@gmx.de>
6464         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6465         (xd_add_watch, xd_remove_watch): Use it.  Print debug messages.
6466         (xd_initialize, xd_pending_messages): Check, whether
6467         $DBUS_SESSION_BUS_ADDRESS is set.
6469 2009-08-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6471         * nsfns.m (Fxw_color_values): Return 3-element list.  Doc fix.
6473         * nsterm.m (ns_get_color): Remove incompatible color formats again.
6475 2009-08-20  Glenn Morris  <rgm@gnu.org>
6477         * emacs.c (system-type): Doc fix.
6479 2009-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
6481         * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6482         enough for the most common situations.  Avoid SET_SYMBOL_VALUE.
6484 2009-08-18  Michael Albinus  <michael.albinus@gmx.de>
6486         * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6487         New functions.
6488         (xd_initialize): Revert change from 2009-08-16.
6490 2009-08-18  Kenichi Handa  <handa@m17n.org>
6492         * fontset.c (Ffontset_font): If a nil element is found in a
6493         font-group vector, return nil.
6495 2009-08-17  Chong Yidong  <cyd@stupidchicken.com>
6497         * process.c (status_notify): Don't perform redisplay.
6498         (Fdelete_process, list_processes_1, process_send_signal):
6499         Expliticly perform redisplay.
6500         (wait_reading_process_output): Always check process status, but
6501         don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6503 2009-08-17  Ken Raeburn  <raeburn@raeburn.org>
6505         * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
6506         (XFLOAT_INIT): New macro for storing a float value.
6507         * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6508         * fns.c (sxhash): Copy out the value of a float in order to
6509         examine its bytes.
6510         * dbusbind.c (xd_append_arg): Likewise.
6512         * emacs.c (main): Don't call syms_of_data twice.
6514 2009-08-16  Michael Albinus  <michael.albinus@gmx.de>
6516         * dbusbind.c (xd_initialize): Add connection file descriptor to
6517         input_wait_mask, in order to let select() detect, whether a new
6518         message has been arrived.
6519         (Fdbus_call_method_asynchronously): Allow nil HANDLER.
6521 2009-08-15  Michael Albinus  <michael.albinus@gmx.de>
6523         * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6524         New functions.
6526         * lisp.h (xd_pending_messages): Declare.
6528         * keyboard.c (readable_events): Call xd_pending_messages.
6530 2009-08-15  Chong Yidong  <cyd@stupidchicken.com>
6532         * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
6534         * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6536         * buffer.c (set_buffer_internal_1)
6537         (swap_out_buffer_local_variables): Check for unbound local
6538         variables (Bug#4138).
6540 2009-08-14  Eli Zaretskii  <eliz@gnu.org>
6542         * process.c (create_pty): Fix last change.
6544 2009-08-13  Chong Yidong  <cyd@stupidchicken.com>
6546         * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6547         (xbm_load_image): Caller changed.
6548         (xbm_file_p): Avoid signalling an image_error (Bug#4107).
6550 2009-08-13  Nick Roberts  <nickrob@snap.net.nz>
6552         * process.c (create_pty): New function.
6553         (Fstart_process): Use it to allow Emacs to just associate a pty
6554         with the buffer.  See associated change in gdb-mi.el.
6555         (list_processes_1): Deal with no program name.
6556         (start_process_unwind): Use pid == -2 to mean no process.
6558 2009-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
6560         * cmds.c (nonundocount): New global variable.
6561         (keys_of_cmds): Initialize it.
6562         (Fself_insert_command): Use it to combine upto 20 sequential chars
6563         into a single undo entry, just like the Qself_insert_command code in
6564         keyboard.c does.
6565         Call frame_make_pointer_invisible, also like the Qself_insert_command
6566         code in keyboard.c does.
6567         * keyboard.c (command_loop_1): Use the new global nonundocount rather
6568         than its own local replacement for it.
6570 2009-08-10  Ken Raeburn  <raeburn@raeburn.org>
6572         * fns.c (concat): Don't re-set string length to its current value.
6574         * coding.h (decode_coding_string, encode_coding_string):
6575         Use SBYTES macro.
6577         * doprnt.c (doprnt_lisp): Delete unused function.
6578         (doprnt): Merge with doprnt1, discarding lispstrings code.
6579         * lisp.h (doprnt_lisp): Don't declare.
6581 2009-08-07  Juri Linkov  <juri@jurta.org>
6583         * puresize.h (BASE_PURESIZE): Increase to 1270000.
6585 2009-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
6587         * print.c (syms_of_print): Undo previous change.
6589 2009-08-05  Teodor Zlatanov  <tzz@lifelogs.com>
6591         * lread.c (read1, syms_of_lread): Read hashtables back from the
6592         readable format.
6594         * print.c (print_preprocess, print_object): Print hashtables fully
6595         and readably.
6596         (syms_of_print): Provide 'hashtable-print-readable.
6598 2009-08-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
6600         * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6601         no family set.
6602         (nsfont_open): Handle case when entity has no family.
6604 2009-07-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
6606         * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6607         element, not a list, for match case.
6609 2009-07-28  Kenichi Handa  <handa@m17n.org>
6611         * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6612         rigidly.
6614         * xfont.c (xfont_list_pattern): Don't ignore the return value of
6615         font_parse_xlfd.  Check font properties more rigidly.
6617 2009-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
6619         * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6620         bsd-common.h.
6622 2009-07-27  Kenichi Handa  <handa@m17n.org>
6624         * xfaces.c (face_with_height): Call font_clear_prop.
6626 2009-07-26  Chong Yidong  <cyd@stupidchicken.com>
6628         * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6630         * xterm.c (x_term_init): Use Qx.
6632         * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6634         * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
6635         (ns_get_color): Revert 2009-07-16 change.
6637 2009-07-25  Eli Zaretskii  <eliz@gnu.org>
6639         * lread.c (syms_of_lread) <force_load_messages>: New variable.
6640         (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
6642 2009-07-25  Ken Raeburn  <raeburn@raeburn.org>
6644         * coding.h (decode_coding_string, encode_coding_string):
6645         Use SCHARS macro.
6647         * lread.c: Rewrite 2009-07-21 changes.
6648         (load_depth): Delete.
6649         (Qload_in_progress): New variable.
6650         (load_unwind): Don't reference load_depth or load_in_progress.
6651         (Fload): Likewise; specbind Qload_in_progress instead.
6652         (init_lread): Don't initialize load_depth.
6653         (syms_of_lread): Initialize and protect Qload_in_progress.
6655 2009-07-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
6657         * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6659 2009-07-23  Yavor Doganov  <yavor@gnu.org>
6661         * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6663 2009-07-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
6665         * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
6666         Bugs 3792, 3720, 2402.
6667         (ns_lookup_indexed_color): Check for bad index.
6668         (ns_index_color): Init unused slot to 0.
6669         (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6670         Bug 3714, possibly 3082.
6672 2009-07-22  Jason Rumney  <jasonr@gnu.org>
6674         * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6675         Position IME window at cursor (Bug#2570).
6676         (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6677         (globals_of_w32fns): Dynamically load functions required above.
6679         * w32term.c (w32_draw_window_cursor): Send message to reposition
6680         any IME window.
6682 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
6684         * fileio.c: Revert 2009-07-16 changes.
6685         (Vauto_save_include_big_deletions): New variable.
6686         (Fdo_auto_save): Disable auto-save only if
6687         auto-save-include-big-deletions is nil.
6689 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
6691         * xdisp.c (move_it_to): For continued lines ending in a tab, take
6692         the overflowed pixels into account (Bug#3879).
6694 2009-07-21  Ken Raeburn  <raeburn@raeburn.org>
6696         * lread.c (load_depth): New variable.
6697         (Fload, load_unwind, init_lread): Set it to the load recursion
6698         depth; set load_in_progress as a simple boolean based on the
6699         current load_depth.  (Bug#3892)
6701 2009-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
6703         * nsfont.m (ns_has_attribute): Remove.
6704         (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6706 2009-07-18  Juri Linkov  <juri@jurta.org>
6708         * process.c (Fset_process_query_on_exit_flag): Mention killing
6709         a buffer in docstring.
6711 2009-07-17  Kenichi Handa  <handa@m17n.org>
6713         * casetab.c (shuffle): Fix the logic of setting up the cycle.
6715 2009-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6717         * nsfns.m (Fns_set_alpha): Remove function.
6718         (syms_of_nsfns): Don't defsubr it.
6720         * nsterm.m (ns_get_color): Remove incompatible color formats.
6721         (ns_color_to_lisp): Generate #rrggbb color format string.
6723 2009-07-16  Richard Stallman  <rms@gnu.org>
6725         * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6726         (Fset_buffer_auto_saved): Handle save_length = -2.
6728 2009-07-16  Chong Yidong  <cyd@stupidchicken.com>
6730         * xterm.c (Qx_gtk_map_stock): New var.
6732         * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6733         of calling intern each time.
6735 2009-07-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6737         * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6738         does tiling.
6740         * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6742 2009-07-14  Kenichi Handa  <handa@m17n.org>
6744         * font.c (font_vconcat_entity_vectors): New function.
6745         (struct font_sort_data): New member font_driver_preference.
6746         (font_compare): Check font_driver_preference.
6747         (font_sort_entities): The format of the first argument changed.
6748         (font_delete_unmatched): Likewise.
6749         (font_list_entities): The return type changed.
6750         (font_select_entity): The format of the second argument changed.
6751         (font_find_for_lface): Adjuste for the above changes.
6752         Don't suppress the checking of C even if the repertory supports it.
6753         (Flist_fonts): Adjust for the above changes.
6755         * ftfont.c (ftfont_spec_pattern): New arg langname.  Change caller.
6756         (ftfont_list): Adjust for the change of ftfont_spec_pattern.
6757         Reject a font who has adstyle property that is different from a
6758         langname derived from registry property.
6759         (ftfont_match): Adjust for the change of ftfont_spec_pattern.
6761 2009-07-13  Eli Zaretskii  <eliz@gnu.org>
6763         * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6764         local copy of dirfilename.
6766 2009-07-13  Kenichi Handa  <handa@m17n.org>
6768         * chartab.c (sub_char_table_ref_and_range): Fix the range check
6769         against max_char.
6771         * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6772         calling XSYMBOL (sym).
6774 2009-07-11  Eli Zaretskii  <eliz@gnu.org>
6776         * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6777         New function.
6778         (directory_files_internal) [WINDOWSNT]:
6779         Bind w32-get-true-file-attributes to either t or nil, depending whether
6780         the filesystem of the directory is fast or slow.
6782         * w32.c (logon_network_drive): Don't assume PATH is an absolute
6783         file name.
6784         (is_slow_fs): New function.
6785         (stat): Use it to determine whether to issue more system calls to
6786         get accurate file attributes, when w32-get-true-file-attributes is
6787         `local'.
6789 2009-07-10  Jan Djärv  <jan.h.d@swipnet.se>
6791         * xfns.c (Fx_select_font): Remember last font selected in
6792         x_last_font_name and use that the next time.  Also try the frame
6793         parameter font-parameter as default to the font dialog.
6795 2009-07-10  Kenichi Handa  <handa@m17n.org>
6797         * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6799 2009-07-09  Eli Zaretskii  <eliz@gnu.org>
6801         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6803         * w32.c (stat): Treat UNC file names as residing on remote
6804         drives.  (Bug#3542)
6806 2009-07-09  Kenichi Handa  <handa@m17n.org>
6808         * fontset.c (fontset_find_font): Fix previous change.
6810 2009-07-08  Michael Albinus  <michael.albinus@gmx.de>
6812         * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6813         (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6814         error flag.
6816 2009-07-08  Kenichi Handa  <handa@m17n.org>
6818         * fontset.c (fontset_find_font): Fix the logic of handling
6819         charset_matched.
6820         (font_for_char): Delete unused var.
6821         (generate_ascii_font_name): Delete it.
6823         * coding.h (JIS_TO_SJIS2): Fix the code range check.
6825         * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6826         (encode_coding_sjis): Fix the code range check.
6828 2009-07-07  Chong Yidong  <cyd@stupidchicken.com>
6830         * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6831         (Fexpand_file_name): Copy string data properly (Bug#3772).
6833 2009-07-07  Jan Djärv  <jan.h.d@swipnet.se>
6835         * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6836         first MapNotify.
6838 2009-07-07  Kenichi Handa  <handa@m17n.org>
6840         * character.h (unibyte_has_multibyte_table): Delete extern.
6841         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6843         * charset.c (Fset_charset_priority): Update charset_unibyte.
6844         (syms_of_charset): Initialize charset_unibyte.
6846         * character.c (unibyte_has_multibyte_table): Delete it.
6847         (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6848         charset_unibyte.
6849         (multibyte_char_to_unibyte_safe): Likewise.
6850         (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6852         * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6853         (x_produce_glyphs): Likewise.
6855         * .gdbinit (xcharset): Fix the treating $arg0.
6857 2009-07-04  Eli Zaretskii  <eliz@gnu.org>
6859         Emulation of `getloadavg' on MS-Windows.
6860         * w32.c: Include float.h.
6861         (g_b_init_get_native_system_info, g_b_init_get_system_times)
6862         (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6863         (get_native_system_info, get_system_times): New functions.
6864         (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6865         (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6866         (globals_of_w32): Initialize g_b_init_get_native_system_info,
6867         g_b_init_get_system_times, and num_of_processors.
6869 2009-07-03  Jason Rumney  <jasonr@gnu.org>
6871         * w32term.c (w32_initialize): Use standard types.
6873 2009-07-03  Eli Zaretskii  <eliz@gnu.org>
6875         * dired.c (Ffile_attributes): Decode user and group names by the
6876         locale's encoding.  (Bug#3443)
6878 2009-07-03  Dan Nicolaescu  <dann@ics.uci.edu>
6880         * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6881         (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6883         * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6885         * term.c (init_tty): Remove spurious #ifdef.
6887         * m/mips.h: Mention this file is also used for netbsd.
6888         * m/pmax.h: Remove file.
6890 2009-07-03  Jan Djärv  <jan.h.d@swipnet.se>
6892         * xterm.h (struct x_display_info): Add invisible_cursor.
6893         (struct x_output): Add current_cursor.
6895         * xterm.c (XTtoggle_invisible_pointer): New function.
6896         (x_define_frame_cursor): Don't define cursor if invisible or the
6897         same as before.  Set current_cursor.
6898         (x_create_terminal): Set toggle_invisible_pointer_hook.
6900         * xfns.c (make_invisible_cursor): New function.
6901         (x_set_mouse_color): Call make_invisible_cursor.
6902         Set current_cursor.
6903         (x_window): Set current_cursor.
6905         * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6907         * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6908         inserting a character.
6909         (read_avail_input): Call frame_make_pointer_visible.
6911         * frame.c (Vmake_pointer_invisible): New variable.
6912         (frame_make_pointer_invisible, frame_make_pointer_visible):
6913         New functions.
6914         (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6916         * frame.h: Declare frame_make_pointer_invisible and
6917         frame_make_pointer_visible.
6918         (struct frame): Add pointer_invisible.
6920 2009-07-02  Jan Djärv  <jan.h.d@swipnet.se>
6922         * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6923         frame isn't visible.
6924         (xg_frame_resized): If width/height is -1, get size of window
6925         from X server.
6927         * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6928         for MapNotify.
6930         * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
6931         here or call change_frame_size.  Just call flush_and_sync.
6932         (flush_and_sync): Reintroduce.
6934 2009-07-01  Jan Djärv  <jan.h.d@swipnet.se>
6936         * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
6938         * xterm.c (x_handle_net_wm_state): Also look for sticky.
6939         (x_term_init): Initialize Xatom_net_wm_state_sticky.
6941         * frame.h: Declare Qsticky.
6943         * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6945         * nsfns.m (ns_frame_parm_handlers): Ditto.
6947         * frame.c: Declare Qsticky.
6948         (frame_parms): Add sticky.
6950         * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6952         * xterm.h: Declare x_set_sticky.
6954         * xterm.c (x_set_sticky): New function.
6956         * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6957         (xg_tool_bar_menu_proxy): Attach enter/leave events to
6958         xg_tool_bar_proxy_help_callback.
6960         * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6962         * frame.c: Qmaximized is new.
6963         (x_set_frame_parameters): Do not handle fullscreen specially.
6964         Only set width and height if explicitly set.
6965         (x_set_fullscreen): Handle Qmaximized.
6966         (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6967         (syms_of_frame): Initialize Qmaximized.
6969         * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6970         Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
6972         * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
6973         for Expose event.  Add call to x_check_fullscreen for MapNotify event.
6974         Remove all code w.r.t. fullscreen from ConfigureNotify event.  Do not
6975         set gravity to NorthWestGravity when USE_GTK.
6976         (set_wm_state): New function.
6977         (do_ewmh_fullscreen): Use set_wm_state.  Also handle FULLSCREEN_MAXIMIZED.
6978         (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6979         (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
6980         or the case when no window manager is running.  That means remove calls
6981         to x_real_positions and x_fullscreen_adjust.
6983         * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6984         (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6985         flush_and_sync.
6986         (xg_height_changed): New function.
6987         (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
6988         and gtk_window_set_policy.  Set frame gravity after parsing the
6989         geometry string.
6990         (xg_update_frame_menubar, free_frame_menubar)
6991         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6992         (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6993         Remove calls to xg_frame_set_char_size.
6995 2009-07-01  Kenichi Handa  <handa@m17n.org>
6997         * keyboard.c (decode_keyboard_code): New function.
6998         (tty_read_avail_input): Decode the input bytes if necessary.
7000         * coding.c (setup_coding_system):
7001         Initialize coding->carryover_bytes to 0.
7002         (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7003         use Qno_conversion.
7005 2009-07-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7007         * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7009 2009-06-30  Chong Yidong  <cyd@stupidchicken.com>
7011         * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7013 2009-06-30  Jason Rumney  <jasonr@gnu.org>
7015         * w32term.c (w32_initialize): Use GetModuleHandle for library that
7016         is already loaded.
7017         Set user model ID if supported (bug#1849).
7019 2009-06-29  Jim Meyering  <meyering@redhat.com>
7021         Remove useless if-before-xfree test.
7022         * nsfont.m (nsfont_close): Remove useless test.
7023         * term.c (delete_tty): Likewise.
7024         * w32.c (system_process_attributes): Likewise.
7025         * w32font.c (w32font_close): Likewise.
7026         * xfaces.c (x_free_gc): Likewise.
7027         * xselect.c (buffer): Likewise.
7029 2009-06-28  Andreas Schwab  <schwab@linux-m68k.org>
7031         * process.c (send_process): Keep decoded string in a local
7032         variable and protect it from GC.  (Bug#3521)
7034 2009-06-28  Eli Zaretskii  <eliz@gnu.org>
7036         * term.c (create_tty_output) [MSDOS]: #ifdef away.
7037         (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7039 2009-06-28  Chong Yidong  <cyd@stupidchicken.com>
7041         * xdisp.c (start_display, handle_face_prop)
7042         (move_it_vertically_backward, cursor_row_fully_visible_p)
7043         (redisplay_window, try_window_id, produce_image_glyph):
7044         Delete some #ifdef-ed out code chunks that are now obsolete.
7046         * xterm.c (x_update_window_begin, x_new_focus_frame)
7047         (x_scroll_bar_handle_click, handle_one_xevent)
7048         (handle_one_xevent, XTread_socket, x_focus_on_frame)
7049         (x_make_frame_visible, x_make_frame_invisible)
7050         (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7051         code chunks that are now obsolete.
7053 2009-06-28  Michael Albinus  <michael.albinus@gmx.de>
7055         * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7056         xd_symbol_to_dbus_type.  With Solaris 2.11, it was said to compile
7057         for hours, when optimzation is enabled.
7058         (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7059         (xd_read_message): Make them static.
7061 2009-06-27  Chuck Blake  <cblake@pdos.csail.mit.edu>  (tiny change)
7063         * term.c (turn_on_face): Allow simultaneously bold and dim
7064         terminal faces (Bug#3530).
7066 2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
7068         * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7070         * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7071         truncation glyphs (Bug#3686).
7073 2009-06-27  Glenn Morris  <rgm@gnu.org>
7075         * m/pmax.h: Restore file, with only netbsd portions.
7077 2009-06-26  David Reitter  <david.reitter@gmail.com>
7079         * nsterm.m (keydown): Avoid infinite loop.
7081 2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
7083         * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7084         the arg FORCE_SYMBOL.
7086 2009-06-25  Kenichi Handa  <handa@m17n.org>
7088         * fontset.c (fontset_find_font): When a usable rfont_def is found
7089         in a fallback font-group, make it the first element of the group.
7091 2009-06-24  Chong Yidong  <cyd@stupidchicken.com>
7093         * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7095 2009-06-24  Kenichi Handa  <handa@m17n.org>
7097         * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7098         set for C.
7099         (fontset_font): Record the availability of a font for C both in
7100         the realized fontsets of the current one and the default one.
7102 2009-06-23  Dan Nicolaescu  <dann@ics.uci.edu>
7104         * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7105         conditional, it is always defined on AIX.
7107 2009-06-23  Miles Bader  <miles@gnu.org>
7109         * window.c (Vrecenter_redisplay): New variable.
7110         (syms_of_window): Initialize it.
7111         (Qtty): New extern declaration.
7112         (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7114 2009-06-23  Jim Meyering  <meyering@redhat.com>
7116         * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7117         Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7118         pointer dereferences are guaranteed to be valid.
7120 2009-06-23  Kenichi Handa  <handa@m17n.org>
7122         * emacs.c (main): Call init_font ().
7124         * font.h (Vfont_log): Extern it.
7125         (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7127         * font.c (font_sort_entities, font_list_entities)
7128         (font_matching_entity, font_open_entity)
7129         (font_close_object): Change font_add_log to FONT_ADD_LOG.
7130         (Vfont_log): Delete static.
7131         (font_log_env_checked): Delete this variable.
7132         (font_add_log): Don't check font_log_env_checked.
7133         (font_deferred_log): Check Vfont_log.
7134         (init_font): New function.
7136         * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7138         * w32font.c: Change font_add_log to FONT_ADD_LOG.
7140         * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7142         * xfont.c: Change font_add_log to FONT_ADD_LOG.
7144         * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7145         (face_for_char): Don't call font_deferred_log here.
7146         (font_for_char): Likewise.
7148 2009-06-22  Chong Yidong  <cyd@stupidchicken.com>
7150         * w32term.c (x_draw_glyph_string): Use the glyph string's width
7151         rather than its background_width for drawing the overline and
7152         underline (Bug#489).
7154         * xterm.c (x_draw_glyph_string): Use the glyph string's width
7155         rather than its background_width for drawing the overline and
7156         underline (Bug#489).
7157         (xg_default_icon_file): New variable.
7158         (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7159         (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7161         * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7162         (load_overlay_strings): Remove externs.
7163         (fast_find_position): Function deleted.
7164         (mouse_face_from_buffer_pos): New function, based on
7165         fast_find_position.  Correctly handle before-strings,
7166         display-strings, and after-strings (Bug#1220).
7167         (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7169 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
7171         * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7172         (move_it_in_display_line_to, move_it_in_display_line_to)
7173         (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7175 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
7177         * Branch for 23.1.
7179 2009-06-21  Jason Rumney  <jasonr@gnu.org>
7181         * w32term.c (keyboard_codepage): New static variable.
7182         (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7183         (w32_read_socket) [WM_CHAR]: Use it to decode character
7184         input (bug#3237).
7185         (w32_initialize): Initialize it.
7186         (codepage_for_locale): New function.
7188 2009-06-20  Ken Raeburn  <raeburn@raeburn.org>
7190         * process.c (status_message): Pass Faset index argument as a lisp
7191         object, so as to work with USE_LISP_UNION_TYPE.
7193 2009-06-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7195         * coding.c (Ffind_coding_systems_region_internal):
7196         Cache checked characters.
7198 2009-06-18  Kenichi Handa  <handa@m17n.org>
7200         * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7202 2009-06-18  Andreas Schwab  <aschwab@redhat.com>
7204         * xdisp.c (redisplay_internal): Check that the frame is still
7205         live after redisplay of its windows.
7206         (redisplay_windows): Check that the window is still live.
7208 2009-06-17  Andreas Schwab  <schwab@linux-m68k.org>
7210         * coding.c (detect_coding_utf_16): Fix previous change.
7212 2009-06-16  Kenichi Handa  <handa@m17n.org>
7214         * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7215         UTF-16 by checking the dispersion of Eth and Oth bytes.
7217 2009-06-15  Andreas Schwab  <schwab@linux-m68k.org>
7219         * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7221 2009-06-15  Kenichi Handa  <handa@m17n.org>
7223         * process.c (status_message): Fix previous change.  Be sure to
7224         decode a localized string.
7226 2009-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7228         * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7229         add comment explaining why.
7231 2009-06-14  Sidney Markowitz  <sidney@sidney.com>
7233         * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7235 2009-06-14  Adrian Robert  <Adrian.B.Robert@gmail.com>
7237         * nsfont.m (ns_attribute_value): Remove.
7238         (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7239         (ns_has_attribute): Shrink the normal range.
7240         (ns_findfonts): Don't worry about requested spec in determining
7241         need for synthItal.
7242         (ns_get_covering_families): Retain scriptToFamilies.
7244 2009-06-14  Seiji Zenitani  <zenitani@mac.com>
7246         * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7248 2009-06-11  Kenichi Handa  <handa@m17n.org>
7250         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7251         overhang for the static composition case.
7253 2009-06-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7255         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7256         overhang for the automatic composition case.
7258         * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7259         composition case.
7261 2009-06-10  Chong Yidong  <cyd@stupidchicken.com>
7263         * xdisp.c (get_next_display_element): When handling wrap-prefix
7264         and line-prefix, treat \n as a control character (bug#3502).
7266 2009-06-10  Kenichi Handa  <handa@m17n.org>
7268         * font.c (font_parse_family_registry): Fix for one-char foundry.
7269         (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7271 2009-06-09  Dmitry Dzhus  <dima@sphinx.net.ru>  (tiny change)
7273         * process.c (status_message): Fix handling of multibyte signal
7274         string (Bug#3499).
7276 2009-06-09  Jim Meyering  <meyering@redhat.com>
7278         * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7279         color name is missing.
7281 2009-06-09  Kenichi Handa  <handa@m17n.org>
7283         * charset.c (Fmap_charset_chars): In docstring, state clearly that
7284         FROM-CODE and TO-CODE are codepoints of CHARSET.
7286 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
7288         * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7290 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
7292         Changes to support :script/:lang/:otf in NS font driver.
7293         * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7294         (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7295         indicate not part of font driver interface, and change callers.
7296         (ns_get_family): Remove pointless null check.
7297         (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7298         ns_spec_to_descriptor, ns_descriptor_to_entity.
7299         (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7300         (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7301         (ns_spec_to_descriptor, ns_descriptor_to_entity)
7302         (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7303         (ns_get_req_script, ns_accumulate_script_ranges)
7304         (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7305         New functions.
7306         (nsfont_list, nsfont_match): Use ns_findfonts.
7307         (nsfont_open): Use font descriptor instead of traits.
7308         (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7309         (dump_glyphstring): Rename to ns_dump_glyphstring.
7311         * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7313         * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7315         * fontset.c (fontset_from_font): Remove NS-specific code.
7317 2009-06-08  Peter Jones  <pjones@pmade.com>  (tiny change)
7319         * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7320         nonactive windows.
7322 2009-06-08  Felix Mueller  <felix@enqueue.eu>  (tiny change)
7324         * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
7326 2009-06-08  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
7328         * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7330 2009-06-07  Chong Yidong  <cyd@stupidchicken.com>
7332         * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7333         account for the overflowing of newlines into the last glyph on the
7334         display line (Bug#3482).
7336 2009-06-05  David Reitter  <david.reitter@gmail.com>
7338         * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7339         (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
7340         Fns_selection_exists_p, Fns_selection_owner_p.
7342 2009-06-03  Jason Rumney  <jasonr@gnu.org>
7344         * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7345         available.  (Bug#3379)
7347 2009-05-29  Kenichi Handa  <handa@m17n.org>
7349         * coding.c (get_translation_table):
7350         Check Venable_character_translation.
7352 2009-05-26  David Reitter  <david.reitter@gmail.com>
7354         * nsterm.m (ns_raise_frame): Only raise frame if visible.
7355         (x_make_frame_visible): Move frame to front rather than calling
7356         ns_raise_frame().
7357         (keyDown:): Do not swallow events that aren't re-sent if frame
7358         isn't key window.
7359         (drawRect:): Do not set visibility/iconified flags because
7360         drawRect may be called by NSView even if the frame is hidden.
7362         * nsfns.m (Fx_create_frame): Follow other ports in
7363         determining visibility; default to t.  Ensure async_visible is set.
7365 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
7367         * dired.c (Ffile_attributes): Doc fix.
7369 2009-05-22  Chong Yidong  <cyd@stupidchicken.com>
7371         * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7373 2009-05-21  Stefan Monnier  <monnier@iro.umontreal.ca>
7375         * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7376         and xfont_scratch_props.
7377         (syms_of_xfont): Do it here instead.
7378         (xfont_find_ccl_program): Delete, unused.
7379         (xfont_open): Delete unused var `i'.
7381 2009-05-21  Kenichi Handa  <handa@m17n.org>
7383         * fontset.c (Qlatin): Don't make it static.
7385         * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7386         New functions.
7387         (xfont_scripts_cache, xfont_scratch_props): New variables.
7388         (Qlatin, Vscalable_fonts_allowed): Extern it.
7389         (xfont_list_pattern): Argument changed.  Callers changed.
7390         Check Vscalable_fonts_allowed.  Check the support of a script.
7391         (xfont_list): Don't reject a font spec with :script property.
7392         (xfont_has_char): Fix setting of encoding.
7393         (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7394         xfont_scratch_props.
7396 2009-05-19  Kenichi Handa  <handa@m17n.org>
7398         * font.c (font_sort_entities): Rename from font_sort_entites.
7399         Callers changed.
7401 2009-05-18  Kenichi Handa  <handa@m17n.org>
7403         * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7405 2009-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
7407         * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7408         (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7410 2009-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7412         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7413         (x_delete_terminal): Dissociate resource database from display and
7414         then call XrmDestroyDatabase before closing display.
7416 2009-05-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
7418         * nsterm.m (ns_read_socket): Remove unused variable.
7419         * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7420         whether selected frame is viable before raising it (based on patch
7421         by David Reitter), and improve commentary.
7422         * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
7424 2009-05-15  Kenichi Handa  <handa@m17n.org>
7426         * font.c (Ffont_spec): Check arguments.
7428 2009-05-14  Chong Yidong  <cyd@stupidchicken.com>
7430         * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7431         weight when testing attributes (Bug#3282).
7433 2009-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7435         * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7436         what we expect to get in the next ConfigureNotify event.
7438         * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7439         before Xft one (Bug#1696).
7441 2009-05-07  David Reitter  <david.reitter@gmail.com>
7443         * nsfns.m (Fx_display_planes): Compute bitplanes using
7444         NSBitsPerPixelFromDepth (Bug#3207).
7446 2009-05-10  Chong Yidong  <cyd@stupidchicken.com>
7448         * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7450 2009-05-10  Ulrich Mueller  <ulm@gentoo.org>
7452         * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7454 2009-05-07  David Reitter  <david.reitter@gmail.com>
7456         * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7457         Respect mouse face background.
7459 2009-05-07  David Reitter  <david.reitter@gmail.com>
7461         * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7462         Mouse movement/highlight: bracket drawing operations
7463         in ns_update_begin and ns_update_end.
7465 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
7467         * nsfns.m (ns_get_screen): Rewrite.
7468         Don't presume selected-frame is of type `ns'.
7470         * font.c (font_update_drivers): Sanity fallback to avoid disabling
7471         all drivers.
7473         * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7475 2009-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7477         * keyboard.h (add_user_signal): Fix typo in extern.
7479         * lisp.h (add_user_signal): Remove extern.
7481         * unexelf.c (unexec): Consider a section to precede the .bss section
7482         if its addresses overlap that of .bss.
7483         (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7484         instead of dumping process.
7486 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
7488         * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7490 2009-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
7492         * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7494 2009-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
7496         * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7497         any statements.
7499 2009-05-02  Andreas Schwab  <schwab@linux-m68k.org>
7501         * process.c (read_process_output): Make sure the current buffer is
7502         always restored.
7504         * coding.c (record_conversion_result): Don't modify
7505         Vlast_code_conversion_error for successful result.
7506         (alloc_destination): Don't clobber conversion result.  (Bug#1650)
7508 2009-05-01  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
7510         * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
7511         (load_charset_map): Remove unnecessary code.
7513 2009-04-30  David Reitter  <david.reitter@gmail.com>
7515         * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
7516         through f24.
7518 2009-04-30  Chong Yidong  <cyd@stupidchicken.com>
7520         * xfaces.c (face_at_buffer_position): New arg base_face_id.
7522         * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7523         face_at_buffer_position.
7524         (face_before_or_after_it_pos, get_next_display_element)
7525         (note_mouse_highlight): Update face_at_buffer_position call.
7527         * term.c (term_mouse_highlight):
7528         * msdos.c (IT_note_mouse_highlight):
7529         * fontset.c (Finternal_char_font):
7530         * font.c (font_at, font_range): Update face_at_buffer_position call.
7532         * dispextern.h (face_at_buffer_position): Update prototype.
7534 2009-04-30  Kenichi Handa  <handa@m17n.org>
7536         * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
7538 2009-04-29  Andreas Schwab  <schwab@linux-m68k.org>
7540         * callproc.c (Fcall_process): Fix GC protection.  Make sure
7541         current buffer is always restored.
7543 2009-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7545         * atimer.c (init_atimer): Also clear stopped_atimers.
7547         * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7549         * process.c (create_process): Clean up merger residues of
7550         2008-07-17 change.
7552 2009-04-29  Ulrich Mueller  <ulm@gentoo.org>
7554         * lread.c (Vread_circle): New variable.
7555         (read1): Disable recursive read if Vread_circle is nil.
7557 2009-04-29  Kenichi Handa  <handa@m17n.org>
7559         * fontset.h (set_default_ascii_font): Delete extern.
7561         * fontset.c (set_default_ascii_font): Delete this unused function.
7563         * frame.c (x_set_font): When ARG is a font-object, check if the
7564         font-object matches with the ASCII font-spec of the frame's
7565         fontset.  If not, create a new fontset for the frame.  (Bug #3075)
7567 2009-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7569         * fns.c (Flocale_info): Protect vector from GC during decoding.
7571         * process.c (Fstart_process): Protect argv strings from GC during
7572         encoding.
7574 2009-04-27  Andreas Schwab  <schwab@linux-m68k.org>
7576         * sysdep.c: Include <ctype.h>.
7578 2009-04-27  David Reitter  <david.reitter@gmail.com>
7580         * nsfont.m (nsfont_open): Remove unused variable shrink.
7581         Remove commented-out code.
7583 2009-04-26  Johan Bockgård  <bojohan@gnu.org>
7585         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7587 2009-04-25  Jason Rumney  <jasonr@gnu.org>
7589         * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7591 2009-04-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7593         * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7594         Swap bytes in short integer if fringe bitmap width > 8.
7596 2009-04-23  Kenichi Handa  <handa@m17n.org>
7598         * xfaces.c (Fx_list_fonts): If a font size is specified in
7599         PATTERN, set it in returned scalable fonts.
7601 2009-04-22  Chong Yidong  <cyd@stupidchicken.com>
7603         * keyboard.c (Fset_input_meta_mode): Doc fix.
7605         * dispnew.c (Fsend_string_to_terminal): Doc fix.
7607         * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
7609         * coding.c (Fterminal_coding_system): Doc fix.
7611         * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7612         (Fx_display_pixel_height, Fx_display_planes)
7613         (Fx_display_color_cells, Fx_server_max_request_size)
7614         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7615         (Fx_display_mm_height, Fx_display_mm_width)
7616         (Fx_display_backing_store, Fx_display_visual_class)
7617         (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7618         Doc fixes, replacing "terminal id" with "terminal object".
7619         (check_x_display_info): Handle terminal objects instead of
7620         terminal ids.
7622         * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7623         (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
7624         (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7625         Doc fixes, replacing "terminal id" with "terminal object".
7627 2009-04-21  Kenichi Handa  <handa@m17n.org>
7629         * font.c (font_load_for_lface): Cancel previous change (bug#2994).
7630         (font_score): Check AVGWIDTH too.
7632         * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7633         worst case.
7634         (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7635         (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
7637 2009-04-19  Jason Rumney  <jasonr@gnu.org>
7639         The following changes fix Bug#3005 for wide glyphs on each platform,
7640         without reintroducing Bug#1258 for stretch glyphs.
7642         * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7643         BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR using
7644         get_phys_cursor_geometry.
7646         * w32term.c (x_draw_bar_cursor): Limit cursor width differently
7647         for BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR
7648         using get_phys_cursor_geometry.
7650         * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7651         correctly calculated.
7653 2009-04-19  Jan Djärv  <jan.h.d@swipnet.se>
7655         * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7656         Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
7657         (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7658         is deprecated.
7660 2009-04-18  Andreas Schwab  <schwab@linux-m68k.org>
7662         * font.c (font_put_frame_data): Use xfree instead of free.
7664 2009-04-17  Juanma Barranquero  <lekktu@gmail.com>
7666         * w32font.c (Qja, Qko): Remove declarations.
7667         (syms_of_w32font): Don't DEFSYM them.
7669 2009-04-17  Chong Yidong  <cyd@stupidchicken.com>
7671         * font.c (Qja, Qko): Move definitions here from ftfont.c.
7673         * font.h (Qja, Qko): Extern them.
7675         * ftfont.c (Qja, Qko): Remove declarations.
7677         * xfont.c (Qja, Qko): Remove declarations.
7679 2009-04-17  Kenichi Handa  <handa@m17n.org>
7681         * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7682         string from a vector to handle Latin-1 characters correctly.
7684         * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7685         entity even if the cache hits.
7687 2009-04-16  Andreas Schwab  <schwab@linux-m68k.org>
7689         * search.c (boyer_moore): Use zero as marker value for a possible
7690         match instead of depending on overflow behavior.  (Bug#2844)
7692         * search.c: Use EMACS_INT for buffer positions.  Add prototypes.
7693         * lisp.h: Adjust prototypes.
7695 2009-04-16  Chong Yidong  <cyd@stupidchicken.com>
7697         * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7698         change (Bug#3003).
7700 2009-04-16  Kenichi Handa  <handa@m17n.org>
7702         * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
7704         * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7705         adstyle.
7707         * ftfont.c (Qja, Qko): Don't make them static.
7708         (enum ftfont_cache_for): New enum.
7709         (fc_charset_table): Undo the previous change.
7710         (ftfont_get_latin1_charset): Delete it.
7711         (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7712         Set FONT_SIZE_INDEX of the entity to 0 for a scalable font.  For a
7713         non-scarable font, try to get AVERAGE_WIDTH.
7714         (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7715         Change ft_face_cache from a list of a hash-table.  Don't check
7716         `ja' and `ko' adstyle here.
7717         (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7718         FTFONT_CACHE_FOR_CHARET.
7719         (ftfont_get_charset): Undo the previous change.
7720         (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
7721         (ftfont_close): Likewise.
7722         (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7724         * font.c (font_sort_entites): Change the meaning of the arg
7725         BEST-ONLY.  Don't optimize for VEC of lenght 1.
7726         (font_select_entity): Just return the value of font_sort_entites.
7728         * xfaces.c (merge_face_vectors): Reflect font properties in
7729         to[LFACE_FONT_INDEX] to the other face attributes.  Don't call
7730         font_clear_prop if a face attribute doesn't change.
7732         * charset.h (charset_ksc5601): Extern it.
7734         * charset.c (charset_ksc5601): New variable.
7735         (Fdefine_charset_internal): Set charset_ksc5601.
7736         (init_charset_once): Initialize charset_ksc5601 to -1.
7738 2009-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
7740         * fileio.c (history_delete_duplicates): Remove unused declaration.
7742         * callint.c (history_delete_duplicates): New declaration.
7743         (Fcall_interactively): Remove command history duplicates when
7744         history_delete_duplicates is true.
7746 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
7748         * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7750 2009-04-14  Kenichi Handa  <handa@m17n.org>
7752         * font.c (Ffont_info): Fix docstring.  Fix the second element of
7753         the returned value (bug#2949).
7755 2009-04-14  Chong Yidong  <cyd@stupidchicken.com>
7757         * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7759 2009-04-14  Kenichi Handa  <handa@m17n.org>
7761         * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7762         encoding charset is ascii_compatible.
7764         * charset.c (Fdefine_charset_internal): Make charset
7765         ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7766         code_offset is 0, and covers all ASCII characters.
7768 2009-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
7770         * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7771         (ns_string_to_pasteboard_internal):
7772         * nsmenu.m (process_dialog):
7773         * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7774         * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7775         * lisp.h (Fx_load_color_file): Declare.
7777 2009-04-13  Kenichi Handa  <handa@m17n.org>
7779         * font.c (font_delete_unmatched): Preserve the order of list elements.
7780         (font_select_entity): Suppress the code to optimize for the same
7781         kind of fonts.
7782         (font_load_for_lface): Get a font that supports at least ASCII
7783         characters.
7785         * ftfont.c (Qja, Qko): New variables.
7786         (fc_charset_table): Delete uniquifier data for iso8859-1.
7787         (ftfont_get_latin1_charset): New function.
7788         (get_adstyle_property): New function.
7789         (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7790         bitmap fonts.
7791         (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7792         Delete iso-8859-1 range from the charset of fonts whose adstyle is
7793         `ko' or `ja'.
7794         (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
7795         (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
7796         (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7797         property.
7798         (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7799         (syms_of_ftfont): DEFSYM Qja and Qko.
7801 2009-04-09  Kenichi Handa  <handa@m17n.org>
7803         * charset.c (map_charset_chars): For a charset of `superset'
7804         method, fix calculation of code range.
7806         * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7807         from the list of extra properties.
7808         (font_clear_prop): Be sure to delete `:name' font property.
7810 2009-04-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7812         * dispnew.c (redraw_overlapping_rows): Fix detection of
7813         overlapping for topmost and bottommost rows.
7815         * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
7817 2009-04-06  Jason Rumney  <jasonr@gnu.org>
7819         * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7821 2009-04-06  Kenichi Handa  <handa@m17n.org>
7823         * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7825         * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7827 2009-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7829         * ftfont.c (ftfont_open): Fix checking of the return value of
7830         FT_Load_Char.  Fix setting font->underline_thickness.
7832 2009-04-04  Chong Yidong  <cyd@stupidchicken.com>
7834         * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7835         (Fterminal_parameters, Fterminal_parameter)
7836         (Fset_terminal_parameter): In doc string, refer to terminal
7837         objects rather than terminal ids.
7839 2009-04-04  Eli Zaretskii  <eliz@gnu.org>
7841         * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7842         ret_lim_data.  (Bug#2867)
7844 2009-04-03  Chong Yidong  <cyd@stupidchicken.com>
7846         * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7847         so they don't get wider than the window, matching 2006-01-23
7848         change to the partner function in xdisp.c (Bug#2800).
7850 2009-04-03  Kenichi Handa  <handa@m17n.org>
7852         * print.c (print_object): Make each lowest sub_char_table start a
7853         new line (Bug#2866).
7855 2009-04-02  Kenichi Handa  <handa@m17n.org>
7857         * fontset.c (fontset_font): Record no-font when a fontset
7858         explicitly tells not to try another font-specs.
7860 2009-03-30  Pierre Poissinger  <pierre.poissinger@gmail.com>  (tiny change)
7862         * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7864 2009-03-30  Kenichi Handa  <handa@m17n.org>
7866         * fontset.c (fontset_from_font): Specify only registry in a
7867         font-spec for all characters supported by that registry.
7869         * ftfont.c: Fix previous change.  Define ftfont_variation_glyphs
7870         even if HAVE_M17N_FLT is not defined.
7872 2009-03-29  Sebastian Rose  <sebastian_rose@gmx.de>  (tiny change)
7874         * ftfont.c: Conditionalize prototyping and use of
7875         ftfont_variation_glyphs.
7877 2009-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
7879         * frame.c (delete_frame): Work around compiler bug.
7881         * editfns.c (general_insert_function): Adjust to insdel.c changes.
7882         * insdel.c (prepare_to_modify_buffer, signal_before_change):
7883         Some more EMACS_INT.
7884         * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7886         * xdisp.c (dump_glyph): Fix typo.
7888         * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7889         (adjust_markers_gap_motion, adjust_markers_for_delete)
7890         (adjust_markers_for_insert, adjust_point)
7891         (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7892         (make_gap, copy_text, count_size_as_multibyte, insert)
7893         (insert_and_inherit, insert_before_markers)
7894         (insert_before_markers_and_inherit, insert_1)
7895         (count_combining_before, count_combining_after, insert_1_both)
7896         (insert_from_string, insert_from_string_before_markers)
7897         (insert_from_string_1, insert_from_gap, insert_from_buffer)
7898         (insert_from_buffer_1, adjust_after_replace)
7899         (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7900         (replace_range_2, del_range, del_range_1, del_range_byte)
7901         (del_range_both, del_range_2, modify_region)
7902         (prepare_to_modify_buffer, signal_before_change)
7903         (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7904         for buffer positions and sizes.
7905         * lisp.h: Adjust prototypes accordingly.
7907         * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7908         (non_regular_inserted, non_regular_nbytes, read_non_regular)
7909         (Finsert_file_contents): Use EMACS_INT for buffer positions.
7911         * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7913 2009-03-27  Jan Djärv  <jan.h.d@swipnet.se>
7915         * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7916         lines and columns so we keep the same pixel height and width.
7918         * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7919         the property _NET_WM_STATE has changed.
7920         (x_handle_net_wm_state): New function to update frame parameter
7921         fullscreen.
7922         (x_term_init): Initialize atoms for _NET_WM_STATE.
7924         * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7926 2009-03-27  Kevin Ryde  <user42@zip.com.au>
7928         * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7929         Gpm_GetEvent as an error that justifies closing the filedescriptor.
7930         * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7931         (Fgpm_mouse_stop): Pass that new parameter.
7932         * termhooks.h (close_gpm): Adjust prototype.
7934 2009-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
7936         * lisp.h (Fx_focus_frame): Declare.
7938         * callint.c (Fcall_interactively): For '^' just delegate the work to
7939         handle-shift-selection.
7940         (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7942 2009-03-24  Chong Yidong  <cyd@stupidchicken.com>
7944         * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7946         * data.c (Qinteractive_form): New variable.
7947         (Finteractive_form): Use it.
7949         * eval.c (Fcommandp): Use Qinteractive_form.
7951 2009-03-24  Jason Rumney  <jasonr@gnu.org>
7953         * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7954         Calculate total size precisely.  Decode environment variables
7955         before substituting.  (Bug#38)
7957 2009-03-24  Kenichi Handa  <handa@m17n.org>
7959         * font.c (find_font_encoding): Return Qnil for unsupported
7960         encoding (Bug#2722).
7962 2009-03-23  Jan Djärv  <jan.h.d@swipnet.se>
7964         * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7965         that gdpy is set.
7967 2009-03-22  Alan Mackenzie  <acm@muc.de>
7969         * callint.c (Finteractive): Clarify the doc string - even
7970         promptless elements need \n separators.
7972 2009-03-22  Jason Rumney  <jasonr@gnu.org>
7974         * w32term.c (syms_of_w32term): Doc fix for
7975         x-use-underline-position-properties.
7977 2009-03-21  Eli Zaretskii  <eliz@gnu.org>
7979         * w32.c (getpwuid): Change argument type to unsigned.
7980         (struct w32_id): Change type of `rid' member to unsigned.
7981         (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7982         argument ID to unsigned.  All callers changed.
7983         (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7985 2009-03-20  Eli Zaretskii  <eliz@gnu.org>
7987         * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7988         negative, produce a float value.
7990         * dired.c (make_uid, make_gid): New functions.
7991         (Ffile_attributes): Use them to avoid negative UID and GID.
7993 2009-03-20  Juanma Barranquero  <lekktu@gmail.com>
7995         * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7996         (syms_of_keyboard) <command-hook-internal, input-method-function>:
7997         Fix typos in docstrings.
7999 2009-03-19  Kenichi Handa  <handa@m17n.org>
8001         * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8002         changed, use font_load_for_lface to get a new font object.
8003         Call free_realized_fontset after handling ASCII font change.
8005         * frame.c (x_set_font): Handle the case that ARG is a cons.
8007 2009-03-19  Glenn Morris  <rgm@gnu.org>
8009         * fileio.c (Fsubstitute_in_file_name): Doc fix.
8011 2009-03-19  Chong Yidong  <cyd@stupidchicken.com>
8013         * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8015 2009-03-19  Kenichi Handa  <handa@m17n.org>
8017         * charset.c (load_charset_map_from_file): When a mapfile can't be
8018         loaded, signal an error.
8020 2009-03-18  Eli Zaretskii  <eliz@gnu.org>
8022         * dired.c (Ffile_attributes): Make sure UID and GID are always
8023         positive, even if the value is too large for a positive EMACS_INT.
8024         Doc fix.
8026         * editfns.c (Fuser_login_name): Support float arguments.  Doc fix.
8028 2009-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8030         * xmenu.c (xdialog_show): Move Fredisplay call ...
8031         (Fx_popup_dialog): ... here.
8033 2009-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
8035         * dired.c (file_name_completion): Disable the first optimization just
8036         installed, since it is not implemented correctly.
8038 2009-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
8040         * dired.c (file_name_completion): Check completion-ignored-extensions
8041         only if the entry can affect bestmatch.
8042         Stop the search early, as Ftry_completion already does.
8044 2009-03-17  Chong Yidong  <cyd@stupidchicken.com>
8046         * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8048 2009-03-15  Chong Yidong  <cyd@stupidchicken.com>
8050         * keyboard.c (parse_menu_item): Don't display remappings as menu
8051         equivalent bindings (Bug#788).
8053 2009-03-15  Jason Rumney  <jasonr@gnu.org>
8055         * w32term.h (WM_EMACS_PAINT): New message.
8056         * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8057         * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8058         before passing to lisp thread.  (Bug#950)
8060 2009-03-14  David Reitter  <david.reitter@gmail.com>
8062         * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8063         variable as it was never reset.
8064         (ns_term_init): Remove initialization of Lisp-settable defaults
8065         and ns_expand_space.
8066         (-setPanelFromDefaultValues): Remove ns_expand_space.
8067         (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8068         * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8069         i.e. no additional spacing, similar to Carbon port.
8071         * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8072         * nsfns.m (ns-popup-prefs-panel): Remove.
8074 2009-03-14  Jan Djärv  <jan.h.d@swipnet.se>
8076         * sound.c (alsa_configure): Remove call to deprecated
8077         snd_pcm_sw_params_set_xfer_align.
8079 2009-03-14  Stephen Berman  <stephen.berman@gmx.net>
8081         * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8082         after clicking in a detached tool bar.
8083         (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8085 2009-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
8087         * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8088         int/Lisp_Object mixup).
8090 2009-03-13  Kenichi Handa  <handa@m17n.org>
8092         * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8093         Handle NAME nil and t correctly.  Callers changed.
8094         (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8095         (set_fontset_font): Change ARG to a vector.  Handle range_list in
8096         ARG correctly.
8097         (Fset_fontset_font): Fix the case that TARGET is both a script
8098         name and charset name.  Adjust the arg to set_fontset_font for
8099         the above change.
8100         (fontset_from_font): Fix previous change.
8101         (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8102         entry.  If FONTSET is the default fontset, don't set the extra
8103         slot of the returning char-table.
8105 2009-03-12  Juanma Barranquero  <lekktu@gmail.com>
8107         * nsfns.m (Fx_close_connection): Doc fix.
8108         (Fns_do_applescript): Reflow docstring.
8109         (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8110         (Fx_display_pixel_width, Fx_display_pixel_height)
8111         (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8112         Fix typos in docstrings.
8113         (Fns_set_alpha): Fix typos in error messages.
8115 2009-03-12  David Reitter  <david.reitter@gmail.com>
8117         * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8118         non-key system events on NS.  Formerly, NON_ASCII_KEYSTROKE_EVENT
8119         were used for such events.
8121         * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8122         (toggleToolbar, performDragOperation, runHelp): Use it.
8124         * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8125         NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8127 2009-03-11  Kenichi Handa  <handa@m17n.org>
8129         * font.h (font_open_by_spec): Extern it.
8131         * font.c (font_open_by_spec): New function.
8132         (font_open_by_name): Use font_open_by_spec.
8134         * frame.c (x_set_font): When ARG is a font-object, don't alter the
8135         fontset of the frame.
8137         * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8138         modify the default font of frames that use this fontset.
8139         (num_auto_fontsets): New variable.
8140         (fontset_from_font): Use num_auto_fontsets to decide a fontset
8141         name.  Be sure to set FONTSET_ASCII to the correct font name.
8142         (update_auto_fontset_alist): New function.
8144 2009-03-11  Juanma Barranquero  <lekktu@gmail.com>
8146         * makefile.w32-in: Update dependencies.
8148 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
8150         * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8152 2009-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
8154         * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8156 2009-03-10  Chong Yidong  <cyd@stupidchicken.com>
8158         * lread.c (Feval_buffer): Doc fix.
8160 2009-03-09  Kenichi Handa  <handa@m17n.org>
8162         * charset.c (Qfile_name_handler_alist): Extern it.
8163         (load_charset_map_from_file): Temporarily bind
8164         `file-name-handler-alist' to nil while calling openp.  (Bug#2435)
8166 2009-03-06  Aaron Ecay  <aaronecay@gmail.com>  (tiny change)
8168         * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8169         not two, and use NSRectFill instead of NSDrawGroove.  (Bug#2352)
8171 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
8173         * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8174         (x_set_window_size): Change back to calculated method of setting
8175         toolbar height under Cocoa.  (Bug#2546)
8176         (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8177         (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8179         * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8181         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8182         accelerator in parens under GNUstep.
8184 2009-03-06  Kenichi Handa  <handa@m17n.org>
8186         These changes are to detect incorrect composition sequence without
8187         looking ahead the source.  (Bug#2370)
8189         * coding.h: Include "composite.h".
8190         (enum compisition_state): New enum.
8191         (struct compisition_status): New struct.
8192         (struct iso_2022_spec): New member cmp_status.
8193         (struct emacs_mule_spec): New struct.
8194         (struct coding_system): New members ctext_extended_segment_len and
8195         embedded_utf_8.  Change the union member
8196         spec.emacs_mule_full_support to spec.emacs_mule.
8198         * coding.c (CODING_ISO_CMP_STATUS): New macro.
8199         (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8200         (MAX_ANNOTATION_LENGTH): Define to 5.
8201         (ADD_COMPOSITION_DATA): New arg nbytes.
8202         (emacs_mule_char): New arg cmp_status.
8203         (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8204         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8205         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8206         (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8207         (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8208         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8209         (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8210         (EMACS_MULE_COMPOSITION_END): New macro.
8211         (emacs_mule_finish_composition): New function.
8212         (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8213         (decode_coding_emacs_mule): Avoid long looking ahead while
8214         handling composition.
8215         (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8216         (ENCODE_COMPOSITION_RULE): New macro.
8217         (finish_composition): New function.
8218         (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8219         (DECODE_COMPOSITION_START): New implementation.
8220         (DECODE_COMPOSITION_END): Likewise.
8221         (STORE_COMPOSITION_RULE): New macro.
8222         (decode_coding_iso_2022): Avoid long looking ahead while handling
8223         composition, CTEXT extended segment, and embedded UTF-8.
8224         (setup_coding_system): For a coding of type iso-2022, reset
8225         CODING_ISO_EXTSEGMENT_LEN (coding) and
8226         CODING_ISO_EMBEDDED_UTF_8 (coding).
8227         (get_translation): Delete arguments last_block, from_nchars,
8228         to_nchars.  Callers changed.
8229         (produce_chars): Don't modify charbuf.  Adjusted for the change of
8230         get_translation.
8231         (produce_composition): Adjust for the new annotation sequence.
8232         (handle_composition_annotation): Likewise.
8233         (consume_chars): Adjust for the change of get_translation.
8235 2009-03-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
8237         * nsterm.m (ns_select): Shortcircuit if reentrant call.  (Bug#2564)
8239 2009-03-05  Kenichi Handa  <handa@m17n.org>
8241         * font.c (font_select_entity): New function.
8242         (font_find_for_lface): Use font_select_entity to select a font.
8244         * fontset.c (fontset_find_font): If a font found without
8245         restricting to the characters C doesn't support C, try to find a
8246         font with C restriction.
8248 2009-03-04  Nikolaj Schumacher  <me@nschum.de>
8250         * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8252 2009-03-04  Jason Rumney  <jasonr@gnu.org>
8254         * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8255         characters that have already been read.  (Bug#2569)
8257         * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8258         Log an error message if check_image_size failed.
8259         (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8260         (gs_load): Mention max-image-size in size error message.  (Bug#2560)
8262 2009-03-02  Eli Zaretskii  <eliz@gnu.org>
8264         * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8265         when decoding process output.
8267 2009-03-01  Richard M Stallman  <rms@gnu.org>
8269         * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8271         * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8273 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
8275         * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8276         (decode_coding_emacs_mule, decode_coding_iso_2022)
8277         (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8278         (decode_coding_raw_text, decode_coding_charset)
8279         (setup_coding_system, decode_eol, decode_coding, consume_chars):
8280         Honor inhibit-eol-conversion.  (Bug #2186)
8282 2009-02-28  Jason Rumney  <jasonr@gnu.org>
8284         * coding.c (detect_coding_charset): If not checking latin extra,
8285         fail on characters between 0x80 and 0xA0.  (Bug#2354)
8287 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
8289         * coding.c (detect_coding_charset): Fix change from 2008-10-21.
8290         Also, check iso-latin-*, not only iso-8859-*.  (Bug#2497)
8292 2009-02-27  Glenn Morris  <rgm@gnu.org>
8294         * callint.c (Finteractive): Doc fix.
8296 2009-02-27  Kenichi Handa  <handa@m17n.org>
8298         * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8300 2009-02-27  Chong Yidong  <cyd@stupidchicken.com>
8302         * font.c (font_style_to_value): Set value for unknown symbols to
8303         100 instead of 255.
8304         (weight_table, slant_table, width_table): Treat "unspecified" as
8305         the default value.
8307 2009-02-26  Juanma Barranquero  <lekktu@gmail.com>
8309         * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8311 2009-02-25  Juanma Barranquero  <lekktu@gmail.com>
8313         * lread.c (Fload): Stop checking Vloads_in_progress and signal
8314         error as soon as a recursive load is detected.
8316 2009-02-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
8318         * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8319         before caching.
8321 2009-02-24  Kenichi Handa  <handa@m17n.org>
8323         * fontset.c (fontset_find_font): Fix the condition for checking
8324         unavailable font.
8326 2009-02-24  Glenn Morris  <rgm@gnu.org>
8328         * xfaces.c (Finternal_set_font_selection_order): Remove leading
8329         whitespace that confuses documentation.
8331 2009-02-23  Miles Bader  <miles@gnu.org>
8333         * process.c (Flist_system_processes, Fprocess_attributes)
8334         (syms_of_process): Rename `system-process-attributes' to
8335         `process-attributes'.
8337 2009-02-22  Andreas Schwab  <schwab@linux-m68k.org>
8339         * coding.h (struct coding_system): Make safe_charsets a pointer to
8340         unsigned char.
8341         * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8342         being 255.
8343         (SAFE_CHARSET_P): Likewise.
8344         (setup_iso_safe_charsets): Properly setup safe_charsets.
8345         (Fdefine_coding_system_internal): Likewise.
8346         (setup_coding_system): Likewise.  Remove unneeded casts.
8347         (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8348         CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.  Remove
8349         unneeded casts.
8351         * insdel.c (del_range_2): Don't modify gap contents when called
8352         from decode_coding_object.  (Bug#1809)
8354 2009-02-21  Chong Yidong  <cyd@stupidchicken.com>
8356         * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8357         Qfont_object.
8358         (Ftype_of): Recognize font objects.
8360         * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8362         * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8363         moved to data.c.
8365 2009-02-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
8367         * nsterm.m (x_make_frame_invisible): Unset async_visible,
8368         async_iconified.  Based on a patch by Christian Lynbech
8369         <christian.lynbech@tieto.com>.
8370         (EmacsView-windowDidMiniaturize:): Unset async_visible.
8372 2009-02-20  Glenn Morris  <rgm@gnu.org>
8374         * syntax.c (Fskip_chars_forward): Fix doc typo.
8376 2009-02-20  Chong Yidong  <cyd@stupidchicken.com>
8378         * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8380 2009-02-19  Chong Yidong  <cyd@stupidchicken.com>
8382         * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8384 2009-02-19  Kenichi Handa  <handa@m17n.org>
8386         * coding.c (detect_coding): Preserve coding->mode.
8387         Don't overflow coding->carryover.  (Bug#2370)
8389 2009-02-18  Dan Nicolaescu  <dann@ics.uci.edu>
8391         * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8393 2009-02-18  Kenichi Handa  <handa@m17n.org>
8395         * font.c (font_check_otf_features): Fix handling of `nil' element.
8396         (Ffont_spec): Describe :lang and :otf in the docstring.
8398 2009-02-16  Andreas Schwab  <schwab@suse.de>
8400         * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8401         string.
8403 2009-02-16  Kenichi Handa  <handa@m17n.org>
8405         * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
8406         (Bug#1723)
8408 2009-02-14  Chong Yidong  <cyd@stupidchicken.com>
8410         * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8412         * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8413         (handle_line_prefix): Suppress wrapping of wrap prefixes.
8415 2009-02-14  Eli Zaretskii  <eliz@gnu.org>
8417         * msdos.c (MAX_SCREEN_BUF): New macro.
8418         (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8419         Encode the entire run of glyphs sharing the same face, instead of
8420         doing that one glyph at a time (fixes a bug with displaying
8421         double-size characters).
8423 2009-02-13  Adrian Robert  <Adrian.B.Robert@gmail.com>
8425         * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8427         * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8428         (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
8429         pop_down_menu do the cleanup work as it is always called.  (Bug#2154)
8431         * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
8432         set fontset font for "mathematical-" sub-scripts.  (Bug #2218)
8434 2009-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
8436         * keyboard.c (adjust_point_for_property): Allow stopping between two
8437         invisible areas.
8439 2009-02-12  Jason Rumney  <jasonr@gnu.org>
8441         * w32font.c (check_face_name): Check for fake helv.  (Bug#2275)
8442         (add_font_entity_to_list): Call check_face_name even when family
8443         is unspecified.
8445         * w32term.c (x_display_pixel_height, x_display_pixel_width):
8446         Release DC when finished.  Use NULL window to refer to desktop.
8447         (w32_term_init): Use NULL window to refer to desktop.  (Bug#460)
8449         * w32font.c (add_font_entity_to_list): Fix check for substituted
8450         raster fonts.  (Bug#2219)
8452 2009-02-12  Kenichi Handa  <handa@m17n.org>
8454         * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8455         (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8456         (autocmp_chars): Use fast_looking_at.  Don't compose more
8457         characters than MAX_COMPOSITION_COMPONENTS.
8458         (find_automatic_composition): While looking forward and backward,
8459         check static composition.  Fix where to stop looking forward.
8460         (composition_adjust_point): Fix checking of static composition.
8461         (Fcomposition_get_gstring): Pay attention to
8462         MAX_COMPOSITION_COMPONENTS.
8464         * lisp.h (fast_looking_at): Extern it.
8466         * search.c (fast_looking_at): New function.
8468         * term.c (encode_terminal_code): Adjust for the change of
8469         <struct glyph>.u.cmp.to.
8470         (append_composite_glyph): Likewise.
8472         * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
8473         <struct glyph>.u.cmp.to.  Check if the glyph belongs to the same
8474         composition.
8475         (append_composite_glyph): Adjust for the change of
8476         <strcut glyph>.u.cmp.to.
8478 2009-02-11  Juanma Barranquero  <lekktu@gmail.com>
8480         * casetab.c (init_casetab_once):
8481         * coding.c (ALLOC_CONVERSION_WORK_AREA):
8482         * font.c (font_update_lface):
8483         * fontset.c (Fnew_fontset):
8484         * ftfont.c (ftfont_drive_otf):
8485         * xfont.c (xfont_open):
8486         * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8488 2009-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
8490         * fileio.c (Fwrite_region): !NILP -> CONSP.
8492 2009-02-10  Andreas Schwab  <schwab@suse.de>
8494         * process.c (send_process): Properly relocate pointer into data
8495         when using encoded data.  (Bug#2272)
8497 2009-02-08  ARISAWA Akihiro  <ari@mbf.sphere.ne.jp>
8499         * coding.c (detect_coding_charset): Fix previous change.
8501 2009-02-08  Jason Rumney  <jasonr@gnu.org>
8503         * w32fns.c (w32_hide_hourglass): Handle case where frame
8504         disappeared while hourglass was displayed.  (Bug #2193)
8506 2009-02-07  Andreas Schwab  <schwab@suse.de>
8508         * unexelf.c (unexec): Fix error message.
8510 2009-02-07  Adrian Robert  <Adrian.B.Robert@gmail.com>
8512         * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
8513         when modal window is active.  (Bug #2152)
8514         (applicationShouldTerminate:): Remove now-unneeded while loop
8515         around NSRunAlertPanel.
8517         * nsmenu.m (popupSession): New file-global variable.
8518         (pop_down_menu): End the popupSession before closing dialog.
8519         (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8520         (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8521         don't query NSApp for events (just sleep instead).
8523 2009-02-07  Eli Zaretskii  <eliz@gnu.org>
8525         * coding.c (syms_of_coding) <translation-table-for-input>:
8526         Modify doc string to discourage use for character code unification.
8528 2009-02-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8530         * atimer.c (run_timers): Update pending_atimers.
8532 2009-02-06  Chong Yidong  <cyd@stupidchicken.com>
8534         * image.c (svg_load_image): Fix last change.
8536         * xfns.c (Fx_create_frame): Signal an error if no font is
8537         found (Bug#2147).
8539 2009-02-05  Juanma Barranquero  <lekktu@gmail.com>
8541         * character.c (syms_of_character) <script-representative-chars>:
8542         Fix typo in docstring.
8544 2009-02-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
8546         * nsmenu.m (pop_down_menu): New function.
8547         (ns_popup_dialog): Call it on unwind.
8548         (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8549         call timer_check() (Bug#2154).
8550         (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8551         handling_signal is set.
8552         (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8554         * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
8556         * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8558         * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8560         * keyboard.c (poll_for_input_1, handle_async_input):
8561         Set handling_signal under HAVE_NS.
8563 2009-02-04  Glenn Morris  <rgm@gnu.org>
8565         * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8567 2009-02-04  Kenichi Handa  <handa@m17n.org>
8569         * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8571         * charset.c (Fchar_charset): New optional arg restriction.
8573         * coding.h (coding_system_charset_list): Extern it.
8575         * coding.c (coding_system_charset_list): New function.
8577         * composite.c: Include coding.h and termhooks.h.
8578         (composition_gstring_p): Fix for the terminal case.
8579         (composition_gstring_width): Likewise.
8580         (fill_gstring_body): Likewise.
8581         (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8582         the frame.
8583         (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8584         is within a composition.
8585         (Fcomposition_get_gstring): Fix the terminal case.
8587         * term.c (encode_terminal_code): Fix handling of composition.
8588         (produce_composite_glyph): For static composition, get pixel_width
8589         from struct composition.
8591 2009-02-02  Andreas Schwab  <schwab@suse.de>
8593         * unexelf.c (unexec): Handle unaligned bss offset.
8595 2009-02-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
8597         * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8598         XT,w32read_socket changes to ns_read_socket.
8600         * keyboard.c (handle_interrupt): Don't call
8601         quit_throw_to_read_char() under NS.
8603         * blockinput.h: Remove NS-specific code.
8605 2009-01-30  Dan Nicolaescu  <dann@ics.uci.edu>
8607         * dispnew.c (window_change_signal): Don't try to get the size of a
8608         suspended tty frame.
8609         * term.c (Fresume_tty): Resize if the size has changed while the
8610         tty was suspended.
8612         * alloc.c (mark_stack): Properly conditionalize previous change.
8614 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
8616         * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8617         * w32term.c (w32_read_socket) [SYNC_INPUT]:
8618         Remove; this code is not used on Windows.
8620 2009-01-30  Eli Zaretskii  <eliz@gnu.org>
8622         * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8623         EOLs that also has stray ^M characters.
8625 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
8627         * atimer.c (run_timers, alarm_signal_handler):
8628         * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8629         * w32inevt.c (w32_console_read_socket):
8630         * w32term.c (w32_read_socket):
8631         * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8633 2009-01-30  Chong Yidong  <cyd@stupidchicken.com>
8635         * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8636         Initialize it as a relative filename pattern.
8637         (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8638         (Fcall_process_region): Simplify temp file creation using
8639         temporary-file-directory.
8641 2009-01-29  Eli Zaretskii  <eliz@gnu.org>
8643         * msdos.c: Rename pending_signals to msdos_pending_signals.
8644         (sig_suspender, sigprocmask): Adjust.
8646 2009-01-29  Chong Yidong  <cyd@stupidchicken.com>
8648         * keyboard.c (pending_signals): New var.
8649         (poll_for_input, input_available_signal, init_keyboard): Set it.
8650         (process_pending_signals): New function.
8652         * lisp.h (QUIT): Check pending_signals instead of
8653         interrupt_input_pending.  Use process_pending_signals.
8655         * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
8657         * process.c (wait_reading_process_output): Use process_pending_signals.
8659         * sysdep.c (emacs_write): Use process_pending_signals.
8661         * xterm.c (XTread_socket): Update pending_signals.
8663         * w32term.c (w32_read_socket): Update pending_signals.
8665         * w32inevt.c (w32_console_read_socket): Update pending_signals.
8667 2009-01-29  Kenichi Handa  <handa@m17n.org>
8669         * xftfont.c (xftfont_has_char): New function.
8670         (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8672 2009-01-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
8674         * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8675         under GNUstep.
8676         (ns_query_color): New declaration.
8678         * nsterm.m (ns_confirm_quit): New variable.
8679         (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8680         (EmacsApp-applicationShouldTerminate:): Use it.
8681         (EmacsPrefsController): Let user set it.
8682         (ns_query_color): New function.
8683         (ns_defined_color): Use it.
8684         (ns_initialize): Drop.
8685         (ns_term_init): Add two lines from ns_initialize(), and set
8686         input_interrupt_mode to nil.
8688         * image.c (svg_load_image): Don't right-shift background RGB when
8689         obtained from FRAME_BACKGROUND_PIXEL.  Under HAVE_NS use ns_query_color.
8691 2009-01-28  Kenichi Handa  <handa@m17n.org>
8693         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8694         (fontset_get_font_group): Remember that no font-group is specified
8695         for C.
8697 2009-01-27  Chong Yidong  <cyd@stupidchicken.com>
8699         * fns.c (concat): Check for string overflow (bug#1787).
8701         * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8702         Quadruple undo limits (bug#1501).
8704 2009-01-27  Kenichi Handa  <handa@m17n.org>
8706         * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8707         directly use GT_Get_Char_index.
8709         * xftfont.c (struct xftfont_info): New member `index'.
8711         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8712         (Ffontset_font): Adjust for the change of fontset entry.
8714 2009-01-26  Kenichi Handa  <handa@m17n.org>
8716         * fontset.c (fontset_find_font): Fix handling of non-cons return
8717         value of fontset_get_font_group.
8718         (fontset_font): Revert last change.
8720 2009-01-26  Jason Rumney  <jasonr@gnu.org>
8722         * w32font.c (w32font_list_internal): Return quickly if registry is
8723         unknown.  Simplify final return.
8724         (add_font_entity_to_list): Break complex logic down into more
8725         manageable chunks.  Move unknown registry check to
8726         w32font_list_internal.
8728 2009-01-25  Adrian Robert  <Adrian.B.Robert@gmail.com>
8730         Changes to remove Feval calls from GUI under NS.
8732         * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8733         Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8734         Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8736         * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8737         (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8738         (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8739         instead of NON_ASCII_KEYSTROKE_EVENT.
8740         (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8741         (EmacsApp-applicationShouldTerminate:): Query user.
8742         (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8743         instead of Feval.
8745         * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8747         * keyboard.c (kbd_buffer_get_event): Check for it.
8748         (keys_of_keyboard): Define lispy keys for
8749         ns-put/unput-working-text.
8751         * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8752         versions.
8753         (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8755 2009-01-25  Chong Yidong  <cyd@stupidchicken.com>
8757         * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
8758         setting current_buffer directly.  (Bug#2044)
8760 2009-01-24  Chong Yidong  <cyd@stupidchicken.com>
8762         * fontset.c (fontset_font): If we know there is no font, don't do
8763         any work.  (Bug#1952, bug#1990).
8765         * font.c (font_parse_xlfd): Handle patterns of length < 2.  (Bug#1802)
8767 2009-01-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
8769         * emacs.c (main): Do fork+exec under --daemon in Cocoa.
8770         (ns_no_defaults): New declaration.
8771         (main): Use it.
8773         * nsterm.h (ns_no_defaults): New declaration.
8775         * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
8777         * nsterm.m (ns_no_defaults): New variable.
8778         (ns_initialize): Don't read defaults when ns_no_defaults.
8779         (EmacsView-readSelectionFromPasteboard:)
8780         (writeSelectionToPasteboard:types:): New stubbed-out methods for
8781         NSServicesRequests protocol.  (Bug#1435)
8782         (ns_dumpglyphs_stretch): New function.
8783         (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
8784         of 2008-11-15 to other terms.  (Bug#615)
8786         * nsimage.m (setPixmapData:): Set to ignore image DPI.
8788 2009-01-23  Giorgos Keramidas  <keramida@freebsd.org>  (tiny change)
8790         * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8791         call for Sparc64.
8793 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
8795         * nsfns.m:
8796         * nsgui.h:
8797         * nsmenu.m:
8798         * nsselect.m:
8799         * nsterm.h:
8800         * nsterm.m: Remove '23' comments that indicated code added during
8801         update from emacs-20 -> emacs-23.
8803 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
8805         * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
8806         ns_alternate_modifier.  (Bug#1217)
8808         * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8809         Display all shortcuts, including those w/o super modifier.
8811         * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8813 2009-01-22  Chong Yidong  <cyd@stupidchicken.com>
8815         * fileio.c (Vwrite_region_post_annotation_function)
8816         (Vwrite_region_annotation_buffers): New vars.
8817         (build_annotations_unwind): Just reset
8818         Vwrite_region_annotation_buffers.
8819         (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8820         Call write-region-post-annotation-function.
8821         (build_annotations): Add to Vwrite_region_annotation_buffers if
8822         buffer changes.
8824 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
8826         * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8827         Tiger.
8828         * nsfns.m (ns_do_applescript):
8829         Conditionalize typeUTF16ExternalRepresentation on Tiger.
8831 2009-01-21  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
8833         * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8835 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
8837         * nsmenu.m (NSMENUPROFILE): Change #if style.
8839         * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8841         * nsterm.m (x_set_frame_alpha): Add prototype.
8842         (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8843         handle Ctrl-tab.  (Bug#1841)
8844         (ns_get_color): Use unsigned long long for scanned hex string value.
8845         (ns_term_shutdown): Abort on non SIGTERM signals.
8846         (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
8847         (EmacsPrefsController-setPanelFromDefaultValues): New function.
8848         (EmacsPrefsController-resetToDefaults:): Use it.  (Bug#1801)
8849         (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
8850         (ns_defined_color): Fix settings of the XColor variable fields:
8851         red,green,blue scale to 2-byte, pixel's parts to 1-byte.  (Bug#1663)
8853         * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
8854         DPI.  (Bug#1316)
8855         (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8856         values in onTiger section.
8858 2009-01-19  Chong Yidong  <cyd@stupidchicken.com>
8860         * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8861         Check return value of font_spec_from_name.
8862         (Fx_list_fonts): Doc fix.  (Bug#1951)
8864         * font.c (font_spec_from_name): Return Qnil if font name could not
8865         be parsed.
8866         (font_parse_name): Treat a `?' character as part of an XLFD.
8868         * fns.c (Fsubstring): Doc fix.
8870 2009-01-19  Kenichi Handa  <handa@m17n.org>
8872         * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
8873         (ftfont_list): Likewise.
8875 2009-01-18  Juanma Barranquero  <lekktu@gmail.com>
8877         * dbusbind.c (Fdbus_register_signal):
8878         * process.c (conv_sockaddr_to_lisp):
8879         * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8881         * callproc.c (Fgetenv_internal): Doc fix.
8883 2009-01-16  Chong Yidong  <cyd@stupidchicken.com>
8885         * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8886         it is not even used.
8888 2009-01-16  Glenn Morris  <rgm@gnu.org>
8890         * font.c (Ffont_variation_glyphs): Silence compiler.
8892 2009-01-15  Juanma Barranquero  <lekktu@gmail.com>
8894         * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8895         Reported by David Robinow <drobinow@gmail.com>.
8897 2009-01-15  Kenichi Handa  <handa@m17n.org>
8899         * coding.c (detect_coding_system): Fix handling of null_byte_found.
8901 2009-01-14  Jason Rumney  <jasonr@gnu.org>
8903         * frame.c (x_set_font): Always store a font to the font parameter,
8904         never a fontset.  (Bug#1562)
8906 2009-01-14  Kenichi Handa  <handa@m17n.org>
8908         * coding.c (TWO_MORE_BYTES): New macro.
8909         (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
8911 2009-01-13  Chong Yidong  <cyd@stupidchicken.com>
8913         * font.c (font_clear_prop): If clearing the family, clear the font
8914         width index too.
8916         * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
8918 2009-01-12  Juanma Barranquero  <lekktu@gmail.com>
8920         * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8921         (do_play_sound): Use it.  Don't pass a hardcoded buffer size to mci
8922         functions, use sizeof.
8924 2009-01-12  Martin Rudalics  <rudalics@gmx.at>
8926         * keyboard.c (read_char): Fix case where last_nonmenu_event
8927         returned a bad value with submenus.  (Bug#447)
8929 2009-01-12  Chong Yidong  <cyd@stupidchicken.com>
8931         * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8932         family, clear the font width index too.
8934 2009-01-11  Jason Rumney  <jasonr@gnu.org>
8936         * keyboard.c (cmd_error_internal): Exit when errors occur before
8937         frame creation and not in daemon mode.  (Bug#1836)
8939 2009-01-10  Chong Yidong  <cyd@stupidchicken.com>
8941         * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8942         of a display vector, backtrack.
8943         (try_window_reusing_current_matrix): Check glyph type before
8944         referencing charpos member.
8946 2009-01-10  Eli Zaretskii  <eliz@gnu.org>
8948         Fix Bug #876:
8950         * coding.c (inhibit_null_byte_detection): New variable.
8951         (detect_coding, detect_coding_system): Don't pay attention to null
8952         bytes if inhibit_null_byte_detection is non-zero.
8953         (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
8954         <inhibit-iso-escape-detection>: Doc fix.
8956 2009-01-09  Jason Rumney  <jasonr@gnu.org>
8958         * w32font.c (add_font_entity_to_list): Don't report unknown
8959         Windows charset as any unrecognized registry.  (Bug#1548)
8960         Only report Unicode Plane 2 fonts as unicode-sip.
8962 2009-01-09  Chong Yidong  <cyd@stupidchicken.com>
8964         * xfaces.c (Fx_font_family_list): Delete function.
8965         Move compatibility version to faces.el.
8967         * font.c (Ffont_family_list): Return a list of strings, not symbols.
8969 2009-01-09  Martin Rudalics  <rudalics@gmx.at>
8971         * frame.c (x_set_frame_parameters): Remember requested value for
8972         fullscreen before it's reset by the parameter handler.
8974 2009-01-09  Glenn Morris  <rgm@gnu.org>
8976         * keyboard.c (last_command_char): For clarity, rename to...
8977         (last_command_event): ... and update all users.
8978         (last_input_char): For clarity, rename to...
8979         (last_input_event): ... and update all users.
8980         (last-command-char, last-input-char): Move to subr.el as aliases.
8981         * cmds.c, commands.h: Update for last_command_char rename.
8983 2009-01-08  Chong Yidong  <cyd@stupidchicken.com>
8985         * font.c (font_open_for_lface): Handle unspecified height attribute.
8987 2009-01-08  Jason Rumney  <jasonr@gnu.org>
8989         * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8990         (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8991         (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8992         Don't declare.
8993         (syms_of_w32fns): Don't define x-pointer-shape variable.  (Bug#1485)
8994         (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8996 2009-01-07  Kenichi Handa  <handa@m17n.org>
8998         * fileio.c (Finsert_file_contents): In the case of replace,
8999         remember the coding system used for decoding in
9000         coding_system (Bug#1039).
9002         * coding.c (decode_coding_utf_8): Check byte_after_cr before
9003         breaking the loop.  (Bug#870)
9004         (decode_coding_utf_16, decode_coding_emacs_mule)
9005         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9006         (decode_coding_charset): Likewise.
9008 2009-01-05  Martin Rudalics  <rudalics@gmx.at>
9010         * frame.c (x_set_frame_parameters): Make sure height (width) get
9011         applied when fullwidth (fullheight) is set.  (Bug#1522)
9013 2009-01-04  Juanma Barranquero  <lekktu@gmail.com>
9015         * w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
9016         (utc_base): Declare as ULONGLONG, not long double.
9017         (convert_time_raw): Delete.
9018         (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9019         (initialize_utc_base): New function.
9020         (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9021         (convert_from_time_t): Use initialize_utc_base; compute result with
9022         64-bit arithmetic.
9023         (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9025 2009-01-03  Eli Zaretskii  <eliz@gnu.org>
9027         * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9028         (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9029         (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9030         (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9031         [!subprocesses]: Define.
9032         (syms_of_process) [!subprocesses]: Intern and staticpro them.
9033         (Flist_system_processes, Fsystem_process_attributes)
9034         [!subprocesses]: Call list_system_processes and
9035         system_process_attributes instead of returning Qnil.
9037         * dosfns.c (system_process_attributes, list_system_processes):
9038         New functions.
9040         * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9042         * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9043         Don't use the default (no-op) implementation.
9045 2009-01-03  Jason Rumney  <jasonr@gnu.org>
9047         * keyboard.c (parse_modifiers_uncached): Wheel events are
9048         clicks (bug#687).
9050         * w32term.c (x_query_colors, x_query_color): New functions.
9052         * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9053         (svg_load_image): Cast returned pointers from dynamically loaded
9054         functions.  Eliminate W32 specific code.
9056 2009-01-02  Dan Nicolaescu  <dann@ics.uci.edu>
9058         * nsfns.m (x_set_foreground_color, x_set_background_color)
9059         (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9060         (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9061         x_ prefix instead of ns_.  Update references.
9062         (syms_of_nsfns): Add a FIXME comment.
9064         * nsterm.m (x_set_cursor_type): New prototype.
9065         (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9067         * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9068         for Solaris instead of incorrectly providing Qutime and Qcutime.
9070 2009-01-02  Eli Zaretskii  <eliz@gnu.org>
9072         * w32.c (process_times): Compute sum of utime and stime.
9073         (system_process_attributes): Add Qtime to the alist.
9075         * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9076         and add them to the alist.
9078         * process.c (top level) <Qtime, Qctime>: New variables.
9079         (syms_of_process): staticpro them.
9080         (Fsystem_process_attributes): Add their documentation to the doc
9081         string.
9083         * process.h: Declare Qtime and Qctime.
9085 2009-01-02  Jason Rumney  <jasonr@gnu.org>
9087         * image.c (Qgobject): New symbol.
9088         (syms_of_image): Initialize it.
9089         (init_svg_functions): Load some functions from gobject library.
9091 2009-01-01  Dan Nicolaescu  <dann@ics.uci.edu>
9093         * frame.c (make_terminal_frame): Remove redundant code and useless
9094         block.
9096 2009-01-01  Andreas Schwab  <schwab@suse.de>
9098         * process.c (conv_sockaddr_to_lisp): Add workaround for
9099         getsockname bug on BSD.
9101 2009-01-01  Chong Yidong  <cyd@stupidchicken.com>
9103         * xfns.c (x_create_tip_frame): Set border width of the X window.
9105         * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9107 2009-01-01  Jason Rumney  <jasonr@gnu.org>
9109         * w32term.c (x_new_font): Return font object, not fontset.  (Bug#119)
9110         Don't block input, as per earlier xterm.c changes.
9112 2008-12-31  Adrian Robert  <Adrian.B.Robert@gmail.com>
9114         * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9115         (ns_appkit_version_int): New function.
9116         (x-server-version): Use ns_appkit_version_int and follow 21+
9117         convention of returning 3 integers.
9119 2008-12-30  Kenichi Handa  <handa@m17n.org>
9121         * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9122         (CHAR_SURROGATE_PAIR_P): New macro.
9124         * font.h (struct font_driver): New member get_variation_glyphs.
9126         * font.c (font_range): Don't require a font for a variation selector.
9127         (Ffont_variation_glyphs): New function.
9128         (syms_of_font): Defsubr it.
9130         * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9131         ftfont_variation_glyphs.
9132         (setup_otf_gstring): New function.
9133         (ftfont_drive_otf): Use it.
9134         (ftfont_shape_by_flt): Handle variation selector.
9135         (ftfont_variation_glyphs): New function.
9137 2008-12-30  Martin Rudalics  <rudalics@gmx.at>
9139         * frame.c (Vemacs_iconified): Remove.
9141 2008-12-30  Jason Rumney  <jasonr@gnu.org>
9143         * frame.c (store_frame_param, x_get_arg): Enable newer code on
9144         WINDOWSNT too, as related changes have already been synced.  (Bug#117)
9146 2008-12-30  Chong Yidong  <cyd@stupidchicken.com>
9148         * indent.c (Fvertical_motion): Don't advance iterator if we have
9149         reseated to the desired position.
9151         * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9152         checking for pos match.
9154 2008-12-30  Kenichi Handa  <handa@m17n.org>
9156         * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9157         just get the low 8-bit of the code.
9159         * font.c (font_intern_prop): Validate str as multibyte.
9161 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
9163         * dispextern.h (struct face): Move lface and hash from the middle
9164         of bitfields.
9166         * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9168 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
9170         * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9171         (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9172         instead of intervals.h.
9174 2008-12-26  Andreas Schwab  <schwab@suse.de>
9176         * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9177         cons.
9179 2008-12-26  Martin Rudalics  <rudalics@gmx.at>
9181         * textprop.c (Qminibuffer_prompt): New variable.
9182         (syms_of_textprop): Initialize it.
9183         * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9184         in minibuffer-prompt face.  (Bug#1662)
9186 2008-12-25  Jason Rumney  <jasonr@gnu.org>
9188         * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9190 2008-12-24  Jason Rumney  <jasonr@gnu.org>
9192         * ralloc.c (r_alloc_reset_variable): New function.
9194         * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9195         record of what points where.  (Bug#716)
9197 2008-12-22  Dan Nicolaescu  <dann@ics.uci.edu>
9199         * minibuf.c (read_minibuf): Follow the non-interactive case when
9200         running as a daemon, before detaching.
9202 2008-12-22  Andreas Schwab  <schwab@suse.de>
9204         * buffer.c (init_buffer): Use realloc instead of xrealloc.
9205         * gtkutil.c (free_widget_value): Use xfree instead of free.
9207 2008-12-22  Martin Rudalics  <rudalics@gmx.at>
9209         * frame.c (delete_frame): New function derived from
9210         Fdelete_frame to handle Qnoelisp value for FORCE argument.
9211         Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
9212         (Fdelete_frame): Call delete_frame.  Remove line from doc-string
9213         saying that FORCE non-nil doesn't run `delete-frame-functions'.
9214         * frame.h: Extern delete_frame.
9215         * window.c (window_loop):
9216         * terminal.c (delete_terminal):
9217         * xterm.c (x_connection_closed):
9218         * xfns.c (Fx_hide_tip):
9219         * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9221 2008-12-21  Jason Rumney  <jasonr@gnu.org>
9223         * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9224         when character maps to .notdef character.
9226 2008-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9228         * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9230 2008-12-20  Jason Rumney  <jasonr@gnu.org>
9232         * frame.c (Fmake_terminal_frame): Raise an error when called from
9233         a graphical frame on Windows.  (Bug#1325)
9235 2008-12-20  Jan Djärv  <jan.h.d@swipnet.se>
9237         * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9239 2008-12-20  Chong Yidong  <cyd@stupidchicken.com>
9241         * minibuf.c (Fread_buffer): Doc fix.
9243 2008-12-20  Jason Rumney  <jasonr@gnu.org>
9245         * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9246         server name in UNC paths.  (Bug#719)
9248         * coding.c (decode_coding): Clear chars_at_source flag when using
9249         charbuf.  (Bug#1035)
9251 2008-12-19  Daniel Engeler  <engeler@gmail.com>
9253         * sysdep.c (serial_configure): Fix typo.
9255 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
9257         * sysdep.c: Include alloca.h.
9258         (system_process_attributes): Add implementation for Solaris.
9260         * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9262 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
9264         Reorganize implementation of Flist_system_processes and
9265         Fsystem_process_attributes.  No functional changes.
9266         * process.c: Don't #include pwd.h, grp.h and limits.h.
9267         (Flist_system_processes): Just call list_system_processes.
9268         (Fsystem_process_attributes): Just call system_process_attributes.
9269         (procfs_list_system_processes, time_from_jiffies)
9270         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9271         (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9273         * sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
9274         (list_system_processes): Rename from
9275         procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
9276         Provide a do nothing implementation.
9277         (system_process_attributes): Rename from
9278         procfs_list_system_processes.
9279         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9280         (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9282         * w32.c (list_system_processes): Rename from
9283         w32_list_system_processes.
9284         (system_process_attributes): Rename from
9285         w32_system_process_attributes.
9287         * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9289         * process.h (w32_list_system_processes)
9290         (w32_system_process_attributes): Remove.
9291         (list_system_processes, system_process_attributes):
9292         New prototypes.
9294 2008-12-19  Kenichi Handa  <handa@m17n.org>
9296         * xfont.c (xfont_decode_coding_xlfd): New function.
9297         (xfont_encode_coding_xlfd): New function.
9298         (xfont_list_pattern): Decode XLFD by iso-8859-1.
9299         (xfont_list): Decode and encode XLFD by iso-8859-1.
9300         (xfont_match): Likewise.
9301         (xfont_list_family): Likewise.
9302         (xfont_open): Likewise.
9304         * ftfont.c (ftfont_open): Generate a multibyte string if given
9305         names are utf-8.
9307         * xftfont.c (xftfont_open): Generate a multibyte string if given
9308         names are utf-8.
9310 2008-12-18  Jan Djärv  <jan.h.d@swipnet.se>
9312         * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9313         changed.
9314         (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9315         clicked on a detached tool bar button.
9317 2008-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
9319         * emacs.c (main): Print and error and exit when no data is read
9320         from the pipe.
9322 2008-12-17  Jason Rumney  <jasonr@gnu.org>
9324         * w32font.c (w32font_has_char): Always return -1.
9326 2008-12-16  Kenichi Handa  <handa@m17n.org>
9328         * font.c (font_open_entity): Fix previous change.
9330 2008-12-16  Dan Nicolaescu  <dann@ics.uci.edu>
9332         * process.c: Include <limits.h>.
9334 2008-12-16  Chetan Pandya  <pandyacus@sbcglobal.net>  (tiny change)
9336         * font.c (font_update_drivers): Fix mistake in reconstructing the
9337         driver list.
9339 2008-12-16  Chong Yidong  <cyd@stupidchicken.com>
9341         * font.c (font_clear_cache): Fix format of font cache data.
9343 2008-12-15  Chong Yidong  <cyd@stupidchicken.com>
9345         * xftfont.c (xftfont_open): Free Xft font pattern if
9346         XftFontOpenPattern fails.
9348         * xterm.c (x_free_frame_resources): Remove extraneous call to
9349         free_frame_faces.
9351 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
9353         * xterm.c (x_delete_display): Move xim_close_dpy call to
9354         x_delete_terminal.
9355         (x_delete_terminal): Call xim_close_dpy.
9357 2008-12-13  Jason Rumney  <jasonr@gnu.org>
9359         * w32font.c (intern_font_name): New function.
9360         (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9361         (w32font_open_internal, Fx_select_font): Decode font name.
9362         (fill_in_logfont, list_all_matching_fonts): Encode font name.
9364         * w32font.h (intern_font_name): Declare new function.
9366         * w32uniscribe.c (add_opentype_font_name_to_list):
9367         Use intern_font_name.
9369 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
9371         * frame.c (Fdelete_frame): Call free_font_driver_list.
9373         * font.c (free_font_driver_list): Implement missing function.
9375         * w32term.c (w32_term_init): Don't initialize the image cache
9376         here; it will be done in init_frame_faces.
9378         * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9379         (struct x_display_info): Remove unused member null_pixel.  New
9380         member xim_callback_data.
9382         * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9383         (xim_initialize): Save pointer to callback function data.
9384         (xim_close_dpy): Free callback function data.  Call XCloseIM,
9385         reverting 2008-11-04 change by David Smith.
9386         (x_term_init): Don't initialize the image cache here; it will be
9387         done in init_frame_faces.  Remove ancient "null_pixel" cruft.
9388         (x_delete_display): Free x_dnd_atoms member.
9390 2008-12-13  Kenichi Handa  <handa@m17n.org>
9392         * font.c (font_rescale_ratio): Moved from xfaces.c.
9393         Argument type changed.  Handle a font-spec too.
9394         (font_score): Check Vface_font_rescale_alist.
9395         (font_open_entity): Likewise.  (Bug#1547)
9397         * xfaces.c (font_rescale_ratio): Moved to font.c.
9399 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
9401         * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9403 2008-12-12  Jason Rumney  <jasonr@gnu.org>
9405         * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9406         Vwindow_system_version to the real w32 major version.
9408 2008-12-12  Dan Nicolaescu  <dann@ics.uci.edu>
9410         * term.c (init_tty): Move setting the terminal name before the
9411         potential user: maybe_fatal.
9413 2008-12-11  Chong Yidong  <cyd@stupidchicken.com>
9415         * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9416         all callers changed.  Call free_frame_faces to free the face cache.
9418 2008-12-11  Jason Rumney  <jasonr@gnu.org>
9420         * w32font.c (fill_in_logfont): Don't assume symbol script means
9421         SYMBOL_CHARSET.  (Bug#547)
9423         * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9424         size for surrogates.  (Bug#1096, bug#872)
9426 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
9428         * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9430 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
9432         * process.c (Fsystem_process_attributes, syms_of_process):
9433         Fix typo in name of Ssystem_process_attributes.
9434         Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9436 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
9438         * syntax.c (Fmodify_syntax_entry): Doc fix.
9440 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
9442         * font.c (Ffont_spec): Move usage to end of docstring.
9444 2008-12-10  Jason Rumney  <jasonr@gnu.org>
9446         * w32font.c (Qcham): New symbol.
9447         (font_supported_scripts): Add cham, and comments for other new
9448         scripts in bitfield from OpenType spec.
9449         (add_font_entity_to_list): Limit unicode-sip fonts to those that
9450         contain characters beyond the bmp.
9452 2008-12-10  Kenichi Handa  <handa@m17n.org>
9454         * ftfont.c (fc_charset_table): Add "unicode-sip".
9455         (ftfont_spec_pattern): Lookup fc_charset_table for the registry
9456         Qunicode_sip.
9458 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
9460         * coding.c (QCdefault_char): Rename from QCdefalut_char.
9461         (Fcoding_system_put): Use QCdefault_char.
9462         (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9464 2008-12-09  Chong Yidong  <cyd@stupidchicken.com>
9466         * xftfont.c (syms_of_xftfont): Fix typo.
9468         * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9470 2008-12-08  Dan Nicolaescu  <dann@ics.uci.edu>
9472         * emacs.c (main): Close daemon_pipe on exec.
9474 2008-12-08  Chong Yidong  <cyd@stupidchicken.com>
9476         * termchar.h (struct tty): New members termcap_term_buffer and
9477         termcap_strings_buffer.
9479         * term.c (encode_terminal_code): Free any previous memory blocks
9480         before calling xmalloc for encode_terminal_src or encode_terminal_dst.
9481         (maybe_fatal): Buffer argument deleted.  Don't free buffer here.
9482         All callers changed.
9483         (init_tty): Store termcap data and string buffers in new struct
9484         tty members termcap_term_buffer and termcap_strings_buffer.
9485         (delete_tty): Free them.
9486         (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
9488 2008-12-07  Seiji Zenitani  <zenitani@mac.com>
9490         * nsfns.m (ns_set_background_color): Remove code duplication.
9491         It was a substitute for face-transparency on OS X 10.3.
9493 2008-12-06  Chong Yidong  <cyd@stupidchicken.com>
9495         * coding.c (make_conversion_work_buffer): Disable buffer
9496         modification hooks in the work buffer.
9498 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
9500         * process.c (procfs_system_process_attributes): If `nread' has a
9501         negative value, assign zero to it.
9503 2008-12-05  Chong Yidong  <cyd@stupidchicken.com>
9505         * eval.c (Vdebug_on_error): Doc fix.
9507 2008-12-05  Kenichi Handa  <handa@m17n.org>
9509         * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9510         second character is a combining character.
9512 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
9514         * process.c (procfs_system_process_attributes): Don't use cmd,
9515         cmdsize, and q without initializing them first.
9517 2008-12-04  Jason Rumney  <jasonr@gnu.org>
9519         * w32font.c (w32font_draw): Initialize orig_clip before getting
9520         it, and delete it when finished.
9522 2008-12-04  Dan Nicolaescu  <dann@ics.uci.edu>
9524         * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9525         case when running as a daemon before detaching.
9527 2008-12-03  Juanma Barranquero  <lekktu@gmail.com>
9529         * w32.c (init_environment): Don't unload library shell32.dll.
9531 2008-12-03  Kenichi Handa  <handa@m17n.org>
9533         * font.c (font_at): Set `multibyte' at first.
9535         * coding.c (decode_coding_charset): Check type of an element of
9536         vector VALIDS.
9537         (encode_coding_emacs_mule): Be sure to set `code'.
9539         * fontset.c (face_for_char): Handle invalid charset property correctly.
9540         (font_for_char): Likewise.
9542 2008-12-03  Chong Yidong  <cyd@stupidchicken.com>
9544         * font.c (Fopen_font): Compute pixel size correctly.
9545         (font_update_lface): Handle fonts with corrupted size specs,
9546         i.e. non-int and non-float.
9548         * ftfont.c (ftfont_match): Initialize entity variable.
9549         (ftfont_resolve_generic_family): Avoid using uninitialized var.
9550         (ftfont_list_family): Initialize list var earlier.
9552         * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9554         * xterm.c (x_draw_glyph_string): Fall back on
9555         underline_minimum_offset for underline position.
9557 2008-12-03  Dan Nicolaescu  <dann@ics.uci.edu>
9559         * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9561         * character.c (c_string_width): Specify the type for LEN.
9563 2008-12-03  Kenichi Handa  <handa@m17n.org>
9565         * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
9566         (decode_coding_utf_8): Likewise.
9567         (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
9568         (produce_chars): Initialize consumed_chars to 0.
9570 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
9572         * keyboard.c (make_lispy_position): Only use PT if the selected
9573         window is current.
9575 2008-12-02  Andreas Schwab  <schwab@suse.de>
9577         * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9579         * doprnt.c (doprnt1): Fix size of charbuf.
9581 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
9583         * keyboard.c (timer_check): Revert last change.
9585 2008-12-02  Juanma Barranquero  <lekktu@gmail.com>
9587         * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9589 2008-12-01  Juanma Barranquero  <lekktu@gmail.com>
9591         * makefile.w32-in: Update dependencies.
9592         (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9594 2008-12-01  Andreas Schwab  <schwab@suse.de>
9596         * font.c (register_font_driver): Use xmalloc.
9597         (font_put_frame_data): Likewise.
9599 2008-12-01  Chong Yidong  <cyd@stupidchicken.com>
9601         * xfaces.c (realize_x_face): Make abort condition clearer.
9603         * gtkutil.c (update_frame_tool_bar): Initialize variable.
9605 2008-11-30  Chong Yidong  <cyd@stupidchicken.com>
9607         * keyboard.c (timer_check): After a timer runs, ensure that the
9608         selected window's buffer is current.
9610 2008-11-30  Juanma Barranquero  <lekktu@gmail.com>
9612         * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9613         It was accidentally restored by the Unicode merge.
9615         * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9617 2008-11-29  Juanma Barranquero  <lekktu@gmail.com>
9619         * w32proc.c: Include "coding.h".
9620         (Fw32_short_file_name): Encode filename passed to Windows API.
9621         (Fw32_long_file_name): Encode filename passed to Windows API and
9622         decode back the result.  (Bug#1433)
9624 2008-11-29  Kenichi Handa  <handa@m17n.org>
9626         * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9627         not before accessing it.
9629         * charset.c (Fdefine_charset_internal): After calculating
9630         min_char, max_char, and fastmap, copy the charset structure again.
9631         (encode_char): Fix the previous change.
9633 2008-11-28  Seiji Zenitani  <zenitani@mac.com>
9635         * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9637         * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9639         * nsterm.m (x_set_frame_alpha): New function.
9641 2008-11-27  Eli Zaretskii  <eliz@gnu.org>
9643         * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9645 2008-11-27  Juanma Barranquero  <lekktu@gmail.com>
9647         * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9648         pointer to check_face_name.
9650 2008-11-27  Kenichi Handa  <handa@m17n.org>
9652         * category.h (SET_CATEGORY_SET): Call set_category_set.
9653         (set_category_set): Extern it.
9655         * category.c (hash_get_category_set): New function.
9656         (Fmodify_category_entry): Adjusted for the change of
9657         char_table_ref_and_range.  Call hash_get_category_set to get a
9658         category set to store in the table.
9660         * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9661         Funify_charset.
9663         * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
9664         (DECODE_CHAR): Check if the decoder vector is ready.
9665         (ENCODE_CHAR): Check if the encoder char-table is ready.
9666         (maybe_unify_char): Extern it.
9668         * charset.c (Vchar_unified_charset_table): Delete it.
9669         (inhibit_load_charset_map): New variable.
9670         (temp_charset_work): New variable.
9671         (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9672         (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9673         New macros.
9674         (load_charset_map): Meaning of control_flag changed.  If
9675         inhibit_load_charset_map is nonzero, setup a table in
9676         temp_charset_work.
9677         (load_charset): New argument control_flag.
9678         (map_charset_for_dump): New function.
9679         (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9680         map_charset_for_dump.
9681         (Fdefine_charset_internal): If the charset method is MAP, load
9682         mapping tables by calling load_charset.
9683         (Funify_charset): Don't load a mapping table but directly set
9684         Vchar_unify_table.
9685         (maybe_unify_char): New function.
9686         (decode_char): Don't handle the deleted method MAP_DEFERRED.
9687         Handle the case of inhibit_load_charset_map being nonzero.
9688         (encode_char): Don't handle the deleted method MAP_DEFERRED.
9689         Handle the case of inhibit_load_charset_map being nonzero.
9690         (Fclear_charset_maps): Just free temp_charset_work.
9691         (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9692         variable.
9694         * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9695         change of char_table_ref_and_range.
9696         (char_table_ref_and_range): Change the meaning of argument FROM
9697         and TO.  Now the caller must provide initial values for *FROM
9698         and *TO.
9700         * fontset.c (fontset_add): Adjusted for the change of
9701         char_table_ref_and_range.
9702         (fontset_get_font_group): Likewise.
9703         (Ffontset_info): Likewise.
9705         * keymap.c (describe_vector): Adjusted for the change of
9706         char_table_ref_and_range.  For char-table, put boundary between
9707         non-ASCII and 8-bit characters.
9709         * print.c (print_object): For bool-vector, delete unnecessary
9710         check of ASCII_BYTE_P.
9712 2008-11-26  Jason Rumney  <jasonr@gnu.org>
9714         * w32font.c (w32font_open_internal): Don't include external
9715         leading in font height.  (Bug#879)
9717 2008-11-26  Glenn Morris  <rgm@gnu.org>
9719         * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9720         redefinition with ifdef.  (Bug#1383)
9722 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
9724         * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9726 2008-11-24  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
9728         * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9729         New EmacsView methods.
9730         (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9731         Fixes bug #1048,1357,1414.
9733 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
9735         Fix bug #1362.
9736         * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9737         is not an indexed color.
9738         * nsterm.m (free_indexed_color): Add argument checking.
9739         * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9741 2008-11-24  Chong Yidong  <cyd@stupidchicken.com>
9743         * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9744         Document confirm-after-completion value for
9745         minibuffer-completion-confirm.
9747 2008-11-24  Jason Rumney  <jasonr@gnu.org>
9749         * w32font.c (check_face_name): Use xstrcasecmp.  Avoid compiler
9750         warning.
9752 2008-11-23  Jason Rumney  <jasonr@gnu.org>
9754         * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9755         restored before returning.
9757         * w32font.c (check_face_name): New function.
9758         (add_font_entity_to_list): Use it to filter out common substituted
9759         fonts.  (Bug#642)
9761 2008-11-22  Martin Rudalics  <rudalics@gmx.at>
9763         * buffer.c (Fswitch_to_buffer): Reword and mention new option
9764         confirm-nonexistent-file-or-buffer in doc-string.
9766 2008-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9768         * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9769         Fix copy/paste typo.  Add checks.
9771 2008-11-21  Kenichi Handa  <handa@m17n.org>
9773         * coding.c (detect_coding_iso_2022): Reject invalid composition
9774         sequence.
9775         (DECODE_COMPOSITION_START): If the current source is the last
9776         block, and the current composition doesn't end, regard this
9777         sequence as invalid.
9778         (decode_coding_iso_2022): Handle invalid composition sequence.
9780 2008-11-20  Martin Rudalics  <rudalics@gmx.at>
9782         * window.c (coordinates_in_window): Don't return
9783         ON_VERTICAL_BORDER for the rightmost position of a mode/header
9784         line when the window is not the rightmost one.  (Bug#1372)
9786 2008-11-16  Ben North  <ben@redfrontdoor.org>  (tiny change)
9788         * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9790 2008-11-15  Eli Zaretskii  <eliz@gnu.org>
9792         * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9793         and bright_bg if noninteractive is non-zero.
9795 2008-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9797         * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9798         x_draw_glyph_string_background.
9800         * w32term.c (x_draw_glyph_string): Likewise.
9802 2008-11-15  Chong Yidong  <cyd@stupidchicken.com>
9804         * xterm.c (x_draw_glyph_string): Stop drawing the background of
9805         the next glyph string once past the overhang width.
9807         * nsterm.m (ns_draw_glyph_string): Likewise.
9809         * w32term.c (x_draw_glyph_string): Likewise.
9811 2008-11-14  Fabrice Popineau  <fabrice.popineau@supelec.fr>  (tiny change)
9813         * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9814         double file close.
9816 2008-11-14  Martin Rudalics  <rudalics@gmx.at>
9818         * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9819         dedicated status of window before attempting to display another
9820         buffer in it.
9822 2008-11-14  Juanma Barranquero  <lekktu@gmail.com>
9824         * msdos.c (Fmsdos_long_file_names):
9825         (syms_of_msdos) <dos-unsupported-char-glyph>:
9826         * dosfns.c (Fint86): Fix typos in docstrings.
9828 2008-11-14  Eli Zaretskii  <eliz@gnu.org>
9830         * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9832 2008-11-14  Katsumi Yamaoka  <yamaoka@jpl.org>
9834         * puresize.h (BASE_PURESIZE): Increase to 1260000.
9836 2008-11-12  Michal Nazarewicz  <mina86@tlen.pl>  (tiny change)
9838         * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9840         * frame.h: Negative alpha means "don't touch".
9842         * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9844         * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9846 2008-11-12  Dan Nicolaescu  <dann@ics.uci.edu>
9848         * hftctl.c:
9849         * chpdef.h:
9850         * acldef.h: Remove files used only for systems no longer supported.
9852         * Makefile.in: Fix .o alphabetical ordering.
9853         (hftctl.o): Remove dependency, file removed.
9854         (keymap.o, print.o): Depend on charset.h.
9856 2008-11-10  Kenichi Handa  <handa@m17n.org>
9858         * character.c (Fget_byte): Fix and make it faster for unibyte target.
9860 2008-11-08  Chong Yidong  <cyd@stupidchicken.com>
9862         * dired.c (file_name_completion): If completion_ignore_case is
9863         enabled, ignore case when checking completion-regexp-list.
9865 2008-11-08  Eli Zaretskii  <eliz@gnu.org>
9867         * vm-limit.c (get_lim_data): Fix last change.
9869 2008-11-08  Kenichi Handa  <handa@m17n.org>
9871         * character.c (Fget_byte): New function.
9872         (syms_of_character): Defsubr Fget_byte.
9874 2008-11-07  Chong Yidong  <cyd@stupidchicken.com>
9876         * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9877         cursor position is valid after scrolling.
9879 2008-11-06  Juanma Barranquero  <lekktu@gmail.com>
9881         * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9883 2008-11-06  Glenn Morris  <rgm@gnu.org>
9885         * xterm.c (handle_one_xevent): Don't let popup menus cause
9886         mouse-autoselect-window related window switching.  (Bug#1261)
9888 2008-11-04  David Smith  <davidsmith@acm.org>  (tiny change)
9890         * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9892 2008-11-04  Andreas Schwab  <schwab@suse.de>
9894         * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9896 2008-11-03  Chong Yidong  <cyd@stupidchicken.com>
9898         * xfns.c (Fx_wm_set_size_hint): New function.
9900 2008-11-03  Martin Rudalics  <rudalics@gmx.at>
9902         * textprop.c (Fprevious_single_char_property_change): Return 0
9903         when there's no change in a string.  (Bug#1301)
9905 2008-11-02  Martin Rudalics  <rudalics@gmx.at>
9907         * frame.c (do_switch_frame): New argument NORECORD passed to
9908         Fselect_window.
9909         (Fselect_frame): New argument NORECORD passed to
9910         do_switch_frame.
9911         (Fset_frame_selected_window): New argument NORECORD passed to
9912         Fselect_frame.
9913         (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9914         in call of do_switch_frame.
9915         (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9916         Handle NORECORD argument in call of Fselect_frame.
9917         * lisp.h (do_switch_frame, Fselect_frame)
9918         (Fset_frame_selected_window): Adjust declarations.
9919         * window.c (select_frame_norecord): New function.
9920         (run_window_configuration_change_hook): Use it and call
9921         Fselect_frame with NORECORD set.
9922         (Fselect_window): Pass NORECORD to Fselect_frame.
9923         (Fset_window_configuration): Handle NORECORD argument in call of
9924         do_switch_frame.
9925         * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9926         Fset_frame_selected_window.
9927         * keyboard.c (command_loop_1): Handle NORECORD in call of
9928         Fselect_frame (currently ifdefd).
9930 2008-11-02  Ulrich Mueller  <ulm@kph.uni-mainz.de>
9932         * emacs.c (USAGE2): Untabify.
9934 2008-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
9936         * composite.c (fill_gstring_header): Fix copy/paste typo.
9938 2008-10-31  Martin Rudalics  <rudalics@gmx.at>
9940         * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9941         (Fother_window): Rename argument and rewrite doc-string.
9942         (select_window_norecord): Fix return value.  (Bug#1276)
9944 2008-10-30  Juanma Barranquero  <lekktu@gmail.com>
9946         * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9947         new frames overriding foreground for tooltips.  Based on similar patch
9948         from Martin Rudalics <rudalics@gmx.at>.  (Bug#1032)
9950 2008-10-29  Chong Yidong  <cyd@stupidchicken.com>
9952         * emacs.c (Fdaemon_initialized): Initialize nfd.
9954 2008-10-29  Martin Rudalics  <rudalics@gmx.at>
9956         * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9957         (Fwindow_text_height): Clarify doc-strings.
9958         * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9959         doc-string of window-scroll-functions.
9961 2008-10-28  Reiner Steib  <Reiner.Steib@gmx.de>
9963         * category.c (syms_of_category): Fix typo in docstring.
9965 2008-10-28  Juanma Barranquero  <lekktu@gmail.com>
9967         * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9968         (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9969         Fix typos in docstrings.
9971 2008-10-28  Dan Nicolaescu  <dann@ics.uci.edu>
9973         * emacs.c (daemon_pipe): Make non-static.
9974         (IS_DAEMON): Move definition ...
9975         * lisp.h (IS_DAEMON): ... here.
9976         (daemon_pipe): Declare.
9977         (is_daemon): Remove.
9978         * dispnew.c (init_display): Use IS_DAEMON.
9980 2008-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
9982         * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9983         (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9985         * emacs.c (is_daemon): Remove.
9986         (main): Don't set is_daemon.
9987         (IS_DAEMON): New macro.
9988         (Fdaemonp, Fdaemon_initialized): Use it.
9989         (Fdaemon_initialized): Write a char into the pipe to make sure the
9990         parent exits.
9991         (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9993 2008-10-27  Chong Yidong  <cyd@stupidchicken.com>
9995         * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9996         over-sized glyph, draw it with the default glyph width.
9998         * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9999         glyph, draw it with the default glyph width.
10001         * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10002         glyph, draw it with the default glyph width.
10004         * xdisp.c (try_scrolling): When computing the distance from the
10005         scroll margin to PT, try moving some distance past the window
10006         bottom before giving up.
10008 2008-10-27  Martin Rudalics  <rudalics@gmx.at>
10010         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10011         (Fset_window_buffer): Explain in doc-string that a window can be
10012         "strongly" dedicated to its buffer.
10014 2008-10-27  Dan Nicolaescu  <dann@ics.uci.edu>
10016         * emacs.c (daemon_name): New variable.
10017         (main): Deal with --daemon=SERVER_NAME.
10018         (Fdaemonp): Return a name if one was passed to --daemon.
10020 2008-10-26  Romain Francoise  <romain@orebokech.com>
10022         * emacs.c (daemon_pipe): New variable.
10023         (main): Create a pipe before forking, make the parent exit only after
10024         the child has closed its end of the pipe.  Move closing the
10025         descriptors ...
10026         (Fdaemon_initialized): ... here.  New function.
10028 2008-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
10030         * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10031         the previous unoptimized table.
10033         * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10034         the distinction between non-nil and non-t value of `dedicated'.
10036 2008-10-25  Chong Yidong  <cyd@stupidchicken.com>
10038         * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10039         read_char_minibuf_menu_text is large enough to hold the menu string.
10041 2008-10-25  Martin Rudalics  <rudalics@gmx.at>
10043         * window.c (Fget_buffer_window, Fdelete_windows_on)
10044         (Freplace_buffer_in_windows): Make buffer argument optional and
10045         rename to buffer_or_name.
10047 2008-10-24  Chong Yidong  <cyd@stupidchicken.com>
10049         * xdisp.c (handle_single_display_spec, handle_display_prop):
10050         Undo 2005-05-16 change.
10051         (handle_stop): Pop iterator if it's loaded with an empty string.
10052         (get_overlay_strings_1): Don't save iterator if it's loaded with
10053         an empty string (bug#1201).
10055 2008-10-24  Kenichi Handa  <handa@m17n.org>
10057         * ftfont.c (ftfont_otf_features): Fix previous change.
10058         (ftfont_otf_capability): Check FeatureList.FeatureCount before
10059         calling ftfont_otf_features.
10061 2008-10-24  Kenichi Handa  <handa@m17n.org>
10063         * font.c (font_match_p): Fix for the case that a vector of
10064         characters is in script-representative-chars.
10066 2008-10-24  Michael Albinus  <michael.albinus@gmx.de>
10068         * dbusbind.c (xd_in_read_queued_messages): New variable.
10069         (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros.  Throw Qdbus_error.
10070         (xd_read_queued_messages): Catch Qdbus_error from the macros.
10071         (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10072         macro.  (Bug#1186)
10074 2008-10-23  Ali Bahrami  <ali_gnu@emvision.com>  (tiny change)
10076         * s/sol2-10.h: New file.
10078 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
10080         * xdisp.c (fill_glyph_string): Fix typo in source (though the
10081         poor beast has survived 9+ years and the jump from xterm.c!).
10083 2008-10-23  Martin Rudalics  <rudalics@gmx.at>
10085         * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10086         Reword doc-string.
10087         (Fbury_buffer): In doc-string say what happens to the buffer's window.
10089 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
10091         * character.c (syms_of_character) <script-representative-chars>:
10092         <unicode-category-table>: Doc fixes.
10094 2008-10-23  Noah Friedman  <friedman@splode.com>
10096         * coding.c (make_conversion_work_buffer): Check that
10097         Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10098         Fget_buffer_create.
10100 2008-10-23  Kenichi Handa  <handa@m17n.org>
10102         * font.c (font_add_log): Check the values of extra properties.
10104 2008-10-22  Martin Rudalics  <rudalics@gmx.at>
10106         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10107         Reword doc-string.
10108         (Fset_window_parameter): Use NILP.
10109         (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10110         (Frecenter): Use "selected" instead of "current" window in doc-strings.
10112 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
10114         * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10116 2008-10-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
10118         * nsfns.m (ns_appkit_version): New function.
10119         (x-server-version): Use it.
10120         (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10121         (x-server-vendor): Don't check_ns().
10123         * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10125 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
10127         * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10128         Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10130 2008-10-22  Kenichi Handa  <handa@m17n.org>
10132         * syntax.c (scan_words): Call word_boundary_p instead of comparing
10133         scripts.
10135         * category.c (word_boundary_p): Check scripts instead of charset.
10136         Handle nil value in word-separating-categories and
10137         word-combining-categories.
10138         (syms_of_category): Fix docstrings of word-separating-categories
10139         and word-combining-categories.
10141 2008-10-21  Eli Zaretskii  <eliz@gnu.org>
10143         * coding.c (Fencode_coding_region, Fdecode_coding_region)
10144         (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10146 2008-10-21  Martin Rudalics  <rudalics@gmx.at>
10148         * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10149         Rename arg "buffer" to "buffer_or_name".
10150         (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10151         it optional.
10152         (no_switch_window): Remove since the return value is not used.
10153         (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10154         Consider window as dedicated when Fwindow_dedicated_p returns a
10155         non-nil value.
10156         * lisp.h: Remove prototype for no_switch_window.
10158 2008-10-21  Jan Djärv  <jan.h.d@swipnet.se>
10160         * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10161         temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10163 2008-10-21  Kenichi Handa  <handa@m17n.org>
10165         * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10166         check Vlatin_extra_code_table.
10168 2008-10-20  Eli Zaretskii  <eliz@gnu.org>
10170         * fileio.c (Fset_file_modes): Doc fix.
10172 2008-10-19  Michael Albinus  <michael.albinus@gmx.de>
10174         * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10175         in arrays.
10177 2008-10-19  Martin Rudalics  <rudalics@gmx.at>
10179         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10180         Mention kill-buffer in doc-string.
10181         (Fset_window_buffer): Reinsert tem check removed in last commit.
10182         (Fenlarge_window, Fshrink_window): Have argument names and
10183         doc-string follow Elisp manual more closely.
10185 2008-10-18  Eli Zaretskii  <eliz@gnu.org>
10187         * fileio.c (Fset_file_modes): Doc fix.
10189 2008-10-18  Martin Rudalics  <rudalics@gmx.at>
10191         * window.c (Fwindow_width, Fset_window_start)
10192         (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10193         (Fdelete_windows_on, Freplace_buffer_in_windows):
10194         Make doc-strings follow code and Elisp manual more closely.
10195         (Fwindow_dedicated_p): Make window argument optional.
10196         (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10197         (Fset_window_buffer): Respect any non-nil dedicated value for
10198         window.  Rename "buffer" argument to "buffer_or_name".
10200 2008-10-18  Ulrich Mueller  <ulm@gentoo.org>
10202         * m/sh3.h: New file, machine description for SuperH.
10204 2008-10-17  Martin Rudalics  <rudalics@gmx.at>
10206         * window.c (Fsplit_window): Rename arg horflag to horizontal.
10208 2008-10-17  Kenichi Handa  <handa@m17n.org>
10210         * ftfont.c (ftfont_otf_features): Fix indexing
10211         gsub_gpos->FeatureList.Feature.  Check the validity of indices.
10213 2008-10-16  Magnus Henoch  <mange@freemail.hu>
10215         * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10216         (Fdbus_call_method_asynchronously): Ditto.
10217         This change makes C-h f display the argument list.
10219 2008-10-16  Chong Yidong  <cyd@stupidchicken.com>
10221         * fileio.c (Fexpand_file_name): Doc fix.
10223         * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10224         of :foreground and :background equivalent to unspecified (20.x
10225         compatibility).
10227 2008-10-15  Eli Zaretskii  <eliz@gnu.org>
10229         * buffer.c (syms_of_buffer): Doc fix.
10231 2008-10-14  Kenichi Handa  <handa@m17n.org>
10233         * font.c (font_clear_prop): When clearing font width, clear the
10234         average width field too.
10236 2008-10-12  Andreas Schwab  <schwab@suse.de>
10238         * ftfont.c (ftfont_shape_by_flt): Make static.
10239         * ftfont.h (ftfont_shape_by_flt): Don't declare.
10241         * font.c: Don't include <m17n-flt.h>.
10243 2008-10-10  Eli Zaretskii  <eliz@gnu.org>
10245         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10247 2008-10-09  Eli Zaretskii  <eliz@gnu.org>
10249         * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10250         away code.
10252 2008-10-09  Chong Yidong  <cyd@stupidchicken.com>
10254         * dispnew.c (update_text_area): Avoid looping due to large glyph
10255         overhangs (bug#1070).
10257 2008-10-09  Kenichi Handa  <handa@m17n.org>
10259         * fontset.c (face_for_char): If face->fontset is negative, just
10260         return ascii_face.
10262         * font.c (font_delete_unmatched): Fix previous change.
10263         Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10265 2008-10-09  Martin Rudalics  <rudalics@gmx.at>
10267         * frame.c (Fraise_frame): On text-only terminals select frame in
10268         order to make it visible.  (Bug#1061)
10270 2008-10-08  Chong Yidong  <cyd@stupidchicken.com>
10272         * fontset.c (fontset_find_font): Check frame validity.
10274 2008-10-07  Chong Yidong  <cyd@stupidchicken.com>
10276         * gtkutil.c (xg_display_open): Reset default display if none exists.
10277         (xg_display_close): Allow Emacs to close all displays (bug#985).
10279 2008-10-06  Andreas Schwab  <schwab@suse.de>
10281         * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10283 2008-10-06  Chong Yidong  <cyd@stupidchicken.com>
10285         * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
10287         * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
10289         * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10290         during initialization.
10292 2008-10-04  Eli Zaretskii  <eliz@gnu.org>
10294         * xdisp.c (redisplay_internal): If frame switched, redisplay the
10295         whole thing on MSDOS frames as well as on a TTY.
10297         * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10298         well as for TTY.
10299         (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10300         well as on a TTY.
10302         * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10303         as well as for TTY.
10305         * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10307         * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10308         MSDOS frames as well.
10310 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
10312         * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10313         correct arguments.
10314         * menu.c (find_and_return_menu_selection): Add cast.
10316 2008-10-03  Glenn Morris  <rgm@gnu.org>
10318         * emacs.c (USAGE1): Add --daemon.
10320 2008-10-02  Eli Zaretskii  <eliz@gnu.org>
10322         * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10323         100, so it's in percents as advertised.
10325 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
10327         * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10328         (ns_output.current_cursor, ns_output.desired_cursor)
10329         (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10330         (FRAME_NEW_CURSOR_COLOR): Remove.
10332         * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
10333         (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
10334         enumeration (HOLLOW_BOX_CURSOR, etc.).
10336         * nsterm.m (ns_frame_rehighlight): Remove commented code.
10337         (draw_window_cursor): Simplify code.
10338         (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10339         Don't change cursor type.  In latter, call rehighlight instead of doing
10340         updates manually.
10341         (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10342         Use core Emacs cursor types.
10344         * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
10346 2008-10-02  Martin Rudalics  <rudalics@gmx.at>
10348         * process.c (Faccept_process_output): Fix doc-string.
10350 2008-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
10352         * gmalloc.c (__sbrk): Also define for uClibc.
10354         * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10355         for uClibc.
10357 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
10359         * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10360         styles.
10361         (nsfont_open): Reenable the cache.
10363 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
10365         * font.c (font_matching_entity): Reflect ATTRS in font selection.
10366         (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10368 2008-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
10370         * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10371         a suspended terminal.
10373 2008-09-30  Michael Albinus  <michael.albinus@gmx.de>
10375         * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10377 2008-09-30  Eli Zaretskii  <eliz@gnu.org>
10379         * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10381 2008-09-30  Chong Yidong  <cyd@stupidchicken.com>
10383         * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10384         in a continued line coincides with a line beginning.
10386 2008-09-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
10388         * nsfont.m (nsfont_trait_distance): Fix bug.
10389         (nsfont_list): Return a list rather than a vector (syncs with Handa
10390         changes of 2008-05-14).
10391         (nsfont_open): Improve logging.
10393 2008-09-29  Andreas Schwab  <schwab@suse.de>
10395         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10397 2008-09-28  Martin Rudalics  <rudalics@gmx.at>
10399         * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10400         name as char-resolve-modifiers.
10401         Reported by: Markus Triska <markus.triska@gmx.at>
10403 2008-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
10405         * dispnew.c (init_display): Return earlier when running as a daemon.
10407 2008-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
10409         * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10411 2008-09-27  Eli Zaretskii  <eliz@gnu.org>
10413         * composite.c (Fcomposition_get_gstring)
10414         (Fcompose_region_internal, Fcompose_string_internal)
10415         (Ffind_composition_internal): Doc fix.
10416         (syms_of_composite) <compose-chars-after-function>: Doc fix.
10417         (syms_of_composite) <auto-composition-function>: Doc fix.
10418         (syms_of_composite) <composition-function-table>: Doc fix.
10420 2008-09-25  Chong Yidong  <cyd@stupidchicken.com>
10422         * search.c (wordify): New argument for lax word-ends.
10423         (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10425 2008-09-24  Dan Nicolaescu  <dann@ics.uci.edu>
10427         * lisp.h (is_daemon): Declare.
10428         * dispnew.c (init_display): Do not try to initialize the terminal
10429         when running as a daemon.
10431 2008-09-22  Chong Yidong  <cyd@stupidchicken.com>
10433         * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10434         x_display_pixel_height.
10436 2008-09-22  Martin Rudalics  <rudalics@gmx.at>
10438         * undo.c (record_point): Don't call Fundo_boundary for first
10439         change.  (Bug#731)
10441 2008-09-22  Juanma Barranquero  <lekktu@gmail.com>
10443         * emacs.c (Fdaemonp): Doc fix.
10445 2008-09-22  Dan Nicolaescu  <dann@ics.uci.edu>
10447         * emacs.c (main): Place #ifdef in the proper place.
10449 2008-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
10451         * emacs.c (standard_args): Add --daemon.
10452         (main): Disconnect from the terminal when --daemon is passed.
10453         (is_daemon): New variable.
10454         (Fdaemonp): New function.
10455         (syms_of_emacs): Defsubr it.
10457 2008-09-20  Chong Yidong  <cyd@stupidchicken.com>
10459         * xdisp.c (get_next_display_element): Handle string display
10460         correctly when checking for the end of a box run.
10462 2008-09-20  Glenn Morris  <rgm@gnu.org>
10464         * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10465         (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10466         (Frename_file): Avoid copying to trash if a rename involves
10467         a delete.  (Bug#964).
10469 2008-09-20  Eli Zaretskii  <eliz@gnu.org>
10471         * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10472         (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10473         frames as well as termcap frames.
10474         (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10475         get_named_tty.
10477 2008-09-19  Eli Zaretskii  <eliz@gnu.org>
10479         * process.c (procfs_system_process_attributes): Fix cmdline in
10480         case /proc/PID/cmdline is empty.
10482         * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10483         x_display_pixel_height.
10485 2008-09-19  Juanma Barranquero  <lekktu@gmail.com>
10487         * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10489         * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10490         (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10492 2008-09-19  Dan Nicolaescu  <dann@ics.uci.edu>
10494         * dispextern.h (struct it): Move line_wrap away from the middle of
10495         bitfields.  Move voffset in struct iterator_stack_entry after the
10496         bitfields.  Move tab_width near after another short.
10498 2008-09-18  Dan Nicolaescu  <dann@ics.uci.edu>
10500         * frame.h (struct frame): Move alpha from the middle of bitfields.
10502         * window.h (struct window): Move frozen_window_start_p after the
10503         rest of the bitfields to reduce padding.
10505 2008-09-18  Chong Yidong  <cyd@stupidchicken.com>
10507         * xterm.h (x_display_info): Remove `height' and `width' members.
10509         * nsterm.h (ns_display_info): Remove `height' and `width' members.
10511         * w32term.h (w32_display_info): Remove `height', `width',
10512         `height_in', and `width_in' members.
10514         * xterm.c (x_display_pixel_height, x_display_pixel_width):
10515         New functions.
10516         (x_calc_absolute_position): Use them.
10517         (x_term_init): Omit removed `height' and `width' members.
10519         * w32term.c (x_display_pixel_height, x_display_pixel_width):
10520         New functions.
10521         (w32_read_socket, x_calc_absolute_position): Use them.
10522         (w32_initialize_display_info, w32_term_init): Omit removed members
10523         of w32_display_info.
10525         * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10526         New functions.
10527         (ns_initialize_display_info): Omit removed members of ns_display_info.
10529         * xterm.c (x_display_pixel_height, x_display_pixel_width):
10530         New functions.
10531         (x_calc_absolute_position): Use them.
10532         (x_term_init): Omit removed `height' and `width' members.
10534         * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10535         (compute_tip_xy):
10536         * frame.c (x_fullscreen_adjust):
10537         * xmenu.c (menu_position_func): Use x_display_pixel_height and
10538         x_display_pixel_width.
10540 2008-09-18  Kenichi Handa  <handa@m17n.org>
10542         * composite.c (fill_gstring_header): Don't check FROM and TO here.
10543         (composition_compute_stop_pos): Fix handling of static composition.
10544         (Fcomposition_get_gstring): Check FROM and TO at first.
10546 2008-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
10548         * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
10549         mixup (YAILOM).
10551 2008-09-17  Chong Yidong  <cyd@stupidchicken.com>
10553         * indent.c (Fvertical_motion): Use position reported by iterator
10554         instead of PT for determining screen motion (bug#943).
10556 2008-09-17  Romain Francoise  <romain@orebokech.com>
10558         * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10560 2008-09-17  Kenichi Handa  <handa@m17n.org>
10562         * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10564         * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10565         if necessary.
10567 2008-09-16  Kenichi Handa  <handa@m17n.org>
10569         * coding.c (make_conversion_work_buffer): Avoid calling
10570         Fget_buffer_create if it is not necessary.
10572 2008-09-15  Martin Rudalics  <rudalics@gmx.at>
10574         * window.c (Fselect_window): Don't update window_select_count and
10575         use_time when norecord is not nil.
10577 2008-09-14  Kenichi Handa  <handa@m17n.org>
10579         * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10580         specpdl_ptr.
10582 2008-09-12  Kenichi Handa  <handa@m17n.org>
10584         * indent.c (scan_for_column): Don't handle automatic composition
10585         if the current buffer is not associated with a window.
10587         * composite.c (composition_reseat_it): If the current buffer is
10588         not associated with a window, ignore the automatic composition.
10589         (find_automatic_composition): Likewise.
10591 2008-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
10593         * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10594         (Fgpm_mouse_stop): Use it.
10595         * termhooks.h (close_gpm): Declare.
10596         * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10597         connection if Gpm_GetEvent fails.
10599         * window.c (set_window_buffer): Always preserve current-buffer.
10601 2008-09-12  Glenn Morris  <rgm@gnu.org>
10603         * charset.c (init_charset): Warn if etc/charsets not found.  (Bug#909)
10605 2008-09-11  Glenn Morris  <rgm@gnu.org>
10607         * charset.c (charset-map-path): Doc fix.
10609 2008-09-10  Kenichi Handa  <handa@m17n.org>
10611         * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10613         * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10614         compose a grapheme cluster with the preceding base glyph.
10616         * composite.c (composition_compute_stop_pos): Fix previous change.
10617         Reset cmp_it->id to -1 at first.
10619 2008-09-10  Glenn Morris  <rgm@gnu.org>
10621         * Makefile.in (character.o, chartab.o): Fix config.h typo.
10623 2008-09-09  Chong Yidong  <cyd@stupidchicken.com>
10625         * keyboard.c (read_key_sequence): Reapply translation maps when
10626         switching keyboards.
10628 2008-09-09  Kenichi Handa  <handa@m17n.org>
10630         * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10631         characters.
10633         * composite.c (FORWARD_CHAR): Fix calculation
10634         of (POSITION).pos_byte.
10635         (composition_compute_stop_pos): Limit the search of composition to
10636         at most 500 characters ahead.  If we reach the limit or find a
10637         newline, set cmp_it->ch to -2 and return 0.
10638         (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10640 2008-09-08  Kenichi Handa  <handa@m17n.org>
10642         * indent.c (Fvertical_motion): Be sure to set
10643         it_overshoot_expected if it.cmp_it.id is non-negative.
10645 2008-09-07  Andreas Schwab  <schwab@suse.de>
10647         * callproc.c (Fcall_process): Don't hold references to string data
10648         across garbage collection.  Move initialisation of new_argv down
10649         to avoid compiler bug.
10651 2008-09-07  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
10653         * process.c (Fsystem_process_attributes): Doc fix.
10655 2008-09-07  Chong Yidong  <cyd@stupidchicken.com>
10657         * callproc.c (Fcall_process): Canonicalize current directory name.
10659         * xdisp.c (move_it_to): When moving by vpos, ensure that the
10660         iterator advances to the next line if the current line ends in a
10661         continued tab.
10663 2008-09-07  Teodor Zlatanov  <tzz@lifelogs.com>
10665         * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10666         member to point to cmp_from.
10668         * xdisp.c: Doc fix for references to gidx data member.
10670 2008-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
10672         * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10674 2008-09-07  Kenichi Handa  <handa@m17n.org>
10676         * composite.c (FORWARD_CHAR): Check STOP after
10677         incrementing (POSITION).pos.
10679 2008-09-06  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
10681         * process.c (Fsystem_process_attributes): Doc fix.
10683 2008-09-06  Chong Yidong  <cyd@stupidchicken.com>
10685         * keyboard.c (Ftop_level): Doc fix.
10687 2008-09-06  Eli Zaretskii  <eliz@gnu.org>
10689         * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10690         minibuffer, don't let lower part of menu invade the echo area.
10692         * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10693         "char *q" to access menu text and advance through it.  Revert the
10694         change that displayed ">" instead of ASCII character 0x10.
10696 2008-09-05  Eli Zaretskii  <eliz@gnu.org>
10698         * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10699         toggle boxes and radio buttons on MS-DOS as well.
10701 2008-09-05  Kenichi Handa  <handa@m17n.org>
10703         * composite.c (autocmp_chars): Check lookback count.
10704         (composition_compute_stop_pos): Set cmp_it->lookback.
10705         (composition_reseat_it): Check lookback count.
10706         (struct position_record): New struct.
10707         (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10708         (find_automatic_composition): New function.
10709         (composition_adjust_point): Use find_automatic_composition.
10711         * dispextern.h (struct composition_it): New member lookback.
10713 2008-09-02  Chong Yidong  <cyd@stupidchicken.com>
10715         * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10716         if moving by a single line.
10718 2008-09-02  Andreas Schwab  <schwab@suse.de>
10720         * xterm.c (x_delete_display): Fix merge error.
10722         * fileio.c (Fexpand_file_name): Remove unused variables.
10724 2008-09-02  Eli Zaretskii  <eliz@gnu.org>
10726         * fileio.c (Fexpand_file_name): Copy argument `name' into local
10727         storage on all platforms, not just on DOS_NT.
10729 2008-09-02  Jason Rumney  <jasonr@gnu.org>
10731         * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10732         Ensure mouse is not grabbed after menu is finished.
10734 2008-09-01  Chong Yidong  <cyd@stupidchicken.com>
10736         * xfaces.c (Finternal_set_alternative_font_family_alist)
10737         (Finternal_set_alternative_font_registry_alist): Properly copy
10738         entire alist structure.
10740 2008-09-01  Kenichi Handa  <handa@m17n.org>
10742         * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
10743         representative chars of the script is a vector.
10744         (ftfont_list): Handle the case where the representative chars of
10745         the script is a vector.
10747         * character.c (syms_of_character): Docstring of
10748         script-representative-chars fixed.
10750 2008-08-31  Eli Zaretskii  <eliz@gnu.org>
10752         * msdos.c (BUILD_CHAR_GLYPH): New macro.
10753         (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10754         the menu.  Allocate larger buffer for `text', to account for
10755         possible ^C characters.
10757 2008-08-31  Martin Rudalics  <rudalics@gmx.at>
10759         * xdisp.c (prepare_menu_bars): Don't call
10760         Vwindow_size_change_functions with arg Qt.
10762 2008-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
10764         * font.h (font_range):
10765         * fileio.c (report_file_error):
10766         * composite.c (composition_update_it): Yet another int/Lisp_Object
10767         mixup (YAILOM).
10769 2008-08-30  Glenn Morris  <rgm@gnu.org>
10771         * data.c (Fmake_variable_frame_local): Doc fix.
10773         * frame.c (Fmodify_frame_parameters): Doc fix.
10775 2008-08-30  Eli Zaretskii  <eliz@gnu.org>
10777         * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10778         needed by GetTokenInformation.
10779         (w32_system_process_attributes): Check return values of all system
10780         APIs.
10782         * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10783         only when the state changes.
10784         (IT_update_begin, IT_update_end): Add termscript trace.
10786         * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10787         clipboard is unavailable.  Set dst to NULL if it doesn't point to
10788         malloc'ed data.
10789         (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10790         passing random values to xfree.
10792         * dispnew.c (init_display): Set `tty's association in frame's
10793         parameters alist to the name of the terminal device, if that is known.
10795 2008-08-29  Jason Rumney  <jasonr@gnu.org>
10797         * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10799 2008-08-29  Eli Zaretskii  <eliz@gnu.org>
10801         * composite.c (fill_gstring_body): Avoid compiler warnings.
10803         * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10804         LGLYPH_SET_CODE to avoid compiler warnings.
10806         * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
10808         * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10810         * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10811         LGLYPH_SET_CODE.
10813 2008-08-29  Kenichi Handa  <handa@m17n.org>
10815         * fileio.c (report_file_error): Don't downcase the first character
10816         of errstring if it is still unibyte.
10818 2008-08-29  Kenichi Handa  <handa@m17n.org>
10820         These changes are to re-implement the automatic composition so
10821         that it doesn't use text properties.
10823         * Makefile.in (ftfont.o): Depend on composite.h.
10824         (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10826         * character.h (Vunicode_category_table): Extern it.
10828         * character.c (Vunicode_category_table): New variable.
10829         (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10831         * chartab.c (optimize_sub_char_table): Perform more greedy
10832         optimization.
10834         * composite.h (enum composition_method):
10835         Delete COMPOSITION_WITH_GLYPH_STRING.
10836         (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10837         (Vcomposition_function_table): Extern it.
10838         (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10839         (composition_gstring_put_cache, composition_gstring_from_id)
10840         (composition_gstring_p, composition_gstring_width)
10841         (composition_compute_stop_pos, composition_reseat_it)
10842         (composition_update_it, composition_adjust_point): Extern them.
10843         (Fcomposition_get_gstring): EXFUN it.
10845         * composite.c: Include window.h, frame.h, dispextern.h, font.h.
10846         (Vcomposition_function_table)
10847         (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
10848         (gstring_hash_table, gstring_work, gstring_work_headers):
10849         New variables.
10850         (gstring_lookup_cache, composition_gstring_put_cache)
10851         (composition_gstring_from_id, composition_gstring_p)
10852         (composition_gstring_width, fill_gstring_header)
10853         (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10854         (composition_reseat_it, composition_update_it)
10855         (composition_adjust_point, Fcomposition_get_gstring): New functions.
10856         (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10857         and gstring_work_headers.  DEFVAR_LISP composition-function-table.
10858         Defsubr composition_get_gstring.
10860         * dispextern.h (struct glyph): New union u.cmp.  Delete the member
10861         cmp_id.
10862         (struct glyph_string): Delete the member gidx.  New members
10863         cmp_id, cmp_from, and cmp_to.
10864         (enum it_method): Delete GET_FROM_COMPOSITION.
10865         (struct composition_it): New struct.
10866         (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10867         Delete c, len, cmp_id, cmp_len in u.comp.
10869         * font.h (enum lgstring_indices): Delete it.
10870         (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
10871         (enum lglyph_indices): Likewise.
10872         (font_range): Adjust extern.
10873         (font_fill_lglyph_metrics): Extern it.
10875         * font.c (QCf): New variable.
10876         (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10877         (font_prepare_composition): Delete this function.
10878         (font_range): Type and arguments changed.
10879         (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10880         (font_fill_lglyph_metrics): New function.
10881         (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
10882         (syms_of_font): DEFSYM QCf.  Delete defsubr for
10883         Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10884         Defsubr Sfont_shape_gstring.
10886         * fontset.h (font_for_char): Extern it.
10888         * fontset.c (font_for_char): New function.
10890         * ftfont.c: Include composite.h.
10891         (ftfont_resolve_generic_family): Add langset "en" to pattern.
10892         (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10894         * indent.c: Include composite.h and dispextern.h.
10895         (check_composition): Delete this function.
10896         (scan_for_column): Handle composition by
10897         composition_compute_stop_pos, composition_reseat_it, and
10898         composition_update_it.
10899         (compute_motion): Likewise.
10900         (Fvertical_motion): Fix checking of composition.
10902         * keyboard.c (adjust_point_for_property): Check composition by
10903         composition_adjust_point.
10905         * nsterm.m (ns_draw_glyph_string): Adjust for the change of
10906         struct glyph_string.
10908         * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10909         (append_composite_glyph): Adjust for the change of struct it and
10910         struct glyph.
10911         (produce_composite_glyph): Likewise.
10913         * w32term.c (x_draw_composite_glyph_string_foreground):
10914         Adjust for the change of struct glyph_string.
10915         (x_draw_glyph_string): Likewise.
10917         * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10918         (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10920         * xdisp.c: Include font.h.
10921         (it_props): Delete the entry for Qauto_composed.
10922         (init_iterator): Initialize it->cmp_it.id to -1.
10923         (compute_stop_pos): Call composition_compute_stop_pos.
10924         (face_before_or_after_it_pos): Adjust for the change of struct it.
10925         (handle_auto_composed_prop): Delete it.
10926         (handle_composition_prop): Handle only static composition.
10927         (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10928         from xassert.  Initialize it->cmp_it.stop_pos.
10929         (push_it): Adjust for the change of struct it.
10930         (pop_it): Likewise.
10931         (get_next_element): Delete next_element_from_composition.
10932         (CHAR_COMPOSED_P): New macro.
10933         (get_next_display_element): For automatic composition, get a face
10934         from the font in the glyph-string.
10935         (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
10936         check composition by it->cmp_it.id.  Delete GET_FROM_COMPOSITION case.
10937         (next_element_from_string): Check if the character at the current
10938         position is composed by CHAR_COMPOSED_P.
10939         (next_element_from_buffer): Likewise.
10940         (next_element_from_composition): Adjust for the change of struct it.
10941         Update it->cmp_it.
10942         (dump_glyph): Adjust for the change of struct glyph.
10943         (fill_composite_glyph_string): Adjust for the change of struct
10944         it and struct glyph.  Don't handle automatic composition here.
10945         (fill_gstring_glyph_string): New function.
10946         (x_get_glyph_overhangs): Handle automatic composition.
10947         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
10948         (BUILD_GSTRING_GLYPH_STRING): New macro.
10949         (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10950         automatic composition.
10951         (append_composite_glyph): Adjust for the change of struct it and
10952         struct glyph.
10953         (x_produce_glyphs): Adjust for the change of struct it.
10955         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10956         the change of struct glyph_string.
10957         (x_draw_glyph_string): Likewise.
10959 2008-08-29  Glenn Morris  <rgm@gnu.org>
10961         * buffer.c (word-wrap): Doc fix.
10962         * xdisp.c (truncate-partial-width-windows): Doc fix.
10963         Increase default to 50.
10965 2008-08-29  Chong Yidong  <cyd@stupidchicken.com>
10967         * xdisp.c (update_tool_bar_unwind): New function.
10968         (update_tool_bar): Temporarily set selected frame before building
10969         tool-bar items.
10971 2008-08-28  Michael Albinus  <michael.albinus@gmx.de>
10973         * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10974         snprintf, respectively.
10975         (xd_append_arg): Convert strings with Fstring_make_unibyte.
10977 2008-08-28  Chong Yidong  <cyd@stupidchicken.com>
10979         * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10980         LDFLAGS to GNUstep CC invocation.
10982 2008-08-27  Chong Yidong  <cyd@stupidchicken.com>
10984         * indent.c (Fvertical_motion): Revert last change.  Handle the
10985         general case where we are moving forward, and PT spans multiple
10986         screen lines.
10988         * eval.c (find_handler_clause): Temporarily increase
10989         max-lisp-eval-depth while printing the backtrace buffer, to
10990         guarantee that help-mode code can run.
10992 2008-08-27  Eli Zaretskii  <eliz@gnu.org>
10994         * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10995         colors under -rv.
10996         (IT_set_frame_parameters): Don't swap foreground and background
10997         colors if `(reverse . t)' is present in the frame properties.
10998         (internal_terminal_init): Call init_frame_faces only for the
10999         initial frame.
11001 2008-08-27  Andreas Schwab  <schwab@suse.de>
11003         * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11005 2008-08-27  Andreas Schwab  <schwab@suse.de>
11007         * search.c (search_buffer): Set char_base to zero only at the end.
11009 2008-08-27  Kenichi Handa  <handa@m17n.org>
11011         * fileio.c (report_file_error): Fix handling of multibyte error string.
11013 2008-08-27  Andreas Seltenreich  <seltenreich@gmx.de>
11015         * xterm.c (x_term_init): Temporarily hide the partially
11016         initialized terminal while calling vendor-specific-keysyms.
11018 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
11020         * msdos.c (internal_terminal_init): Most initializations done only
11021         once, especially initial_screen_colors[] and termscript open.
11023 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
11025         * eval.c (Fcondition_case): Doc fix.
11027         * widgetprv.h (EmacsFramePart): Change font member to the new font
11028         struct.
11030         * widget.c: Include character.h and font.h for XSETFONT.
11031         (setup_frame_gcs): Compute X font id from font struct, just once.
11033 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
11035         * term.c (get_named_tty): Fix last change.
11037 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
11039         * indent.c (Fvertical_motion): If moving forward starting from a
11040         multi-line string, move the iterator to the last line of that string.
11042 2008-08-25  Eli Zaretskii  <eliz@gnu.org>
11044         * frame.c (do_switch_frame): Mark previously displayed frame as
11045         obscured for FRAME_MSDOS_P frames as well.
11047 2008-08-24  Eli Zaretskii  <eliz@gnu.org>
11049         * frame.c (make_terminal_frame): Initialize f->terminal,
11050         f->terminal->reference_count, and scroll bars on MS-DOS as well.
11051         Set the top frame to newly created frame.
11052         (Fmake_terminal_frame): Reuse the_only_display_info.
11054         * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11055         estimating available memory.
11057 2008-08-23  David Reitter  <david.reitter@gmail.com>
11059         * nsterm.m (ns_draw_window_cursor): Don't call
11060         NSDisableScreenUpdates and NSEnableScreenUpdates on
11061         non-NS_IMPL_COCOA systems.
11063 2008-08-23  Andreas Schwab  <schwab@suse.de>
11065         * process.c (procfs_system_process_attributes): Fix use of
11066         uninitialized variables.
11068 2008-08-23  Eli Zaretskii  <eliz@gnu.org>
11070         * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11072         * dispnew.c (init_display): Remove MS-DOS specific conditions for
11073         calling tty-set-up-initial-frame-faces.
11075         * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11076         Allow MSDOS frames along with X frames.
11078         * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11079         addition to output_termcap.
11081         * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11083         * termchar.h (FRAME_TTY): Support output_msdos_raw.
11084         (struct tty_display_info) [MSDOS]: Add fields related to mouse
11085         highlight.
11087         * process.c [!subprocesses]: Define QCname.
11088         (syms_of_process): Intern and staticpro it.
11090         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11091         Adjust for changes in encoding/decoding routines.
11092         Use encode_coding_object and decode_coding_object instead of
11093         encode_coding and decode_coding.
11095         * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11097         * dosfns.c: Include frame.h before termhooks.h.
11098         (dos_cleanup): Use CURTTY ()->termscript instead of a global
11099         variable termscript.
11101         * s/msdos.h (USER_FULL_NAME): Define.
11102         (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11104         * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11105         (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11106         pw->pw_gecos.
11108         * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11109         SELECTED_FRAME as additional (1st) argument.
11110         (tty_read_avail_input): Handle output_msdos_raw in
11111         addition to output_termcap.
11113         * msdos.c: Include frame.h before termhooks.h.
11114         (mouse_on, mouse_off, mouse_moveto, mouse_init)
11115         (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11116         (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11117         (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11118         (IT_set_terminal_modes, IT_reset_terminal_modes)
11119         (IT_set_frame_parameters): Use tty->termscript instead of a global
11120         variable termscript.
11121         (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11122         global variable terminal_coding.  Don't refer to
11123         Vnonascii_translation_table.
11124         (internal_terminal_init): Set Vwindow_system in current_kboard.
11125         Don't use TTY_CHAR_INS_DEL_OK.  Set Vinitial_window_system.
11126         Announce date and time of session start, if termscript is open.
11127         Don't zero out the_only_display_info (it is done in
11128         term.c:init_tty).  Open termscript only of not already open.
11129         Log "SCREEN SAVED" here, instead of IT_set_terminal_modes.  Init mouse
11130         here instead of dos_ttraw.  Don't initialize display if this is an
11131         initial tty.  Don't set FRAME_FONT.
11132         (Vwindow_system_version): Bump to 23.
11133         (dos_ttraw): Accept a TTY argument; all callers fixed.  If mouse
11134         is available, set up mouse_position_hook.
11135         (dos_ttraw, IT_set_terminal_modes): If called with initial
11136         terminal, do nothing.
11137         (IT_set_frame_parameters): Handle the Qtty_type frame
11138         parameter by calling internal_terminal_init.
11139         (dos_set_window_size, show_mouse_face)
11140         (clear_mouse_face, IT_note_mode_line_highlight)
11141         (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11142         (dos_rawgetc): Use tty_display_info instead of x_display_info.
11143         (initialize_msdos_display): New function.
11144         (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11145         (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11146         (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11147         (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11148         Accept additional argument: a pointer to a frame.  Update all callers.
11149         (request_sigio, unrequest_sigio): Don't define, now defined on
11150         sysdep.c.
11151         (IT_write_glyphs): Rewrite to use encode_terminal_code.
11153         * term.c [MSDOS]: Include msdos.h.
11154         (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch.  Change cpp
11155         conditional to DOS_NT.  Allow only one call to this function in a
11156         session.  Don't allocate a new struct tty_display_info; instead,
11157         reuse the_only_display_info.  Call get_tty_size to get screen
11158         dimensions.  Call init_baud_rate to set bad_rate.
11159         (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11160         (Fsuspend_tty) [MSDOS]: Don't close input and output.
11161         (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11162         (get_tty_terminal, get_named_tty, Ftty_type)
11163         (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11164         output_termcap.
11165         (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11166         Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11167         only when subprocesses are supported.
11169         * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11170         f->output_data.x.
11171         (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11172         terminal devices.
11174         * msdos.h: Remove definition of struct x_display_info and struct
11175         x_output.
11176         (FRAME_FONT): Use output_data.tty.
11177         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11178         (struct x_display_info): Rename from display_info.  Update all users in
11179         msdos.c.
11180         (struct x_output): Remove background_pixel and foreground_pixel.
11181         (the_only_display_info): Rename from the_only_x_display.
11182         (dos_ttraw): Update prototype.
11184         * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11185         (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11187 2008-08-23  Jason Rumney  <jasonr@gnu.org>
11189         * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11190         (fn_TIFFSetDirectory): New library function used.
11191         (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11192         (tiff_load): Use :index to select among multiple images.  Set count
11193         property when multiple images exist.
11194         (gif_format): Use :index, not :image.
11196 2008-08-23  Chong Yidong  <cyd@stupidchicken.com>
11198         * xdisp.c (try_scrolling): Check INT_MAX instead of
11199         MOST_POSITIVE_FIXNUM for maximum integer value.  Include limits.h
11200         to obtain INT_MAX.
11202 2008-08-21  İsmail Dönmez  <ismail@namtrac.org>  (tiny change)
11204         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11206 2008-08-21  Christian Faulhammer  <opfer@gentoo.org>  (tiny change)
11208         * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11209         GNUstep library location.
11211 2008-08-21  Chong Yidong  <cyd@stupidchicken.com>
11213         * xfaces.c (x_update_menu_appearance): Check validity of menu font
11214         before using it.
11216         * puresize.h (BASE_PURESIZE): Increase to 1250000.
11218 2008-08-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
11220         * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11221         (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11222         * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11223         * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11224         (EmacsApp-cursor_blink_handler): Remove declaration.
11225         * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11226         match 01 Feb 2008 changes in xterm.c.
11227         (ns_read_socket): Add cast to avoid warning.
11228         (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11229         GNUstep.
11231 2008-08-20  Chong Yidong  <cyd@stupidchicken.com>
11233         * xselect.c (x_get_foreign_selection): Return nil if desired
11234         selection could not be obtained, instead of signalling an error.
11236 2008-08-20  David Reitter  <david.reitter@gmail.com>
11238         * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11239         * nsterm.m: Remove ns-specific code for cursor blinking.
11240         (ns_draw_window_cursor): Clear cursor properly rather than
11241         redrawing the area.  Respect width of bar cursors.
11242         These changes enable the use of generic blink-cursor-mode and
11243         generic cursor types in NS and support smooth cursor movements (do
11244         not blink off after command).
11245         * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11246         Nextstep, too.
11248 2008-08-19  Kenichi Handa  <handa@m17n.org>
11250         * font.c (Vfont_log_deferred): New variable.
11251         (font_add_log): Check Vfont_log_deferred.
11252         (font_deferred_log): New function.
11254         * font.h (font_deferred_log): Extern it.
11256         * fontset.c (reorder_font_vector): Use encoding charset of fonts
11257         for sorting.
11258         (face_for_char): Use deferred log.
11260 2008-08-18  Kenichi Handa  <handa@m17n.org>
11262         * fontset.c (face_for_char): Add font log.
11264         * font.c (font_add_log): Add the font properties :script, :lang,
11265         and :otf in the log.
11267 2008-08-17  Chong Yidong  <cyd@stupidchicken.com>
11269         * xdisp.c: Remove dead code.
11270         (handle_invisible_prop, next_overlay_string): Defer call to
11271         setup_for_ellipsis.
11272         (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11274 2008-08-15  Chong Yidong  <cyd@stupidchicken.com>
11276         * xfaces.c (lookup_derived_face): Properly handle possible zero
11277         return value of get_lface_attributes.
11278         (merge_faces): Don't tell lookup_derived_face to signal an error
11279         if face is not found.
11281         * dired.c (Fdirectory_files): Doc fix.
11283         * process.c (make_process): Initialize kill_without_query struct
11284         member.
11286 2008-08-15  Eli Zaretskii  <eliz@gnu.org>
11288         * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11289         Alternative calculation of totphys for Visual Studio 6.
11291         * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11293         * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11294         Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11295         All users changed.
11296         (stat): Only root directory passed to GetDriveType.  Allow RAM
11297         disk as well as local fixed disk when w32-get-true-file-attributes
11298         is set to `local'.
11299         (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11300         (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11301         (w32_cached_id, w32_add_to_cache): New functions.
11302         (get_name_and_id): Look account names in the cache before calling
11303         lookup_account_sid.
11304         (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11305         New initialization flags.
11306         (globals_of_w32): Initialize them to zero.
11307         (w32_system_process_attributes): Use w32_cached_id and
11308         w32_add_to_cache.
11310 2008-08-14  Lawrence Mitchell  <wence@gmx.li>
11312         * lread.c (Fread_char, Fread_char_exclusive): If no character
11313         event is read before timeout is reached, return nil, rather than
11314         converting to a number.
11316 2008-08-14  Chong Yidong  <cyd@stupidchicken.com>
11318         * fns.c (use_dialog_box): Doc fix.
11320         * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11321         on OS X.
11323 2008-08-13  Chong Yidong  <cyd@stupidchicken.com>
11325         * frame.c (Qns_parse_geometry): New var.
11326         (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11328 2008-08-11  Chong Yidong  <cyd@stupidchicken.com>
11330         * xdisp.c (x_produce_glyphs): Handle the case when font has no
11331         space character in calculating tabs.
11333 2008-08-11  Dan Nicolaescu  <dann@ics.uci.edu>
11335         * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11337 2008-08-10  Glenn Morris  <rgm@gnu.org>
11339         * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11340         silence gcc "limited range of data type" warnings in some
11341         make_fixnum_or_float calls.
11343 2008-08-09  Eli Zaretskii  <eliz@gnu.org>
11345         * w32.c (w32_system_process_attributes): If the process does not
11346         exist, return nil.
11348         * w32.c: Include thelp32.h, psapi.h and coding.h.
11349         (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11350         declarations.
11351         (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11352         (Process32Next_Proc): New typedefs.
11353         (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11354         (g_b_init_process32_next, g_b_init_open_thread_token)
11355         (g_b_init_impersonate_self, g_b_init_revert_to_self)
11356         (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11357         (g_b_init_get_process_working_set_size)
11358         (g_b_init_global_memory_status_ex): New static variables.
11359         (globals_of_w32): Initialize them.
11360         (create_toolhelp32_snapshot, process32_first, process32_next)
11361         (open_thread_token, impersonate_self, revert_to_self)
11362         (get_process_memory_info, get_process_working_set_size)
11363         (global_memory_status, global_memory_status_ex): New wrapper
11364         functions.
11365         (w32_list_system_processes, w32_system_process_attributes)
11366         (enable_privilege, restore_privilege, ltime, process_times):
11367         New functions.
11368         (convert_time_raw): New function.
11369         (convert_time): Remove conversion of FILETIME into time in 100
11370         nsec units, call convert_time_raw instead.
11372         * process.h (w32_list_system_processes, w32_system_process_attributes):
11373         Add prototypes.
11374         (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11375         (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11376         (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11377         (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11379         * process.c (Fsystem_process_attributes): Doc fix.
11381 2008-08-08  Chong Yidong  <cyd@stupidchicken.com>
11383         * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11384         a continued multi-char glyph; if so, advance to the actual glyph.
11386 2008-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
11388         * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11390         * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11391         (.m.o): Use it.
11392         * config.in: Regenerate.
11394 2008-08-07  Chong Yidong  <cyd@stupidchicken.com>
11396         * xdisp.c (redisplay_window): Revert last change.
11397         (try_window): Check bottom scroll margin too.
11399 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
11401         * config.in: Regenerate.
11403         * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11404         -list-load-path-shadows'.
11405         (nsgui.h): Reduce number of things depending on it.
11407 2008-08-06  Chong Yidong  <cyd@stupidchicken.com>
11409         * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11410         instead of window-end which does the wrong thing at eob.
11411         (try_cursor_movement): Minor optimization.
11412         (redisplay_window): If scroll margin is defined, don't assume
11413         window doesn't need scrolling.
11415 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
11417         * config.in: Regenerate.
11419         * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11420         (mostlyclean): Don't delete *.d under NS.
11422         * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11424 2008-08-06  Kenichi Handa  <handa@m17n.org>
11426         * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11428 2008-08-06  Andreas Schwab  <schwab@suse.de>
11430         * config.in: Regenerate.
11432 2008-08-05  Chong Yidong  <cyd@stupidchicken.com>
11434         * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11435         forcing a window start.
11437         * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11438         (auto_save_1): Update modtime when auto-save-list-file-name is on.
11440 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
11442         * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11443         argument.
11445 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
11447         * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11448         <scroll-down-aggressively, before-change-functions>:
11449         <after-change-functions>: Reflow docstrings.
11451 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
11452             Ken Raeburn  <raeburn@gnu.org>
11454         Dock menu customization, based on a patch by Ken Raeburn, plus some
11455         other fixes.
11456         * nsmenu.m (dockMenu): New variable.
11457         (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11459         * nsterm.h (dockMenu): Declare.
11461         * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11462         (ns_term_init): Initialize dockMenu.
11463         (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11464         (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11465         left.
11467         * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11469 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
11471         * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11473         * config.in: Regenerate.
11475 2008-08-04  Seiji Zenitani  <zenitani@mac.com>
11477         * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11479 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
11481         * nsterm.h (find_and_call_menu_selection): Fix prototype.
11483 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
11485         * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11487         * keyboard.h: Comment an #endif.
11489         * lisp.h (have_menus_p): Adjust comment.
11491         * menu.c (find_and_return_menu_selection): Fix comparison with
11492         client_data.
11494         * nsmenu.m (popup_activated_flag): New variable.
11495         (popup_activated): New function.
11496         (menu-or-popup-active-p): New exported lisp definition.
11497         (ns_popup_menu): Set popup_activated_flag.  Call discard_menu_items()
11498         when popup done.
11499         (ns_popup_dialog): Set popup_activated_flag.
11501         * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11502         version for GNUstep (handled by conditional typedef in nsterm.m).
11503         (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11504         in rgb.txt).
11506         * process.c (init_process): Use DARWIN_OS, not DARWIN.
11508         * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11510         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11512         * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11513         shortcircuit if popup_activated like GTK and X toolkit.
11515         * m/inter386.h: Change DARWIN to DARWIN_OS.
11517         * s/darwin.h: Add #define DARWIN_OS.  Get rid of C_SWITCH_SYSTEM def.
11518         Change LIBS_MACGUI to LIBS_NSGUI.  Move temacs-conditionalized defs
11519         closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.  Expand
11520         comment on NO_SOCK_SIGIO.
11522 2008-08-03  Chong Yidong  <cyd@stupidchicken.com>
11524         * nsterm.m (windowDidResize): Remove stopModal call.
11526 2008-08-03  Andreas Schwab  <schwab@suse.de>
11528         * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11529         (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11531 2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
11533         * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11534         Don't use uninitialized pointer variable when using getrlimit.
11536 2008-08-02  Jason Rumney  <jasonr@gnu.org>
11538         * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11540 2008-08-02  Eli Zaretskii  <eliz@gnu.org>
11542         * alloc.c (NSTATICS): Bump to 0x640.
11544         * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11546         * lisp.h: Add prototype for directory_files_internal.
11548         * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11549         New functions.
11550         (syms_of_process): Defsubr them.  Add initializations for various
11551         Q* symbols used in procfs_system_process_attributes.
11552         (procfs_list_system_processes, procfs_system_process_attributes)
11553         [HAVE_PROCFS]: New functions.
11554         (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11555         (procfs_get_total_memory): New functions.
11557 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
11559         * xfaces.c (Fx_load_color_file): Fix previous change;
11560         it is #ifdef WINDOWSNT, not WINDOWS_NT.
11562 2008-08-01  Michael Albinus  <michael.albinus@gmx.de>
11564         * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11566 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
11568         * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11570 2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
11572         * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11574         * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11575         define NSApplicationDelegateReplySuccess.
11576         (EmacsView -converstationIdentifier): Use long instead of
11577         NSInteger for GNUstep, since it doesn't have NSInteger.
11579         * xmenu.c: Revert last change.
11581         * keyboard.h: Fix last change.
11583 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
11585         * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11586         on Windows.
11588 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
11590         Warning clearing and clean-up in NS port.
11591         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11592         Add prototypes.
11593         * nsgui.h (FACE_DEFAULT): Remove, unused.
11594         (XGCValues): Change colors to unsigned long.
11595         * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11596         nsterm.m.
11597         (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11598         (ns_list_fonts): Remove, unused.
11599         (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11600         * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11601         * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11602         (nsfont_draw): Compare face colors to 0, not nil.
11603         * nsmenu.m (struct widget_value): Drop unneeded declaration.
11604         (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11605         (-addSubmenuWithTitle:): Use NSMenuItem class.
11606         (ns_popup_menu): Use NO, not NULL, for enabled setting.
11607         * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11608         (ns_clip_to_row): Make gc arg a BOOL.
11609         (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11610         ns_clip_to_row() call.
11611         (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11612         used).  Cast FRAME_FONT assignments.
11613         (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11614         (ns_string_to_lispmod): Change arg to const char.
11615         (ns_term_init): Use NSMenuItem class.
11616         (EmacsApp -openFile:): Move to different section of file.
11617         (EmacsApp -application:openFiles:): Don't return a value, call
11618         -replyToOpenOrPrint:.
11619         (EmacsView -keyDown:): Fix up cast.
11620         (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11621         (EmacsView -menuDown:): Cast tag in call to
11622         find_and_call_menu_selection().
11623         (ns_list_fonts): Remove, unused.
11624         (ns_font_to_xlfd): Make static.  Cast result of UTF8String.
11625         (ns_fontname_to_xlfd): Make static.
11626         * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11627         Remove prototypes (now in keyboard.h).
11628         (next_menubar_widget_id): Remove, unused.
11629         * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11630         Remove prototypes (now in keyboard.h).
11631         * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11633 2008-08-01  Dan Nicolaescu  <dann@ics.uci.edu>
11635         * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11636         (floatfns.o): Depend on syssignal.h.
11637         (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11639         * systty.h: Fix previous change that removed BSD_TERMIOS.
11640         Add comments to #ifdefs.
11642 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
11644         * w32fns.c (w32-load-color-file): Remove.
11645         (x-open-connection): Use renamed Fx_load_color_file.
11646         * xfaces.c (x-load-color-file): Add.
11647         * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11648         Emacs.clr.
11649         (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11651 2008-07-31  Michael Albinus  <michael.albinus@gmx.de>
11653         * dbusbind.c (Fdbus_call_method_asynchronously)
11654         (Fdbus_method_error_internal): New defuns.
11655         (xd_read_message): Handle also reply messages.
11656         (Vdbus_registered_functions_table): Extend docstring.
11658 2008-07-31  Juanma Barranquero  <lekktu@gmail.com>
11660         * keyboard.c (gobble_input): Fix previous change.
11662 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
11664         * bitmaps/README:
11665         * xfns.c:
11666         * termcap.c:
11667         * term.c:
11668         * syswait.h:
11669         * systty.h:
11670         * systime.h:
11671         * syssignal.h:
11672         * sysdep.c:
11673         * process.h:
11674         * process.c:
11675         * print.c:
11676         * ndir.h:
11677         * lread.c:
11678         * keyboard.c:
11679         * getpagesize.h:
11680         * floatfns.c:
11681         * fileio.c:
11682         * emacs.c:
11683         * doc.c:
11684         * dispnew.c:
11685         * dired.c:
11686         * data.c:
11687         * callproc.c:
11688         * buffer.c:
11689         * README:
11690         * Makefile.in:
11691         * s/template.h:
11692         * s/msdos.h:
11693         * m/vax.h: Remove VMS support.
11694         * s/vms.h:
11695         * vlimit.h:
11696         * uaf.h:
11697         * temacs.opt:
11698         * param.h:
11699         * ioctl.h: Remove file.
11701 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
11703         * s/ms-w32.h (MULTI_KBOARD): Remove.
11704         * xterm.c:
11705         * xselect.c:
11706         * xfns.c:
11707         * window.c:
11708         * w32term.c:
11709         * w32fns.c:
11710         * terminal.c:
11711         * termhooks.h:
11712         * term.c:
11713         * sysdep.c:
11714         * keyboard.h:
11715         * keyboard.c:
11716         * frame.h:
11717         * frame.c:
11718         * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11719         * config.in: Regenerate.
11721 2008-07-30  Jason Rumney  <jasonr@gnu.org>
11723         * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11725         * w32font.c (w32font_encode_char): Leave as unicode if in range.
11726         (w32font_open_internal): Get unicode version of textmetrics.
11727         Don't enable or disable glyph indices here.
11728         (w32font_open): Disable use of glyph indices.
11730         * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11732 2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
11734         * minibuf.c (Vread_buffer_function): Doc fix.
11736 2008-07-30  John Paul Wallington  <jpw@pobox.com>
11738         * minibuf.c (read_buffer_completion_ignore_case): New var.
11739         (Fread_buffer): Use it.
11741 2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
11743         * systty.h (sensemode): Remove empty #if.  Remove reference to
11744         BSD_TERMIOS, unused.
11746         * sysdep.c: Remove reference to DGUX.
11747         (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11749         * config.in: Regenerate.
11751 2008-07-30  Jason Rumney  <jasonr@gnu.org>
11753         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11755 2008-07-29  Jason Rumney  <jasonr@gnu.org>
11757         * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11758         is populated.
11759         (uniscribe_encode_char): Always use uniscribe.
11760         Avoid using context if cache is populated.
11762 2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
11764         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11765         open menu.
11767         * gtkutil.c (menu_nav_ended): Remove.
11768         (create_menus): Remove signal connect for menu_nav_ended.
11770 2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
11772         * xdisp.c (redisplay_window): Check return value of
11773         compute_window_start_on_continuation_line before forcing a window
11774         start.
11776 2008-07-28  Jason Rumney  <jasonr@gnu.org>
11778         * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11780         * w32term.c (w32_enable_unicode_output, cleartype_active):
11781         Remove obsolete display options.
11782         (x_draw_glyph_string_background): Don't use old cleartype_active
11783         workaround.
11784         (w32_initialize): Remove cleartype_active initialization.
11785         (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11787 2008-07-28  Andreas Schwab  <schwab@suse.de>
11789         * lisp.h (init_weak_hash_tables, syms_of_font)
11790         (xd_read_queued_messages, syms_of_dbusbind): Declare.
11791         (remove_hash_entry): Don't declare.
11792         * eval.c (maybe_call_debugger): Make static and move before use.
11793         * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11794         * xdisp.c: Include "gtkutil.h" if USE_GTK.
11795         * xterm.h (x_set_frame_alpha): Declare.
11797 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
11799         * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11800         (create_menus): Connect selection-done to menu_nav_ended.
11802 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
11804         * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11805         Set Vx_resource_name to a fallback.  Replace read of 'buffered'
11806         parameter with read of 'alpha' one.
11807         (Qns_frame_parameter): Remove.
11808         * nsselect.m (selection-coding-system)
11809         (next-selection-coding-system, Vselection_coding_system)
11810         (Vnext_selection_coding_system): Drop.
11812 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
11814         * nsfns.m (do-applescript, do_applescript): Rename to
11815         ns-do-applescript, ns_do_applescript, and move within file.
11817 2008-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
11819         Remove support for Mac Carbon.
11820         * mactoolbox.c:
11821         * macterm.h:
11822         * macterm.c:
11823         * macselect.c:
11824         * macmenu.c:
11825         * macgui.h:
11826         * macfns.c:
11827         * mac.c: Remove file.
11828         * s/darwin.h:
11829         * m/intel386.h:
11830         * xfaces.c:
11831         * xdisp.c:
11832         * window.c:
11833         * tparam.c:
11834         * termhooks.h:
11835         * termcap.c:
11836         * term.c:
11837         * syssignal.h:
11838         * sysselect.h:
11839         * sysdep.c:
11840         * process.c:
11841         * lread.c:
11842         * lisp.h:
11843         * keyboard.c:
11844         * image.c:
11845         * fringe.c:
11846         * frame.h:
11847         * frame.c:
11848         * fontset.c:
11849         * font.h:
11850         * font.c:
11851         * fns.c:
11852         * fileio.c:
11853         * emacs.c:
11854         * dispnew.c:
11855         * dispextern.h:
11856         * config.in:
11857         * atimer.c:
11858         * Makefile.in: Remove code for Carbon.
11860 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11862         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11864 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11866         * macterm.h (kCGBitmapByteOrder32Host): New define for
11867         non-universal SDKs.
11869         * image.c (mac_create_cg_image_from_image, image_load_image_io)
11870         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11872         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11873         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11875 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
11877         * w32inevt.c: Include dispextern.h.
11879 2008-07-26  Andreas Schwab  <schwab@suse.de>
11881         * print.c (print_object): Fix off-by-one in last change.
11883 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
11885         * term.c (syms_of_term): Don't initialize default_orig_pair,
11886         default_set_foreground and default_set_background on Windows.
11888 2008-07-25  Jason Rumney  <jasonr@gnu.org>
11890         * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11891         ScriptItemize.  Clean up return value checking.  Remove unused
11892         variables.
11893         (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11894         shaping engine.
11896         * w32font.c (w32font_has_char): Handle the case where we can't
11897         determine the script for a character.
11899 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11901         * term.c (syms_of_term): Initialize default_orig_pair,
11902         default_set_foreground, and default_set_background.
11904         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11905         clash (bug#86).
11906         (getloadavg): Callers changed.
11908         * image.c (svg_load_image): Fix last change.
11909         (svg_load_image): Use rsvg_handle_get_dimensions to check that
11910         image size is valid.  Use g_object_unref instead of deprecated
11911         rsvg_handle_free to free rsvg handle.
11912         (x_from_xcolors): Don't initialize pixmap (silence compiler).
11914 2008-07-25  Jason Rumney  <jasonr@gnu.org>
11916         * w32font.c (w32font_encode_char): Encode characters outside BMP as
11917         surrogates before looking up glyph index.
11918         (w32font_text_extents): Encode as surrogates if falling back to
11919         functions that need UTF-16 wide chars.
11921         * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11922         BMP as surrogates before looking up glyph index.
11924 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11926         * image.c (svg_load_image): Check for failure in return value of
11927         rsvg_handle_get_pixbuf.  Free rsvg handle when done.
11929 2008-07-25  Jason Rumney  <jasonr@gnu.org>
11931         * w32font.c (Fx_select_font): Reverse sense of second arg.
11933 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
11935         * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11936         (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11938         * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11939         (PURESIZE): Use it.
11941 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
11943         * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11944         * m/alpha.h (TEXT_END):
11945         * m/ibmrs6000.h (TEXT_END):
11946         * m/macppc.h (TEXT_END):
11947         * s/darwin.h (TEXT_END):
11948         * s/msdos.h (TEXT_END): Remove, unused.
11949         * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11950         * s/cygwin.h: Remove comment.
11952         * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11953         (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11954         * m/intel386.h (DOT_GLOBAL_START):
11955         * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11956         (USG): Remove, file not used on USG platforms.
11958         * Makefile.in (HAVE_X11): Remove empty #else.
11960 2008-07-24  Andreas Schwab  <schwab@suse.de>
11962         * fileio.c (Finsert_file_contents): Properly adjust undo list
11963         after format conversion.
11965 2008-07-24  Jan Djärv  <jan.h.d@swipnet.se>
11967         * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11968         (menu_nav_ended): Remove.
11969         (create_menus): Remove signal connect for menu_nav_ended.
11970         (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11971         create_menus.
11972         (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11974 2008-07-23  Jason Rumney  <jasonr@gnu.org>
11976         * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11977         with opened font.
11978         (w32font_open): Set font type to gdi.
11980         * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11982 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
11984         * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11985         * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11986         defines it.
11987         * unexec.c (ADDR_CORRECT): Define unconditionally.
11989         * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11991         * unexec.c: Remove code depending on !COFF and USG, the file is
11992         not used for such systems.
11994         * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11995         * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11996         (LD_SWITCH_SYSTEM_1): Remove, update users.
11998         * s/darwin.h (DATA_END):
11999         * m/intel386.h (DATA_END):
12000         * m/ibmrs6000.h (DATA_END):
12001         * m/alpha.h (DATA_END): Remove, unused.
12003         * config.in: Regenerate.
12004         * s/ms-w32.h (subprocesses): Define unconditionally.
12005         * s/template.h (subprocesses): Update comment.
12006         * s/vms.h (subprocesses):
12007         * s/usg5-4.h (subprocesses):
12008         * s/hpux10-20.h (subprocesses):
12009         * s/gnu-linux.h (subprocesses):
12010         * s/cygwin.h (subprocesses):
12011         * s/bsd-common.h (subprocesses):
12012         * s/aix4-2.h (subprocesses):
12013         * s/darwin.h (subprocesses): Do not define, defined by default now.
12015         * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12016         Remove all references.
12017         (temacs): Add GNUstep specific ld flags.
12019         * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12020         similarly to what X does.
12022 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
12024         * nsfns.m (x-list-fonts): Remove.
12025         (syms_of_nsfns): Drop the x-list-fonts declaration.
12026         * nsterm.m: Get rid of remaining "//" comments.
12028 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
12030         * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12032         * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12033         (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12034         (Fns_own_selection_internal, Fx_disown_selection_internal)
12035         (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12037         * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12038         ... */' style of docstrings.  Doc fixes.
12040 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
12042         * terminfo.c (UP, BC, PC): Undo previous change.
12044         * nsfns.m: Rename ns prefixed functions/variables to the
12045         corresponding x versions.  Update references.
12047 2008-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
12049         * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12051 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
12053         * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12054         Remove forwarding functions.
12055         (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12056         non-static.
12057         (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12058         non-static.
12059         (ns_frame_parm_handlers): Use the new names.
12060         (syms_of_nsfns): Move to the end of file.
12062         * nsterm.m (syms_of_nsterm): Move to the end of file.
12064         * dispnew.c (init_display): Remove code for X10.
12066 2008-07-22  Jason Rumney  <jasonr@gnu.org>
12068         * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12069         bare drive.
12071 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
12073         * nsterm.m (syms_of_nsterm): Remove debugging println.
12075 2008-07-22  David Reitter  <david.reitter@gmail.com>
12077         * nsfns.m (do_applescript, F_do_applescript): NS version of the
12078         Carbon implementation of the same functionality: execute arbitrary
12079         AppleScript code.
12081 2008-07-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
12083         * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12084         (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12085         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12086         (Fx_display_mm_height, Fx_display_mm_width)
12087         (Fx_display_backing_store, Fx_display_visual_class)
12088         (Fx_display_save_under, Fx_open_connection)
12089         (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12090         (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12091         (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12092         (Fx_display_pixel_width, Fx_display_pixel_height)
12093         (Fx_display_usable_bounds, Fx_display_planes)
12094         (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12095         ... */' style of docstrings.
12097 2008-07-21  Dan Nicolaescu  <dann@ics.uci.edu>
12099         * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12100         on this platform.
12101         (mips):
12102         * m/iris4d.h (mips): Do not define.
12103         * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12105         * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12107         * image.c:
12108         * nsfns.m:
12109         * nsselect.m:
12110         * nsterm.h:
12111         * nsterm.m: Rename ns prefixed functions/variables to the
12112         corresponding x versions.  Update references.
12114         * m/ibms390x.h (NO_REMAP): Do not undefine.
12116         * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12118 2008-07-21  Chong Yidong  <cyd@stupidchicken.com>
12120         * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12121         (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12122         (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12123         (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12124         (Fns_display_mm_height, Fns_display_mm_width)
12125         (Fns_display_backing_store, Fns_display_visual_class)
12126         (Fns_display_save_under, Fns_open_connection)
12127         (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12128         (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12129         (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12130         (Fns_display_pixel_width, Fns_display_pixel_height)
12131         (Fns_display_usable_bounds, Fx_display_planes)
12132         (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12134 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
12136         * print.c (print_object): Check print_depth before searching for
12137         circularities.
12139 2008-07-21  Michael Albinus  <michael.albinus@gmx.de>
12141         * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12142         only sprintf.
12144 2008-07-21  Kenichi Handa  <handa@m17n.org>
12146         * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12148 2008-07-20  Andreas Schwab  <schwab@suse.de>
12150         * syntax.c (find_start_pos, find_start_value)
12151         (find_start_value_byte, find_start_begv, find_defun_start)
12152         (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12154 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
12156         * s/sol2-3.h: Insert contents of s/sol2.h.
12157         (LD_SWITCH_SYSTEM): Remove redundant definition.
12158         * s/sol2.h: Remove, unused.
12160 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
12162         * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12164 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
12166         * Makefile.in (ns_appdir): Fix typo in find command.
12168 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
12170         * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12172         * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12173         added not supported anymore.
12175         * s/usg5-4-2.h (LIBS_SYSTEM):
12176         * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12178         * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12179         * s/lynxos.h (GETPGRP_NO_ARG):
12180         * s/hpux10-20.h (NO_SIOCTL_H):
12181         * s/gnu.h (GETPGRP_NO_ARG):
12182         * s/gnu-linux.h (NO_SIOCTL_H):
12183         * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12184         * s/cygwin.h (GETPGRP_NO_ARG):
12185         * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12186         (C_DEBUG_SWITCH): Remove duplicate definition.
12188         * m/ibms390.h: Remove boilerplate comments.
12190         * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12192         * process.c (HAVE_SERIAL): Consolidate ifdefs.
12193         (wait_reading_process_output): Remove code for SunOS, platform not
12194         supported anymore.  Use SOLARIS2 instead of sun.
12196 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
12198         * font.c (font_open_by_name): Under NS, default lface height to zero.
12199         (font_open_for_lface): Under NS, set size based on frame fontsize.
12200         * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12201         * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12203 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
12205         * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12206         (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12207         DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12208         YES/NO.
12209         * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12210         * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12211         * Makefile.in (clean): Clear out build destination dir.
12213 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
12215         * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12216         xterm, xselect.
12217         * lisp.h: Remove declaration of hash_remove.
12218         * nsgui.h: Remove redefinitions of hash_remove.
12219         * fns.c (hash_remove): Rename to hash_remove_from_table.
12221 2008-07-19  Seiji Zenitani  <zenitani@mac.com>
12223         * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12224         strdup() the family UTF8String before modifying it.
12226 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
12228         * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12229         NS_FACE_BACKGROUND with 0 instead of nil.
12230         * nsfont.m (nsfont_draw): Same.
12232 2008-07-19  Chong Yidong  <cyd@stupidchicken.com>
12234         * nsfns.m (ns_set_background_color): Fix crash.
12236 2008-07-18  Chong Yidong  <cyd@stupidchicken.com>
12238         * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12240 2008-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
12242         * puresize.h (BASE_PURESIZE): Increase to 1240000.
12244 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12246         * gtkutil.c: Include <config.h> instead of "config.h".
12248         * lisp.h (Foverlay_buffer): Add EXFUN.
12250         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12251         child process to complete child_setup.  Undo 2005-09-21 change.
12253         * s/darwin.h: Mention setsid after vfork.
12255 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12257         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12258         Depend on macgui.h.
12260         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12261         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12263         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12264         and f19.
12265         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12267         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12268         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12269         Remove enumerators.
12271         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12272         Check if FACE_FROM_ID returns NULL.
12274 2008-07-17  David Robinow  <drobinow@gmail.com>  (tiny change)
12276         * w32inevt.c (change_frame_size): Remove extern declaration.
12277         (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12278         change_frame_size.
12280 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
12282         * getloadavg.c: Revert last change (2008-07-15).
12284 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
12286         * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
12287         set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
12288         from configure.
12290 2008-07-17  Dan Nicolaescu  <dann@ics.uci.edu>
12292         * s/sol2.h:
12293         * s/sol2-4.h: Reorganize conditionals.
12295         * ecrt0.c: Remove code depending on m68000, not used anymore.
12297         * fns.c (hash_remove): Make static.
12298         * lisp.h (hash_remove): Don't prototype.
12300         * m/ibmrs6000.h:
12301         * m/ibms390x.h:
12302         * m/macppc.h: Remove boilerplate comments.
12304         * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12305         Solaris, which does not need them.
12307         * m/vax.h: Remove comments about unsupported systems.
12309         * s/darwin.h: Reorganize ifdefs.
12311 2008-07-17  Andreas Schwab  <schwab@suse.de>
12313         * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12315 2008-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
12317         Use SDATA.  Follow coding convention of placing operators at
12318         beginning of next line rather than end of previous line, and placing
12319         spaces around infix operators.
12321         * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12322         in case it was defined already.
12323         USE @GNUSTEP_MAKEFILES@ rather than envvars.
12324         * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12325         ns_default.
12326         (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12327         Lisp_Objects.
12328         * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12329         (ns_defined_color, ns_color_to_lisp): Declare.
12330         * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12331         (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12332         it's accepted even with USE_LISP_UNION_TYPE.
12333         * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12334         (update_frame_tool_bar): Remove apparently obsolete tests for
12335         non-integerness of f->tool_bar_lines.
12336         (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12337         hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12338         * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12339         (nsfont_open): Don't confuse NULL for Qnil.
12340         * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12341         * menu.h (find_and_call_menu_selection):
12342         * menu.c (find_and_call_menu_selection): Use just int for vector size.
12343         (find_and_return_menu_selection): Always return something.
12344         * frame.h: Include dispextern.h for Display_Info.
12345         (display_x_get_resource): Declare.
12347 2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
12349         * syntax.c: Remove stdio.h include accidentally introduced in
12350         Emacs.app commit.
12351         * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12352         NS_IMPL_COCOA.
12353         * keyboard.c (handle_async_input, input_available_signal): Remove
12354         BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12356 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
12358         * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12359         (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12360         (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12361         Use SDATA.
12363         * keymap.c: Remove all NS-specific code.
12364         (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12365         (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12366         where_is_preferred_modifier, return a different value depending on how
12367         preferred is the binding.
12368         (where_is_internal): Adjust accordingly.
12369         (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12370         Adjust to new preferred_sequence_p.
12371         (syms_of_keymap): Declare `where-is-preferred-modifier'.
12372         * keyboard.c (parse_solitary_modifier): Not static any more.
12373         * keyboard.h (parse_solitary_modifier): Declare.
12375 2008-07-16  Andreas Schwab  <schwab@suse.de>
12377         * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12378         of easymenu.
12380 2008-07-16  Chong Yidong  <cyd@stupidchicken.com>
12382         * xdisp.c (move_it_in_display_line): Account for word wrap, so
12383         that we don't move off the line.
12385 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
12387         * keyboard.c (Qsuper): Remove.
12388         (parse_menu_item): Don't call where_is_internal specially for NS.
12390 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
12392         * s/gnu-linux.h: Remove boilerplate comments.
12394         * m/alpha.h (__ELF__): Consolidate conditions.
12396         * m/m68k.h (linux): Use GNU_LINUX instead.
12397         Remove boilerplate comments.
12399         * m/intel386.h: Undo refactoring from previous change.
12400         (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12401         too, remove dead code.
12402         (linux): Use GNU_LINUX instead.
12404 2008-07-16  Jason Rumney  <jasonr@gnu.org>
12406         * w32gui.h: Repeat 26 June changes lost by last change.
12408 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
12410         * systty.h: Remove code for Aix on 386, unsupported platform.
12412         * s/ms-w32.h: Remove boilerplate comments.
12413         (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12415         * s/gnu-linux.h (TERM): Remove support.
12416         (HAVE_SYSVIPC): Remove, unused.
12417         (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12418         for this system.
12420         * process.c: Remove support for IRIS, unused.
12421         Remove support for TERM, not relevant anymore.
12423         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12424         used with the definition.
12426         * s/aix4-2.h (static): Do not undef.
12428         * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12429         only used on Aix.
12430         (HAVE_SYSVIPC): Remove, unused.
12432         * m/hp800.h (CANNOT_DUMP): Do not undef.
12434         * m/alpha.h: Fix comment.
12436         * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12437         (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12438         used by this configuration.
12439         * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12440         * unexec.c: Remove code depending on HPUX and
12441         USG_SHARED_LIBRARIES, not used with this file.  Remove code
12442         depending on IRIS, unused.  Remove if 0-ed code.
12444         * s/template.h: Remove comments about static.
12446         * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12447         Remove if 0-ed code.
12448         (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12449         were the same as the default.
12450         * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12451         Remove boilerplate comments.
12452         * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12453         (HAVE_SYSVIPC): Remove, unused.
12454         (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12456         * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12457         Remove boilerplate comments.
12458         * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12459         Remove boilerplate comments.
12460         * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12461         Remove boilerplate comments.
12462         * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12464         * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12465         USG systems which do not use DATA_SEG_BITS.
12466         Refactor code.  Remove boilerplate comments.
12468         * m/ibms390.h:
12469         * m/m68k.h:
12470         * s/bsd-common.h:
12471         * s/cygwin.h:
12472         * s/darwin.h:
12473         * s/freebsd.h:
12474         * s/gnu.h:
12475         * s/msdos.h: Remove boilerplate comments.
12477         * m/iris4d.h: Remove boilerplate comments and code for systems that
12478         do not use this file.
12479         (IRIS_4D): Remove, unused.
12481         * m/mips.h: Remove boilerplate comments and code for systems that
12482         do not use this file.
12483         (SIGN_EXTEND_CHAR):
12484         * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12485         * unexmips.c: Remove file, unused.
12487         * editfns.c (Fuser_full_name): Replace the only use of
12488         USER_FULL_NAME with its value.
12489         * config.in: Regenerate.
12491 2008-07-16  David Reitter  <david.reitter@gmail.com>
12493         * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12494         easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12496 2008-07-16  Glenn Morris  <rgm@gnu.org>
12498         * emacs.c (system-type): Doc fix.
12500 2008-07-15  Stefan Monnier  <monnier@iro.umontreal.ca>
12502         * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12503         If the cache doesn't work, let's fix it, rather than work around it.
12505 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
12507         * Makefile.in: Correct additions for nsfont.o in last commit.
12508         * nsfont.m: New file (forgot last commit).
12510 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
12512         * callproc.c (set_initial_environment): Initialize
12513         Vprocess_environment under CANNOT_DUMP (fixes crash when
12514         batch-compiling for bootstrap).
12516 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
12517             YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12519         * frame.c (make_initial_frame): Call init_frame_faces(f) in
12520         CANNOT_DUMP case -- fix crash due to different init order.
12522 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
12524         Changes and additions for NeXTstep windowing system (Cocoa and
12525         GNUstep) support.
12527         * Makefile.in:
12528         * config.in: Support defines and build commands for NS port.
12529         * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12530         (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12531         * dispextern.h: Include nsgui.h and add needed typedefs under NS
12532         windowing.
12533         (struct face): Add synth_ital field.
12534         * dispnew.c: Include nsterm.h when compiling under NS windowing.
12535         (init_display): Initialize Vinitial_window_system to "ns" when so
12536         compiled.
12537         * emacs.c: Include GSConfig.h when compiling under GNUstep.
12538         (display_arg): Use under NS.
12539         (main): Under NS, allocate autorelease pool and handle command line
12540         args.  Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12541         (standard_args): Add NS-specific args.
12542         (shut_down_emacs): Shut down NS terminal if compiled under NS.
12543         * font.c (DEFAULT_ENCODING): New variable.
12544         (font_find_for_lface): Use it.
12545         (syms_of_font): Load syms_of_nsfont under NS.
12546         * font.h: Declare nsfont_driver when compiled under NS.
12547         * fontset.c: When compiling under NS, include nsterm.h.
12548         (fontset_from_font): Autoconstruct fontset under NS.
12549         * frame.c (various): Under NS, include nsterm.h, add Qns window system
12550         symbol, document and use it.
12551         (do_switch_frame): When for_deletion under Cocoa, add
12552         Fraise_frame(Qnil).
12553         (x_set_frame_parameters): Ensure font attribute changes are picked up.
12554         (x_get_arg): Allow "yes" and "no" as boolean values.
12555         (syms_of_frame): Declare Qns.  Init Vdefault_frame_scroll_bars to
12556         Qright under Cocoa.
12557         (focus-follows-mouse): Default to 0 under NS.
12558         * frame.h (enum output_method): Add output_ns.
12559         (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12560         (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12561         (FRAME_WINDOW_P): NS-specific definition.
12562         * fringe.c (max_used_fringe_bitmap): Make public.
12563         * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12564         (getloadavg): Use NeXT code under descendant OS's.
12565         * image.c (includes and header section, x_create_bitmap_from_data)
12566         (x_create_bitmap_from_file, free_bitmap_record, image_background)
12567         (image_background_transparent, x_clear_image_1)
12568         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12569         (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12570         (x_to_xcolors, x_from_xcolors, x_disable_image)
12571         (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12572         other GUIs, including XPM support using code originally written for
12573         Carbon GUI.
12574         (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12575         using NS API.
12576         (image_ascent): Use font metrics macros instead of direct struct field
12577         access.
12578         * keyboard.c (includes): Add nsterm.h when compiling under NS.
12579         (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12580         Also, handle NS as GTK for menu bar purposes.
12581         (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12582         toolkit where they differ.
12583         (parse_menu_item): Prefer keybindings using 'super' modifier.  Also,
12584         use cachelist, still needed under NS.
12585         * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12586         (struct widget_value): Define it here for menu.c.
12587         * keymap.c (includes): Include modifier internals.
12588         (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12589         NS.
12590         (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12591         support for preferring sequences using certain modifiers, specified by
12592         the FIRSTONLY argument.
12593         * lisp.h (hash_remove): Rename to avoid name clash when compiling
12594         under NS GNUstep implementation.
12595         (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12596         * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12597         * menu.c: Include nsterm.h under NS.
12598         (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12599         (free_menubar_widget_tree_value, update_submenu_strings)
12600         (find_and_call_menu_selection): Treat NS as X and NT.
12601         (find_and_return_menu_selection): New function, used for popup menus.
12602         * nsgui.h:
12603         * nsterm.h:
12604         * nsfns.m:
12605         * nsimage.m:
12606         * nsmenu.m:
12607         * nsselect.m:
12608         * nsterm.m: New files.
12609         * process.c (wait_reading_process_output): Under NS, call ns_select()
12610         instead of plain select().
12611         * syntax.c (char_quoted): Under NS, avoid a crash when called near
12612         beginning of buffer.
12613         * sysselect.h (init_process): Rename when compiling under Cocoa to
12614         avoid name conflict.
12615         * termhooks.h (display_info): Add ns_display_info to union.
12616         * terminal.c (Fterminal_live_p): Add ns to terminal types.
12617         * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12618         COCOA environment.
12619         * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12620         unexec() signature.  (Note, this will dump, but the resulting file
12621         crashes; unexosx is used instead; keeping around for reference and
12622         possible aid in getting dump working under GNUstep.)
12623         * w32gui.h (button_type, widget_value): Remove definitions (now in
12624         keyboard.h).
12625         * window.c: Include nsterm.h when compiling under NS.
12626         * xdisp.c (includes): Include nsterm.h when compiling under NS.
12627         (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12628         other GUI windowing systems.
12629         (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12630         GTK.
12631         (x_consider_frame_title): Under NS, set icon type and frame
12632         modified-state indicator; use ns_set_name_as_filename() when using
12633         formatted title.
12634         (update_window_cursor): Make public when compiling under NS.
12635         (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12636         (hourglass_atimer, Vhourglass_delay
12637         * xfaces.c (header section, init_frame_faces, clear_font_table)
12638         (defined_color, unload_color, x_face_list_fonts)
12639         (prepare_face_for_display): Add NS support parallel to other GUIs.
12640         Emulate GCs like other non-X GUIs.
12641         (split_font_name): Don't lowercase font name under NS.
12642         (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12643         under NS.
12644         * s/darwin.h: Add support for compilation under NS.
12646 2008-07-15  Jason Rumney  <jasonr@gnu.org>
12648         * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12649         (w32_show_hourglass): Rename from show_hourglass.
12650         (w32_hide_hourglass): Rename from hide_hourglass.
12651         (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12652         (Vhourglass_delay): Declare extern.
12653         (hourglass_started): Remove.
12655         * xdisp.c (Vhourglass_delay): Remove static.
12656         (hourglass_started, start_hourglass, cancel_hourglass):
12657         Don't include these versions on WINDOWSNT.
12659 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
12661         * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12662         variables (formerly in xfns.c).
12663         (show_hourglass, hide_hourglass): New prototypes (same).
12664         * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12665         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12666         in xfns.c).
12667         (syms_of_xdisp): Declare/initialize display-hourglass,
12668         hourglass-delay.  Initialize hourglass_atimer, hourglass_shown_p.
12669         (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12670         formerly in xfns.c.
12671         * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12672         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12673         (start_hourglass, cancel_hourglass): Remove.
12674         (show_hourglass, hide_hourglass): Remove prototypes and static
12675         modifiers.
12676         (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12677         hourglass_atimer, hourglass_shown_p declaration/initialization.
12678         * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12679         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12680         (start_hourglass, cancel_hourglass): Remove.
12681         (show_hourglass, hide_hourglass): Remove prototypes and static
12682         modifiers.
12683         (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12684         hourglass_atimer, hourglass_shown_p declaration/initialization.
12685         * w32fns.c (display_hourglass_p, Vhourglass_delay)
12686         (DEFAULT_HOURGLASS_DELAY): Remove.
12687         (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12688         hourglass_shown_p declaration/initialization.
12690 2008-07-14  Jason Rumney  <jasonr@gnu.org>
12692         * w32fns.c (w32_get_arg): Remove wrapper function.
12693         (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12694         directly.
12695         (Fx_create_frame): Sync with xfns.c.  Use x_get_arg directly.
12697 2008-07-14  Kenichi Handa  <handa@m17n.org>
12699         * xfont.c (xfont_open): Add workaround for X's bug.
12701 2008-07-14  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
12703         * fontset.c: Include <stdio.h> unconditionally.
12705 2008-07-13  Michael Albinus  <michael.albinus@gmx.de>
12707         * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12708         for filtering.
12710 2008-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
12712         * s/vms.h: Use __GNUC__ instead of _GNUC_.
12714         * m/macppc.h:
12715         * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
12717         * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
12718         (SPECIAL_EMACS_INT):
12719         * m/ia64.h (SPECIAL_EMACS_INT):
12720         * m/amdx86-64.h (SPECIAL_EMACS_INT):
12721         * s/gnu.h (NLIST_STRUCT):
12722         * s/aix4-2.h (X11R5_INHIBIT_I18N):
12723         * s/gnu-linux.h (LINUX):
12724         * s/msdos.h (HAVE_FACES):
12725         * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12727         * systty.h:
12728         * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12729         anymore.
12731 2008-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
12733         * syswait.h: Remove old if 0 code.  Do not define WAITTYPE, it was
12734         always defined as int.
12736         * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12737         * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12738         * s/gnu-linux.h (HAVE_WAIT_HEADER):
12739         * s/freebsd.h (HAVE_WAIT_HEADER):
12740         * s/bsd-common.h (HAVE_UNION_WAIT):
12741         * s/aix4-2.h (HAVE_WAIT_HEADER):
12742         * m/mips.h (HAVE_UNION_WAIT):
12743         * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12744         (COFF, static): Do not define, they are undefined later in the file.
12746         * process.c (update_status): Don't use a union.
12747         (status_convert):
12748         (sigchld_handler): Use int instead of WAITTYPE.
12750 2008-07-12  Chong Yidong  <cyd@stupidchicken.com>
12752         * indent.c (Fvertical_motion): Restore hscroll before moving to
12753         goal column.
12755 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
12757         * lisp.h: Remove left over code.
12759 2008-07-11  Andreas Schwab  <schwab@suse.de>
12761         * lisp.h: Fix logic in last change.
12763         * menu.h: New file.
12764         * menu.c: Include it.
12765         * xmenu.c: Likewise.
12766         * Makefile.in: Update dependencies.
12768 2008-07-11  Kenichi Handa  <handa@m17n.org>
12770         * fontset.c (fontset_from_font): Cancel the previous change.
12772 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
12774         * lisp.h:
12775         * w32heap.c:
12776         * emacs.c:
12777         * alloc.c: Replace all references of NO_UNION_TYPE with
12778         USE_LISP_UNION_TYPE.
12780         * m/xtensa.h (NO_UNION_TYPE):
12781         * m/vax.h (NO_UNION_TYPE):
12782         * m/template.h (NO_UNION_TYPE):
12783         * m/sparc.h (NO_UNION_TYPE):
12784         * m/mips.h (NO_UNION_TYPE):
12785         * m/macppc.h (NO_UNION_TYPE):
12786         * m/m68k.h (NO_UNION_TYPE):
12787         * m/iris4d.h (NO_UNION_TYPE):
12788         * m/intel386.h (NO_UNION_TYPE):
12789         * m/ibms390x.h (NO_UNION_TYPE):
12790         * m/ibms390.h (NO_UNION_TYPE):
12791         * m/ibmrs6000.h (NO_UNION_TYPE):
12792         * m/ia64.h (NO_UNION_TYPE):
12793         * m/hp800.h (NO_UNION_TYPE):
12794         * m/arm.h (NO_UNION_TYPE):
12795         * m/amdx86-64.h (NO_UNION_TYPE):
12796         * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12797         defining it the same.
12799 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
12801         * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12803 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
12805         * fileio.c:
12806         * sysdep.c:
12807         * systty.h:
12808         * m/ibmrs6000.h:
12809         * m/iris4d.h:
12810         * s/aix4-2.h:
12811         * s/freebsd.h:
12812         * s/gnu-linux.h:
12813         * s/hpux10-20.h:
12814         * s/hpux11.h:
12815         * s/netbsd.h:
12816         * s/sol2-3.h:
12817         * s/sol2-4.h:
12818         * s/sol2.h:
12819         * s/usg5-4.h:
12820         * s/vms.h: Remove references to unused variables.
12822 2008-07-10  Andreas Schwab  <schwab@suse.de>
12824         * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12825         pattern before matching the generic family.
12827 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
12829         * unexec.c:
12830         * s/vms.h:
12831         * s/usg5-4-2.h:
12832         * s/sol2-5.h:
12833         * s/freebsd.h:
12834         * s/darwin.h: Remove dead code.
12836         * m/template.h:
12837         * m/sparc.h:
12838         * m/mips.h:
12839         * m/m68k.h:
12840         * m/iris4d.h:
12841         * m/intel386.h:
12842         * m/ibms390x.h:
12843         * m/ibms390.h:
12844         * m/ia64.h:
12845         * m/hp800.h:
12846         * m/arm.h:
12847         * m/amdx86-64.h: Remove dead code and references to unused
12848         and compiler defined symbols.
12850         * unexmips.c:
12851         * unexelf.c: Remove references to desupported systems.
12853         * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12855         * m/powermac.h: Remove boilerplate comments.
12856         (NO_REMAP): Remove unused definition.
12858         * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12859         define them.
12861 2008-07-10  Kenichi Handa  <handa@m17n.org>
12863         * xfont.c (xfont_open): Log the reason of failure.
12865 2008-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
12867         * fontset.c (fontset_get_font_group):
12868         * font.c (font_check_otf): Specify argument types.
12870 2008-07-09  Kenichi Handa  <handa@m17n.org>
12872         * coding.c (detect_coding_utf_8): Set detect_info->found only when
12873         non-ASCII char is found.
12875         * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12876         (reorder_font_vector): Change the arg preferred_family to font.
12877         Prefer the spec matching with font.
12878         (fontset_get_font_group): New function.
12879         (fontset_find_font): Change the format of an element of a realized
12880         fontset.  Use fontset_get_font_group.
12881         (fontset_font): Try the current fontset, the default fontset, the
12882         fallbacks of the current fontset, and the fallbacks of the default
12883         fontset in this order.
12884         (face_for_char): Delete the shortcut to use the current font.
12885         (fontset_from_font): Don't set fonts for Latin in the fontset.
12887         * font.h (font_make_object, font_match_p): Adjust prototypes.
12889         * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12891         * font.c (font_make_object): New arg entity and pixelsize.
12892         (font_check_otf_features, font_check_otf): New functions.
12893         (font_match_p): Check :lang, :script, and :otf properties.
12895         * xfont.c (xfont_open): Adjust it for the change of
12896         font_make_object.
12897         (xfont_text_extents): Fix initial setting of metrics.
12899         * ftfont.c (struct ftfont_info): New member index, delete member
12900         fc_charset_idx.  Make the member order compatible with struct
12901         xftfont_info.
12902         (fc_charset_table): Change charset names to registry names.
12903         (ftfont_pattern_entity): Delete the args registry and
12904         fc_charset_idx.  Change the value of :font-entity property
12905         to (FONTNAME . INDEX).  Always set :registry property to
12906         `iso10646-1'.
12907         (struct ftfont_cache_data): New struct.
12908         (ftfont_lookup_cache): New arg for_face.
12909         (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12910         (ftfont_driver): Set the member otf_capability.
12911         (ftfont_get_charset): Adjust it for the change of
12912         fc_charset_table.
12913         (OTF_TAG_SYM): New macro.
12914         (ftfont_spec_pattern): Delete the arg fc_charset_idx.  Adjust it
12915         for the change of fc_charset_table.
12916         (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12917         ftfont_pattern_entity.  Add FC_INDEX to objset.
12918         (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12919         and ftfont_pattern_entity.
12920         (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12921         font_make_object, struct ftfont_info.
12922         (ftfont_has_char): Use ftfont_get_fc_charset.
12923         (ftfont_otf_features, ftfont_otf_capability): New functions.
12924         (ftfont_shape): Use ftfont_get_otf.
12925         (ftfont_text_extents): Fix initial setting of metrics.
12927         * xftfont.c (struct xftfont_info): New member ft_size.  Make the
12928         member order compatible with struct ftfont_info.
12929         (xftfont_open): Add FC_CHARSET to the pattern.  Set
12930         xftfont_info->ft_size.  Don't unlock the face.  Check BDF
12931         properties if appropriate.
12932         (xftfont_close): Unlock the face.
12933         (xftfont_anchor_point, xftfont_shape): Deleted.
12934         (syms_of_xftfont): Don't set members anchor_point and shape of
12935         xftfont_driver.
12937         * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12938         font_make_object.
12940         * w32font.c (w32font_open): Adjust it for the change of
12941         font_make_object.
12942         (w32font_open_internal): Don't set properties of font_object here.
12944 2008-07-08  Chong Yidong  <cyd@stupidchicken.com>
12946         * macfns.c (x_create_tip_frame):
12947         * w32fns.c (x_create_tip_frame):
12948         * xfns.c (x_create_tip_frame): Pass parameter argument to
12949         face-set-after-frame-default.
12951         * xfaces.c (Finternal_merge_in_global_face): Save merged
12952         attributes for the default face back into the face vector.
12954 2008-07-08  Andreas Schwab  <schwab@suse.de>
12956         * fontset.h: Declare fontset_from_font.  Don't declare
12957         new_fontset_from_font and fontset_from_font_name.
12958         * xterm.c: Include "fontset.h".
12959         * Makefile.in (xterm.o): Update dependencies.
12961 2008-07-08  Glenn Morris  <rgm@gnu.org>
12963         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
12964         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12966 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
12968         * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12969         (x_set_frame_parameters): Don't bind it.
12971 2008-07-07  Juanma Barranquero  <lekktu@gmail.com>
12973         * w32fns.c (map_w32_filename): Declare extern.
12975 2008-07-07  Jason Rumney  <jasonr@gnu.org>
12977         * w32term.c (WS_EX_LAYERED): Define if not already.
12979 2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
12981         * xfaces.c (set_font_frame_param): Don't try to set the font
12982         parameter if it is still unspecified in the lface.
12984 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
12986         * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12987         face if it didn't already exist.
12989         * xdisp.c (try_window_id): Give up if word-wrapping is on.
12991 2008-07-05  Andreas Schwab  <schwab@suse.de>
12993         * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12995 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
12997         * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12998         word-wrapping.
12999         (IT_DISPLAYING_WHITESPACE): New macro.
13000         (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13001         when word-wrapping.  Simplify word-wrapping logic.  Use correct
13002         pixel positions when saving copies of the iterator.
13003         (display_line): Use proper wrap point if the last character on a
13004         line was preceded by whitespace.
13006 2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
13008         * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13010 2008-07-04  Kenichi Handa  <handa@m17n.org>
13012         * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13014         * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13016 2008-07-02  Jason Rumney  <jasonr@gnu.org>
13018         * xfns.c (syms_of_xfns): Only define x-select-font when both
13019         HAVE_FREETYPE and USE_GTK.
13021         * xdisp.c (next_element_from_display_vector): Move assignment out
13022         of if statement.
13024 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
13026         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13028         * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13029         (syms_of_fileio): Initialize and export them.
13030         (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13032         * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13033         (Fsystem_move_file_to_trash): New function.
13034         (syms_of_w32fns): Export it to lisp.
13036 2008-07-01  Jason Rumney  <jasonr@gnu.org>
13038         * w32font.c (w32font_text_extents): Don't count overhang as part
13039         of width.
13041 2008-06-30  Miles Bader  <miles@gnu.org>
13043         * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13044         Add `avoid_cursor_p' field.
13046         * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13047         (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13048         (append_glyph, append_composite_glyph, produce_image_glyph)
13049         (append_stretch_glyph): Initialize avoid_cursor_p.
13050         (get_it_property): Rename from `get_line_height_property'.
13051         (x_produce_glyphs): Use get_it_property.
13052         (handle_line_prefix, push_display_prop): New functions.
13053         (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13054         (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13055         New variables.
13056         (syms_of_xdisp): Initialize them.
13058 2008-06-30  Kenichi Handa  <handa@m17n.org>
13060         * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13061         XftDefaultSubstitute (they are called in XftFontMatch).
13062         (xftfont_open): Fix args to ftfont_font_format.
13064         * ftfont.c (fc_charset_table): New member lang.
13065         (ftfont_resolve_generic_family): New arg pattern.
13066         (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13067         (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13068         (ftfont_open): Fix args to ftfont_font_format.
13069         (ftfont_font_format): New arg filename.
13071 2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
13073         * xfaces.c (Finternal_merge_in_global_face): If default face was
13074         modified, realize it again.  Update the font face attribute.
13076 2008-06-29  Jason Rumney  <jasonr@gnu.org>
13078         * w32term.c (x_set_frame_alpha): Fix logic.
13080 2008-06-29  Kenichi Handa  <handa@m17n.org>
13082         * fontset.c (Finternal_char_font): Return font-object instead of
13083         font-name.
13085         * composite.c (get_composition_id): Fix the width calculation for TAB.
13087 2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
13089         * indent.c (Fvertical_motion): Properly handle float column arg.
13091 2008-06-28  Jason Rumney  <jasonr@gnu.org>
13093         * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13094         (pfnSetLayeredWindowAttributes): New function pointer.
13095         (w32_initialize): Initialize it when supported.
13096         (x_set_frame_alpha): New function.
13098         * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13099         (w32_frame_parm_handlers): Set alpha handler.
13101         * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13103 2008-06-27  Jason Rumney  <jasonr@gnu.org>
13105         * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13106         (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13107         (w32_to_x_charset, x_to_w32_charset)
13108         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13109         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13110         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13111         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13112         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13113         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13114         (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13115         (Qw32_charset_unicode): Remove.
13116         (syms_of_w32fns): Update for above changes.
13118         * w32font.c (w32_to_x_charset, x_to_w32_charset)
13119         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13120         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13121         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13122         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13123         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13124         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13125         (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13126         (syms_of_w32font): Update for above changes.
13128 2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
13130         * s/usg5-4.h: Fix previous change: keep the correct branch of a
13131         removed #if.
13132         (USG_SHARED_LIBRARIES): Remove duplicate definition.
13134 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
13135             Eli Zaretskii  <eliz@gnu.org>
13137         * makefile.w32-in (LOCAL_FLAGS):
13138         Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13140         * sysdep.c (_spawnlp, _getpid):
13141         Declare with explicit _cdecl instead of _CRTAPI1.
13143         * editfns.c (Fget_internal_run_time):
13144         Check for WINDOWSNT with #ifdef, not #if.
13146 2008-06-26  Jason Rumney  <jasonr@gnu.org>
13148         * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13150         * w32term.c (x_draw_glyph_string_foreground)
13151         (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13152         Use FONT_HANDLE macro.
13153         (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13155         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13156         (uniscribe_encode_char): Use FONT_HANDLE macro.
13158         * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13159         (w32font_text_extents): Use precast w32_font.
13160         (w32font_close): Free cached metrics.
13161         (w32font_open_internal): Allocate space for name on stack.
13163 2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
13165         * xdisp.c (extend_face_to_end_of_line): Fix last change.
13167 2008-06-26  Jason Rumney  <jasonr@gnu.org>
13169         * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13170         (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13172 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
13174         * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13176 2008-06-26  Jason Rumney  <jasonr@gnu.org>
13178         * w32bdf.c, w32bdf.h: Remove obsolete files.
13180         * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13182         * w32gui.h: Don't include w32bdf.h.
13183         (XCharStruct, enum w32_char_font_type, W32FontStruct):
13184         Remove obsolete font support.
13186         * w32font.h (struct w32font_info): Remove compat_w32_font.
13187         Add hfont member.
13188         (FONT_COMPAT): Remove obsolete macro.
13190         * w32font.c (w32font_close): Remove compat code.  Delete hfont member.
13191         (w32font_encode_char, w32font_text_extents): Use new hfont member.
13192         (w32font_open_internal): Remove compat code.  Set new hfont member.
13193         (Fx_select_font): Use new hfont member.
13195         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13196         (uniscribe_encode_char): Use new hfont member.
13198         * w32term.c (x_draw_glyph_string_foreground)
13199         (x_draw_composite_glyph_string_foreground): Use new hfont member.
13200         (x_draw_glyph_string): Use metrics in w32font_info.
13202 2008-06-26  Kenichi Handa  <handa@m17n.org>
13204         * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13206 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
13208         * unexnext.c:
13209         * m/ews4800.h:
13210         * m/hp9000s300.h:
13211         * m/ibm370aix.h:
13212         * m/mips-siemens.h:
13213         * m/ncr386.h:
13214         * m/next.h:
13215         * m/pmax.h:
13216         * m/powerpcle.h:
13217         * m/tandem-s2.h:
13218         * s/386bsd.h:
13219         * s/bsd386.h:
13220         * s/bsd4-1.h:
13221         * s/bsd4-2.h:
13222         * s/bsdos2-1.h:
13223         * s/bsdos2.h:
13224         * s/bsdos3.h:
13225         * s/bsdos4.h:
13226         * s/nextstep.h:
13227         * s/ultrix4-3.h:
13228         * s/usg5-0.h:
13229         * s/usg5-2-2.h:
13230         * s/usg5-2.h:
13231         * s/usg5-4-3.h:
13232         * s/ux4800.h:
13233         * s/uxpds.h:
13234         * s/uxpv.h: Remove support for obsolete systems.
13235         * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13236         Remove, insert contents in s/hpux10-20.h.
13237         * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13238         Remove, insert contents in s/aix4-2.h.
13239         * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13240         * s/bsd4-3.h: Rename to ...
13241         * s/bsd-common.h: ... this.
13242         * data.c:
13243         * doc.c:
13244         * ecrt0.c:
13245         * emacs.c:
13246         * fileio.c:
13247         * floatfns.c:
13248         * keyboard.c:
13249         * mem-limits.h:
13250         * print.c:
13251         * process.c:
13252         * sysdep.c:
13253         * syssignal.h:
13254         * systty.h:
13255         * syswait.h:
13256         * term.c:
13257         * unexec.c:
13258         * unexelf.c:
13259         * unexhp9k800.c:
13260         * m/hp800.h:
13261         * m/ibmrs6000.h:
13262         * m/mips.h:
13263         * m/vax.h:
13264         * s/darwin.h:
13265         * s/freebsd.h:
13266         * s/gnu.h:
13267         * s/ms-w32.h:
13268         * s/msdos.h:
13269         * s/netbsd.h:
13270         * s/template.h: Remove references to obsolete variables.
13272         * Makefile.in: Add dependencies for all unexec files.
13273         (admindir): Remove unused variable.
13274         (UNEXEC_SRC): Remove references.
13276 2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
13278         * xfns.c (x_default_font_parameter): If Xft is available, first
13279         try Monospace-12 for the default font.
13281 2008-06-25  Jason Rumney  <jasonr@gnu.org>
13283         * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13285 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
13287         * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13289         * buffer.c (syms_of_buffer): Remove default-word-wrap.
13291 2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
13293         * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13294         <scroll-conservatively>: Fix typo in docstring.
13296         * xselect.c (Fx_send_client_event): Doc fix.
13298 2008-06-25  Kenichi Handa  <handa@m17n.org>
13300         * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13302         * font.c (font_parse_fcname): Remove unused variables.
13303         (font_sort_entites): Delete the arg SPEC.  Caller changed.
13304         Fix for the case of ! best_only.
13305         (font_delete_unmatched): Check DPI and AVGWIDTH too.
13307         * lisp.h (Fstring_to_unibyte): EXFUN it.
13309         * character.h (str_to_unibyte): Extern it.
13311         * character.c (str_to_unibyte): New function.
13313         * fns.c (Fstring_to_unibyte): New function.
13314         (syms_of_fns): Defsubr it.
13316 2008-06-24  Kenichi Handa  <handa@m17n.org>
13318         * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13319         DPI too.
13320         (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13322 2008-06-24  Andreas Schwab  <schwab@suse.de>
13324         * Makefile.in (${lispsource}loaddefs.el): Rename from
13325         ../lisp/loaddefs.el.
13326         (bootstrap-clean): Do what distclean does but don't remove
13327         Makefile.
13328         (distclean): Depend on bootstrap-clean and remove Makefile.
13330 2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
13332         * buffer.h (struct buffer): New member word_wrap.
13334         * buffer.c (syms_of_buffer): New variables default-word-wrap and
13335         word-wrap.
13336         (init_buffer_once): Initialize them.
13338         * dispextern.h (struct it): Replace bool truncate_lines_p with a
13339         line_wrap enum possessing three possible values.
13341         * termopts.h: Replace truncate_partial_width_windows with
13342         Vtruncate_partial_width_windows.
13344         * dispnew.c (direct_output_for_insert): Avoid direct output when
13345         inserting a space with word wrap on.
13347         * indent.c (compute_motion): Obey integer values of
13348         truncate-partial-width-windows.
13350         * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13351         replacing truncate_partial_width_windows.
13352         (init_iterator): If Vtruncate_partial_width_windows is an integer,
13353         truncate only if the window width is below that integer.
13354         (start_display, resize_mini_window, produce_stretch_glyph)
13355         (display_string, move_it_in_display_line_to): Use line_wrap.
13356         (back_to_previous_visible_line_start, reseat_1): Reset
13357         string_from_display_prop_p.
13358         (display_line): Extend default face to end of line when wrapping.
13360 2008-06-24  Kim F. Storm  <storm@cua.dk>
13362         * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13363         to wrap continued lines at word boundaries.
13365 2008-06-24  Jason Rumney  <jasonr@gnu.org>
13367         * font.c (Ffont_face_attributes): Multiply pixel size before point
13368         conversion to avoid multiplying rounding error.
13370 2008-06-23  Jason Rumney  <jasonr@gnu.org>
13372         * w32term.c (x_draw_glyph_string_background)
13373         (x_draw_glyph_string): Remove old bdf font code.
13375         * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13377 2008-06-22  Kenichi Handa  <handa@m17n.org>
13379         * font.c (font_find_for_lface): Try the adstyle specified in
13380         the property of LFACE_FONT of LFACE (if any).
13382 2008-06-21  Seiji Zenitani  <zenitani@mac.com>
13383             Ryo Yoshitake  <ryo@shiftmode.net>
13385         * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13387 2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
13389         * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13390         Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13391         (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13392         (witness-emacs): Remove.
13393         (lisp, shortlisp): Move loaddefs.el earlier.
13394         (mostlyclean): Forget about witness-emacs.
13396 2008-06-22  Glenn Morris  <rgm@gnu.org>
13398         * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13399         (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13401 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
13403         * Makefile.in (PRECOMP): Remove.
13404         (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13405         (witness-emacs): Run `compile-first'.
13406         (.el.elc): Use the new compile-onefile target.
13408 2008-06-21  Kenichi Handa  <handa@m17n.org>
13410         * xftfont.c (xftfont_open): Handle QCembolden only when
13411         FC_EMBOLDEN is defined.
13413 2008-06-21  Andreas Schwab  <schwab@suse.de>
13415         * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13416         (.el.elc): Likewise.
13418 2008-06-21  Miles Bader  <miles@gnu.org>
13420         * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13421         build dir, not the lisp source dir.
13423 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
13425         * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13426         (bootstrapclean): Remove.
13427         (.el.elc): New rule.
13428         (PRECOMP): New var.
13429         (../lisp/subdirs.el): Remove.
13430         (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13431         (witness-emacs): New target.
13432         (mostlyclean): Remove witness-emacs as well.
13433         (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13434         Add witness-emacs dependency.
13436 2008-06-20  Chong Yidong  <cyd@stupidchicken.com>
13438         * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13439         defined by the font.
13441 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
13443         * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13444         (bootstrap-clean): New target that keeps TAGS around.
13445         (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13446         (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13448 2008-06-20  Jason Rumney  <jasonr@gnu.org>
13450         * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13451         Remove obsolete font code.
13453         * w32font.c (font_matches_spec): Use csb bitfield from font signature
13454         to determine language support.
13456 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
13458         * sysdep.c (cfsetspeed): New fun extracted from the code.
13459         (cfmakeraw): Move before first use.
13461 2008-06-20  Angelo Graziosi  <angelo.graziosi@alice.it>  (tiny change)
13463         * sysdep.c (cfmakeraw): Provide fallback implementation.
13464         (serial_configure): Provide fallback implementation of cfsetspeed.
13466 2008-06-20  Kenichi Handa  <handa@m17n.org>
13468         * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13469         the pattern.
13471         * fontset.c (fontset_from_font): Copy font_spec before changing
13472         the elements.
13474         * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13476 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
13478         * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13479         for explicit `font' parameters.
13481         * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13483 2008-06-19  Kenichi Handa  <handa@m17n.org>
13485         * frame.c: Include <ctype.h>.
13486         (x_set_font_backend): Allow spacing characters in the X resource
13487         for FontBackend.
13489 2008-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>
13491         * w32fns.c, xfns.c (Qfont_param): New var.
13492         (syms_of_w32fns): Initialize it.
13493         (x_default_font_parameter): Record explicit `font' into
13494         `font-parameter'.
13496 2008-06-18  Kenichi Handa  <handa@m17n.org>
13498         * font.c (font_parse_xlfd): Fix previous change.
13499         (font_parse_fcname): Don't use :fc-unknown-spec.
13500         (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13501         (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13502         (font_add_log): Prepend the driver name to the resulting fonts.
13504         * ftfont.c (ftfont_pattern_entity): New arg extra.  Caller changed.
13505         (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13506         (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13508         * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13509         (QCembolden): New variables.
13510         (syms_of_xftfont): DEFSYM them.
13511         (xftfont_open): Call XftFontMatch.  Don't trust the result of
13512         XftTextExtents8 if the pixel_size is less than 5.
13514 2008-06-18  Andreas Schwab  <schwab@suse.de>
13516         * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13517         (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13519 2008-06-18  Jason Rumney  <jasonr@gnu.org>
13521         * w32font.c (w32font_list, w32font_match): Add logging.
13523         * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13525 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>
13527         * font.c (font_parse_fcname): Store divider characters for
13528         unknown-spec list.  For known key symbols, intern using correct
13529         symbol name.
13531 2008-06-17  Kenichi Handa  <handa@m17n.org>
13533         * xfaces.c (realize_default_face): If the frame is not on window
13534         system, set the fontset of face to nil.
13536 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
13538         * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13540 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
13542         * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13543         (build_font_name_from_vector): Delete externs.
13545         * xfaces.c (struct font_name): Don't declare.
13547 2008-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
13549         * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13551 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
13553         * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13555 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
13557         * font.c (Ffont_spec): Fix usage in docstring.
13558         (Ffont_face_attributes): Doc fix.
13560 2008-06-16  Andreas Schwab  <schwab@suse.de>
13562         * font.c (Ffont_face_attributes): Fix definition.
13564 2008-06-16  Jason Rumney  <jasonr@gnu.org>
13566         * font.h (font_style_symbolic_from_value): Remove.
13568         * font.c (font_style_symbolic_from_value): Remove.
13569         (font_style_symbolic): Revert to pre 2008-06-13 version.
13571         * w32font.c (w32_to_fc_weight): New function.
13572         (w32font_full_name, logfont_to_fcname): Use it.
13574 2008-06-16  Kenichi Handa  <handa@m17n.org>
13576         * font.c (font_check_object): Delete it.
13577         (font_clear_cache): Check if a font-object is alive.
13578         (font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
13579         font-object to nil.
13580         (font_close_object): Don't check FONT_CLOSE_OBJECT.
13581         (font_at): Don't call font_check_object.
13582         (Ffont_get): Return a symbol for :weight, :slant, and :width.
13584 2008-06-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13586         * puresize.h (BASE_PURESIZE): Increase to 1230000.
13588 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
13590         * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13592 2008-06-15  Chong Yidong  <cyd@stupidchicken.com>
13594         * font.c (font_parse_fcname): Only one decimal point.
13595         (font_unparse_fcname): Handle data in family and foundry indices
13596         as symbols, not strings.
13597         (font_unparse_gtkname, Ffont_face_attributes): New functions.
13599         * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13601         * font.h (font_unparse_gtkname): Add prototype.
13603 2008-06-15  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
13605         * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13607 2008-06-15  Andreas Schwab  <schwab@suse.de>
13609         * font.c (font_update_drivers): Fix crash when no drivers match.
13611 2008-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
13613         * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13614         * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13616 2008-06-14  Stefan Monnier  <monnier@iro.umontreal.ca>
13618         * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13620 2008-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
13622         * process.c (Fserial_process_configure, Fprocess_send_eof):
13623         Use EQ to compare Lisp_Objects.
13625 2008-06-13  Jason Rumney  <jasonr@gnu.org>
13627         * w32fns.c (Fw32_select_font): Remove old font API function.
13629         * w32font.c (logfont_to_fcname): New function.
13630         (Fx_select_font): New font dialog function compatible with
13631         GTK/fontconfig version.
13633         * font.c (font_style_symbolic_from_value): New function.
13634         (font_style_symbolic): Use it.
13636         * font.h (font_style_symbolic_from_value): Declare new function.
13638 2008-06-13  Juanma Barranquero  <lekktu@gmail.com>
13640         * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13641         <font-width-table>: Fix typos in docstrings.
13643 2008-06-13  Daniel Engeler  <engeler@gmail.com>
13645         These changes add serial port access.
13646         * process.c: Add HAVE_SERIAL.
13647         (Fdelete_process, Fprocess_status, Fset_process_buffer)
13648         (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13649         (list_processes_1, select_wrapper, Fstop_process)
13650         (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13651         (status_notify): Modify to handle serial processes.
13652         [HAVE_SERIAL] (Fserial_process_configure)
13653         [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13654         New functions.
13655         * process.h (struct Lisp_Process): Add `type'.
13656         * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13657         New functions.
13658         * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13659         serial ports.
13660         (serial_open, serial_configure): New functions.
13661         * w32.h: Add FILE_SERIAL.
13662         (struct _child_process): Add ovl_read, ovl_write.
13664 2008-06-13  Kenichi Handa  <handa@m17n.org>
13666         * dispextern.h (enum lface_attribute_index): New member
13667         LFACE_FOUNDRY_INDEX.
13669         * font.c (font_score): Delete arg alternate_families.  Check only
13670         weight, slant, width, and size.  Ignore the difference of alias
13671         style symbols.
13672         (font_sort_entites): Adjust for the above change.  Reflect the
13673         order of font-driver to scores.
13674         (font_list_entities): Don't check alternate_familes here.
13675         (font_clear_prop): Handle foundry.
13676         (font_update_lface): Don't parse "foundry-family" form here.
13677         Handle FONT_FOUNDRY_INDEX.
13678         (font_find_for_lface): Likewise.  Handle alternate families here.
13679         If registry is nil, try iso8859-1 and ascii-0.
13680         (font_open_for_lface): Pay attention to size in ENTITY.
13681         (font_open_by_name): Simplify by calling font_load_for_lface.
13682         (free_font_driver_list): Delete it.
13683         (font_update_drivers): Preserve the order of backends.
13684         (syms_of_font): Setting of sort_shift_bits adjusted for the change
13685         of font_score and font_sort_entites.
13686         (font_update_sort_order): Likewise.
13688         * xfaces.c (LFACE_FOUNDRY): New macro.
13689         (check_lface_attrs): Check foundry.
13690         (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13691         (merge_face_vectors): Check foundry.
13692         (merge_face_ref): Likewise.
13693         (Finternal_set_lisp_face_attribute): Likewise.
13694         (x_update_menu_appearance): Likewise.
13695         (Finternal_get_lisp_face_attribute): Likewise.
13696         (lface_hash): Likewise.
13697         (lface_same_font_attributes_p): Likewise.
13698         (x_supports_face_attributes_p): Likewise.
13699         (tty_supports_face_attributes_p): Likewise.
13700         (Finternal_set_alternative_font_family_alist): Intern strings.
13701         (Finternal_set_alternative_font_registry_alist): Downcase strings.
13702         (realize_default_face): Set LFACE_FOUNDRY (lface).
13704         * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13705         font-driver at first.
13707         * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13709 2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
13711         * lread.c (Fload): Use xfree, not free on saved_doc_string.
13713 2008-06-12  Jim Meyering  <meyering@redhat.com>
13715         Make unexec_free handle NULL the same way free does.
13716         * unexmacosx.c (unexec_free): Ignore a NULL argument.
13718 2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
13720         * character.h (CHAR_TO_BYTE_SAFE): New macro.
13721         * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13722         * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13723         (WEAK_ALIAS): Simplify.
13724         * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13725         when searching a unibyte buffer.
13727 2008-06-12  Chong Yidong  <cyd@stupidchicken.com>
13729         * xfns.c (Fx_select_font): Rename from x-font-dialog.
13731 2008-06-12  Juanma Barranquero  <lekktu@gmail.com>
13733         * w32font.c: Include ctype.h.
13735 2008-06-11  Jason Rumney  <jasonr@gnu.org>
13737         * w32font.c (w32font_encode_char): Detect missing glyphs that are
13738         misreported as space.
13739         (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13740         as aliases for registry iso10646-1.
13742 2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
13744         * buffer.c (clone_per_buffer_values): Skip `name'.
13746 2008-06-11  Chong Yidong  <cyd@stupidchicken.com>
13748         * font.c (font_parse_fcname): Fix last change; accept decimal
13749         points in font size.
13751 2008-06-10  Jason Rumney  <jasonr@gnu.org>
13753         * w32uniscribe.c (add_opentype_font_name_to_list):
13754         Skip non unicode fonts.
13756 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
13758         * xfns.c (Fx_font_dialog): New function.
13760         * gtkutil.c (xg_dialog_response_cb): Rename from
13761         xg_file_response_callback.
13762         (pop_down_dialog): Rename from pop_down_file_dialog.
13763         (xg_get_file_name): Callers changed.
13764         (xg_get_font_name): New function.
13766         * gtkutil.h (xg_get_font_name): Insert prototype.
13768 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
13770         * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13771         x_underline_minimum_display_offset.
13772         (syms_of_xdisp): Declare it here rather than in xterm.c.
13773         * dispextern.h (underline_minimum_offset): Declare it.
13774         * w32term.c (x_draw_glyph_string): Use it.
13775         * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13776         (syms_of_xterm): Don't declare it any more.
13777         (x_draw_glyph_string): Adjust to the new name.
13779 2008-06-10  David De La Harpe Golden  <david@harpegolden.net>
13781         * xterm.c (x_underline_minimum_display_offset): New var.
13782         (x_draw_glyph_string): Use it.
13783         (syms_of_xterm): Declare it.
13785 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
13787         * font.c (font_parse_fcname): Accept GTK-style font names too.
13789 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
13791         * dired.c (file_name_completion): Don't return t if the match is exact
13792         but with different capitalization.
13793         * minibuf.c (Ftry_completion): Simplify.
13795         * window.c (Vwindow_point_insertion_type): New var.
13796         (set_window_buffer): Use it.
13797         (syms_of_window): Init and export it to Lisp.
13799 2008-06-10  Kenichi Handa  <handa@m17n.org>
13801         * font.h (font_intern_prop): Prototype adjusted.
13803         * font.c (font_intern_prop): New arg force_symbol.
13804         (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13805         Adjust for the change of font_intern_prop.
13807         * ftfont.c (ftfont_pattern_entity):
13808         * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13809         (w32_registry):
13810         * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13811         the change of font_intern_prop.
13813 2008-06-09  Juanma Barranquero  <lekktu@gmail.com>
13815         * w32menu.c (digest_single_submenu): Declare extern.
13817 2008-06-09  Jason Rumney  <jasonr@gnu.org>
13819         * w32term.c (x_make_frame_visible): Use alternate restore flags.
13821         * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13822         (parse_single_submenu): Remove.
13823         (digest_single_submenu): Remove.
13824         (syms_of_w32menu): Don't initialise variables that have moved
13825         to menu.c.
13826         (set_frame_menubar): Sync with version in xmenu.c.
13827         (w32_menu_show): Sync with xmenu_show in xmenu.c.
13829         * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13830         Make static again.
13832 2008-06-09  Jason Rumney  <jasonr@gnu.org>
13834         Changes to w32 files related to the move of common menu code
13835         to menu.c on 2008-06-08 by Chong Yidong.
13837         * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13838         defs to w32gui.h.
13839         (single_keymap_panes, push_menu_item, push_menu_pane):
13840         Make globally visible.
13842         * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13843         (local_free, malloc_widget_value, free_widget_value)
13844         (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13845         (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13846         (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13847         (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13848         (menu_items, menu_items_allocated, menu_items_used)
13849         (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13850         (init_menu_items, finish_menu_items, discard_menu_items)
13851         (grow_menu_items, push_submenu_start, push_submenu_end)
13852         (push_left_right_boundary, push_menu_pane, push_menu_item)
13853         (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13854         (free_menubar_widget_tree_value, parse_single_submenu)
13855         (update_submenu_strings): Remove functions.
13856         (xmalloc_widget_value): Remove and declare extern.
13858         * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13859         (OBJ1): Build it.
13861         * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13862         (local_heap, local_alloc, local_free, malloc_widget_value)
13863         (free_widget_value): Define here.
13865 2008-06-09  Kenichi Handa  <handa@m17n.org>
13867         * font.h (Qascii_0): Extern it.
13869         * font.c (Qascii_0): New variable.
13870         (syms_of_font): DEFSYM it.
13871         (font_open_by_name): If the registry "iso8859-1" fails, try also
13872         "ascii-0".
13874         * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13876 2008-06-08  Kenichi Handa  <handa@m17n.org>
13878         * .gdbinit (xfont): New command.
13880 2008-06-08  Andreas Schwab  <schwab@suse.de>
13882         * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13883         * Makefile.in (menu.o): Update dependencies.
13885         * Makefile.in (obj): Always add menu.o.
13886         * emacs.c (main): Always call syms_of_menu.
13887         * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13889 2008-06-08  Chong Yidong  <cyd@stupidchicken.com>
13891         * Makefile.in: Compile menu.c.
13893         * lisp.h: Declare syms_of_menu.
13895         * emacs.c (main): Call syms_of_menu.
13897         * keyboard.h: Relocate platform-independent menu definitions from
13898         xmenu.c.
13900         * menu.c: New file.  Relocate platform-independent menu
13901         definitions from xmenu.c.  Suggested by Adrian Robert.
13903         * xmenu.c: Remove platform-independent menu definitions.
13904         (menu_items, menu_items_inuse, menu_items_allocated)
13905         (menu_items_used, menu_items_n_panes)
13906         (menu_items_submenu_depth): Move to keyboard.h.
13907         (init_menu_items, finish_menu_items, unuse_menu_items)
13908         (discard_menu_items, restore_menu_items, save_menu_items)
13909         (grow_menu_items, push_submenu_start, push_submenu_end)
13910         (push_left_right_boundary, push_menu_pane, push_menu_item)
13911         (keymap_panes, single_keymap_panes, single_menu_item)
13912         (list_of_panes, list_of_items, find_and_call_menu_selection)
13913         (xmalloc_widget_value, free_menubar_widget_value_tree)
13914         (parse_single_submenu, digest_single_submenu)
13915         (update_submenu_strings): Move to menu.c.
13917 2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
13919         * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13921 2008-06-06  Miles Bader  <miles@gnu.org>
13923         * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13924         face, not frame default.
13926 2008-06-05  Martin Rudalics  <rudalics@gmx.at>
13928         * window.c (pop_up_windows, pop_up_frames)
13929         (display_buffer_reuse_frames, Vpop_up_frame_function)
13930         (Vdisplay_buffer_function, Veven_window_heights)
13931         (Vspecial_display_buffer_names, Vspecial_display_regexps)
13932         (Vspecial_display_function, Vsame_window_buffer_names)
13933         (Vsame_window_regexps, split_height_threshold)
13934         (Vsplit_window_preferred_function): Move those vars to window.el.
13935         (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13936         (Fdisplay_buffer): Move those functions to window.el.
13937         (syms_of_window): Remove corresponding declarations.
13938         (display_buffer): New function.
13939         (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13940         * dispnew.c (Flast_nonminibuf_frame): New function.
13941         * buffer.c (Fpop_to_buffer): Move to window.el.
13943 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
13945         * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13947 2008-06-05  Kenichi Handa  <handa@m17n.org>
13949         * coding.c (detect_coding): Fix previous change.
13950         (detect_coding_system): Likewise.
13952 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
13954         * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13956         * keymap.c (Vminibuffer_local_filename_must_match_map):
13957         Rename from Vminibuffer_local_must_match_filename_map.
13958         (syms_of_keymap):
13959         * minibuf.c (Fcompleting_read): Adjust accordingly.
13960         * commands.h: Rename declaration as well.
13962 2008-06-05  Kenichi Handa  <handa@m17n.org>
13964         * font.c (Ffont_spec): Don't use font_parse_family_registry for
13965         family name.
13966         (Ffont_put): Likewise.
13968         * fontset.c (fontset_find_font): Call font_open_for_lface with the
13969         current font-spec.
13971         * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13972         is unspecified.
13974         * xfaces.c (realize_x_face): If the font-related face attributes
13975         are the same as those of default face, realize a new fontset from
13976         default->fontset.
13977         (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13979 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
13981         * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13982         (move_it_in_display_line): New wrapper.
13984         * window.c (window_scroll_pixel_based_preserve_x)
13985         (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13986         (window_scroll_pixel_based, window_scroll_line_based):
13987         Use them to preserve column positions.
13988         (syms_of_window): Initialize them.
13990         * indent.c (Fvertical_motion): Extend first arg to allow passing an
13991         (HPOS . VPOS) pair.
13993         * dispextern.h (move_it_in_display_line): Declare.
13995 2008-06-05  Juanma Barranquero  <lekktu@gmail.com>
13997         * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13998         (Fwindow_parameters): Return copy of parameter alist.  Doc fix.
13999         (Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.
14001 2008-06-04  Juanma Barranquero  <lekktu@gmail.com>
14003         * window.c (Fset_window_parameter): Doc fix.
14004         (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14006 2008-06-04  Joakim Verona  <joakim@verona.se>
14008         * window.h (struct window): Add new member window_parameters.
14010         * window.c (Fwindow_parameters, Fwindow_parameter)
14011         (Fset_window_parameter): New defuns.
14012         (syms_of_window): Defsubr the new defuns.
14013         (make_window): Initialize window_parameters to nil.
14015 2008-06-04  John Paul Wallington  <jpw@pobox.com>
14017         * eval.c (Fdefmacro): Doc fix.
14019 2008-06-04  Kenichi Handa  <handa@m17n.org>
14021         * coding.c (detect_coding): Fix handling of coding->head_ascii.
14022         Be sure to call setup_coding_system when we find a proper coding system.
14023         (detect_coding_system): Fix handling of coding->head_ascii.
14025 2008-06-03  Andreas Schwab  <schwab@suse.de>
14027         * font.c (font_prop_validate_spacing): Fix last change.
14029 2008-06-03  Kenichi Handa  <handa@m17n.org>
14031         * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14032         (font_parse_fcname): Fix handling of unknown key.
14034         * xfont.c (xfont_list): Try an alias.
14036         * charset.c (char_charset): Return NULL if the arg charset_list is
14037         specified and C doesn't belong to any of them.
14039 2008-06-02  Chip Coldwell  <coldwell@redhat.com>
14041         * font.c (font_pixel_size): Don't take cdr of an integer.
14043 2008-06-02  Jim Meyering  <meyering@redhat.com>
14045         Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14046         * alloc.c (xfree): Return right away for a NULL arg.
14047         * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14048         * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14049         * mac.c (create_apple_event_from_event_ref): Likewise.
14050         (create_apple_event_from_drag_ref, cfstring_create_normalized):
14051         Likewise.
14052         * doprnt.c (doprnt1): Likewise.
14053         * frame.c (frame): Likewise.
14054         * keyboard.c (wipe_kboard): Likewise.
14055         * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14056         (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14057         * term.c (tty_default_color_capabilities, maybe_fatal)
14058         (delete_tty): Likewise.
14059         * w16select.c (string): Likewise.
14060         * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14061         * w32bdf.c (w32_free_bdf_font): Likewise.
14062         * w32fns.c (w32_unload_font): Likewise.
14063         * w32font.c (w32font_close): Likewise.
14064         * window.c (size_window): Likewise.
14065         * xselect.c (receive_incremental_selection): Likewise.
14066         * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14067         * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14068         * w32.c (stat): Likewise.
14070         Remove useless if-before-free tests.
14071         * editfns.c (Fset_time_zone_rule): Likewise.
14072         * lread.c (nosuffix): Likewise.
14073         * ralloc.c (get_bloc): Likewise.
14074         * regex.c (reg_free): Likewise.
14075         * xftfont.c (xftfont_open, xftfont_close): Likewise.
14076         * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14077         * xsmfns.c (smc_save_yourself_CB): Likewise.
14079 2008-06-02  Kenichi Handa  <handa@m17n.org>
14081         * font.c (font_find_for_lface): Handle float font size.
14082         (font_open_for_lface): Likewise.
14084         * xfaces.c (x_supports_face_attributes_p): Check face->font before
14085         comparing the properties.
14087 2008-06-01  Jason Rumney  <jasonr@gnu.org>
14089         * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14090         Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14091         Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14092         Don't add empty script list.
14093         (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14095 2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>
14097         * Makefile.in (dot, dotdot): Remove, update users.
14098         ".." has been used elsewhere in the file for a long time.
14099         (LIBXT_STATIC): Remove conditional based on unused variable.
14101 2008-06-01  Miles Bader  <miles@gnu.org>
14103         * xfaces.c (Vface_remapping_alist): New variable.
14104         (syms_of_xfaces): Initialize it.
14105         (enum named_merge_point_kind): New type.
14106         (struct named_merge_point): Add `named_merge_point_kind' field.
14107         (push_named_merge_point): Make cycle detection respect different
14108         named-merge-point kinds.
14109         (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14110         Remove face-name alias resolution.
14111         (lface_from_face_name): New definition using
14112         `lface_from_face_name_no_resolve'.
14113         (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14114         Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14115         (get_lface_attributes): New definition that layers face-remapping on
14116         top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
14117         (lookup_basic_face): New function.
14118         (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14119         (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14120         `get_lface_attributes'.
14121         (face_at_buffer_position): Use `lookup_basic_face' to lookup
14122         DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
14123         return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14125         * xdisp.c (init_iterator): Pass base_face_id through
14126         `lookup_basic_face' when we actually use it as a face-id.
14127         (handle_single_display_prop): Use `lookup_basic_face' to lookup
14128         DEFAULT_FACE_ID.
14130         * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14131         lookup the initial face-id.
14133         * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14135 2008-06-01  Juanma Barranquero  <lekktu@gmail.com>
14137         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14138         (Fremove_text_properties): Fix typos in docstrings.
14140 2008-05-31  Kenichi Handa  <handa@m17n.org>
14142         * font.c (font_list_entities): Fix the car part of data to be
14143         stored in the cache.
14145         * ftfont.c (ftfont_font_format): Don't use strcasestr.
14147 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
14149         * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14150         Add a `test' argument so another predicate than `equal' can be used.
14151         (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14152         (map_char_table): Remove unused vars `c' and `i'.
14153         * lisp.h (Foptimize_char_table): Adjust declaration.
14154         * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14156 2008-05-30  Kenichi Handa  <handa@m17n.org>
14158         * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14159         (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14160         defined.
14162 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
14164         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14165         (Fmake_variable_frame_local): Disallow mixing buffer-local and
14166         frame-local settings for the same variable.
14168 2008-05-30  Kenichi Handa  <handa@m17n.org>
14170         * fontset.c (Ffont_info): Move to font.c.
14171         (syms_of_fontset): Delete defsubr of Sfont_info.
14173         * font.c (font_style_to_value, font_score): Delete casting of the
14174         args to xstcasecmp.
14175         (register_font_driver): Increment num_font_drivers only when
14176         registering the driver globally.
14177         (Ffont_info): Move from fontset.c.  Handle a font object too.
14178         (syms_of_font): Defsubr Sfont_info.
14180 2008-05-29  Kenichi Handa  <handa@m17n.org>
14182         * coding.h (enum define_coding_utf8_arg_index): New enum.
14183         (enum coding_attr_index): Change coding_attr_utf_16_bom to
14184         coding_attr_utf_bom.
14185         (enum utf_bom_type): Rename from utf_16_bom_type.
14186         (struct utf_16_spec): Adjust for the above change.
14187         (struct coding_system): Add utf_8_bom in `spec' union.
14189         * coding.c (CODING_UTF_8_BOM): New macro.
14190         (enum coding_category): Delete coding_category_utf_8, add
14191         coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14192         coding_category_utf_8_sig.
14193         (CATEGORY_MASK_UTF_8): Delete it.
14194         (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14195         (CATEGORY_MASK_UTF_8_SIG): New macros.
14196         (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14197         CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14198         CATEGORY_MASK_UTF_8_SIG.
14199         (CATEGORY_MASK_UTF_8): New macro.
14200         (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14201         (detect_coding_utf_8): Check BOM.
14202         (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14203         (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14204         (encode_coding_utf_16): Likewise.
14205         (setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
14206         (detect_coding, detect_coding_system): Handle utf-8-auto.
14207         (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14208         (syms_of_coding): Fix setting up of Vcoding_category_table.
14210 2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
14212         * process.c (Faccept_process_output): If `millisec' is non-nil,
14213         `seconds' default to 0.
14214         (wait_reading_process_output): Also return non-nil if we read output
14215         from a non-running process.
14217 2008-05-29  Jason Rumney  <jasonr@gnu.org>
14219         * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14220         `raster' specified.
14221         (add_font_entity_to_list): Allow non-opentype truetype fonts back
14222         in the uniscribe backend, but disallow any font that has no
14223         unicode subrange support.
14225 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
14227         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14228         Fix typos in docstrings.
14230 2008-05-29  Kenichi Handa  <handa@m17n.org>
14232         * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14233         (Fx_family_fonts): Set frame correctly.
14235 2008-05-28  Jason Rumney  <jasonr@gnu.org>
14237         * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14239 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
14241         * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14242         calling build_annotations.
14244 2008-05-28  Juanma Barranquero  <lekktu@gmail.com>
14246         * coding.c (Fdecode_coding_region, Fencode_coding_region)
14247         (Fencode_coding_string):
14248         (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14249         <latin-extra-code-table>: Fix typos in docstrings.
14250         (syms_of_coding) <coding-system-alist>: Doc fix.
14251         (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14253 2008-05-28  Kenichi Handa  <handa@m17n.org>
14255         * fontset.c (Ffont_info): Don't call font_close_object.
14257         * font.c (font_parse_family_registry): Use Ffont_put to validate
14258         foundry and family.
14259         (font_delete_unmatched): Don't check spacing.
14260         (font_list_entities): Add spacing to the spec to list fonts.
14262         * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14263         (ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
14265         * coding.c (encode_coding_raw_text): Fix previous change.
14266         (encode_coding_object): When the dst_object is a buffer and is
14267         different from src_object, move gap to PT.
14269 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
14271         * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14273 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
14275         * coding.c (encode_coding_raw_text): Set coding->produced_char for
14276         all branches.  Compute it differently.
14278         * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14280 2008-05-27  Juanma Barranquero  <lekktu@gmail.com>
14282         * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14283         into "else if () ... else ...".
14285 2008-05-27  Jason Rumney  <jasonr@gnu.org>
14287         * w32font.c (w32font_open_internal): Determine if glyph indices
14288         are likely to work here.
14290 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
14292         * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14293         draw overlap glyphs with appropriate highlighting.
14295 2008-05-27  Kenichi Handa  <handa@m17n.org>
14297         * xfont.c (xfont_open): Fix calculation of font->average_width.
14299 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
14301         * casefiddle.c (casify_object): Try to guess better whether the
14302         argument is a byte or a char.
14304 2008-05-26  Andreas Schwab  <schwab@suse.de>
14306         * xselect.c (x_reply_selection_request): Properly handle format == 32.
14307         Always send multiples of format size.
14309         * xterm.c (x_set_frame_alpha): Fix type mismatch.
14311 2008-05-26  Jason Rumney  <jasonr@gnu.org>
14313         * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14314         (compute_metrics): Don't set failure if we just cleared the cache.
14315         (w32_weight_table): Remove unused variable.
14316         (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14317         backwards compatibility.
14319 2008-05-25  Kenichi Handa  <handa@m17n.org>
14321         * w32term.c (x_draw_glyph_string):
14322         * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14324         * xfaces.c: Delete unused function prototypes.
14325         (xstrlwr, font_frame): Delete them.
14326         (clear_face_cache): Delete unused variable.
14328         * xftfont.c (xftfont_open): Delete unused variable.
14329         If underline_thickness is not 1, adjust underline_position.
14331         * ftxfont.c (ftxfont_open): Delete unused variable.
14333         * fontset.c (face_for_char): Optimize for the case of no charset
14334         property.
14336         * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14337         (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14338         (otf_open, font_otf_capability, generate_otf_features)
14339         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14340         Comment out by surrounding "#if 0" and "#endif" for the moment.
14341         (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14342         (syms_of_font): Codes for accessing above commented out.
14344 2008-05-24  Eli Zaretskii  <eliz@gnu.org>
14346         * w32proc.c: Include dispextern.h.
14348         * w32.c: Include dispextern.h.
14350 2008-05-23  Juanma Barranquero  <lekktu@gmail.com>
14352         * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14353         (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14354         Fix typos in docstrings.
14356 2008-05-23  Jason Rumney  <jasonr@gnu.org>
14358         * xsmfns.c: Remove includes that are already included by config.h.
14360 2008-05-23  Kenichi Handa  <handa@m17n.org>
14362         * charset.c (Qemacs, charset_emacs): New variables.
14363         (char_charset): Fix for non-Unicode characters.
14364         (syms_of_charset): Define charset_emacs.
14366         * w32term.c (x_draw_glyph_string): Be sure to update
14367         s->underline_thickness and s->underline_position.  Be sure to draw
14368         underline within the current line area.
14370         * xterm.c (x_draw_glyph_string): Be sure to update
14371         s->underline_thickness and s->underline_position.  Be sure to draw
14372         underline within the current line area.
14374         * fontset.c: Delete unused variables and add casting for char *
14375         throughout the file.
14376         (fontset_font): Try the fallback fonts of the current fontset
14377         before consulting the default fontset.
14379         * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14381         * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14383 2008-05-22  Jason Rumney  <jasonr@gnu.org>
14385         * font.c: Don't include strings.h.
14387         * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14389         * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14390         * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14391         * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14392         to call xstrcasecmp.
14394         * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14396         * fontset.c (fs_query_fontset): Use xstrcasecmp.
14398         * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14400         * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14402 2008-05-22  Kenichi Handa  <handa@m17n.org>
14404         * puresize.h (BASE_PURESIZE): Increase to 1220000.
14406         * font.c (font_prop_validate_style): Adjust for the format
14407         change of font_style_table.
14409         * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14410         two args.
14412         * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14413         two args.
14415 2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>
14417         * minibuf.c (keys_of_minibuf): Delete.
14418         * lisp.h (keys_of_minibuf): Delete.
14419         * emacs.c (main): Don't call keys_of_minibuf.
14421 2008-05-22  Kenichi Handa  <handa@m17n.org>
14423         * ftfont.c (ftfont_resolve_generic_family): Rename from
14424         ftfont_list_generic_family.  Return a single family for each
14425         generic family.
14426         (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14427         (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14428         Call font_add_log.
14429         (ftfont_match): Call font_add_log.
14431         * font.h (Ffont_xlfd_name): EXFUN adjusted.
14432         (FONT_DEBUG): Define it.
14433         (font_add_log): Extern it.
14434         (font_assert): Rename from xassert.
14436         * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14437         (xfont_list_family): Call font_add_log.
14438         (xfont_match): Likewise.
14439         (memq_no_quit): Delete.
14441         * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14442         call of Ffont_xlfd_name.
14444         * xfaces.c (struct table_entry, slant_table, weight_table)
14445         (swidth_table): Move to font.c.
14447         * font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
14448         xassert are changed to font_assert.  Delete many unused variables.
14449         (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14450         New variables.
14451         (struct table_entry): Move from xfaces.c and modified.
14452         (weight_table, slant_table, width_table): Move from xfaces.c and
14453         contents adjusted for the change of struct table_entry.
14454         (font_style_to_value, font_style_symbolic): Adjust for the
14455         format change of font_style_table.
14456         (font_parse_family_registry): Don't overwrite existing foundry and
14457         family of font_spec.
14458         (font_score): Fix calculation of diff for sizes.
14459         (font_sort_entites): Call font_add_log.
14460         (font_delete_unmatched): Return a newly created list.
14461         (font_list_entities): Fix previous change.  Call font_add_log.
14462         (font_matching_entity, font_open_entity, font_close_entity):
14463         Call font_add_log.
14464         (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14465         (Finternal_set_font_style_table): Delete.
14466         (BUILD_STYLE_TABLE): New macro.
14467         (build_style_table): New function.
14468         (Vfont_log, font_log_env_checked): New variables.
14469         (font_add_log): New function.
14470         (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14471         Declare Lisp variables "font-weight-table", "font-slant-table",
14472         "font-width-table", and "font-log".  Initialize font_style_table.
14474 2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>
14476         * xterm.c (x_set_frame_alpha): Move declarations before statements.
14478 2008-05-21  Seiji Zenitani  <zenitani@mac.com>
14479             Ryo Yoshitake  <ryo@shiftmode.net>
14481         * frame.c (Qalpha): Add a new frame parameter `alpha'.
14482         (Vframe_alpha_lower_limit): New variable.
14483         (x_set_alpha): New function.
14485         * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14487         * xfns.c (x-create-frame, Qalpha):
14488         Initialize the frame parameter `alpha'.
14489         * xterm.c (OPAQUE, OPACITY): New.
14490         (x_set_frame_alpha): New function.
14491         (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14493         * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14494         * w32fns.c (w32_frame_parm_handlers): Likewise.
14496 2008-05-20  Jason Rumney  <jasonr@gnu.org>
14498         * w32font.c (add_font_entity_to_list): Don't add non-opentype
14499         truetype fonts to opentype list.
14501 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
14503         * fontset.c (Ffontset_info): Doc fix.
14504         (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14505         <ignore-relative-composition>: Fix typos in docstrings.
14507         * font.c (syms-of-font) <font-encoding-alist>:
14508         (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14509         (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14510         (Ffont_otf_alternates): Doc fixes.
14512 2008-05-20  Kenichi Handa  <handa@m17n.org>
14514         * Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
14515         font.h through out the file.
14516         (FONT_DRIVERS): Rename from FONTOBJ.
14517         (obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
14518         (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14520         * emacs.c (main): Call syms_of_font unconditionally.
14522         * font.h (find_font_encoding): Extern it.
14524         * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14525         fontset.c.
14526         (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
14527         (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14528         FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14529         only when HAVE_WINDOW_SYSTEM is defined.
14530         (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14531         when HAVE_WINDOW_SYSTEM is defined.
14533         * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14534         (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14536         * xfaces.c: Include font.h unconditionally.
14537         (merge_face_ref, merge_face_vectors)
14538         (Finternal_set_lisp_face_attribute): Cancel the previous change.
14540 2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
14542         * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14543         indirect_variable.
14544         * eval.c (lisp_indirect_variable): New fun.
14545         (Fuser_variable_p): Use it.
14547 2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
14549         * lisp.h (indirect_variable):
14550         * data.c (indirect_variable, let_shadows_buffer_binding_p):
14551         Use Lisp_Symbol pointers rather than Lisp_Object.
14552         Adjust callers.
14553         * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14554         To this end, change calling-convention.
14556         * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14557         if some non-hidden buffers are selected by string&pred.
14559 2008-05-19  Chong Yidong  <cyd@stupidchicken.com>
14561         * process.c (wait_reading_process_output): Always check status
14562         when in batch mode.
14564 2008-05-19  Kenichi Handa  <handa@m17n.org>
14566         * font.c (font_list_entities): Fix handling of cache.
14567         (font_matching_entity): Likewise.
14569         * ftfont.c (cs_iso8859_1): Delete.
14570         (ft_face_cache): New variable.
14571         (struct ftfont_info): New member fc_charset_idx.
14572         (ftfont_build_basic_charsets): Delete.
14573         (fc_charset_table): New variable.
14574         (ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
14575         . FC_CHARSET_IDX) as :font-entity property in the font entity.
14576         Callers changed.
14577         (ftfont_lookup_cache, ftfont_get_charset): New functions.
14578         (ftfont_spec_pattern): New argument fc_charset_idx.
14579         Check registry more rigidly.  Change callers.
14580         (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14581         change of :font-entity property of the font.
14583         * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14584         property of the font.
14586 2008-05-18  Juanma Barranquero  <lekktu@gmail.com>
14588         * coding.c (Fcoding_system_p): Rename argument to match docstring.
14589         (Funencodable_char_position, Fcheck_coding_systems_region)
14590         (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14591         (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14592         (Ffind_operation_coding_system, Fset_coding_system_priority)
14593         (Fcoding_system_eol_type): Doc fixes.
14595 2008-05-17  Glenn Morris  <rgm@gnu.org>
14597         * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14599 2008-05-16  Eli Zaretskii  <eliz@gnu.org>
14601         * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14602         and st_gid.
14604         * frame.c (Fdelete_frame): Don't call font_update_drivers if
14605         HAVE_WINDOW_SYSTEM is not defined.
14607         * xfaces.c (merge_face_ref, merge_face_vectors)
14608         (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14609         HAVE_WINDOW_SYSTEM is defined.
14610         (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14612 2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>
14614         * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14616 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14618         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14620 2008-05-15  Kenichi Handa  <handa@m17n.org>
14622         * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14623         preference.
14625 2008-05-15  Glenn Morris  <rgm@gnu.org>
14627         * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14629 2008-05-15  Chong Yidong  <cyd@stupidchicken.com>
14631         * fns.c (init_fns): Don't initialize weak_hash_tables here.
14632         (init_weak_hash_tables): New fun.  Initialize weak_hash_tables.
14634         * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14636 2008-05-15  Kenichi Handa  <handa@m17n.org>
14638         * ftfont.c (ftfont_list): Downcase family name to check generic
14639         families.
14641         * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14642         font-spec for QCfont value.
14644         * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14645         buffer.  Check the return value of it.
14647 2008-05-14  Jason Rumney  <jasonr@gnu.org>
14649         * w32term.c (w32_get_glyph_overhangs): Remove.
14650         (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14652 2008-05-14  Kenichi Handa  <handa@m17n.org>
14654         * font.c (font_prop_validate): Make nil a valid value.
14655         (font_clear_cache): Check if the cached vector of entities is nil
14656         or not.
14658 2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14660         * emacs.c (main_thread): Conditionalize on
14661         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14662         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14664         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14665         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14666         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14668 2008-05-14  Kenichi Handa  <handa@m17n.org>
14670         * coding.c (detect_coding_iso_2022): Ignore a coding category that
14671         has no corresponding coding system.
14673 2008-05-14  Jason Rumney  <jasonr@gnu.org>
14675         * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14677         * w32font.h (w32font_open_internal): Update declaration.
14679         * w32font.c (w32font_open_internal): Change last argument from
14680         w32font_info struct to font object.  Fill in font object from
14681         font_entity.  Get Outline metrics if possible.  Use them to
14682         calculate underline position and thickness.  Use xlfd name as name
14683         property.  Don't set codepage.
14684         (w32font_open): Pass font_object to w32font_open_internal.  Don't
14685         update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14686         (w32font_draw): Use s->font.
14687         (clear_cached_metrics): Don't clear non-existent blocks.
14689         * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14690         font was not found.
14691         (x_draw_glyph_string): Use underline position and thickness from font.
14693         * w32uniscribe.c (uniscribe_open): Pass font_object to
14694         w32font_open_internal.
14696 2008-05-14  Kenichi Handa  <handa@m17n.org>
14698         These changes are to delete all legacy font-handling codes, and
14699         make Emacs use only font-backends.
14701         * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14702         (frame.o, image.o, print.o): Depend on $(FONTSRC).
14704         * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14706         * charset.h (Vcharset_non_preferred_head)
14707         (Vcurrent_iso639_language): Extern them.
14709         * charset.c (Vcharset_non_preferred_head): New variable.
14710         (Vcurrent_iso639_language): New variable.
14711         (syms_of_charset): Declare it as a Lisp variable.
14712         (char_charset): Don't check non preferred charsets.  As a last
14713         resort, return charset_unicode.
14714         (Fset_charset_priority): Update Vcharset_non_preferred_head.
14716         * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14717         conditionals.  Don't check enable_font_backend.  Delete all codes
14718         used only when USE_FONT_BACKEND is not defined.
14720         * dispextern.h (struct glyph_string): Change type of `font' to
14721         `struct font *'.
14722         (struct glyph_string): New member underline_position and
14723         underline_thickness.
14724         (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14725         (struct face): Change type of `font' to `struct font *'.  Remove
14726         members `font_name', `font_info_id'.
14727         (per_char_metric, encode_char): Delete externs.
14728         (calc_pixel_width_or_height): Adjust the prototype.
14730         * emacs.c (enable_font_backend): Delete extern.
14731         (main): Don't set enable_font_backend.  Don't check the command
14732         line argument "-disable-font-backend".
14734         * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14735         (enum font_property_index): New members FONT_DPI_INDEX,
14736         FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14737         FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14738         FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
14739         (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14740         (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14741         (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14742         (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14743         (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14744         (struct font_spec, struct font_entity): New structs.
14745         (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14746         (struct font): Many members from old "struct font_info" moved to
14747         here.  Members font and entity deleted.
14748         (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14749         the new font-related objects.
14750         (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14751         (CHECK_FONT_GET_OBJECT): Likewise.
14752         (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14753         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14754         (struct font_driver): New members case_sensitive anc check.  Type
14755         of the member list and open changed.
14756         (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14757         (font_symbolic_width, font_find_object, font_get_spec)
14758         (font_set_lface_from_name): Delete extern.
14759         (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14761         * font.c: Include <strings.h>.
14762         (enable_font_backend): Delete it.
14763         (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14764         (CHECK_VALIDATE_FONT_SPEC): Delete it.
14765         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14766         (null_string): Delete it.
14767         (null_vector): Make it static.
14768         (font_family_alist): Delete it.
14769         (Qnormal): Extern it.
14770         (QCextra, QClanguage): Delete it.
14771         (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14772         (font_make_spec, font_make_entity, font_make_object)
14773         (font_intern_prop): Renamed from intern_downcase.  Don't downcase
14774         the string.  Callers changed.
14775         (font_pixel_size): Adjusted for the format change of font-related
14776         objects.
14777         (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14778         (font_style_to_value, font_style_symbolic): New function.
14779         (build_font_family_alist): Delete it.
14780         (font_registry_charsets): Use Fassoc_string instead of
14781         assq_no_quit.
14782         (font_prop_validate_symbol): Don't return null_string.
14783         (font_prop_validate_style): Adjusted for the change of
14784         style-related values in a font vector.
14785         (font_property_table): Delete entries for QClanguage and
14786         QCantialias, add entries for QCavgwidth.
14787         (get_font_prop_index): Delete the 2nd argument FROM.
14788         (font_prop_validate): Arguments changed.
14789         (font_put_extra): Adjusted for the change of font-related objects.
14790         (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14791         (font_parse_fcname, font_unparse_fcname)
14792         (font_prepare_composition): Likewise.
14793         (font_parse_family_registry): Renamed from font_merge_old_spec.
14794         (otf_open): Delete the 1st arg entity.
14795         (font_otf_capability): Adjusted for the above change.
14796         (font_score): New arg alternate_families.  Adjusted for the change
14797         of font-related objects.
14798         (font_sort_entites): New arg best_only.
14799         (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14800         Delete them.
14801         (font_match_p): Check alternate families.
14802         (font_find_object): Delete it.
14803         (font_check_object): New function.
14804         (font_clear_cache): Adjusted for the change of font-related objects.
14805         (font_delete_unmatched): New arg.
14806         (font_list_entities): Call font_driver->list with a spec that
14807         doesn't specify style-related properties.
14808         (font_matching_entity): Arguments changed.  Caller changed.
14809         (font_open_entity): Adjusted for the change of font-related objects.
14810         (font_close_object, font_has_char, font_encode_char)
14811         (font_get_name, font_get_spec): Likewise.
14812         (font_spec_from_name, font_clear_prop, font_update_lface):
14813         New functions.
14814         (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14815         (font_prepare_for_face, font_done_for_face, font_open_by_name)
14816         (font_at): Adjusted for the change of font-related objects.
14817         (font_range): New function.
14818         (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14819         (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14820         (Fcopy_font_spec, Fmerge_font_spec): New function.
14821         (Ffont_family_list): Renamed from list-families.
14822         (Finternal_set_font_style_table): Arguments changed.
14823         (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14824         (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14825         change of font-related objects.
14826         (syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
14828         * fontset.h (struct font_info): Delete it.  Most members go to
14829         struct font.
14830         (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14831         (enum FONT_SPEC_INDEX): Delete it.
14832         (font_info, list_fonts_func, load_font_func, query_font_func)
14833         (set_frame_fontset_func, find_ccl_program_func)
14834         (get_font_repertory_func, new_fontset_from_font_name): Delete
14835         externs.
14836         (fontset_from_font_name): Extern it.
14837         (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14838         (FONT_INFO_FROM_FACE): Deleted.
14839         (face_for_font): Adjust prototype.
14841         * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14842         conditionals.  Don't check enable_font_backend.  Delete all codes
14843         used only when USE_FONT_BACKEND is not defined.
14844         (get_font_info_func, list_font_func, load_font_func)
14845         (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14846         (get_font_repertory_func): Delete them.
14847         (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14848         (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14849         (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14850         (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14851         (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14852         (fontset_compare_rfontdef): New function.
14853         (reorder_font_vector): Remove the argument CHARSET-ID.  Sort
14854         rfont-defs by qsort.  Adjusted for the change of font-group vector.
14855         (load_font_get_repertory): Deleted.
14856         (fontset_find_font): Use new macros to ref/set elements of
14857         font-def and rfont-def.
14858         (fontset_font): Fix the timing of remembering that no font for C.
14859         (free_face_fontset): Do nothing if the face has no fontset.
14860         (face_suitable_for_char_p): Use new macros to ref/set elements of
14861         rfont-def.
14862         (face_for_char): Likewise.  Call face_for_char with font_object.
14863         (fs_load_font): Delete.  Delete #pragma surrounding it.
14864         (fs_query_fontset): Use strcasecmp instead of strcmp.
14865         (generate_ascii_font_name): Adjusted for the format change of
14866         font-spec.
14867         (Fset_fontset_font): Likewise.  Use new macros to set elements of
14868         font-def.
14869         (Fnew_fontset): Use font_unparse_xlfd to generate
14870         FONTSET_ASCII (fontset).
14871         (new_fontset_from_font_name): Deleted.
14872         (fontset_from_font): Renamed from new_fontset_from_font.  Check if
14873         a fontset is already created for the font.  FIx updating of
14874         Vfontset_alias_alist.
14875         (fontset_ascii_font): Deleted.
14876         (Ffont_info): Adjusted for the format change of font-spec.
14877         (Finternal_char_font): Likewise.
14878         (Ffontset_info): Likewise.
14879         (syms_of_fontset): Don't check load_font_func.
14881         * fns.c (internal_equal): Handle PREV_FONT.
14883         * frame.h: Delete USE_FONT_BACKEND conditional.
14885         * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14886         conditionals.  Don't check enable_font_backend.  Delete all codes
14887         used only when USE_FONT_BACKEND is not defined.
14888         (x_set_font): Call x_new_font, not x_new_fontset2.
14889         (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14890         already set for the frame.
14892         * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.  Make
14893         a font-entity by font_make_entity.  Use font_intern_prop instead
14894         of intern_downcase.  Use FONT_SET_STYLE to set a style-related
14895         font property.  If a font is scalable, set avgwidth property to 0.
14896         Set font-entity property by font_put_extra.
14897         (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14898         (ffont_driver): Adjusted for the change of struct font_driver.
14899         (ftfont_spec_pattern): New function.
14900         (ftfont_list): Return a list, not vector.
14901         (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14902         (ftfont_list_family): Don't downcase names.
14903         (ftfont_free_entity): Deleted.
14904         (ftfont_open): Return a font-object.  Adjusted for the change of
14905         struct font.  Get underline_thickness and underline_position from
14906         font property.  Don't update dpyinfo->smallest_font_height and
14907         dpyinfo->smallest_char_width.
14908         (ftfont_close): Don't free `struct font'.
14909         (ftfont_has_char): Adjusted for the format change of font-entity.
14910         (ftfont_encode_char, ftfont_text_extents): Likewise.
14912         * ftxfont.c (ftxfont_list): Return a list, not vector.
14913         (ftxfont_open): Return a font-object.  Adjusted for the change of
14914         struct font.  Get underline_thickness and underline_position from
14915         font property.  Don't update dpyinfo->smallest_font_height and
14916         dpyinfo->smallest_char_width.
14917         (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14918         (ftxfont_draw): Adjusted for the change of struct font.
14920         * image.c (image_ascent): Don't include "charset.h".  Include
14921         "character.h" and "font.h".
14923         * lisp.h (enum pvec_type): New member PREV_FONT.
14924         (Fassoc_string): EXFUN it.
14926         * print.c: Include font.h.
14927         (print_object): Handle font-related objects.
14929         * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14930         conditionals.  Don't check enable_font_backend.  Delete all codes
14931         used only when USE_FONT_BACKEND is not defined.
14932         (handle_auto_composed_prop): Do nothing if it->f is not on a
14933         window system.  Check how many following characters can be
14934         displayed by the same font.
14935         (calc_pixel_width_or_height): Type of the 4th arg is changed to
14936         'struct font *'.
14937         (get_char_face_and_encoding): Assign the whole encoding task to
14938         the `encode-char' method of a font driver.
14939         (fill_composite_glyph_string): Adjusted for the change of `struct
14940         face' and `struct glyph_string'.
14941         (fill_glyph_string): Likewise.
14942         (get_per_char_metric): Arguments changed.
14943         (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14944         and `struct glyph_string'.
14945         (produce_stretch_glyph, calc_line_height_property)
14946         (x_produce_glyphs): Likewise.
14948         * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14949         conditionals.  Don't check enable_font_backend.  Delete all codes
14950         used only when USE_FONT_BACKEND is not defined.  Use
14951         FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14952         (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14953         (Qp): Extern them.
14954         (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14955         Deleted.
14956         (struct font_name): Deleted.
14957         (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14958         (compare_fonts_by_sort_order): New function.
14959         (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14960         (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14961         Deleted.
14962         (Fx_family_fonts): Use font_list_entities, and sort fonts by
14963         compare_fonts_by_sort_order.
14964         (Fx_font_family_list): Call Ffont_family_list.
14965         (face_numeric_value, face_numeric_weight, face_numeric_slant)
14966         (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14967         (face_symbolic_slant, face_symbolic_swidth)
14968         (split_font_name_into_vector, build_font_name_from_vector)
14969         (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14970         (font_rescale_ratio, split_font_name, build_font_name)
14971         (free_font_names, sort_fonts, x_face_list_fonts)
14972         (face_font_available_p, sorted_font_list, cmp_font_names)
14973         (font_list_1, concat_font_list, font_list, remove_duplicates):
14974         Deleted.
14975         (Fx_list_fonts): Use Ffont_list.
14976         (LFACE_AVGWIDTH): Deleted.
14977         (check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
14978         by FONTP.
14979         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14980         (set_lface_from_font_name): Delete it.
14981         (set_lface_from_font): Renamed from
14982         set_lface_from_font_and_fontset.  Caller changed.  Don't set
14983         LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
14984         for face.
14985         (merge_face_vectors): Copy font-spec if necessary.
14986         Clear properties of the font-spec if necessary.
14987         (merge_face_ref): Clear properties of the font-spec if necessary.
14988         (Finternal_set_lisp_face_attribute): Likewise.
14989         (set_font_frame_param): Use font_load_for_lface to load a
14990         font-object, and call Fmodify_frame_parameters with it.
14991         (x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
14992         font name by Ffont_xlfd_name.
14993         (Finternal_lisp_face_attribute_values): Don't check QCweight,
14994         QCslant, and QCwidth.
14995         (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14996         (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14997         Compare fonts by EQ.
14998         (lookup_non_ascii_face): Deleted.
14999         (face_for_font): The 2nd argument changed.
15000         (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15001         Check atomic font properties by case insensitive.
15002         (realize_non_ascii_face): Set face->overstrike correctly.
15003         (realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
15004         (dump_realized_face): Get font name from
15005         font->props[FONT_NAME_INDEX].  Don't print font_info_id.
15007         * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15008         conditionals.  Don't check enable_font_backend.  Delete all codes
15009         used only when USE_FONT_BACKEND is not defined.
15010         (xic_create_xfontset): Original code deleted and renamed from
15011         xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
15012         (x_make_gc): Don't set GCFont in GCs.
15013         (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15014         opened by "fixed".
15015         (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15016         find_ccl_program_func, query_font_func, set_frame_fontset_func,
15017         get_font_repertory_func.
15019         * xfont.c: Include <stdlib.h> and "ccl.h".
15020         (struct xfont_info): New structure.
15021         (xfont_query_font): Deleted.
15022         (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15023         moved from xterm.c.
15024         (xfont_driver): Adjusted for the change of struct font_driver.
15025         (compare_font_names): New function.
15026         (xfont_list_pattern): Sort font names case insensitively.  Make
15027         font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
15028         (xfont_list): Return a list, not vector.
15029         (xfont_match): If the font doesn't have QCname property, generate
15030         a name from the other font properties.
15031         (xfont_open): Return a font-object.  Adjusted for the change of
15032         struct font.  Get underline_thickness and underline_position from
15033         font property.  Don't update dpyinfo->smallest_font_height and
15034         dpyinfo->smallest_char_width.
15035         (xfont_close): Don't free struct font.
15036         (xfont_prepare_face): Adjusted for the change of struct font.
15037         (xfont_done_face): Deleted.
15038         (xfont_has_char): Adjusted for the change of struct font.
15039         (xfont_encode_char, xfont_draw): Likewise.
15040         (xfont_check): New function.
15042         * xftfont.c (xftfont_list): Adjusted for the change of `list'
15043         callback function.
15044         (xftfont_match): Adjusted for the format change of font-entity.
15045         (xftfont_open): Adjusted for the format change of font-entity and
15046         font-object.  Adjusted for the change of struct font.  Return a
15047         font-object.  Don't update dpyinfo->smallest_font_height and
15048         dpyinfo->smallest_char_width.
15049         (xftfont_close): Block input while calling XftFontClose.
15050         (xftfont_prepare_face): Don't block input while calling
15051         xftfont_get_colors.  Adjusted for the change of struct font.
15052         (xftfont_shape): Return value of error case fixed.
15054         * xrdb.c (x_load_resources): Don't setup a fontset resource.
15056         * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15057         conditionals.
15058         (FONT_WIDTH): Return (f)->max_width.
15059         (struct x_display_info): Delete member `font'.
15060         (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15061         (x_find_ccl_program, x_get_font_repertory): Delete externs.
15062         (struct x_output): Change type of `font' to `struct font *'.
15064         * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15065         conditionals.  Don't check enable_font_backend.  Delete all codes
15066         used only when USE_FONT_BACKEND is not defined.  Don't include ccl.h.
15067         (x_per_char_metric, x_encode_char): Deleted.
15068         (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15069         (x_compute_glyph_string_overhangs): Adjusted for the change of
15070         `struct face'.
15071         (x_draw_glyph_string_foreground)
15072         (x_draw_composite_glyph_string_foreground): Likewise.
15073         (x_draw_glyph_string): Likewise.  Use font->underline_position and
15074         font->underline_thickness.
15075         (x_new_font): Renamed from x_new_fontset2.
15076         (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15077         (x_check_font): Call `check' method of a font driver.
15078         (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15079         (x_query_font, x_get_font_repertory): Deleted.
15080         (x_find_ccl_program): Renamed and moved to xfont.c.
15081         (x_redisplay_interface): Adjusted for the change of `struct
15082         redisplay_interface'.
15084         * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15085         conditionals.  Don't check enable_font_backend.  Delete all codes
15086         used only when USE_FONT_BACKEND is not defined.  Surround non-used
15087         code by "#ifdef OLD_FONT" and "endif".
15088         (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15090         * w32font.h (struct w32font_info): New member.
15091         (FONT_COMPAT): New macro.
15092         (w32font_open_internal): Prototype adjusted.
15094         * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15095         OLD_FONT" and "endif".
15097         * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15098         conditionals.  Don't check enable_font_backend.  Delete all codes
15099         used only when USE_FONT_BACKEND is not defined.
15100         (w32font_open): Return a font-object.  Make a font-object by
15101         font_make_object.  Adjusted for the change of struct w32font_info.
15102         (w32font_close): Don't free struct font.  Adjusted for the change
15103         of struct w32font_info.
15104         (w32font_encode_char, w32font_text_extents, w32font_draw):
15105         Adjusted for the change of struct w32font_info.
15106         (w32font_draw): Likewise.
15107         (w32font_list_internal): Return a list, not vector.
15108         (w32font_open_internal): Change the 4th arg to font-object.
15109         Adjusted for the change of struct w32font_info and font-object format.
15110         (add_font_name_to_list): Don't downcase names.
15111         (w32_enumfont_pattern_entity): Make a font-entity by
15112         font_make_entity.  Adjusted for the format change of font-entity.
15113         Use FONT_SET_STYLE to set a style-related font property.  If a
15114         font is scalable, set avgwidth property to 0.  Set font-entity
15115         property by font_put_extra.
15116         (font_matches_spec): Adjusted for the format change of font-entity.
15117         (w32_weight_table, w32_decode_weight): New variables.
15118         (w32_encode_weight): New function.
15119         (fill_in_logfont): Adjusted for the format change of font-spec.
15120         (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15121         weight value.
15122         (w32font_driver): Adjusted for the change of struct font_driver.
15124         * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15125         conditionals.  Don't check enable_font_backend.  Surround non-used
15126         code by "#ifdef OLD_FONT" and "endif".
15127         (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15128         (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15130         * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15131         conditionals.  Don't check enable_font_backend.  Delete all codes
15132         used only when USE_FONT_BACKEND is not defined.  Surround non-used
15133         code by "#ifdef OLD_FONT" and "endif".
15135         * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15136         (uniscribe_open): Return value changed to font-object.
15137         Adjusted for the format change of font-object.
15138         (uniscribe_otf_capability): Adjusted for the change of struct font.
15139         (add_opentype_font_name_to_list): Don't downcase names.
15140         (uniscribe_font_driver): Adjusted for the change of struct
15141         font_driver.
15143 2008-05-13  Chong Yidong  <cyd@stupidchicken.com>
15145         * dispnew.c (update_frame_1): Check if tty output is still valid
15146         before flushing it.
15148 2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
15150         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15151         to Gtk+ menus.
15153 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
15155         * dired.c (file_name_completion): Tweak the code so as to always do it
15156         in a single pass.  Tighten the scope of some variables.
15158         * dired.c (Qdefault_directory): New var.
15159         (file_name_completion): Use it instead of Fexpand_file_name.
15160         (syms_of_dired): Initialize it.
15162 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
15164         * fileio.c (double_dollars): Remove dead code.
15166 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
15168         * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15169         Mention w32-get-true-file-attributes in doc string.
15171         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15173 2008-05-09  Glenn Morris  <rgm@gnu.org>
15175         * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15176         2008-04-23.
15178 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
15180         Support for reporting owner and group of each file on MS-Windows:
15181         * dired.c (stat_uname, stat_gname): New functions, with special
15182         implementation for w32.
15183         (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15185         * w32.c: Rename the_passwd_* to dflt_passwd_*.
15186         (dflt_group_name): New static variable.
15187         (dflt_group): Rename from the_group.
15188         (init_user_info): Init dflt_group fields.  Get user's group name
15189         from LookupAccountSid.
15190         (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15191         (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15192         New initialization states.
15193         (globals_of_w32): Initialize them to zero.  Initialize the default
15194         group name to "None".
15195         (GetFileSecurity_Name): New global var, the name of the function
15196         to call for GetFileSecurity.
15197         (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15198         (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15199         (get_file_security, get_security_descriptor_owner)
15200         (get_security_descriptor_group, is_valid_sid)
15201         (get_file_security_desc, get_rid, get_name_and_id)
15202         (get_file_owner_and_group): New functions.
15203         (stat): Use get_file_security_desc and get_file_owner_and_group to
15204         report the owner and primary group of each file.  Don't ignore the
15205         high 32 bits of file's size, now that st_size is 64-bit wide.
15206         Fix test when to get true file attributes.
15207         (init_user_info): Use get_rid instead of equivalent inline code.
15208         (fstat): Don't ignore the high 32 bits of file's size.
15210 2008-05-09  Chong Yidong  <cyd@stupidchicken.com>
15212         * image.c (png_load): Use correct bit-depth for setting background
15213         color.
15215 2008-05-08  Eli Zaretskii  <eliz@gnu.org>
15217         * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15218         epa-hook.elc.
15220 2008-05-08  Juanma Barranquero  <lekktu@gmail.com>
15222         * font.c (Ffont_match_p): Don't use `iff' in docstring.
15224 2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
15226         * macfns.c (Fx_create_frame): Make a copy of frame parameters
15227         because the original parameters are in pure storage now.
15228         (mac_window): Remove unused params.  Update callers.
15230 2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
15232         * lread.c (substitute_object_recurse): Use lower-level primitives.
15233         Don't signal errors when traversing sub-char-tables.
15234         Don't loop over all the possible characters when traversing char-tables.
15236         * print.c (print_preprocess): Add sub-char-tables to the print-table,
15237         just like we do in print.c.
15239 2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
15241         * minibuf.c (Ftry_completion): Remove code left over from when we used
15242         scmp instead of Fcompare_strings.
15244 2008-05-04  Juanma Barranquero  <lekktu@gmail.com>
15246         * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15248 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15250         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15251         Create bitmap context in native byte order.
15253         * macterm.c (XDrawLine)
15254         (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15255         context in native byte order.
15257 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15259         * config.in: Regenerate.
15261         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15262         New definitions for Image I/O support.
15263         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15264         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15265         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15266         (mac_data_provider_release_data, image_load_image_io)
15267         [USE_MAC_IMAGE_IO]: New functions.
15268         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15269         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15270         (init_image_func_pointer) [MAC_OSX]: Remove function.
15271         (image_load_quartz2d) [MAC_OSX]: Check availability of
15272         CGImageCreateWithPNGDataProvider at compile time.
15273         Use lowercase `false' for boolean constant.
15274         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15275         Use image_load_image_io.
15276         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15277         Don't check MyCGImageCreateWithPNGDataProvider.
15278         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15279         Don't call init_image_func_pointer.
15281         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15283         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15284         Make variable non-static.
15285         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15286         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15288         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15289         (RED_FROM_ULONG): Mask off higher bits.
15290         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15292         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15293         Include AvailabilityMacros.h.
15294         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15295         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15297 2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>
15299         * chartab.c (Fset_char_table_range): If range is t, really set all
15300         chars to that value.
15302 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
15304         * dired.c (Ffile_attributes): Don't allow the device number become
15305         negative.
15307 2008-05-02  Daiki Ueno  <ueno@unixuser.org>
15309         * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15311 2008-05-02  Juri Linkov  <juri@jurta.org>
15313         * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15314         (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15315         DEFAULT argument as a list of default values in docstrings.
15317 2008-05-01  Chong Yidong  <cyd@stupidchicken.com>
15319         * puresize.h (BASE_PURESIZE): Increase to 1210000.
15321 2008-05-01  Martin Rudalics  <rudalics@gmx.at>
15323         * dispnew.c (change_frame_size_1): Preserve small windows when
15324         shrinking frames by calling set_window_height|width with third
15325         arg 2.
15327         * window.h (struct window): Replace field too_small_ok by field
15328         resize_proportionally.
15330         * window.c (make_window): Initialize resize_proportionally.
15331         (enlarge_window): Temporarily set resize_proportionally to make
15332         sure that shrink_windows does scale the window proportionally.
15333         (shrink_windows): When window has resize_proportionally set try
15334         to shrink it proportionally by stealing from other windows.
15335         (struct saved_window, Fset_window_configuration)
15336         (compare_window_configurations): Handle resize_proportionally.
15337         (WINDOW_TOTAL_SIZE): New macro.
15338         (window_min_size, shrink_windows, size_window): Use it.
15339         (check_min_window_sizes): Remove.  Invalid values of
15340         window-min-height|width are handled by window_min_size_2 now.
15341         (size_window, Fsplit_window, enlarge_window)
15342         (adjust_window_trailing_edge, grow_mini_window): Don't call
15343         check_min_window_sizes.
15344         (window_min_size_2, window_min_size_1, window_min_size):
15345         New argument safe_p for retrieving "safe" minimum sizes.
15346         (Fdisplay_buffer, Fsplit_window, enlarge_window)
15347         (adjust_window_trailing_edge, grow_mini_window):
15348         Adjust arguments of window_min_size... functions.
15349         (shrink_windows): Argument min_size removed.  New argument
15350         safe_p allows shrinking windows to their safe minimum sizes.
15351         Calculate minimum size and decide whether a window shall be
15352         deleted for each window individually.
15353         (size_window): When nodelete_p equals 2, tell shrink_windows to
15354         delete windows only if their new minimum size is no more safe.
15355         (shrink_window_lowest_first): Call window_min_size_1 to make
15356         sure to preserve modeline of bottom-most window when resizing
15357         the minibuffer.
15358         (Fset_window_configuration, Fcurrent_window_configuration)
15359         (compare_window_configurations): Do not handle
15360         window-min-height|width any more.
15361         (syms_of_window): Clarify window-min-height|width doc-strings.
15363 2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>
15365         * dired.c (file_name_completion): Fix up the encoding/decoding issue
15366         some more.  Copy some of the code from Ftry_completions.
15367         Remove special case code that dates back to initial revision when the
15368         slash was only added when necessary and that can't trigger nowadays.
15370 2008-04-27  Kenichi Handa  <handa@m17n.org>
15372         * font.c (font_prop_validate): Signal `error' instead of `font'.
15374 2008-04-29  Jason Rumney  <jasonr@gnu.org>
15376         * w32fns.c (Fw32_battery_status): New defun.
15377         (syms_of_w32fns): Defsubr it.
15379 2008-04-28  Andreas Schwab  <schwab@suse.de>
15381         * dired.c (file_name_completion): Fix another mixing of encoded
15382         and decoded names.
15384 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
15386         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15388 2008-04-27  Juanma Barranquero  <lekktu@gmail.com>
15390         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15392 2008-04-27  Andreas Schwab  <schwab@suse.de>
15394         * dired.c (file_name_completion): Fix inappropriate mixing of
15395         encoded and decoded names.
15397         * xterm.c (XTread_socket): Fix use of uninitialized variable.
15399         * puresize.h (BASE_PURESIZE): Increase to 1200000.
15401 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
15403         * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15404         2008-03-31, it's not needed anymore with `struct stat' definition
15405         on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
15406         for the same reasons.
15408 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
15410         * m/sparc.h: Additional redefinitions for GNU/Linux.
15412 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15414         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15415         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15416         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15417         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15418         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15419         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15420         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15421         Likewise.
15423         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15424         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15425         (mac_ax_number_of_characters): Add externs.
15426         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15427         [USE_MAC_TSM]: Likewise.
15428         (mac_handle_text_input_event) [MAC_OSX]:
15429         Handle kEventTextInputOffsetToPos for no active input area case.
15430         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15431         (mac_handle_document_access_event)
15432         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15433         (install_application_handler) [MAC_OSX]: Register handlers for
15434         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15435         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15436         Register mac_handle_document_access_event.
15438         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15439         Make functions non-static.
15441 2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
15443         * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15444         (read_file_name_completion_ignore_case, insert_default_directory)
15445         (Qdefault_directory): Move to minibuffer.el.
15446         (Fread_file_name): Call the new `read-file-name' instead.
15448 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15450         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15451         Make function non-static.
15452         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15453         Remove function.
15454         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15455         Move to mactoolbox.c.
15456         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15458         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15459         (mac_rect_make): New macro.
15461         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15462         instead of float.
15463         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15464         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15465         (XSetBackground) [USE_CG_DRAWING]: Likewise.
15466         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15467         CGRectMake.
15468         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15469         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15470         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15471         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15472         instead of WindowRef in argument type.
15473         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15474         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15475         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15476         instead of DISPLAY.  All uses changed.
15477         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15478         (x_calc_absolute_position): Simplify so as not to use
15479         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15481         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15482         instead of WindowRef in argument type.
15483         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15484         [TARGET_API_MAC_CARBON]: Remove externs.
15485         (create_apple_event, mac_event_parameters_to_lisp)
15486         [TARGET_API_MAC_CARBON]: Add externs.
15488         * mactoolbox.c (Vmac_ts_script_language_on_focus)
15489         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15490         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15491         is clicked.
15492         (x_activate_menubar): Remove extern for saved_menu_event_location.
15493         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15494         Move from mac.c.
15496 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15498         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15499         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15501 2008-04-23  Jason Rumney  <jasonr@gnu.org>
15503         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15504         attributes only for local files.
15506         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15507         default to Qlocal.
15509 2008-04-22  Juri Linkov  <juri@jurta.org>
15511         * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15512         read-buffer-to-switch instead of using the letter "B".
15514 2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
15516         * fileio.c (Qdefault_directory): New variable.
15517         (Fread_file_name): Use it to pass `dir' to the completion functions.
15519 2008-04-20  Chong Yidong  <cyd@stupidchicken.com>
15521         * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15523 2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
15525         * keyboard.c (Vpre_help_message): Remove.
15526         (show_help_echo): Remove default C code.
15528         * dired.c (directory_files_internal, file_name_completion):
15529         Only call ENCODE_FILE if the string is indeed decoded.
15531 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
15533         * Makefile.in (TOOLKIT_DEFINES): Remove.
15534         (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15536 2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15538         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15539         (mactoolbox.o): New target.
15541         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15542         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15544         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15545         Use mac_set_frame_window_background instead of XSetWindowBackground.
15546         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15547         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15548         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15549         instead of SetWindowTitleWithCFString.
15550         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15551         Move function to mactoolbox.c.
15552         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15553         Use mac_set_window_modified instead of SetWindowModified.
15554         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15555         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15556         (Fx_focus_frame): Use mac_front_non_floating_window instead of
15557         FrontNonFloatingWindow.  Use mac_activate_window instead of
15558         ActivateWindow.  Use mac_active_non_floating_window instead of
15559         ActiveNonFloatingWindow.
15560         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15561         Use mac_show_hourglass and mac_hide_hourglass.
15562         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15563         instead of GetGlobalMouse.
15564         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15565         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15566         Use mac_bring_window_to_front instead of BringToFront.
15567         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15568         mactoolbox.c.
15569         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15570         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
15571         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15572         mactoolbox.c.
15574         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15575         (XtPointer): Move typedef from macmenu.c.
15576         (enum button_type): Move enum from macmenu.c.
15577         (widget_value): Move typedef from macmenu.c.
15578         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15579         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15580         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15581         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15582         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15583         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15584         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15585         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15586         (Selection): Move typedef from macselect.c.
15587         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15588         macterm.c.
15589         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15590         (mac_is_window_collapsed, mac_bring_window_to_front)
15591         (mac_send_window_behind, mac_hide_window, mac_show_window)
15592         (mac_collapse_window, mac_front_non_floating_window)
15593         (mac_active_non_floating_window, mac_activate_window)
15594         (mac_move_window_structure, mac_move_window, mac_size_window)
15595         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15597         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15598         (enum mac_menu_kind): Move enum to mactoolbox.c.
15599         (min_menu_id): Move variable to mactoolbox.c.
15600         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15601         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15602         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15603         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15604         [TARGET_API_MAC_CARBON]: Likewise.
15605         (XtPointer): Move typedef to macgui.h.
15606         (enum button_type): Move enum to macgui.h.
15607         (widget_value): Move typedef to macgui.h.
15608         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15609         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15610         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15611         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15612         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15613         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15614         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15615         (popup_activated_flag): Make variable non-static.
15616         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15617         (add_menu_item, fill_menu, dispose_menus):
15618         Move functions to mactoolbox.c.
15619         (restore_show_help_function, menu_target_item_handler)
15620         (install_menu_target_item_handler, mac_handle_dialog_event)
15621         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15622         [TARGET_API_MAC_CARBON]: Likewise.
15623         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15624         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15625         (find_and_call_menu_selection, name_is_separator): Make function
15626         non-static.
15627         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15628         to mactoolbox.c.
15629         (set_frame_menubar): Don't call install_menu_quit_handler.
15630         (menu_item_selection): New variable.
15631         (mac_menu_show): Use create_and_show_popup_menu.
15632         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15633         selection but set variable menu_item_selection.  All uses changed.
15634         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
15635         Call install_menu_quit_handler.  Move to mactoolbox.c.
15637         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15638         (Selection): Move typedef to macgui.h.
15639         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15640         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15641         Make variables non-static.
15642         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15643         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15644         Make functions non-static.
15645         (Vmac_service_selection) [MAC_OSX]: Likewise.
15646         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15647         (mac_valid_selection_target_p, mac_clear_selection)
15648         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15649         (mac_put_selection_value, mac_selection_has_target_p)
15650         (mac_get_selection_value, mac_get_selection_target_list)
15651         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15652         Move functions to mactoolbox.c.
15653         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15654         Likewise.
15655         (copy_scrap_flavor_data, mac_handle_service_event)
15656         (install_service_handler) [MAC_OSX]: Likewise.
15657         (syms_of_macselect) <Vmac_dnd_known_types>:
15658         Use mac_dnd_default_known_types.
15660         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15661         Move to mactoolbox.c.
15662         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15663         (Fx_selection_owner_p): Add EXFUN.
15664         (install_window_handler, remove_window_handler, XSetWindowBackground):
15665         Remove externs.
15666         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15667         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15668         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15669         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15670         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15671         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15672         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15673         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15674         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15675         (create_and_show_popup_menu, mac_get_selection_from_symbol)
15676         (mac_valid_selection_target_p, mac_clear_selection)
15677         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15678         (mac_put_selection_value, mac_selection_has_target_p)
15679         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15680         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15681         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15682         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15683         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15684         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15685         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15686         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15687         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15689         * mactoolbox.c: New file.
15691 2008-04-18  Jason Rumney  <jasonr@gnu.org>
15693         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15695 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
15697         * character.c (Fmultibyte_char_to_unibyte):
15698         Return latin1 chars unchanged.
15700         * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15701         relocated if it points to `name'.
15703 2008-04-17  Kenichi Handa  <handa@m17n.org>
15705         * data.c (Faset): Allow setting a multibyte character in an
15706         ASCII-only unibyte string.
15708         * lisp.h (STRING_SET_MULTIBYTE): New macro.
15710 2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
15712         * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15713         done in config.h.
15715 2008-04-16  Juanma Barranquero  <lekktu@gmail.com>
15717         * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15718         (Fchar_direction): Add usage in the docstring.
15720 2008-04-15  Chong Yidong  <cyd@stupidchicken.com>
15722         * keyboard.c (read_key_sequence): Remove always-true checks.
15724 2008-04-14  Jason Rumney  <jasonr@gnu.org>
15726         * w32font.c (w32font_open_internal): Set max_bounds.descent in
15727         compatibility struct, for better underline positioning.
15729 2008-04-13  David Hansen  <david.hansen@gmx.net>
15731         * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15732         string.
15734 2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
15736         * m/hp800.h (XUINT, XSET): Remove.
15738 2008-04-12  Juanma Barranquero  <lekktu@gmail.com>
15740         * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15741         previous change.
15743 2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
15745         * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15746         Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15748 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
15750         * keymap.h (map_keymap_canonical): Declare.
15751         * xmenu.c (single_keymap_panes): Use it.
15753 2008-04-11  Glenn Morris  <rgm@gnu.org>
15755         * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15756         set the target's value to that of the alias.
15758 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
15760         * term.c (set_tty_color_mode): Left over typo.
15762 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
15764         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15765         only after check for file name handler functions.  Signal, when
15766         native functionality is not supported.
15767         (syms_of_fileio): Declare it unconditionally.
15769 2008-04-10  Jason Rumney  <jasonr@gnu.org>
15771         * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15772         (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15774         * w32.c (logon_network_drive): Also logon to remote drives that
15775         are mapped to drive letters.
15777 2008-04-10  Glenn Morris  <rgm@gnu.org>
15779         * xdisp.c (truncate-partial-width-windows): Doc fix.
15781 2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
15783         * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15784         Move functions to minibuffer.el.
15785         (syms_of_fileio): Don't declare them.
15787 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
15789         * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15790         (syms_of_minibuf): Remove its initialization.
15792         * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15794 2008-04-09  Juanma Barranquero  <lekktu@gmail.com>
15796         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15798 2008-04-09  Jason Rumney  <jasonr@gnu.org>
15800         * makefile.w32-in (distclean): Delete makefile too.
15801         (maintainer-clean): New target.
15803         * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15805         * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15806         for new font backend and composite cases.
15808 2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>
15810         * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15811         Most of the code moved to run_timers.
15812         (do_pending_atimers): Call run_timers.
15813         (run_timers): New function.
15815         * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15816         run atimers.
15818         * process.c (wait_reading_process_output): The same as above.
15820 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
15822         * minibuf.c (last_exact_completion): Remove variable.
15823         (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15824         (complete_and_exit_1, complete_and_exit_2)
15825         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15826         (Fdisplay_completion_list, display_completion_list_1)
15827         (Fminibuffer_completion_help, Fself_insert_and_exit)
15828         (Fexit_minibuffer, Fminibuffer_message): Move functions to
15829         minibuffer.el.
15830         (syms_of_minibuf): Remove corresponding initializations.
15832         * keyboard.c (Qdeactivate_mark): New var.
15833         (command_loop_1): Use it to call `deactivate-mark'.
15834         (syms_of_keyboard): Initialize it.
15836         * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15837         to another frame.
15838         * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15839         Don't call set_tty_color_mode.
15840         (store_frame_param): Reset previous_frame rather than call
15841         set_tty_color_mode.
15842         * term.c (set_tty_color_mode): Rewrite.
15843         * dispextern.h (set_tty_color_mode): New type.
15844         * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15846 2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
15848         * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15849         for generic chars, which do not exist any more in emacs-unicode.
15851 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
15853         * coding.c (detect_coding_emacs_mule)
15854         (Ffind_operation_coding_system): Fix typo.
15856 2008-04-08  Jason Rumney  <jasonr@gnu.org>
15858         * w32uniscribe.c (SNAME): Extract only symbol name.
15860         * w32font.h (struct w32_metric_cache): New struct.
15861         (w32font_info): Use it.
15862         (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15863         (CACHE_BLOCKSIZE): New constants.
15865         * w32font.c (Qja, Qko, Qzh): New symbols.
15866         (syms_of_w32font): Initialise them.
15867         (font_matches_spec): Use them to filter by language.
15868         (recompute_cached_metrics): Remove function.
15869         (compute_metrics, clear_cached_metrics): New functions.
15870         (w32font_encode_char): Use them to manage metric cache.
15871         (w32font_text_extents): Cache metrics for all glyphs on demand.
15872         Delay converting glyph indices to WORD until needed.
15873         (w32font_open_internal): Initialize metric cache to empty.
15874         (registry_to_w32_charset): Charset should always be a symbol.
15875         (fill_in_logfont, list_all_matching_fonts): Family should
15876         always be a symbol.
15878 2008-04-06  Jason Rumney  <jasonr@gnu.org>
15880         * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15881         Give up if glyph indices not supported.  Use uniscribe obtained
15882         ABC widths for individual metrics.  Map glyph clusters back to
15883         characters using fClusterStart flag.  Return number of glyphs
15884         produced, not chars processed.
15885         (uniscribe_shape): Map char at FROM to current glyph.
15887 2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15889         * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15890         Use SetMenuItemHierarchicalMenu.
15892 2008-04-05  Jason Rumney  <jasonr@gnu.org>
15894         * image.c (pbm_load): Allow color values up to 65535.
15895         Throw an error if max_color_idx is outside the supported range.
15896         Report an error when image size is invalid.
15897         Read two bytes at a time when raw images have max_color_idx above 255.
15899 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
15901         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15902         append "CCL: Quitted" when the CCL program is quitted.
15903         (setup_ccl_program): Initialize ccl->quit_silently to zero.
15905         * ccl.h (struct ccl_program): New member quit_silently.
15907 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
15909         * search.c (compile_pattern_1): Treat non-nil and non-string of
15910         search-spaces-regexp as nil.
15912         * minibuf.c (Fassoc_string): Tweak docstring.
15914 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
15916         * dired.c (Ffile_attributes): Support inode numbers wider than 32
15917         bits.  Remove ugly WINDOWSNT-specific kludge introduced on
15918         2008-03-14 to force inode be positive.
15920         * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15921         _S_* ones, since we now use our own sys/stat.h.
15922         (stat, fstat): Don't mangle the inode number.
15923         (init_user_info): Don't restrict UID and GID to 0-60000 range.
15925 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
15927         * frame.h (struct frame): Give one more bit to `visible' since we use
15928         values larger than 1 to indicate obscured frames on ttys.
15930         * keymap.c (Qkeymap_canonicalize): New var.
15931         (Fmap_keymap_internal): New fun.
15932         (describe_map): Use keymap-canonicalize.
15934         * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15935         (Fundo_boundary): Set them.
15936         (syms_of_undo): Initialize them.
15937         (record_point): Use them instead of last_point_position*.
15938         (last_undo_buffer): Change type.
15940 2008-04-04  Jason Rumney  <jasonr@gnu.org>
15942         * w32font.c (w32font_text_extents): Use font's ascent and descent.
15943         (recompute_cached_metrics): Don't set ascent and descent per char.
15945         * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15946         (uniscribe_check_otf): Add GC protection before consing.
15947         Rearrange loop for counting features.
15949 2008-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
15951         * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15952         buffer with byte-size of source buffer.
15954 2008-04-03  Chong Yidong  <cyd@stupidchicken.com>
15956         * callint.c (Fcall_interactively): Handle temporary region even
15957         when shift-select-mode is off.
15959 2008-04-03  Jason Rumney  <jasonr@gnu.org>
15961         * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15963 2008-04-03  Kenichi Handa  <handa@m17n.org>
15965         * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15966         (CATEGORY_MASK_UTF_16): Likewise.
15967         (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15968         binary file.
15969         (detect_coding): Add null-byte detection for a binary file.
15970         (detect_coding_system): Likewise.
15972 2008-04-03  Jason Rumney  <jasonr@gnu.org>
15974         * w32uniscribe.c: New file.
15976         * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15978         * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15980         * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15981         (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15982         (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15983         (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15984         (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15985         (Qphonetic): New symbols.
15986         (syms_of_w32font): Initialize them.
15987         (font_supported_scripts): Use them.
15988         (w32font_list_family): List all charsets.
15989         (w32font_text_extents, recompute_cached_metrics): Fix metric
15990         calculations.
15991         (w32_enumfont_pattern_entity): Make full_type a DWORD.
15992         Give opentype fonts their own format.
15993         (font_matches_spec): New arguments backend and logfont.
15994         Handle :otf spec for uniscribe backend.
15995         (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15996         (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15998         * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15999         font backend.
16000         (globals_of_w32fns): Initialize uniscribe font backend.
16002         * makefile.w32-in (CONFIG_H): New variable.  Use it to clean up
16003         dependencies.
16004         (w32uniscribe.$(O)): New file to build.
16005         (FONT_OBJ): Include w32uniscribe.$(O).
16006         (LIBS): Add uniscribe libraries.
16008         * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16010 2008-04-02  Chong Yidong  <cyd@stupidchicken.com>
16012         * callint.c (Vshift_select_mode): New var.
16013         (Finteractive): Document new ^ spec.
16014         (Fcall_interactively): Call handle-shift-selection if the ^ spec
16015         is present.
16017         * keyboard.c (Vthis_command_keys_shift_translated): New var.
16018         (command_loop_1): Avoid running the direct display versions of
16019         forward-char and backward-char if shift-selection may occur.
16020         (read_key_sequence): Set Vthis_command_keys_shift_translated if
16021         shift-translation takes place.
16023         * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16024         avoid clobbering by define-minor-mode.
16026         * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16027         (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16029         * syntax.c (Fforward_word): Add ^ interactive spec.
16031         * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16032         (Fscroll_right): Add ^ interactive spec.
16034 2008-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
16036         * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16038         * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16040         * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16042 2008-03-31  Juri Linkov  <juri@jurta.org>
16044         * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16046 2008-03-30  Jan Djärv  <jan.h.d@swipnet.se>
16048         * gtkutil.c (xg_set_geometry): Fix indentation.
16049         (xg_resize_outer_widget): Remove.
16050         (x_wm_size_hint_off): Fix indentation.
16051         (xg_frame_set_char_size): Call flush_and_sync after
16052         gtk_window_resize.
16053         (x_wm_set_size_hint): Pass NULL as geometry window to
16054         gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16055         Add menu bar and tool bar height to base height.
16056         (xg_update_frame_menubar, free_frame_menubar)
16057         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16058         (update_frame_tool_bar, free_frame_tool_bar):
16059         Change xg_resize_outer_widget to xg_frame_set_char_size.
16061 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
16063         * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16064         (Fdbus_call_method): New parameter TIMEOUT.
16065         (dbus-send-signal): Optimize UNGCPRO call.
16067 2008-03-29  Juri Linkov  <juri@jurta.org>
16069         * window.c (Fdisplay_buffer): Move call to
16070         Vsplit_window_preferred_function out of conditions that check
16071         if window is eligible for vertical splitting.
16072         When Vsplit_window_preferred_function is non-nil, call it and use
16073         its non-nil return value as window.  Otherwise, continue doing
16074         vertical splitting using Fsplit_window with arg horflag=nil.
16075         (syms_of_window) <Vsplit_window_preferred_function>: Change the
16076         default value from `split-window' to nil.
16078 2008-03-29  Juri Linkov  <juri@jurta.org>
16080         * callint.c (Fcall_interactively): Revert 2008-03-16 change
16081         for interactive code letters 'b' and 'B'.
16083 2008-03-29  Eli Zaretskii  <eliz@gnu.org>
16085         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16086         multibyte string.
16088 2008-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
16090         * keyboard.c (pending_funcalls): New var.
16091         (timer_check): Run it.
16092         (syms_of_keyboard): Initialize it.
16093         * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16094         (Vdelete_terminal_functions): New vars.
16095         (syms_of_terminal): Initialize them.
16096         (Fdelete_terminal): Run delete-terminal-functions.
16097         * xdisp.c (safe_eval): Rewrite.
16098         (safe_call2): New fun.
16099         * frame.c (Qdelete_frame_functions): New var.
16100         (syms_of_frame): Initialize it.
16101         (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16102         * lisp.h (safe_call2, pending_funcalls): Declare.
16104 2008-03-28  Andreas Schwab  <schwab@suse.de>
16106         * indent.c (Fmove_to_column): Move declaration before statements.
16108 2008-03-27  Stefan Monnier  <monnier@iro.umontreal.ca>
16110         * frame.h (enum fullscreen_type): Give it a name.  Move it before use.
16111         (struct frame): Use bit fields for boolean vars.
16113         * process.c (server_accept_connection): Simplify naming.
16114         (emacs_get_tty_pgrp): Use SDATA.
16116         * coding.c (decode_coding_object): Fix last change.
16118 2008-03-27  Jason Rumney  <jasonr@gnu.org>
16120         * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16122 2008-03-27  Kenichi Handa  <handa@ni.aist.go.jp>
16124         * charset.c (Fdefine_charset_internal): Change the way of
16125         registering charsets in Vcharset_order_list.
16126         (syms_of_charset): Make the charset `eight-bit' supplementary.
16128 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
16130         * regex.c (EXTEND_BUFFER): Change order of pointer addition
16131         operations, to avoid having the difference between pointers
16132         overflow.
16134 2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
16136         * indent.c (check_display_width): New fun.
16137         (scan_for_column): Use it.
16139         * data.c (syms_of_data): Mark most-positive-fixnum and
16140         most-negative-fixnum as constants.
16142         * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16144         * indent.c (scan_for_column): Extract from current_column_1.
16145         Merge with the same code from Fmove_to_column.
16146         (current_column_1, Fmove_to_column): Use it.
16148 2008-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
16150         * keymap.c (map_keymap_internal): New fun.
16151         (map_keymap): Use it.
16152         (Fmap_keymap_internal): New fun.
16153         (Fmap_keymap): Remove left-out test from before make_save_value.
16155         * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16157         * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16158         Use XCAR/XCDR.
16160         * process.h (struct Lisp_Process): Remove filter_multibyte.
16161         * process.c (QCfilter_multibyte): Remove.
16162         (setup_process_coding_systems): Don't use filter_multibyte.
16163         (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16164         (read_process_output): Don't adjust multibyteness to filter_multibyte.
16165         (Fset_process_filter_multibyte): Change the coding-system to
16166         approximate the previous behavior.
16167         (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16168         coding-system.
16170         * coding.c (decode_coding_object): When not decoding into a buffer,
16171         obey the coding system's preference of (uni|multi)byte.
16173 2008-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
16175         * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16176         every char is changed and has a different byte-length.
16177         (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16178         Fix int -> EMACS_INT.
16180 2008-03-23  David Hansen  <david.hansen@gmx.net>
16182         * dbusbind.c (xd_read_message): Remove extra copying of message
16183         strings.  Check for NULL `interface' or `member'.
16185 2008-03-22  Eli Zaretskii  <eliz@gnu.org>
16187         * w32.c (readdir): If FindFirstFile/FindNextFile return in
16188         cFileName a file name that includes `?' characters, use the 8+3
16189         alias in cAlternateFileName instead.
16191 2008-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
16193         * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16195 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
16197         * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16198         (set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
16199         work on current_buffer only instead (that was already the case
16200         for some of the code anyway).
16201         * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16202         (temp_set_point, temp_set_point_both): Use EMACS_INT.
16203         (SET_PT, SET_PT_BOTH): Adjust.
16204         * intervals.h (set_point, temp_set_point, set_point_both)
16205         (temp_set_point_both): Remove redundant declarations.
16207 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
16209         * fileio.c (Finsert_file_contents):
16210         * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16211         * buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
16212         when buffer != current_buffer anyway.
16214 2008-03-20  Andreas Schwab  <schwab@suse.de>
16216         * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16217         as default.
16219 2008-03-19  Jason Rumney  <jasonr@gnu.org>
16221         * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16222         (syms_of_w32fns): Initialize them.
16223         (HOURGLASS_ID): New constant.
16224         (x_window_to_frame): Don't check hourglass_window.
16225         (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16226         (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16227         (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16228         (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16229         Only change the cursor if hourglass is not active.
16230         (Fx_create_frame): Initialize frame's current_cursor.
16231         (hourglass_atimer): Remove.
16232         (hourglass_started): New function.
16233         (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16234         (show_hourglass): Adapt to w32, changing argument to frame.
16236         * w32term.h (struct w32_output): Remove hourglass_window.
16237         Add current_cursor.
16239         * eval.c (call_debugger, Fsignal):
16240         * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16241         (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16242         (Fexecute_extended_command, cancel_hourglass_unwind):
16243         * minibuf.c (read_minibuf):
16244         * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16246 2008-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
16248         * window.c (run_funs): New fun.
16249         (run_window_configuration_change_hook): Use it to run the buffer-local
16250         and the global part of the hook.
16252         * xdisp.c (format_mode_line_unwind_data): Add window argument.
16253         (unwind_format_mode_line): Restore selected window.
16254         (x_consider_frame_title, Fformat_mode_line): Set selected window.
16256 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
16258         * editfns.c (Fchar_equal): Check they are valid characters.
16260         * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16262 2008-03-17  Andreas Schwab  <schwab@suse.de>
16264         * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16265         against a charset.
16267         * lisp.h (Fbuffer_list): Declare.
16269 2008-03-17  Jan Djärv  <jan.h.d@swipnet.se>
16271         * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16272         handlebox_widget is != 0.
16274 2008-03-16  Juri Linkov  <juri@jurta.org>
16276         * callint.c (Fcall_interactively): For interactive code letters
16277         'b' and 'B' put the buffer list into the list of default "future"
16278         values of the minibuffer.
16280 2008-03-16  Andreas Schwab  <schwab@suse.de>
16282         * keyboard.c (read_key_sequence): Fix downcasing of letters with
16283         modifiers.
16285         * regex.c (re_match_2_internal): Correct matching of a charset
16286         against latin-1 characters.
16288 2008-03-16  Kenichi Handa  <handa@m17n.org>
16290         * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16291         (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16292         (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16293         (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16294         (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16295         CHAR_STRING_ADVANCE.
16296         (produce_chars): Fix for the case that the source and the
16297         destination are the same buffer.  Use CHAR_STRING_ADVANCE_NO_UNIFY
16298         instead of CHAR_STRING_ADVANCE.
16299         (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16300         STRING_CHAR_ADVANCE.
16302 2008-03-15  Andreas Schwab  <schwab@suse.de>
16304         * regex.c (re_match_2_internal): Correct matching of eight bit
16305         characters in unibyte strings.
16307 2008-03-15  Martin Rudalics  <rudalics@gmx.at>
16309         * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16310         at end of range when it coincides with the end of the buffer.
16312 2008-03-14  Eli Zaretskii  <eliz@gnu.org>
16314         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16316         * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16318 2008-03-14  Jason Rumney  <jasonr@gnu.org>
16320         * editfns.c (initial_tz): New variable.
16321         (syms_of_editfns): Initialize it.
16322         (Fset_time_zone_rule): Set it when first called.
16323         Use it when TZSTRING is nil.
16325         * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16326         (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16327         (monitor_from_point_fn, get_monitor_info_fn): New globals.
16328         (globals_of_w32fns): Initialize them.
16329         (compute_tip_xy): Use them to position tooltips.
16331 2008-03-14  Glenn Morris  <rgm@gnu.org>
16333         * emacs.c (main): Revert previous change.
16334         (standard_args): Revert -internal-script back to -scriptload,
16335         and remove the long-option form.
16337 2008-03-13  Glenn Morris  <rgm@gnu.org>
16339         * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16340         Remove option -enable-font-backend.
16342 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
16344         * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16346 2008-03-11  Jan Djärv  <jan.h.d@swipnet.se>
16348         * xterm.c (x_connection_closed): For GTK: If this is the last
16349         terminal just exit without closing the display.
16351 2008-03-11  Jason Rumney  <jasonr@gnu.org>
16353         * w32font.c (w32font_full_name): Use floor to round.
16355 2008-03-10  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
16357         * sound.c (alsa_configure): Declare vol at beginning of block.
16359         * fontset.c (Ffontset_info): Remove extra semicolon.
16361 2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
16363         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16364         size of resulting string.
16366 2008-03-10  Jason Rumney  <jasonr@gnu.org>
16368         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16370 2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16372         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16373         Don't pretend as if characters with display property haven't been
16374         consumed for string-replacing-string case.
16376 2008-03-08  Kim F. Storm  <storm@cua.dk>
16378         * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16379         (get_next_display_element, next_element_from_string)
16380         (next_element_from_ellipsis, next_element_from_buffer): Use it.
16382 2008-03-08  Andreas Schwab  <schwab@suse.de>
16384         * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16386 2008-03-06  Jason Rumney  <jasonr@gnu.org>
16388         * w32font.c (w32_registry): Take font_type argument.  Use ANSI
16389         when charset not specified.  Only translate ANSI to unicode when
16390         font_type is truetype.
16391         (w32font_coverage_ok): New function.
16392         (add_font_entity_to_list): Use it to filter unsuitable fonts.
16394 2008-03-05  Kenichi Handa  <handa@ni.aist.go.jp>
16396         * lread.c (Fread_char): Resolve modifiers.
16397         (Fread_char_exclusive): Likewise.
16399         * character.c (char_resolve_modifier_mask): New function.
16400         (char_string): Use char_resolve_modifier_mask.
16401         (Fchar_resolve_modifiers): New function.
16402         (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16403         function.
16405 2008-03-04  Jason Rumney  <jasonr@gnu.org>
16407         * makefile.w32-in: Always include w32font.c in the build.
16408         * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16410 2008-03-04  Andreas Schwab  <schwab@suse.de>
16412         * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16413         (versionclean): Likewise.
16415 2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
16417         * .cvsignore: Add oo.
16419 2008-03-03  Andreas Schwab  <schwab@suse.de>
16421         * coding.c (decode_coding_object): Inhibit gap shrinking while
16422         decoding in place.
16424 2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
16426         * w32term.c: Remove unused include "gnu.h".
16427         * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16429         * gnu.h: Rename to ...
16430         * emacs-icon.h: ... this.
16431         * xterm.c: Use emacs-icon.h instead of gnu.h.
16432         * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16434 2008-03-03  Juanma Barranquero  <lekktu@gmail.com>
16436         * w32font.c: Include math.h.
16438 2008-03-03  Jason Rumney  <jasonr@gnu.org>
16440         * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16441         Compute options separately.
16442         (w32font_open_internal): Set glyph_idx before caching metrics.
16444         * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16445         Define if system headers don't.
16446         (struct w32font_info): Enlarge ascii_metrics.  Add glyph_idx.
16447         (w32font_encode_char): Don't declare here.
16449         * w32font.c (Quniscribe, QCformat): New symbols.
16450         (syms_of_w32font): Define them.
16451         (w32font_has_char): Indicate uncertainty.
16452         (w32font_encode_char): Encode as glyph point.  Make static.
16453         (recompute_cached_metrics): New function.
16454         (w32font_open_internal): Use it.  Set font to use glyph points
16455         initially.  Set format based on type of font.
16456         (w32font_text_extents, w32font_draw): Optionally use glyph points.
16457         (w32_enumfont_pattern_entity): Accept backend arg.  Set type based
16458         on it.  Set format based on information available here.
16459         (add_font_entity_to_list): Identify backend based on opentype_only.
16461 2008-03-02  Andreas Schwab  <schwab@suse.de>
16463         * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16465         * coding.c (decode_coding_big5, produce_chars):
16466         Fix typos in last change.
16468 2008-03-02  Kentaro Ohkouchi  <nanasess@fsm.ne.jp>
16470         * gnu.h: New icon.
16472 2008-03-02  Kenichi Handa  <handa@m17n.org>
16474         * coding.c (decode_coding_utf_8): When eol-type of CODING is
16475         `dos', don't decode '\r' if that is the last in the source.
16476         (decode_coding_utf_16, decode_coding_emacs_mule)
16477         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16478         (decode_coding_raw_text, decode_coding_charset): Likewise.
16479         (produce_chars): Don't decode EOL here.  Use EMACS_INT.
16481 2008-03-01  Jason Rumney  <jasonr@gnu.org>
16483         * w32font.c (w32font_full_name): Report point size for scalable fonts.
16485 2008-03-01  Kim F. Storm  <storm@cua.dk>
16487         * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16489 2008-03-01  Jason Rumney  <jasonr@gnu.org>
16491         * w32font.c (w32font_full_name): New function.
16492         (w32font_open_internal): Use it.
16494 2008-03-01  Kim F. Storm  <storm@cua.dk>
16496         * dispnew.c (line_draw_cost): Fix invalid glyph check.
16498 2008-03-01  Jason Rumney  <jasonr@gnu.org>
16500         * font.c (font_unparse_fcname): Increase len when style is a symbol.
16502 2008-03-01  Jan Djärv  <jan.h.d@swipnet.se>
16504         * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16505         xg_frame_resized when the event is for the edit widget.
16507         * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16509         * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16510         set_char_size.
16511         (xg_frame_resized): Renamed from xg_resize_widgets.  Remove all
16512         operations on widgets here.  Just set frame size if needed.
16513         (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16514         (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16515         (x_wm_set_size_hint): Set size hints on the edit widget only, not
16516         the whole frame.
16517         (xg_create_tool_bar): Move attachment of the tool bar to
16518         xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
16519         (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16521 2008-03-01  Jason Rumney  <jasonr@gnu.org>
16523         * w32fns.c (w32_msg_pump): Disable debug code.
16525 2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16527         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16529 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
16531         * xdisp.c (next_overlay_string): Don't set
16532         overlay_strings_at_end_processed_p if we're currently reading from
16533         a display string.
16535 2008-02-29  Stefan Monnier  <monnier@iro.umontreal.ca>
16537         * xdisp.c (get_overlay_strings_1): Fix typo.
16539 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
16541         * xdisp.c (get_overlay_strings_1): Add missing argument type.
16543 2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
16545         * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16547         * xdisp.c (display_mode_element): Cancel the previous change.
16548         (decode_mode_spec): Likewise.
16549         (handle_auto_composed_prop): Don't make composition if it->string
16550         is a string.
16552 2008-02-27  Kim F. Storm  <storm@cua.dk>
16554         * lisp.h (GLYPH): Change type from int to struct with separate char
16555         and face_id members.
16556         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16557         (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16558         (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16559         (GLYPH_CHAR, GLYPH_FACE): ... these.  Change users.
16560         (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove.  Rewrite users to use ...
16561         (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16562         (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16563         (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16564         handle new Lisp glyph code encoding, either an integer or a cons.
16566         * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16567         (GLYPH_ALIAS): Delete.
16568         (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16569         (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16570         (GLYPH_FROM_CHAR): Replace macro by ...
16571         (SET_GLYPH_FROM_CHAR): ... this macro.  Change users.
16573         * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16574         (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16575         (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro.  Change users.
16576         (GLYPH_INVALID_P): New macro.
16577         (spec_glyph_lookup_face): Update prototype.
16579         * dispnew.c (line_draw_cost): Adapt to new glyph type.
16580         (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16581         new glyph code encoding.
16582         (spec_glyph_lookup_face): No return value; update passed glyph instead.
16583         (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16585         * xdisp.c (get_next_display_element, next_element_from_display_vector):
16586         Adapt to new glyph type and new glyph code encoding.
16588         * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16590         * indent.c (current_column, current_column_1, Fmove_to_column)
16591         (compute_motion): Adapt to new glyph code encoding.
16593         * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16595 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
16597         * process.c (wait_reading_process_output): Check for window
16598         changes caused by timers.
16599         Suggested by Johan Bockgård.
16601 2008-02-27  Glenn Morris  <rgm@gnu.org>
16603         * emacs.c (USAGE1): Add `--disable-font-backend'.
16605 2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
16607         * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16608         is made to the buffer.
16610 2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
16612         * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16613         (face_at_string_position):
16614         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16615         (face_at_string_position):
16616         * xdisp.c (display_string, next_overlay_change):
16617         * buffer.h (overlays_at):
16618         * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16619         Update callers.
16621 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
16623         * editfns.c (Fformat): Doc fix.
16625 2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
16627         * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16628         (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16629         (Ffont_otf_alternates, Fquery_font): Doc fixes.
16631 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
16633         * buffer.c (Fbuffer_swap_text): New function.
16634         (syms_of_buffer): Defsubr it.
16636 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
16638         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16640 2008-02-25  Jason Rumney  <jasonr@gnu.org>
16642         * w32font.c (w32font_draw): Draw one character at a time when padding.
16644 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
16646         * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16647         Handle a nil arg.  Use run_window_configuration_change_hook.
16648         (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16649         (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16650         Use run_window_configuration_change_hook.
16652 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
16654         * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16655         1-pixel width.
16657 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
16659         * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16660         (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16661         if the glyph in the font is zero pixel with.
16663         * dispextern.h (struct glyph_string): New member padding_p.
16665         * w32font.c (w32font_draw): Pay attention to s->padding_p.
16667         * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16669         * xfont.c (xfont_draw): Pay attention to s->padding_p.
16671         * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16673         * font.c: If the font driver doesn't have `shape' function, return Qnil.
16675 2008-02-25  Jason Rumney  <jasonr@gnu.org>
16677         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16679 2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
16681         Allow fine-grained image-cache flushing.
16682         * dispextern.h (struct image): Add `dependencies' field.
16683         (clear_image_caches): Change arg to Lisp_Object.
16684         * image.c (make_image): Initialize `dependencies' field.
16685         (clear_image_cache): Change arg to allow fine-grained flushing.
16686         Perform the flush even if image-cache-eviction-delay is nil.
16687         (clear_image_caches): Change arg to Lisp_Object.
16688         (Fclear_image_cache): Expand meaning of the argument.
16689         (mark_image): Mark `dependencies' field.
16690         * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16691         (lface_hash): Use XHASH rather than XFASTINT.
16692         (face_at_buffer_position): Fix int -> EMACS_INT position.
16693         * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16694         (select_frame_for_redisplay): Remove code duplication.
16695         (redisplay_internal): Adapt arg to call to clear_image_caches.
16697 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
16699         * s/vms4-0.h:
16700         * s/vms4-2.h:
16701         * s/vms4-4.h:
16702         * s/vms5-5.h: Remove, unused.
16704         * s/irix5-2.h:
16705         * s/irix6-0.h:
16706         * s/riscos5.h:
16707         * s/mach-bsd4-3.h:
16708         * m/mips4.h: Remove files for obsolete systems.
16710         * Makefile.in:
16711         * filelock.c:
16712         * unexmips.c:
16713         * m/hp9000s300.h:
16714         * m/iris4d.h:
16715         * s/aix3-1.h:
16716         * s/hpux.h:
16717         * s/msdos.h:
16718         * s/usg5-0.h:
16719         * s/usg5-2-2.h:
16720         * s/usg5-2.h:
16721         * s/usg5-3.h: Remove references to obsolete variables.
16723         * s/irix5-0.h: Remove, move all the contents ...
16724         * s/irix6-5.h: ... here.  Simplify.
16725         * config.in: Regenerate.
16727 2008-02-24  Jason Rumney  <jasonr@gnu.org>
16729         * w32term.c (x_draw_glyph_string_background): Clear the background
16730         manually when cleartype is in use.
16731         (x_draw_glyph_string_foreground): Draw text transparently when
16732         cleartype is in use.
16734         * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16735         a font into it unless we have to.
16737 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
16739         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
16740         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
16742 2008-02-18  Jason Rumney  <jasonr@gnu.org>
16744         * w32fns.c (Fw32_shell_execute): Encode parameters.
16746 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
16748         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16750 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
16752         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16754 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
16756         * xterm.c (x_set_offset): Don't change the gravity if
16757         CHANGE_GRAVITY is -1.
16759 2008-02-23  Chong Yidong  <cyd@stupidchicken.com>
16761         * fileio.c (auto_save_error_occurred): New var.
16762         (auto_save_error): Set it.
16763         (Fdo_auto_save): Don't overwrite the error message if an auto-save
16764         error occurred.
16766 2008-02-23  Eli Zaretskii  <eliz@gnu.org>
16768         * w32.c (globals_of_w32): Add initializations for
16769         g_b_init_get_sid_sub_authority and
16770         g_b_init_get_sid_sub_authority_count.
16772 2008-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
16774         * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16775         (font_parse_xlfd): Use them for sanity check.
16776         (Finternal_set_font_style_table): Make sure the table is bijective.
16778         Consolidate the image_cache to the terminal struct.
16779         * termhooks.h (P_): Remove redundant def.
16780         (struct terminal): New field `image_cache'.
16781         * frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
16782         of FRAME_X_IMAGE_CACHE.
16783         * xterm.h (struct x_display_info): Remove image_cache field.
16784         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
16785         * w32term.h (struct w32_display_info): Remove image_cache field.
16786         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
16787         * macterm.h (struct mac_display_info): Remove image_cache field.
16788         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
16789         * xterm.c (x_term_init):
16790         * w32term.c (w32_term_init):
16791         * macterm.c (mac_term_init): Set the image_cache in the terminal.
16792         * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16793         Remove declarations.
16794         (clear_image_caches, mark_image_cache): New declarations.
16795         * xfaces.c (clear_face_cache):
16796         * xdisp.c (redisplay_internal): Use clear_image_caches.
16797         * image.c (clear_image_cache): Don't check that a frame is on
16798         a window-system before checking if it shares the same cache.
16799         (clear_image_caches): New function.
16800         (Fclear_image_cache): Use it.
16801         (mark_image): Move from allo.c.
16802         (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16803         * alloc.c (mark_image, mark_image_cache): Move to image.c.
16804         (mark_object): Don't call mark_image_cache for frames.
16805         (mark_terminals): Call mark_image_cache.
16807         * lisp.h (Fdelete_terminal): Declare.
16809         * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16810         (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16811         wrong_type_argument.
16813 2008-02-22  Kenichi Handa  <handa@ni.aist.go.jp>
16815         * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16816         malayalam.el, and tamil.el.  Add sinhala.el.
16818 2008-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
16820         * xterm.c (x_connection_closed): Consolidate identical tests.
16821         (x_delete_terminal): Don't crash if called via x_connection_closed.
16823 2008-02-21  Kenichi Handa  <handa@ni.aist.go.jp>
16825         * xdisp.c (decode_mode_spec): New arg string.
16826         (display_mode_element): Adjust for the above change.
16828 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
16830         * callint.c (Fcall_interactively): Use AREF.
16832 2008-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
16834         * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16836 2008-02-18  Jan Djärv  <jan.h.d@swipnet.se>
16838         * xfns.c (Fx_show_tip): Set string to " " if empty.
16840 2008-02-17  Dan Nicolaescu  <dann@ics.uci.edu>
16842         * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16843         with Qt.
16845 2008-02-17  Kenichi Handa  <handa@m17n.org>
16847         * ftfont.c (ftfont_shape): Return Lispy number.
16849         * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16850         for GCs.
16851         (Finternal_set_font_selection_order): Call font_update_sort_order
16852         only when enable_font_backend is set.
16853         (realize_x_face): Set face->font_info to that of default face only
16854         when enable_font_backend is set.
16856         * xdisp.c (handle_composition_prop): Set it->c to the fist
16857         character of the composed region.
16858         (fill_composite_glyph_string): Set base_face->font_info to
16859         s->font_info.  Get a face for ascii from base_face->ascii_face.
16860         (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16861         with a face already decided.
16862         (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16863         non-negative.
16864         (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16865         call font_prepare_composition unconditionally.
16867         * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16869         * xterm.h (struct x_display_info): New member font.
16871         * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16872         (x_set_mouse_face_gc, x_new_font): Likewise.
16873         (x_term_init): Setup display_info->font.
16874         (x_delete_terminal): Free display_info->font.
16876         * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16878         * ftxfont.c (ftxfont_default_fid): Delete it.
16879         (ftxfont_open): Set xfont->fid to 0.
16880         (ftxfont_end_for_frame): Clear data specific to the frame and the
16881         font-driver.
16883         * xftfont.c (xftfont_default_fid): Delete it.
16884         (xftfont_open): Set xfont->fid to 0.
16886         * fontset.c (FONTSET_OBJLIST): New macro.
16887         (fontset_find_font): Update font-object list of the fontset.
16888         (free_realized_fontset): New function.
16889         (free_face_fontset): Call free_realized_fontset.
16890         (Ffont_info): Call font_close_object only when enable_font_backend
16891         is set.
16893         * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16894         [HAVE_NTGUI]: Include w32term.h.
16895         [MAC_OS]: Include macterm.ch.
16896         (font_otf_ValueRecord): Use make_number.
16897         (font_finish_cache): Fix handling of reference count.
16898         (font_clear_cache): Update num_fonts.
16899         (font_open_entity): Update smallest_char_width and
16900         smallest_font_height of the frame.
16901         (font_close_object): Update num_fonts.
16902         (Fclear_font_cache): Fix finding the target cache data.
16904 2008-02-16  Glenn Morris  <rgm@gnu.org>
16906         * fontset.c (Finternal_char_font): Fix compilation warning.
16908 2008-02-16  Eli Zaretskii  <eliz@gnu.org>
16910         * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16911         instead of char arrays.  Enlarge the size of array passed to
16912         get_token_information.
16914         * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16915         warnings.
16917 2008-02-15  Dan Nicolaescu  <dann@ics.uci.edu>
16919         * .gdbinit: Don't set `args', it breaks gdb --args.
16921 2008-02-14  Stefan Monnier  <monnier@iro.umontreal.ca>
16923         * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16924         within a narrowed buffer.
16926 2008-02-14  Kenichi Handa  <handa@ni.aist.go.jp>
16928         * coding.c (decode_coding_object, encode_coding_object):
16929         Preserve Vdeactivate_mark.  Delete unnecessary call of Fcurrent_buffer.
16931 2008-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
16933         * coding.c (coding_set_destination): Use BEG_BYTE rather than
16934         hardcoding 1.
16935         (detect_coding_system):
16936         * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16937         (string_char_to_byte, string_byte_to_char, insert_from_gap):
16938         * insdel.c (insert_from_gap):
16939         * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16940         (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16941         (string_to_multibyte):
16942         * character.c (chars_in_text, multibyte_chars_in_text):
16943         * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16945         * character.h (FETCH_STRING_CHAR_ADVANCE)
16946         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16947         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16948         (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16950         * casefiddle.c (casify_region): Only call after-change and composition
16951         functions on the part of the region that was changed.
16953         * keyboard.c (read_avail_input):
16954         * frame.c (Fdelete_frame): Call Fdelete_terminal.
16956 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
16958         * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16959         (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16961 2008-02-11  Juanma Barranquero  <lekktu@gmail.com>
16963         * w32menu.c (push_submenu_start, push_submenu_end)
16964         (push_left_right_boundary, push_menu_pane, push_menu_item):
16965         * keyboard.c (read_key_sequence): Don't pass args with side effects
16966         to AREF, it fails when compiling with -DENABLE_CHECKING.
16968 2008-02-11  Kenichi Handa  <handa@ni.aist.go.jp>
16970         * Makefile.in (${lispsource}international/charprop.el):
16971         Delete this target.
16973         * search.c (boyer_moore): Fix incorrect synching of the trunk and
16974         emacs-unicode-2.
16976 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
16978         * terminal.c (Fdelete_terminal): Clean up the `force' path.
16980 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
16982         * frame.c (Qnoelisp): New symbol.
16983         (syms_of_frame): Initialize it.
16984         (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16985         harmless Elisp code, from a strong `force' from x_connection_closed.
16986         * frame.h (Qnoelisp): Declare.
16987         * xterm.c (x_connection_closed): Pass `noelisp'.
16989         * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16990         (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16991         (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16992         rather than `int' for the type of `type'.
16994 2008-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
16996         * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16998         * Makefile.in (GNUC): Remove support for gcc-1.x.
17000 2008-02-10  Richard Stallman  <rms@gnu.org>
17002         * lisp.h (ASET): Use AREF, not ASLOT.
17004 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
17006         * lisp.h (ASET): Check bounds.
17008 2008-02-10  Glenn Morris  <rgm@gnu.org>
17010         * buffer.c (mode-name): Doc fix.
17012 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
17014         * Makefile.in:
17015         * emacs.c:
17016         * gmalloc.c:
17017         * keyboard.c:
17018         * lisp.h:
17019         * m/ibm370aix.h:
17020         * process.c:
17021         * regex.c:
17022         * s/hpux.h:
17023         * sysdep.c:
17024         * sysselect.h:
17025         * systty.h:
17026         * unexec.c:
17027         * w32term.c:
17028         * xsmfns.c:
17029         * xterm.c: Remove code that deals with obsolete variables.
17031         * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17033         * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17034         nothing else needs it anymore.
17036 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
17038         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17039         instead of unibyte_char_to_multibyte.
17041 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
17043         * s/gnu-linux.h: Remove commented out code.
17045         * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17047         * Makefile.in: Update what RMS says about using autoconf.
17048         (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17049         (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17050         (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17051         (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17053 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
17055         * keymap.c (Fkey_description): Move side effect outside of macro call.
17057         * xfaces.c (Finternal_make_lisp_face):
17058         * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17060         * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17061         (syms_of_fontset): Use ASET.
17063         * fns.c (concat): Move side effect outside of macro call.
17064         (hash_clear): Use ASET.
17066 2008-02-08  Richard Stallman  <rms@gnu.org>
17068         * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17069         If FORCE, and frame has a surrogate minibuffer for another frame,
17070         delete the other frame first.
17072 2008-02-07  Timo Savola  <timo.savola@iki.fi>
17074         * xterm.c (x_detect_focus_change): Handle embed client message.
17075         (handle_one_xevent): Ditto.
17076         (handle_one_xevent): If embedded and we get a button press/release,
17077         request focus.
17078         (xembed_set_info, xembed_send_message): New functions.
17079         (x_make_frame_visible): Call xembed_set_info if embedded.
17080         (x_make_frame_invisible): Call xembed_set_info if embedded.
17081         (x_term_init): Initialize Xatom_XEMBED.
17082         (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17083         (x_iconify_frame): Ditto.
17085         * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17086         (enum xembed_info, enum xembed_message, enum xembed_focus)
17087         (enum xembed_modifier, enum xembed_accelerator): New.
17088         (xembed_set_info, xembed_send_message): Declare.
17089         (FRAME_X_EMBEDDED_P): New.
17091         * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17092         gtk_plug_new.
17094         * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17095         window ID of a frame.
17096         (x_window): Reparent frame if embedded.
17097         (Fx_create_frame): Don't set border width if embedded.
17099         * emacs.c (USAGE3): Add --parent-id.
17100         (standard_args): Ditto.
17102 2008-02-07  Jan Djärv  <jan.h.d@swipnet.se>
17104         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17106 2008-02-07  Jim Meyering  <meyering@redhat.com>
17108         Use "do...while (0)", not "if (1)...else" in macro definitions.
17109         The latter provokes a warning from gcc about the empty else, when
17110         followed by ";".  Also, without that trailing semicolon, it would
17111         silently swallow up any following statement.
17112         * syntax.h (SETUP_SYNTAX_TABLE)
17113         (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17114         * buffer.h (DECODE_POSITION): Likewise.
17115         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17116         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17117         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17118         (FETCH_CHAR_ADVANCE): Likewise.
17119         (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17121 2008-02-07  Jim Meyering  <meyering@redhat.com>
17123         * lread.c [lint]: Don't include <sys/inode.h>.
17125 2008-02-07  Stefan Monnier  <monnier@iro.umontreal.ca>
17127         * xselect.c (x_handle_dnd_message):
17128         * xmenu.c (digest_single_submenu, xmenu_show):
17129         * xdisp.c (with_echo_area_buffer_unwind_data)
17130         (format_mode_line_unwind_data, unwind_format_mode_line)
17131         (display_menu_bar):
17132         * eval.c (Ffetch_bytecode):
17133         * doc.c (store_function_docstring):
17134         * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17135         (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17136         * buffer.c (add_overlay_mod_hooklist): Use ASET.
17138 2008-02-07  Kenichi Handa  <handa@m17n.org>
17140         * ftxfont.c (ftxfont_open): Don't set
17141         dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17143         * ftfont.c (ftfont_open): Fix previous change.
17145 2008-02-06  Jason Rumney  <jasonr@gnu.org>
17147         * w32font.c (w32font_text_extents): Fill in lbearing metric.
17148         Use cached metrics for ASCII characters.
17149         (w32font_open_internal): Don't set font's owning_frame.
17150         Cache metrics for ASCII characters.
17152         * w32font.h (struct w32font_info): Add ascii_metrics.
17153         Remove owning_frame.
17155 2008-02-06  Kenichi Handa  <handa@ni.aist.go.jp>
17157         * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17158         to negative value.
17160         * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17162         * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17164         * charset.c (syms_of_charset): Set QCtest and Qeq.
17166 2008-02-06  Stefan Monnier  <monnier@iro.umontreal.ca>
17168         * process.c (Fstart_process):
17169         * callproc.c (Fcall_process): Handle the case where
17170         Funhandled_file_name_directory returns nil.
17172         * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17173         (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17174         * font.c (check_gstring): Use them and AREF to access the vector before
17175         we know it's really a gstring.
17176         (Ffont_shape_text): Fix typo.
17177         (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17179         * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17180         Declare.
17182         * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17184 2008-02-05  Jason Rumney  <jasonr@gnu.org>
17186         * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17187         Set smallest_font_height and smallest_char_width in display info.
17189 2008-02-05  Kenichi Handa  <handa@ni.aist.go.jp>
17191         * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17193 2008-02-05  Miles Bader  <miles@gnu.org>
17195         * xfaces.c (get_lface_attributes, merge_named_face)
17196         (lookup_named_face, lookup_derived_face, realize_named_face):
17197         Revert 2008-02-01 change by cyd@stupidchicken.com.
17199 2008-02-04  Kenichi Handa  <handa@ni.aist.go.jp>
17201         * fontset.c (Ffontset_info): Handle the case of inhibitting the
17202         fallback fonts.
17203         (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17205 2008-02-04  Jason Rumney  <jasonr@gnu.org>
17207         * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17208         set full_name.
17209         (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17211 2008-02-03  Jason Rumney  <jasonr@gnu.org>
17213         * makefile.w32-in (OBJ1): Include font.o here.
17214         (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17216 2008-02-02  Jason Rumney  <jasonr@gnu.org>
17218         * makefile.w32-in (temacs): Bump EMHEAP to 21.
17220 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17222         * s/cygwin.h: Define VIRT_ADDR_VARIES.
17224         * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17226 2008-02-01  Andreas Schwab  <schwab@suse.de>
17228         * Makefile.in (shortlisp, lisp): Update for rename of
17229         ../lisp/language/myanmar.el.
17231 2008-02-01  Chong Yidong  <cyd@stupidchicken.com>
17233         * xfaces.c (get_lface_attributes): Delete function.
17234         (merge_named_face, lookup_named_face, lookup_derived_face)
17235         (realize_named_face): Call lface_from_face_name directly, and use
17236         the fact that merge_face_vectors does not alter its FROM argument.
17238 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17240         * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17241         input in the default locale.  Handle non-Unicode multibyte input.
17243 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17245         * fontset.c (reorder_font_vector): Exclude nil elements from the
17246         font group.  Don't try multiple fonts.
17247         (fontset_font): Adjust for the above change.
17248         (Finternal_char_font): Return nil if the found font doesn't
17249         contain the character ch.
17251         * Makefile.in (lisp, shortlisp): Add cham.el.
17253 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17255         * font.h (FONTP): Make it return 1 also for a font-object.
17257         * .gdbinit (xfontset): New function.
17259         * font.c (font_find_for_lface): Check if the character C is
17260         supported or not only for the first font.
17262         * fontset.c (reorder_font_vector): Fix typo.
17263         (fontset_find_font): Don't add a font-spec specifying a script.
17264         Use 0 (not Qt) for the indication of empty font-group.  Change the
17265         format of RFONT-DEF.  Return Qt if no font in the font-group
17266         support the character.
17267         (fontset_font): Adjust for the above change.  If no font was
17268         found the character, remember that.
17269         (face_for_char): Adjust for the change of RFONT-DEF.
17270         (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17271         no font for the target.
17272         (Finternal_char_font): Adjust for the change of RFONT-DEF.
17274 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17276         * font.c (font_load_for_face): Handle the case that the font in
17277         face->lface is a string.
17279 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17281         * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17283 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17285         * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17286         Fix previous change.  If the frame is not on a window system,
17287         signal an error.
17289 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17291         * coding.c (decode_coding_object, encode_coding_object): Adjust
17292         marker positions after conversion.
17294         * lisp.h (struct Lisp_Marker): New member need_adjustment.
17296 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17298         * font.c (font_find_for_lface): Fix the handling of the return
17299         value of font_has_char.
17300         (Ffont_shape_text): Fix previous change.
17302         * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17303         (fontset_ref_and_range): Delete it.
17304         (fontset_find_font): Call char_table_ref_and_range instead of
17305         FONTSET_REF_AND_RANGE.
17306         (make_fontset): Don't setup font groups of Latin here.
17307         (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17308         (new_fontset_from_font): Make the specified font the default for
17309         all Latin characters.
17311 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17313         * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17314         is on a window system before accessing the fontset of the frame.
17316 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17318         * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17320         * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17321         when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17323         * font.c (Ffont_shape_text): If the font driver doesn't have a
17324         shaper function, make zero-width glyphs to have at least one-pixel
17325         width.  Fix setting of `to' field of glyphs.
17327 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17329         * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17330         glyphs.
17332         * font.h (struct font_driver): Improve docstring of member `shape'.
17334 2008-02-01  Kenichi Handa  <handa@m17n.org>
17336         * composite.c (syms_of_composite): Fix docstring of
17337         auto-composition-function.
17339         * font.h (LGLYPH_SIZE): New macro.
17341         * font.c (Ffont_fill_gstring): Stop filling when a character not
17342         supported by the font is found.
17343         (Ffont_shape_text): When a shape callback function returns nil,
17344         try at most two more times with larger gstring.
17345         (Ffont_at): Fix getting of w.  Call font_at with correct 5th argument.
17347         * xdisp.c (handle_auto_composed_prop): Change the argument to
17348         auto-composition-function.
17350         * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17351         (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17352         Lispy glyph and store it in the lgstring.
17354         * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17356         * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17358 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17360         * font.c (Ffont_shape_text): Avoid unnecessary composition.
17362         * fontset.c (Vfont_encoding_charset_alist): New variable.
17363         (syms_of_fontset): DEFVAR it.
17364         (reorder_font_vector, fontset_find_font): Optimize for the case of
17365         no need of reordering.
17366         (face_for_char): Map the charset property by
17367         Vfont_encoding_charset_alist.
17369 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17371         * w32font.c (logfonts_match): Don't check adstyle here.
17372         (font_matches_spec): Check here against physical font instead.
17373         (add_font_entity_to_list): Avoid some substitutions.
17375         * font.c (font_parse_fcname): Default weight and slant to normal.
17376         (font_score): Prefer normal fonts if weight or slant unspecified.
17377         (font_score) [WINDOWSNT]: Scale weight difference down to closer
17378         match freetype scores.
17380 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17382         * w32font.c (w32font_text_extents): Don't use the frame stored in the
17383         font, as it may have been deleted.
17384         (w32_enumfont_pattern_entity): Map generic family to adstyle using
17385         most common hyphenless variation.
17386         (logfonts_match): Check generic family.
17387         (font_matches_spec): Don't check generic family here.
17388         (fill_in_logfont): Set generic family based on adstyle.
17390         * w32font.h (w32font_get_cache): Update declaration.
17392 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17394         * ftfont.c (ftfont_get_cache): Adjust the argument type.
17396         * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17397         If none of the new drivers are available, call font_update_drivers
17398         with the old drivers.
17400         * w32font.c (w32font_get_cache): Adjust the argument type.
17402         * xfont.c (xfont_get_cache): Adjust the argument type.
17404         * font.h (struct font_driver): Change argument type of get_cache.
17406         * xftfont.c (xftfont_start_for_frame): Delete prototype.
17408         * font.c (Ffont_get): Fix arguments to Fassoc.
17409         (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17410         (font_clear_cache): New function.
17411         (font_list_entities, font_matching_entity): Use font_get_cache.
17412         (font_update_drivers): Call font_clear_cache when finishing a driver.
17414         * fontset.c (fontset_find_font): Fix previous change.
17416 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17418         * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17419         dpyinfo->font_table.
17420         (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17421         (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17423         * font.c (font_at): Handle the case that the arg C is negative.
17424         Handle the unibyte case.
17425         (Ffont_at): Call font_at with the arg C -1.
17427         * xdisp.c (handle_auto_composed_prop): Don't get a character at
17428         the position here, and call font_at with the arg C -1.
17429         Don't check the range of the existing composition at the point.
17431 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17433         * fontset.c (fontset_add): New args charset_id and family.
17434         Change caller.
17435         (load_font_get_repertory, fontset_find_font): Assume that
17436         font_spec is always a font-spec object.
17437         (Fset_fontset_font): Always store a font-spec object in a fontset.
17439         * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17440         instead of get_property_and_range.
17442 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17444         * xftfont.c (struct xftfont_info): Delete the member ft_face.
17445         (xftfont_open): Don't keep locking face.
17446         (xftfont_close): Don't unlock face.
17447         (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17449         * fontset.c (fontset_find_font): Don't prefer a font of
17450         supplementary charset.
17452 2008-02-01  Kenichi Handa  <handa@m17n.org>
17454         * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17455         script, langsys_tag to langsys, new member script.
17456         (OTF_TAG_STR): Terminate by '\0'.
17457         (ftfont_get_open_type_spec): If :otf prop is spec, limit the
17458         listing to the script specified in that property.  Fix arg to
17459         OTF_check_features.
17461 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17463         * w32font.h: New file.
17465         * w32font.c: Include it.
17466         (struct w32font_info): Add owning_frame field.  Move to w32font.h.
17467         (w32font_open): Set owning_frame.
17468         (w32font_text_extents): Use owning_frame.
17469         (struct font_callback_data): Add opentype_only field.
17470         (add_font_entity_to_list): Use it to filter fonts.
17471         Don't check against full name.
17472         (w32font_list_internal): New function.
17473         (w32font_list): Use it.
17474         (w32font_match_internal): New function.
17475         (w32font_match): Use it.
17476         (w32font_open_internal): New function.
17477         (w32font_open): Use it.
17478         (w32font_get_cache, w32font_close, w32font_has_char)
17479         (w32font_encode_char, w32font_text_extents, w32font_draw):
17480         Make non-static.
17482         * makefile.w32-in (w32font.o): Depend on w32font.h.
17484 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17486         * charset.c (Fdefine_charset_internal): Record a supplementary
17487         charset at the tail of Vcharset_order_list.
17489         * font.c (Ffont_shape_text): Fix the return value.
17491         * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17493         * xdisp.c (handle_auto_composed_prop): Fix previous change.
17495 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17497         * ftfont.c (struct OpenTypeSpec): New struct.
17498         (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17499         (ftfont_get_open_type_spec): New function.
17500         (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17502         * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17504 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17506         * w32font.c (add_font_entity_to_list): Compare only the beginning
17507         of full name.
17509 2008-02-01  Kenichi Handa  <handa@m17n.org>
17511         * xdisp.c (handle_auto_composed_prop): Simplify the code.
17512         Never return HANDLED_RECOMPUTE_PROPS.
17514 2008-02-01  Kenichi Handa  <handa@m17n.org>
17516         * font.c (font_gstring_produce): Delete it.
17518         * composite.h (COMPOSITION_METHOD):
17519         Handle COMPOSITION_WITH_GLYPH_STRING.
17521 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17523         * xfont.c (Qx): Delete.
17524         (syms_of_xfont): Don't initialize Qx.
17526         * composite.h (enum composition_method):
17527         Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17529 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17531         * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17532         (choose_face_font): Accept new form of font-spec.
17534         * frame.h (font_driver_list): Declare it unconditionally.
17535         (struct frame): Define members font_driver_list and font_data_list
17536         unconditionally.
17538         * fontset.c: Include "font.h" unconditionally.
17539         (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17540         (Fset_fontset_font): Accept a font-spec object.
17542         * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17543         PIXEL_SIZE part a wild card.
17545         * dispextern.h (struct glyph_string): Define members clip and
17546         num_clips unconditionally.
17547         (struct face): Define members font_info and extra unconditionally.
17549         * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17550         ftfont_info only when HAVE_LIBOTF is defined.
17552 2008-02-01  Andreas Schwab  <schwab@suse.de>
17554         * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17555         and end.
17557 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17559         * w32font.c (w32font_driver): Add new fields.
17561 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17563         * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17564         (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17565         (LIBES): Add @M17N_FLT_CFLAGS@.
17567         * composite.c (compose_text): Don't treat the new style
17568         composition specially.
17570         * emacs.c (main): Call syms_of_font unconditionally.
17572         * font.h (FONT_ENTITY_NOT_LOADABLE)
17573         (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17574         (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17575         (struct font_driver): New member shape.
17576         (font_registry_charsets): Extern it.
17577         (font_find_for_lface, font_prepare_composition): Adjust prototype.
17578         (font_otf_capability, font_drive_otf): Delete their externs.
17580         * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17581         (font_charset_alist, font_registry_charsets): Move from xfont.c
17582         and rename.
17583         (font_prop_validate_otf): New function.
17584         (font_property_table): Register it for QCotf.
17585         (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17586         (font_drive_otf): Delete.
17587         (font_prepare_composition): New arg F.  Adjust for the change of
17588         lispy gstring.
17589         (font_find_for_lface): New arg C.
17590         (font_load_for_face): Adjust for the change of font_find_for_lface.
17591         (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17592         lispy gstring.
17593         (Ffont_shape_text): New function.
17594         (Fopen_font): If the font size is not given, use 12-pixel.
17595         (Ffont_at): New arg STRING.
17596         (syms_of_font): Initalize font_charset_alist.
17597         Declare Ffont_shape_text as a Lisp function.  Call syms_of_XXfont
17598         conditionally.
17600         * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17601         fonts of the same font-spec.  Change the format of RFONT-DEF.
17602         (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17603         Adjust for the change of RFONT-DEF.
17604         (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17606         * ftfont.h: New file.
17608         * ftfont.c: Don't include Freetype headers.  Include "ftfont.h".
17609         (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17610         (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17611         (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17612         font_otf_capability and font_drive_otf, set ftfont_shape.
17613         (ftfont_list): Adjust for the change of :otf property value.
17614         (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17615         (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17616         (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17617         (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17618         (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17619         (otf_gstring, gstring, m17n_flt_initialized): New variables.
17621         * w32term.c (x_draw_composite_glyph_string_foreground):
17622         Adjust for the change of lispy gstring.
17624         * xdisp.c (handle_composition_prop): Adjust for the change of
17625         lispy gstring.  Call a function for auto-composition with the
17626         third arg it->window.
17627         (fill_composite_glyph_string): Adjust for the change of lispy string.
17628         (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17630         * xfaces.c (set_font_frame_param): Adjust for the change of
17631         font_find_for_lface.
17633         * xfont.c (x_font_charset_alist): Move to font.c and rename.
17634         (xfont_registry_charsets): Likewise.  Change caller.
17635         (syms_of_xfont): Don't handle x_font_charset_alist.
17637         * xftfont.c: Include "ftfont.h".
17638         (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17639         (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17640         (xftfont_close) [HAVE_LIBOTF]: Close otf.
17641         (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17642         (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17643         Set xftfont_driver.shape to xftfont_shape.
17645         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17646         the change of lispy gstring.
17648 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17650         * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17652 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17654         * w32font.c (w32font_draw): Fill background manually.
17656 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17658         * font.c (Qfontp): Remove unused symbol.
17659         (QCantialias): New symbol.
17660         (syms_of_font): Define it.
17661         (font_property_table): Set a validator for QCantialias.
17663         * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17664         Define if not already.
17665         (QCfamily): Share with xfaces.c.
17666         (Qstandard, Qsubpixel, Qnatural): New symbols.
17667         (syms_of_w32font): Define them.  Don't define QCfamily here.
17668         (w32_antialias_type, lispy_antialias_type): New functions.
17669         (w32_enumfont_pattern_entity): New arg requested_font.
17670         Set antialias parameter if non-default was requested.
17671         (fill_in_logfont): Fill in lfQuality if :antialias specified.
17673 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17675         * lread.c (read1): Undo the previous change.
17677 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (tiny change)
17679         * frame.c (Fdelete_frame): Call font_update_drivers only when
17680         USE_FONT_BACKEND is defined.
17682 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17684         * font.h (struct font_bitmap): New member bits_per_pixel.
17685         (struct font_driver): New members start_for_frame and end_for_frame.
17686         (struct font_data_list): New struct.
17687         (font_put_frame_data, font_get_frame_data): Extern them.
17689         * frame.h (struct frame): New member font_data_list.
17691         * font.c (font_update_drivers): Call driver->start_for_frame and
17692         driver->end_for_frame at proper timings.
17693         (font_put_frame_data, font_get_frame_data): New functions.
17694         (Ffont_spec): Add usage in the docstring.
17696         * frame.c (make_frame): Initialize f->font_data_list to NULL.
17697         (Fdelete_frame): Call font_update_drivers.
17699         * xftfont.c (struct xftface_info): Delete the member xft_draw.
17700         (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17701         (xftfont_get_xft_draw): New function.
17702         (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17703         (xftfont_end_for_frame): New function.
17704         (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17706         * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17707         Change argument.  Cache GCs in the per-frame data.
17708         (struct ftxfont_frame_data): New struct.
17709         (ftxfont_draw_bitmap): New arg gc_fore and flush.
17710         (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17711         (ftxfont_draw): Get GCs by ftxfont_get_gcs.  Reflect s->clip in GCs.
17712         (ftxfont_end_for_frame): New function.
17713         (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17715         * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17717 2008-02-01  Kenichi Handa  <handa@m17n.org>
17719         * xselect.c (Vselection_coding_system)
17720         (Vnext_selection_coding_system): Delete them.
17721         (syms_of_xselect): Don't declare selection-coding-system and
17722         next-selection-coding-system.  They are declared in select.el.
17724 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17726         * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17728         * w32fns.c: Include imm.h.
17729         (get_composition_string_fn, get_ime_context_fn): New optional
17730         system functions.
17731         (globals_of_w32fns): Load them from imm32.dll.
17732         (ignore_ime_char): New flag.
17733         (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17734         WM_IME_ENDCOMPOSITION messages.
17736         * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17737         MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17739 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17741         * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17742         (READCHAR_REPORT_MULTIBYTE): New macro.
17743         (readchar): New 2nd arg MULTIBYTE.
17744         (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17745         Make symbol's name multibyte according to the multibyteness of the
17746         source.
17748 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17750         * xfaces.c (face_for_overlay_string): Call lookup_face with
17751         correct arguments (fix of synching with the trunk).
17753 2008-02-01  Kenichi Handa  <handa@m17n.org>
17755         * font.c (font_prop_validate_symbol, font_prop_validate_style)
17756         (font_prop_validate_non_neg, font_prop_validate_spacing):
17757         Delete argument prop_index.
17758         (font_property_table): Change arguments to validater.  Change Callers.
17759         (font_lispy_object): Delete.
17760         (font_at): Use font_find_object instead fo font_lispy_object.
17762 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
17764         * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17765         and file names.
17767 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17769         * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17770         (font_matches_spec): Remove debug output.
17771         (add_font_entity_to_list): Avoid using substituted fonts.
17773 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17775         * doc.c (Fsnarf_documentation):
17776         * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17778 2008-02-01  Miles Bader  <miles@gnu.org>
17780         * dispextern.h (struct glyph_row): Only define "clip" field if
17781         HAVE_WINDOW_SYSTEM is defined.
17783 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
17785         Fix up multi-tty merge.
17787         * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17788         and indentation.
17790         * xfaces.c (free_realized_face, clear_face_gcs):
17791         Include font_done_for_face in the input_blocked section, just in case.
17793         * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17794         (get_char_face_and_encoding): Undo last change and remove the *other*
17795         duplicate definition (i.e. keep the one that's better scoped and that
17796         includes code for the font-backend).
17798         * terminal.c (create_terminal): Default keyboard_coding to
17799         `no-conversion' and terminal_coding to `undecided'.
17801         * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17803         * fontset.c (free_realized_fontsets): Check that the table entry does
17804         contain a fontset before trying to compare it to `base'.
17806         * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17807         syms_of_charset, and syms_of_coding earlier because init_window_once
17808         now needs Vcoding_system_hash_table to be setup.
17810         * coding.h (default_buffer_file_coding): Remove.
17812         * coding.c (default_buffer_file_coding): Remove.
17813         (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17814         than ->symbol, and use the terminal-local coding system.
17815         (syms_of_coding): Don't setup the coding-systems that are not
17816         terminal-local.
17817         (Fdefine_coding_system_internal): Use XCAR/XCDR.
17819         * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17820         Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17822         * alloc.c (Fmake_char_table, make_sub_char_table): Remove.  They're now
17823         in chartab.c and were re-added here by mistake.
17824         (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17826         * doc.c (Fsnarf_documentation):
17827         * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17828         src to etc.
17830         * ChangeLog.10: Add mistakenly removed entry.
17832 2008-02-01  Dan Nicolaescu  <dann@ics.uci.edu>
17834         * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17836 2008-02-01  Miles Bader  <miles@gnu.org>
17838         * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17839         Add extra args to FACE_FOR_CHAR.
17841 2008-02-01  Kenichi Handa  <handa@m17n.org>
17843         * keymap.c (where_is_internal_1): If key is a cons, store the copy
17844         in sequence.
17846         * chartab.c (map_sub_char_table, map_char_table): If the range
17847         contains just one character, call the function with that character
17848         even if the depth is not 3.
17850 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17852         * w32font.c (w32font_text_extents): Calculate metrics for the
17853         whole string.
17855 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17857         * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17859 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17861         * w32term.c (x_set_glyph_string_clipping): Use
17862         get_glyph_string_clip_rects.
17863         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17864         Adjust for the change of struct glyph_string.
17866         * w32font.c (w32font_draw): Do clipping here.
17868 2008-02-01  Kenichi Handa  <handa@m17n.org>
17870         * xftfont.c (xftfont_draw): Adjust for the change of struct
17871         glyph_string.
17873         * xterm.c (x_set_glyph_string_clipping): Use
17874         get_glyph_string_clip_rects.
17875         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17876         Adjust for the change of struct glyph_string.
17878         * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17879         the resulting clip(s}.
17880         (expose_overlaps): Add arg r.  Change callers.  Set it to
17881         row->clip temporarily.
17882         (expose_window): Redraw rows overlapping the exposed area.
17884         * dispextern.h (struct glyph_row): New member clip.
17885         (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17886         clip_height, new member clip, and num_clips.
17888 2008-02-01  Kenichi Handa  <handa@m17n.org>
17890         * data.c (Fchar_or_string_p): Fix docstring.
17892 2008-02-01  Kenichi Handa  <handa@m17n.org>
17894         * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17895         create a temporary XftDraw object.
17897 2008-02-01  Kenichi Handa  <handa@m17n.org>
17899         * font.c (Ffontp): Fix docstring.
17901         * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17902         strong evidence of ISO-2022.
17904 2008-02-01  Kenichi Handa  <handa@m17n.org>
17906         * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17907         SYNTAX_ENTRY_FOLLOW_PARENT.
17909 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
17911         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17912         its type.
17913         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17914         Update to the new type of weak_hash_tables and next_weak.
17916         * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17917         a plain C pointer to Lisp_Hash_Table.
17919         * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17920         (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17921         (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17922         (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17923         (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17924         (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17925         (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17926         (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17927         (GC_EQ): Remove since they've been identical to their non-GC_
17928         alter-egos ever since the markbit was eradicated.
17930         * alloc.c:
17931         * buffer.c:
17932         * buffer.h:
17933         * data.c:
17934         * fileio.c:
17935         * filelock.c:
17936         * fns.c:
17937         * frame.h:
17938         * lisp.h:
17939         * macterm.c:
17940         * print.c:
17941         * process.c:
17942         * w32fns.c:
17943         * w32menu.c:
17944         * w32term.c:
17945         * xfns.c:
17946         * xmenu.c:
17947         * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17949 2008-02-01  Kenichi Handa  <handa@m17n.org>
17951         * chartab.c (map_sub_char_table): Make it work for the top-level
17952         char-table.  Fix handling of parent char-table.
17953         (map_char_table): Adjust for the above change.
17955 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17957         * w32font.c (Qgdi): Rename from Qw32.
17959 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17961         * w32bdf.c (get_quoted_string): Make function static.
17963 2008-02-01  Kenichi Handa  <handa@m17n.org>
17965         * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17966         bigger ascent and descent than those of the font, use them as
17967         font's ascent and descent.
17969 2008-02-01  Kenichi Handa  <handa@m17n.org>
17971         * Makefile.in (${lispsource}international/charprop.el): Move this
17972         target within "#ifdef HAVE_UNIDATA" and "#endif".
17974 2008-02-01  Kenichi Handa  <handa@m17n.org>
17976         * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17977         (shortlisp): Add ../lisp/language/tai-viet.el.
17979 2008-02-01  Ulrich Mueller  <ulm@gentoo.org>
17981         * Makefile.in (${lispsource}international/charprop.el): Depend on
17982         temacs${EXEEXT}.
17984 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17986         * w32font.c (w32font_close): Delete the GDI font object.
17988         * w32menu.c: Include character.h.
17990         * w32proc.c: Likewise.
17992         * w32select.c: Likewise.
17994         * makefile.w32-in (w32proc.o): Depend on character.h.
17996 2008-02-01  Jason Rumney  <jasonr@gnu.org>
17998         * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18000         * w32menu.c (syms_of_w32menu): Likewise.
18002         * w32proc.c (syms_of_ntproc): Likewise.
18004         * w32select.c (syms_of_w32select): Likewise.
18006         * w32term.c (syms_of_w32term): Likewise.
18008 2008-02-01  Jason Rumney  <jasonr@gnu.org>
18010         * w32font.c (w32font_draw): Delete brush after using it.
18012 2008-02-01  Jason Rumney  <jasonr@gnu.org>
18014         * w32font.c (w32font_open): Don't set font_idx.
18015         (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18016         to font settings.
18017         (w32font_draw): Fill background explicitly.
18019 2008-02-01  Jason Rumney  <jasonr@gnu.org>
18021         * w32term.c (w32_initialize): Don't call w32font_initialize.
18023         * w32font.c (w32font_info): Remove subranges.
18024         (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18025         (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18026         (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18027         (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18028         (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18029         (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18030         (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18031         (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18032         (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18033         (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18034         New symbols.
18035         (font_callback_data): New struct.
18036         (w32font_list, w32font_match): Use it.
18037         (w32font_open): Don't populate subranges.
18038         (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18039         (w32font_encode_char): Always return unicode code-point as-is.
18040         (w32font_text_extents): Supply a transformation matrix to
18041         GetGlyphOutline.  Never look up by glyph index.  Avoid looping
18042         twice.  Use unicode version of GetTexExtentPoint32 instead of
18043         glyph index version.
18044         (set_fonts_frame): Remove.
18045         (w32_enumfont_pattern_entity): Add frame parameter, use it to
18046         set frame parameter.  Use backward compatible fake foundries.
18047         Save generic family in extra slot under QCfamily.  Make width slot
18048         constant.  Save QCspacing value.  Save list of scripts instead of
18049         binary subranges.
18050         (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18051         (add_font_entity_to_list): Use font_callback_data struct.  Filter
18052         unwanted fonts.
18053         (add_one_font_entity_to_list): Use font_callback_data struct.
18054         (w32_registry): Default to iso10646_1.
18055         (fill_in_logfont): Use dpi from extra slot.  Don't bother with
18056         string font registries.  Don't fill in font name if it is a generic
18057         family name, fill family instead.  Use spacing, family and script
18058         extra info to fill pitch, family and charset fields.
18059         (list_all_matching_fonts): Use font_callback_data struct.
18060         (unicode_range_for_char): Remove.
18061         (font_supported_scripts): New function.
18062         (w32font_initialize): Remove.
18063         (syms_of_w32font): Update which symbols are defined.
18065 2008-02-01  Jason Rumney  <jasonr@gnu.org>
18067         * font.c (font_pixel_size): Reverse assq_no_quit args.
18069         * w32term.h (FONT_WIDTH): Report max width, not average.
18070         (FONT_MAX_WIDTH): Remove.
18071         (FONT_AVG_WIDTH): New macro.
18073         * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18074         redefinition of FONT_WIDTH.
18076         * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18077         (w32_cache_char_metrics): Use FONT_WIDTH.
18079         * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18081 2008-02-01  Jason Rumney  <jasonr@gnu.org>
18083         * w32font.c (w32font_open): Make lfHeight negative.
18085         * w32fns.c (x_default_font_parameter): Use new style font name.
18086         (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18088 2008-02-01  Jason Rumney  <jasonr@gnu.org>
18090         * w32font.c (QCsubranges): New symbol.
18091         (w32font_open, w32font_has_char): Get subranges from subproperty
18092         of extra.
18093         (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18094         (syms_of_w32font): Define :subranges symbol.
18096         * font.c (font_put_extra): Expose externally.
18098         * font.h (font_put_extra): Move declaration from font.c.
18100         * font.c (Ffont_get): Use font driver to determine otf capability.
18101         (adjust_anchor): Check if driver defines anchor_point before using.
18103         * w32font.c (w32font_open): Handle size, height and pixel_size better.
18104         (w32font_draw): Use options.
18105         (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18106         Fix detection of truetype fonts.
18107         (registry_to_w32_charset): Handle charsets other than iso8859-1
18108         expressed as lisp symbols.
18109         (w32_registry): Express charset as lisp symbol.
18110         (fill_in_logfont): Reverse pixel and point height logic.
18111         Don't set width here.  Set quality to default.
18113         * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18114         (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18116         * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18117         Remove redundant loop and allocation.
18119         * makefile.w32-in (font.o, w32font.o): New objects.
18120         (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18121         (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18123         * xdisp.c (fill_composite_glyph_string): Make the first arg to
18124         STORE_XCHARB a valid l-value.
18126         * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18127         calculations for non-Truetype fonts.
18128         (x_draw_glyph_string): Sync with xterm.c.
18129         (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18130         Remove redundant code.
18131         (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18133         * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18134         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18136         * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18137         (x_to_w32_charset, w32_to_x_charset): Expose externally.
18139         * w32font.c: New file for w32 font backend.
18141 2008-02-01  Kenichi Handa  <handa@m17n.org>
18143         * term.c: Don't include "buffer.h" twice.
18145 2008-02-01  Kenichi Handa  <handa@m17n.org>
18147         * character.c (Funibyte_string): New function.
18148         (syms_of_character): Defsubr it.
18150 2008-02-01  Jason Rumney  <jasonr@gnu.org>
18152         * w32term.c [USE_FONT_BACKEND]:
18153         (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18154         (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18155         (x_draw_glyph_string, x_draw_glyph_string_foreground)
18156         (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18157         (x_free_frame_resources): Sync with xterm.c.
18159 2008-02-01  Andreas Schwab  <schwab@suse.de>
18161         * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18162         char-table size.
18164 2008-02-01  Kenichi Handa  <handa@m17n.org>
18166         * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18168 2008-02-01  Kenichi Handa  <handa@m17n.org>
18170         * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18171         font_otf_gpos, add font_drive_otf.
18173         * fontset.c (fontset_find_font): Pay attention to font size
18174         specified for a font.
18175         (reorder_font_vector): Check contents of font_def.
18177         * font.c (struct otf_list): Delete it.
18178         (otf_list): Make it a lisp variable.
18179         (otf_open): Use lispy otf_list.
18180         (generate_otf_features): Rename from parse_gsub_gpos_spec.
18181         (check_otf_features): New function.
18182         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18183         New functions.
18184         (font_drive_otf): New function merging font_otf_gsub and
18185         font_otf_gpos.
18186         (font_open_for_lface): New arg spec.  Change argument order.
18187         (font_load_for_face): Adjust for the change of font_open_for_lface.
18188         (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18189         Ffont_otf_gpos.
18190         (syms_of_font): Staticpro otf_list.  Delete defsubr of
18191         Sfont_otf_gsub and Sfont_otf_gpos.  Defsubr Sfont_drive_otf.
18193         * xfaces.c (set_font_frame_param): Adjust for the change of
18194         font_open_for_lface.
18196         * font.h (font_open_for_lface): Adjust prototype.
18197         (struct font_driver): Delete members otf_gsub and otf_gpos, add
18198         member otf_drive.
18199         (font_otf_gsub, font_otf_gpos): Delete externs.
18200         (font_drive_otf): Extern it.
18202 2008-02-01  Kenichi Handa  <handa@m17n.org>
18204         * font.c (font_at): If the window W is not on a window system,
18205         return Qnil.
18207         * coding.c (produce_chars, encode_coding): Don't call
18208         insert_from_gap if no characters to produce.
18210 2008-02-01  Kenichi Handa  <handa@m17n.org>
18212         * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18213         Fclear_face_cache.
18215         * xfaces.c (face_for_font): Check also face->font==font->font.font.
18217 2008-02-01  Miles Bader  <miles@gnu.org>
18219         * emacs.c (main): Change default value of `enable_font_backend' to 1.
18220         Parse "--disable-font-backend" option.
18221         (standard_args): Add "--disable-font-backend" option.
18223 2008-02-01  Kenichi Handa  <handa@m17n.org>
18225         * fontset.c (fontset_find_font): New function.
18226         (fontset_font): Use fontset_find_font.
18227         (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18228         Register the specified font for all Latin characters.
18229         (new_fontset_from_font): Register the specified font for all Latin
18230         characters.
18231         (dump_fontset): For a realized fontset, include the base fontset
18232         name in the returned vector.
18234 2008-02-01  Kenichi Handa  <handa@m17n.org>
18236         * character.h (CHAR_STRING): Cast C to unsigned on calling
18237         char_string.
18239         * character.c (char_string): Type of arg C changed to unsigned.
18240         Signal an error if C is an invalid character code.
18242         * editfns.c (general_insert_function, Fchar_to_string):
18243         Use CHARACTERP, not INTEGERP.
18245 2008-02-01  Kenichi Handa  <handa@m17n.org>
18247         * character.h (MIN_MULTIBYTE_LEADING_CODE)
18248         (MAX_MULTIBYTE_LEADING_CODE): New macros.
18250         * regex.c (analyse_first): Fix for multibyte characters in "case
18251         charset:" and "case categoryspec:".
18253 2008-02-01  Andreas Schwab  <schwab@suse.de>
18255         * Makefile.in (LIBES): Move standard libraries to the end.
18257 2008-02-01  Kenichi Handa  <handa@m17n.org>
18259         * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18260         nonzero, don't shrink the buffer nextb.
18262         * buffer.h (struct buffer_text): New member inhibit_shrinking.
18264         * coding.c (coding_alloc_by_making_gap): New arg offset.
18265         (alloc_destination): Call coding_alloc_by_making_gap with the arg
18266         offset.
18267         (decode_coding_iso_2022): Update coding->safe_charsets.
18268         (decode_coding_gap): Temporarily set
18269         current_buffer->text->inhibit_shrinking to 1.
18271 2008-02-01  Kenichi Handa  <handa@m17n.org>
18273         * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18274         indexing into elements of s->cmp and s->char2b.
18276 2008-02-01  Juanma Barranquero  <lekktu@gmail.com>
18278         * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18280 2008-02-01  Kenichi Handa  <handa@m17n.org>
18282         * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18283         target_multibyte instead of multibyte.
18284         (re_match_2_internal): Call bcmp_translate with target_multibyte.
18285         (bcmp_translate): Change the argument name from multibyte to
18286         target_multibyte.
18288 2008-02-01  Kenichi Handa  <handa@m17n.org>
18290         These changes are to compile a regexp into a pattern that can be
18291         used both for multibyte and unibyte targets.
18293         * Makefile.in (search.o): Depend on charset.h.
18295         * character.c (multibyte_char_to_unibyte_safe): New function.
18297         * search.c: Include "charset.h".
18298         (compile_pattern_1): Delete argument multibyte.  Don't set
18299         cp->buf.target_multibyte here.  Set cp->buf.charset_unibyte.
18300         (compile_pattern): Don't compare cp->buf.target_multibyte.
18301         Compare cp->buf.charset_unibyte.
18302         (compile_pattern): Set cp->buf.target_multibyte.
18304         * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18306         * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18308         * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18309         multibyte.  Change callers.
18310         (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18311         (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete.  Change callers
18312         to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18313         (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18314         (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18315         (regex_compile): Make the compiled pattern usable both for
18316         multibyte and unibyte targets.
18317         (analyse_first): Make the fastmap usable both for multibyte and
18318         unibyte targets.
18319         (TRANSLATE_VIA_MULTIBYTE): Delete.
18320         (re_match_2_internal): Pay attention to the case that the
18321         multibyteness of bufp and target may be different.
18323 2008-02-01  Kenichi Handa  <handa@m17n.org>
18325         * xdisp.c (x_produce_glyphs): When a font is not found, make the
18326         empty box occupy at least one column width.
18328 2008-02-01  Miles Bader  <miles@gnu.org>
18330         * Makefile.in: Remove redundant HAVE_XFT clause.
18332 2008-02-01  Kenichi Handa  <handa@m17n.org>
18334         * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18336 2008-02-01  Kenichi Handa  <handa@m17n.org>
18338         * fontset.c (Finternal_char_font): Fix for the case of POSITION
18339         being nil.
18341 2008-02-01  Kenichi Handa  <handa@m17n.org>
18343         * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18345 2008-02-01  Kenichi Handa  <handa@m17n.org>
18347         * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18349 2008-02-01  Kenichi Handa  <handa@m17n.org>
18351         * search.c (simple_search): Fix previous change.
18353 2008-02-01  Kenichi Handa  <handa@m17n.org>
18355         * xftfont.c (ftfont_font_format): Extern declaration.
18357         * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18359         * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18360         (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18362         * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18363         (ftfont_font_format): Fix previous change.
18365         * font.h (Ffont_xlfd_name): EXFUN it.
18367         * font.c (font_parse_xlfd): Fix the array size of `f'.
18368         (register_font_driver): Use EQ to compare driver->type.
18370         * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18371         (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18372         (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18374 2008-02-01  Kenichi Handa  <handa@m17n.org>
18376         * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18377         (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18379 2008-02-01  Kenichi Handa  <handa@m17n.org>
18381         * xfont.c (xfont_open): Set font->format.
18383         * xftfont.c (xftfont_open): Set font->format.
18385         * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18386         (ftfont_list): Include FC_FONTFORMAT in FcObject.
18387         (ftfont_open): Set font->format.
18388         (ftfont_font_format): New function.
18390         * font.h (struct font): New member format.
18392         * font.c (Qopentype): New variable.
18393         (syms_of_font): Defsym it.
18394         (Fquery_font): Change the format of the last element of the return
18395         value.
18397 2008-02-01  Kenichi Handa  <handa@m17n.org>
18399         * xfns.c (xic_create_xfontset): Try the default fontset name as a
18400         last resort.
18402 2008-02-01  Kenichi Handa  <handa@m17n.org>
18404         * coding.c (detect_coding_charset): Fix detection of multi-byte
18405         charset.
18407 2008-02-01  Bob Halley  <halley@play-bow.org>  (tiny change)
18409         * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18411 2008-02-01  Kenichi Handa  <handa@m17n.org>
18413         * xdisp.c (get_next_display_element): Set it->face_id for the
18414         first component of a composition.
18415         (x_produce_glyphs): Check if the font is changed or not for composition.
18417 2008-02-01  Kenichi Handa  <handa@m17n.org>
18419         * fontset.c (Qlatin): New variable.
18420         (syms_of_fontset): Define it as a lisp symbol.
18421         (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18423 2008-02-01  Kenichi Handa  <handa@m17n.org>
18425         * font.c (font_unparse_fcname): Pay attention to the case that
18426         some of font property is a null string.
18428 2008-02-01  Kenichi Handa  <handa@m17n.org>
18430         * term.c: Include "composite.h".
18431         (encode_terminal_code): Output all components of composition.
18432         Check the size of encode_terminal_src.
18433         (produce_glyphs): For composition, call produce_composite_glyph.
18434         (append_composite_glyph, produce_composite_glyph): New functions.
18436         * xdisp.c (x_produce_glyphs): In handling composition, if a font
18437         is not found, get font_info from the current ascii face.
18439 2008-02-01  Kenichi Handa  <handa@m17n.org>
18441         * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18442         buffer-file-name to Qnil before calling insert_from_buffer.
18444         * font.c (font_unparse_fcname): Pay attention to the case that
18445         foundry is a null string.
18447 2008-02-01  Kenichi Handa  <handa@m17n.org>
18449         * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18451         * font.c (Qunicode_sip): New variable.
18452         (syms_of_font): Declare it as a Lisp symbol.
18454         * font.h (Qunicode_sip): Extern it.
18456 2008-02-01  Kenichi Handa  <handa@m17n.org>
18458         * composite.c (get_composition_id): Pay attention to TAB component.
18460         * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18461         TAB.  Adjust for the change of s->char2b which always points to
18462         the first element of allocated memory.
18464         * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18466         * xdisp.c (handle_composition_prop): Set it->c to the first
18467         non-TAB component.
18468         (fill_composite_glyph_string): Change argument.
18469         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18470         (x_produce_glyphs): Fix handling of left/right padding.
18472 2008-02-01  Kenichi Handa  <handa@m17n.org>
18474         * coding.c (detect_coding_system): Fix for handling off
18475         inhibit_iso_escape_detection.  Fix for the case that no coding
18476         system is defined for a specific coding category.
18478 2008-02-01  Kenichi Handa  <handa@m17n.org>
18480         * font.c (font_matching_entity): Delete unused local var.
18482         * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18483         opening a font.
18485         * fileio.c (Finsert_file_contents): On recovering a file, assume
18486         Unix-like eol.
18487         (choose_write_coding_system): On auto-saving a file, force
18488         Unix-like eol.
18490         * coding.c (setup_coding_system): Fix setting of
18491         coding->common_flags based on eol_type.
18492         (coding_inherit_eol_type): If PARENT is not nil, be sure to
18493         inherit from it.
18495 2008-02-01  Kenichi Handa  <handa@m17n.org>
18497         * alloc.c (NSTATICS): Increas to 0x600.
18499 2008-02-01  Kenichi Handa  <handa@m17n.org>
18501         * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18502         (ftfont_list): Don't check :name property.
18503         (ftfont_match): New function.
18504         (ftfont_pattern_entity): If the pattern doesn't contain
18505         FC_SPACING, don't assume FC_MONO.
18507         * font.h (struct font_driver): New member `match'.
18508         (font_update_drivers): Adjust prototype.
18510         * font.c (font_parse_fcname, font_parse_name): Don't change :name
18511         property of FONT.
18512         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18513         them unconditionally.
18514         (font_matching_entity): New function.
18515         (font_open_by_name): Try font_matching_entity if exact match is
18516         not found.
18517         (font_update_drivers): Delete the arg FONT.  Return a list of
18518         actually used backends.  Don't free faces, font caches here.
18519         Don't store data in frame parameters.  Don't call x_set_font.
18520         (Ffont_spec): Store :name property as is.
18521         (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18522         (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18523         (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18524         (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18525         Call font->driver->otf_gsub instead of font_otf_gsub.
18527         * frame.c (x_set_font_backend): Do more works that were done in
18528         font_update_drivers before.
18530         * xfont.c (xfont_match): New function.
18531         (xfont_driver): Set xfont_driver.match to xfont_match.
18532         (xfont_draw): Set font in GC if necessary.
18534         * ftxfont.c (ftxfont_match): New function.
18535         (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18537         * xftfont.c (xftfont_match): New function.
18538         (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18540 2008-02-01  Kenichi Handa  <handa@m17n.org>
18542         * font.h (struct font): New member scalable.
18543         (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18544         (font_otf_gsub): Adjust prototype.
18546         * font.c (font_otf_capability): Fix handling of the default langsys.
18547         (parse_gsub_gpos_spec): Change type to void.  New arg nbytes.
18548         Check the contents of SPEC.
18549         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18550         (check_gstring): New function.
18551         (REPLACEMENT_CHARACTER): New macro.
18552         (font_otf_gsub): New arg alternate_subst.  Be sure to set all
18553         glyph codes of GSTRING.
18554         (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18555         (font_prepare_composition): Set cmp->glyph_len.
18556         (font_open_entity): Set font->scalable.
18557         (Ffont_get): Handle :otf property.
18558         (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18559         functions.
18560         (Fquery_font): Use font->font.full_name.
18561         (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18562         Sfont_otf_alternates.
18564         * ftfont.c (ftfont_open): Set font->font.full_name and
18565         font->font.name properly.  Fix calculation of font->font.height
18566         and font->min_width.
18568         * ftxfont.c (ftxfont_create_gcs): New function.
18569         (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18570         (ftxfont_draw_backgrond): Fix filling region.
18571         (ftxfont_default_fid): New function.
18572         (ftxfont_open): Set xfont->fid to the return value of
18573         ftxfont_default_fid.
18574         (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18575         (ftxfont_done_face): Free only GCs that are created by
18576         ftxfont_create_gcs.
18577         (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18579         * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18580         Clip to src->width, etc (not src->clip_XXX).
18582         * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18583         FontBackend frame parameter.
18585 2008-02-01  Kenichi Handa  <handa@m17n.org>
18587         * font.h (struct font_driver_list): New member `on'.
18588         (Fclear_font_cache): EXFUN it.
18589         (font_update_drivers): Extern it.
18591         * font.c (font_unparse_fcname): Fix typo (swidth->width).
18592         (font_list_entities): Check driver_list->on.
18593         (register_font_driver): Initalize `on' member to 0.
18594         (font_update_drivers): New function.
18595         (Fclear_font_cache): Check driver_list->on.
18597         * frame.h (Qfont_backend): Extern it.
18598         (x_set_font_backend): Extern it.
18600         * frame.c (Qfont_backend): New variable.
18601         (frame_parms): New element for font-backend.
18602         (x_set_font_backend): New function.
18604         * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18605         FontBackend frame parameter.
18606         (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18607         x_set_font_backend.
18609         * xfont.c (xfont_list): Don't try listing by :name property if the
18610         name is not for XLFD.
18612 2008-02-01  Kenichi Handa  <handa@m17n.org>
18614         * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18615         (LGLYPH_SET_TO): New macros.
18616         (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18617         element of G is vector or not.
18618         (font_at): Extern it.
18620         * font.c: Include window.h.
18621         (font_lispy_object): New function.
18622         (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18623         end of valid glyph.
18624         (font_close_object): Fix getting (struct font *).
18625         (font_at): New function.
18626         (Ffont_get): If FONT is a font-object, get entity from it.
18627         (Ffont_make_gstring): Initialize elements of glyphs with nil.
18628         (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.  Fix
18629         range check.
18630         (Ffont_at): New function.
18631         (syms_of_font): Defsubr Sfont_at.
18633         * xdisp.c (it_props): Move the entry for Qauto_composed to just
18634         before the entry for Qcomposition.
18635         (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18636         (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18637         the font in gstring.
18638         (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18639         LGLYPH_FORM (g) to detect the end of valid glyph.
18640         (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18641         we are composing with gstring.
18643         * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18644         Check if adjustment is vector or not.
18646         * Makefile.in (font.o): Make it depends on window.h.
18648 2008-02-01  Kenichi Handa  <handa@m17n.org>
18650         * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18651         adjustment is vector or not.
18653 2008-02-01  Miles Bader  <miles@gnu.org>
18655         * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18657 2008-02-01  Kenichi Handa  <handa@m17n.org>
18659         * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18660         (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18661         (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18663         * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18664         (DEVICE_DELTA): Fix typo.
18665         (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18666         LGLYPH format.
18668         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18669         the change of LGLYPH format.
18671 2008-02-01  Kenichi Handa  <handa@m17n.org>
18673         * ftfont.c (ftfont_list): Fix typo.
18674         (ftfont_build_basic_charsets): Don't include letters with diacritics.
18676 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
18678         * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18680         * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18681         xftface_info is non-NULL.
18683 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
18685         * ftfont.c (ftfont_list): Move misplaced #endif.
18687 2008-02-01  Kenichi Handa  <handa@m17n.org>
18689         * ftfont.c (ftfont_list): Pay attention to the case that
18690         FC_CAPABILITY is not defined.
18692 2008-02-01  Kenichi Handa  <handa@m17n.org>
18694         * xftfont.c (xftfont_open): Set charset related members to -1.
18696         * ftfont.c (ftfont_list): Handle QCotf property.  Fix handling of
18697         QCname.
18698         (ftfont_open): Set charset related members to -1.
18700         * fontset.c (Votf_script_alist): New variable.
18701         (syms_of_fontset): Initialize it.
18702         (fontset_font): Delete unused variable.
18704         * fontset.h (Votf_script_alist): Extern it.
18706         * font.c (font_find_for_lface): Optimize code.
18708         * font.h (font_close_object, font_merge_old_spec): Extern them.
18710 2008-02-01  Kenichi Handa  <handa@m17n.org>
18712         * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18713         (syms_of_font): Initialize them.
18714         (font_pixel_size): Allow float value in dpi.
18715         (font_prop_validate_type): Delete.
18716         (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18717         Change caller.
18718         (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18719         (font_prop_validate_extra): Delete.
18720         (font_prop_validate_spacing): New function.
18721         (font_property_table): Add elements for all known properties.
18722         (get_font_prop_index): Rename from check_font_prop_name.  New
18723         argument FROM.  Change caller.
18724         (font_prop_validate): Validate all known properties.
18725         (font_put_extra): Delete argument force.  Change caller.
18726         (font_expand_wildcards): Make it static.  Fix the way of shrinking
18727         the possible range.
18728         (font_parse_xlfd): Delete argument merge.  Fix handling of RESX,
18729         RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
18730         Change caller.
18731         (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18732         (font_parse_fcname): Delete argument merge.  Fix parsing of point
18733         size.  Don't validate properties values here.  Change caller.
18734         (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18735         (font_open_by_name): Delete unused variable.
18736         (Ffont_spec): Likewise.  Validate property values.
18737         (Ffont_match_p): New function.
18739         * font.h (QCscalable): Extern it.
18740         (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18742         * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18744         * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18745         (xfont_list_pattern): New function.
18746         (xfont_list): Use xfont_list_pattern.
18748 2008-02-01  Kenichi Handa  <handa@m17n.org>
18750         * font.h (Flist_fonts): EXFUN it.
18752 2008-02-01  Jason Rumney  <jasonr@gnu.org>
18754         * w32term.c (w32_initialize): Add back smoothing_type and
18755         smoothing_enabled definitions.
18757 2008-02-01  Kenichi Handa  <handa@m17n.org>
18759         * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18760         s->face->font on determining underline position.
18762 2008-02-01  Kenichi Handa  <handa@m17n.org>
18764         * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18765         (font_has_char): Accept font-object too.
18766         (font_find_for_lface): Try at first with a size specified in face.
18768 2008-02-01  Kenichi Handa  <handa@m17n.org>
18770         * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18771         font_open_by_name.
18773 2008-02-01  Kenichi Handa  <handa@m17n.org>
18775         * font.h (QCspacing, QCdpi): Extern them.
18776         (enum font_spacing): New enum.
18777         (FONT_PIXEL_SIZE_QUANTUM): New macro.
18779         * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18780         (QCspacing, QCdpi): New variables.
18781         (syms_of_font): Initialize them.
18782         (font_pixel_size): New function.
18783         (font_put_extra): New function.
18784         (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
18785         in FONT_EXTRA.
18786         (font_parse_fcname): Handle enumerated values (e.g. bold).
18787         Fix handling font size.  Add QCname property that contains only
18788         unknown properties.
18789         (font_score): Change argument.  Change caller.  Pay attention to
18790         FONT_PIXEL_SIZE_QUANTUM.
18791         (font_sort_entites, font_list_entities, font_find_for_lface)
18792         (font_open_for_lface, font_open_by_name): Fix handling of font size.
18793         (Ffont_spec): Add QCname property that contains only unknown properties.
18795         * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.  Don't
18796         include weight in listing pattern, instead check weight of each
18797         listed font.  Don't include scalable in pattern.  Pay attention to
18798         FONT_PIXEL_SIZE_QUANTUM.
18800 2008-02-01  Kenichi Handa  <handa@m17n.org>
18802         * font.c (font_parse_fcname): Fix parsing of point-size.
18803         (font_unparse_fcname): Produce symbolic names for style properties.
18804         (font_list_entities): Handle float size correctly.
18805         (font_open_by_name): Prefer `normal' property values if the name
18806         doesn't specify them.
18808         * fontset.c (Finternal_char_font): Use font_get_name, not
18809         Ffont_xlfd_name.
18811         * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18812         FC_WEIGHT_REGULAR.  Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18813         pattern.  Don't force scalable.
18815         * xftfont.c (xftfont_open): For generating a name, start from
18816         96-byte buffer.
18818 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
18820         * frame.h (x_new_fontset2): Fix prototype.
18822 2008-02-01  Kenichi Handa  <handa@m17n.org>
18824         * font.h (struct font_driver): Delete member parse_name.
18825         (font_match_p, font_get_spec, font_parse_fcname)
18826         (font_unparse_fcname): Extern them.
18827         (font_get_name): Adjust prototype.
18829         * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18830         (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18831         (font_expand_wildcards): Fix handling ENCODING field.  Avoid
18832         unnecessary checks for weight, slant, and swidth.
18833         (font_parse_fcname): New function.
18834         (font_unparse_fcname): New function.
18835         (font_parse_name): New function.
18836         (font_match_p): New function.
18837         (font_get_name): Change return value to Lisp string.
18838         (font_get_spec): New function.
18839         (Qunspecified, Qignore_defface): Don't extern them.
18840         (font_find_for_lface): Assume that LFACE is fully specified.
18841         (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18842         object, use it for FACE.
18843         (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
18844         driver->parse_name.
18845         (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18847         * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18848         prototype.
18850         * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18851         argument F.  Don't call Fnew_fontset.  Instead, directly call
18852         make_fontset.
18854         * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18856         * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18857         of x_new_fontset2.
18859         * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18860         (Qsans__serif): New variables.
18861         (ftfont_generic_family_list): New variable.
18862         (syms_of_ftfont): Initialize the above variables.
18863         (ftfont_pattern_entity): Delete argument NAME.
18864         (ftfont_list_generic_family): New function.
18865         (ftfont_parse_name): Delete this function.
18866         (ftfont_list): Try generic family only when FcFontList found no font.
18867         (ftfont_list_family): Fix args to FcObjectSetBuild.
18869         * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18870         object in attrs[LFACE_FONT_INDEX].
18871         (set_lface_from_font_name): Cancel all changes for font-backend.
18872         (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18873         function.
18874         (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18875         font object in QCfont attribute.
18876         (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18877         (realize_default_face) [USE_FONT_BACKEND]: Call
18878         set_lface_from_font_and_fontset.
18880         * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18881         "fixed", and signal error here if no suitable font was found.
18883         * xfont.c (xfont_parse_name): Delete this function.
18885         * xftfont.c (xftfont_open): Change coding style of error
18886         handling.  Generate fontconfig's fontname pattern.
18888         * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18889         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18891         * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18892         Both args FONTSET and FONT_OBJECT must be existing ones.
18894 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18896         * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18898 2008-02-01  Kenichi Handa  <handa@m17n.org>
18900         * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18902         * font.h (struct font): Fix typo.
18904         * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18905         XLFD_XXX_INDEX.
18906         (enum xlfd_field_mask): New enum.
18907         (intern_font_field): Changed argument.  Change caller.  If digits
18908         are followed by non-digits, return a symbol.
18909         (font_expand_wildcards): New function.
18910         (font_parse_xlfd): Fix wildcard handling.
18911         (Ffont_spec): If :name is specified, reflect the info in the other
18912         properties.
18914         * ftfont.c (ftfont_pattern_entity): Fix typo.
18915         (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18916         locale.
18918 2008-02-01  Kenichi Handa  <handa@m17n.org>
18920         * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18922         * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18923         (font_unparse_xlfd): Fix argument type declaration.  Append "*" if
18924         registry doesn't specify encoding part.
18925         (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18926         (font_open_by_name): At first try parsing the name.
18927         (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18928         as Lisp symbols.
18930         * fontset.c (reorder_font_vector): Pay attention to the case that
18931         the 3rd element of font_def is nil.
18932         (fontset_font): For the default fontset, append one more fontset
18933         elements for a script-based font specification.  Don't add script
18934         attribute on finding a font.
18935         (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18936         font name.
18937         (fontset_ascii_font): If a font can't be opened, return nil.
18939         * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18940         (ftfont_pattern_entity): New function.
18941         (ftfont_get_cache): Assume that freetype_font_cache is already
18942         initialized.
18943         (ftfont_list): Handle the case that a file is specified in font
18944         name.  Use ftfont_pattern_entity to generate entities.
18945         (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18946         (syms_of_ftfont): Initialize freetype_font_cache.
18948         * xftfont.c (xftfont_open): Make the font name fontconfig's
18949         style.  Add BLOCK_INPUT and UNBLOCK_INPUT.
18950         (xftfont_close): Free font->font.name if not NULL.
18952         * xfont.c (xfont_list): If script is specified for a font, return
18953         null_vector.
18954         (xfont_list_family): Declare argument type.
18956         * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18957         name, set LFACE_FONT (lface) to nil.
18959         * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18960         return Qnil.
18962 2008-02-01  Kenichi Handa  <handa@m17n.org>
18964         * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18965         (standard_args): Add "-enable-font-backend".
18967 2008-02-01  Kenichi Handa  <handa@m17n.org>
18969         * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18970         (struct xftdraw_list, xftdraw_list): Delete them.
18971         (register_xftdraw, check_xftdraw): Delete them.
18972         (xftfont_prepare_face): Don't call register_xftdraw.
18973         (xftfont_done_face): Don't call check_xftdraw.
18974         (xftfont_draw): Get background color only when with_background is
18975         nonzero.
18977         * xfont.c (xfont_encode_char): Fix calculation of char2b.
18979 2008-02-01  Kenichi Handa  <handa@m17n.org>
18981         These changes are for the new font handling codes.
18983         * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18984         @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18985         (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18986         (FONTSRC, FONTOBJ): New variables.
18987         (obj): Add $(FONTOBJ).
18988         (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18989         (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18990         @LIBOTF_LIBS@.
18991         (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18992         (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18994         * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18996         * character.h (Vscript_representative_chars): Extern it.
18998         * character.c (Vscript_representative_chars): New variable.
18999         (syms_of_character): Declare it as a Lisp variable.
19001         * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19002         enable_font_backend is nonzero, accept the composition method
19003         COMPOSITION_WITH_GLYPH_STRING.
19005         * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19006         enumeration COMPOSITION_WITH_GLYPH_STRING.
19008         * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19009         members clip_x, clip_y, clip_width, and clip_height.
19010         (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19012         * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19013         --enable-font-backend.  Call syms_of_font.
19015         * fns.c (assoc_no_quit): New function.
19017         * fontset.h (FONT_INFO_FROM_FACE): New macro.
19018         (face_for_font, new_fontset_from_font)
19019         (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19021         * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19022         (fontset_font, fontset_ascii, face_for_char)
19023         (make_fontset_for_ascii_face, Ffont_info)
19024         (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19025         is nonzero, use font-backend mechanism.
19026         (find_font_encoding): Make it non-static.
19027         (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19028         New functions.
19030         * frame.h (struct frame): New members resx and resy.
19031         (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19032         (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19034         * frame.c [USE_FONT_BACKEND]: Include "font.h".
19035         (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19037         * lisp.h (assoc_no_quit): Extern it.
19039         * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19040         Through out the file, use FONT_INFO_FROM_FACE instead of
19041         FONT_INFO_FROM_ID, use get_per_char_metric instead of
19042         rif->per_char_metric.
19043         (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19044         method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19045         (get_glyph_face_and_encoding, fill_composite_glyph_string)
19046         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19047         (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19048         nonzero, use font-backend mechanism.
19049         (get_per_char_metric): New function.
19051         * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19052         (set_lface_from_font_name)
19053         (set_font_frame_param, free_realized_face)
19054         (prepare_face_for_display, clear_face_gcs)
19055         (Finternal_set_font_selection_order, realize_x_face)
19056         [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19057         font-backend mechanism.
19058         (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19059         (load_face_font) [USE_FONT_BACKEND]: Abort.
19060         (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19061         (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19063         * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19064         (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19065         (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19066         nonzero, register all available font drivers.  Call
19067         x_default_font_parameter for deciding a font.
19068         (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19070         * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19071         (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19072         (x_set_glyph_string_clipping_exactly)
19073         (x_compute_glyph_string_overhangs)
19074         (x_draw_glyph_string_foreground)
19075         (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19076         (x_free_frame_resources) [USE_FONT_BACKEND]: If
19077         enable_font_backend is nonzero, use font-backend mechanism.
19078         (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19080 2008-02-01  Kenichi Handa  <handa@m17n.org>
19082         * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19083         system_eol_type.
19084         (syms_of_coding): Initialize system_eol_type.
19086         * process.c (Fset_process_coding_system): Inherit system's eol
19087         format if necessary.
19089 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19091         * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19093 2008-02-01  Kenichi Handa  <handa@m17n.org>
19095         * coding.c (decode_eol): Pay attention to buffer relocation in
19096         del_range_2.
19097         (decode_coding): Call decode_eol before restoring undo_list.
19099 2008-02-01  Kenichi Handa  <handa@m17n.org>
19101         * charset.c (Fdefine_charset_internal): Fix setting of
19102         emacs_mule_bytes.
19104 2008-02-01  Kenichi Handa  <handa@m17n.org>
19106         * keyboard.c (read_char): Check if C is a character or not before
19107         looking up Vkeyboard_translate_table.
19109 2008-02-01  Kenichi Handa  <handa@m17n.org>
19111         * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19112         condition to terminate the loop.
19114 2008-02-01  Kenichi Handa  <handa@m17n.org>
19116         * coding.c (produce_composition): Compare charbuf[i] instead of
19117         args[i] against 0.
19118         (Fterminal_coding_system): Use EQ to compare Lisp objects.
19120 2008-02-01  Kenichi Handa  <handa@m17n.org>
19122         * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19123         coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19124         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19125         detect_coding.
19126         (emacs_mule_char): Handle old style (Emacs 20) component character
19127         of a composition.
19128         (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19129         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19130         composition rule.
19131         (decode_coding_emacs_mule): Handle invalid bytes correctly.
19133 2008-02-01  Kenichi Handa  <handa@m17n.org>
19135         * coding.c (encode_coding_ccl): Allocate destination dynamically
19136         when necessary.
19138 2008-02-01  Kenichi Handa  <handa@m17n.org>
19140         * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19141         the loop.  When quitted, show a proper error message.
19143 2008-02-01  Kenichi Handa  <handa@m17n.org>
19145         * xterm.c (x_set_glyph_string_clipping_exactly): Set
19146         src->clip_head and src->clip_tail temporarily instead of src->hl.
19148         * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19149         character sequence.
19150         (Fccl_execute_on_string): Use ASET, not XSET.
19152 2008-02-01  Kenichi Handa  <handa@m17n.org>
19154         * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19156 2008-02-01  Kenichi Handa  <handa@m17n.org>
19158         * coding.c (decode_coding): Fix the condition of terminating the
19159         decoding loop.
19161 2008-02-01  Kenichi Handa  <handa@m17n.org>
19163         * data.c (Faset): On setting a character bigger than 255 in a
19164         unibyte string, signal an error instead of make the string multibyte.
19166 2008-02-01  Kenichi Handa  <handa@m17n.org>
19168         * charset.c (map_charset_chars): Fix for ascii-compatible charset
19169         made by a mapping table.
19171 2008-02-01  Kenichi Handa  <handa@m17n.org>
19173         * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19174         not.
19175         (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19176         (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19178         * xterm.c (x_draw_composite_glyph_string_foreground): Check
19179         s->face is NULL or not.
19181 2008-02-01  Kenichi Handa  <handa@m17n.org>
19183         * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19184         (x_draw_glyph_string): Fix drawing of right_overhang and
19185         left_overhang around/on cursor.
19187         * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19189 2008-02-01  Kenichi Handa  <handa@m17n.org>
19191         * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19193 2008-02-01  Kenichi Handa  <handa@m17n.org>
19195         * coding.c (Fdefine_coding_system_internal)
19196         (Fdefine_coding_system_alias): Avoid a duplicated element in
19197         Vcoding_system_alist.
19199 2008-02-01  Kenichi Handa  <handa@m17n.org>
19201         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19203         * coding.c (Qcoding_system_define_form): New variable.
19204         (syms_of_coding): Intern and staticpro it.
19205         (Fcoding_system_p): Check Qcoding_system_define_form.
19206         (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19208         * coding.h (CODING_SYSTEM_P): If ID is not available, call
19209         Fcoding_system_p.
19210         (CHECK_CODING_SYSTEM): If ID is not available, call
19211         Fcheck_coding_system.
19212         (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19213         Try also Fcheck_coding_system.
19215 2008-02-01  Kenichi Handa  <handa@m17n.org>
19217         * coding.c (code_conversion_restore): GCPRO arg.
19219 2008-02-01  Kenichi Handa  <handa@m17n.org>
19221         * character.c (lisp_string_width): Check multibyteness of STRING.
19223 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19225         * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19226         Qnil.  Use JIS_TO_SJIS instead of ENCODE_SJIS.
19227         (decode_mac_font_name): Use decode_coding_c_string instead of
19228         decode_coding.
19229         (x_load_font): Initialize fontp->fontset to -1.  Set
19230         fontp->encoding_type.
19232 2008-02-01  Kenichi Handa  <handa@m17n.org>
19234         * search.c (search_buffer): Give up BM search on case-fold-search
19235         if one of a target character has a case-equivalence of different
19236         byte length even if that target charcter is an ASCII.
19237         (simple_search): Fix calculation of byte length of matched text.
19238         (boyer_moore): Fix handling of case-equivalent multibyte characters.
19240 2008-02-01  Kenichi Handa  <handa@m17n.org>
19242         * coding.c (decode_coding): Fix handling of invalid bytes.
19244 2008-02-01  Kenichi Handa  <handa@m17n.org>
19246         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19247         Unicode characters.
19249 2008-02-01  Kenichi Handa  <handa@m17n.org>
19251         * coding.c (encode_coding_object): If a pre-write-conversion
19252         function makes a new buffer, kill it.
19254 2008-02-01  Kenichi Handa  <handa@m17n.org>
19256         * coding.c (QCascii_compatible_p): New variable.
19257         (syms_of_coding): Initialize it.
19258         (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19259         calling string_char.
19260         (record_conversion_result): Add `default:' case.
19261         (coding_charset_list): Delete unused variable `coding_type'.
19262         (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19263         property in the plist of the coding system.
19264         (Fcoding_system_put): Check QCascii_compatible_p.
19266 2008-02-01  Miles Bader  <miles@gnu.org>
19268         * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19269         removed calculation of frame `f', as it's now used.
19271 2008-02-01  Kenichi Handa  <handa@m17n.org>
19273         * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19274         (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19275         (UNIDATA): New variable.
19276         (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19277         (bootstrap-emacs${EXEEXT}): Depends on charprop.el.  Run
19278         $(RUN_TEMACS) unconditionally.
19280 2008-02-01  Kenichi Handa  <handa@m17n.org>
19282         * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19283         (admindir): New variable.
19284         ($(lispsource)international/charprop.el): New target.
19286 2008-02-01  Miles Bader  <miles@gnu.org>
19288         * character.c (chars-in-region): Remove obsolete function.
19289         (syms_of_character): Remove its initialization.
19291 2008-02-01  Benjamin Riefenstahl  <b.riefenstahl@turtle-trading.net>
19293         * w32select.c (validate_coding_system)
19294         (setup_windows_coding_system): New functions.
19295         (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19296         setup_windows_coding_system.
19297         (setup_config, Fw32_get_clipboard_data): Use
19298         validate_coding_system.
19299         (Fx_selection_exists): Move call to setup_config to a place
19300         where signals are allowed.
19302         * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19303         (Fcheck_coding_system): Add declarations.
19305 2008-02-01  Kenichi Handa  <handa@m17n.org>
19307         * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19309 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19311         * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19312         string as the second argument for x_new_fontset.
19314 2008-02-01  Kenichi Handa  <handa@m17n.org>
19316         * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19317         (encode_coding_object): Use safe_call instead of call2.
19319 2008-02-01  Kenichi Handa  <handa@m17n.org>
19321         * fontset.c (Fset_fontset_font): Check family element of a given vector.
19323         * Makefile.in (lisp): Include charprop.el.
19325 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19327         * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19328         Not sure if it's unnecessary.
19330 2008-02-01  Steven Tamm  <steventamm@mac.com>
19332         * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19333         some possibly unnecessary fontset checking code that crashed
19334         when creating a new frame.
19336 2008-02-01  Kenichi Handa  <handa@m17n.org>
19338         * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19339         lookup_face.
19341         * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19343         * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19345 2008-02-01  Kenichi Handa  <handa@m17n.org>
19347         * coding.c: Cancel the change done in HEAD on 2008-02-01.
19348         (coding_charset_list): New function.
19350         * coding.h (coding_charset_list): Extern it.
19352 2008-02-01  Kenichi Handa  <handa@m17n.org>
19354         * fontset.c (Fset_fontset_font): Call find_font_encoding with
19355         concatenation of family and registry.
19357 2008-02-01  Kenichi Handa  <handa@m17n.org>
19359         * character.h (BYTE8_STRING): Fix typo.
19361         * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19362         string to multibyte (sync to HEAD).
19364         * casefiddle.c (casify_region): Handle changes in byte-length
19365         using replace_range_2 (sync to HEAD).
19367 2008-02-01  Andreas Schwab  <schwab@suse.de>
19369         * chartab.c (map_char_table): GCPRO table and arg.
19371 2008-02-01  Kenichi Handa  <handa@m17n.org>
19373         * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19374         already at limit.
19376 2008-02-01  Kenichi Handa  <handa@m17n.org>
19378         * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19379         instead of fast_c_string_match_ignore_case.
19380         (find_font_encoding): Change argument to Lisp_Object.  Use
19381         fast_string_match_ignore_case instead of
19382         fast_c_string_match_ignore_case.  Change caller.
19384 2008-02-01  Kenichi Handa  <handa@m17n.org>
19386         * xdisp.c (get_next_display_element): In unibyte case, decide to
19387         display in octal form by checking a character by
19388         UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19390         * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19392         * character.c (unibyte_has_multibyte_table): New variable.
19394         * character.h (unibyte_has_multibyte_table): Extern it.
19395         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19397 2008-02-01  Kenichi Handa  <handa@m17n.org>
19399         * coding.c (encode_coding_iso_2022): Fix handling of charset
19400         annotation.
19402 2008-02-01  Kenichi Handa  <handa@m17n.org>
19404         * coding.c (setup_coding_system): If coding_system is nil, use
19405         Qundecided.
19406         (Fterminal_coding_system): Return nil if terminal coding system is
19407         `undecided'.
19408         (syms_of_coding): Define coding-system `undecided' here.  Setup
19409         terminal_coding as `undecided'.
19411 2008-02-01  Kenichi Handa  <handa@m17n.org>
19413         * xdisp.c (message_dolog, set_message_1): Call
19414         unibyte_char_to_multibyte with arg type int.
19416         * lread.c (read1): Fix reading of a char-table.
19418         * print.c (print_object): Include sub char-table in circularities
19419         detection.
19421 2008-02-01  Kenichi Handa  <handa@m17n.org>
19423         * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19424         Append the found sequences in car of ARGS instead of prepending.
19426 2008-02-01  Kenichi Handa  <handa@m17n.org>
19428         * fileio.c (report_file_error): Make a unibyte string from
19429         strerror (errorno).
19430         (Fsubstitute_in_file_name): Fix the arg to
19431         unibyte_char_to_multibyte.  It is evaluated twice.
19433 2008-02-01  Kenichi Handa  <handa@m17n.org>
19435         * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19437 2008-02-01  Kenichi Handa  <handa@m17n.org>
19439         * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19440         BOM is not found.
19441         (detect_coding, detect_coding_system): Optimization for ISO-2022
19442         when no 8-bit data is found.
19444 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19446         * w32fns.c (x_to_w32_font): Update to use new coding struct.
19448 2008-02-01  Kenichi Handa  <handa@m17n.org>
19450         * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19451         CHARS.
19453 2008-02-01  Steven Tamm  <steventamm@mac.com>
19455         * macterm.c (mac_encode_char): Add charset argument and update
19456         to use encoding_type.
19457         (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19458         switch to pure fontset.
19459         (decode_mac_font_name): Temporarily remove decoding.
19460         (x_font_name_to_mac_font_name): Temporarily remove encoding.
19461         (x_load_font): Temporarily remove encoding.
19463 2008-02-01  Kenichi Handa  <handa@m17n.org>
19465         * xfaces.c (Fface_font): If frame is not on a window system,
19466         ignore CHARACTER arg.  If HAVE_WINDOW_SYSTEM is not defined, don't
19467         refer to face->font.
19468         (split_font_name_into_vector, build_font_name_from_vector)
19469         (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19470         when HAVE_WINDOW_SYSTEM is defined.
19472 2008-02-01  Kenichi Handa  <handa@m17n.org>
19474         * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19475         (x_produce_glyphs): Fix setting of members of cmp in case
19476         cmp->glyph_len is zero.
19478         * fontset.c (Fset_fontset_font): Fix docstring.
19479         (Ffontset_info): Make it backward compatible.  New arg ALL.
19481 2008-02-01  Kim F. Storm  <storm@cua.dk>
19483         * process.c (read_process_output): Grow decoding_buf when needed;
19484         this could cause a crash in allocate_string and compact_small_strings.
19486 2008-02-01  Kenichi Handa  <handa@m17n.org>
19488         * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19490 2008-02-01  Kenichi Handa  <handa@m17n.org>
19492         * coding.c (setup_coding_system): Set coding->common_flags
19493         correctly for raw-text.
19494         (consume_chars): On encoding unibyte text by raw-text, don't check
19495         multibyte form.
19496         (encode_coding): On encoding by raw-text, never use translation tables.
19498         * fileio.c (e_write): Short cut for the case of no encoding.
19500 2008-02-01  Kenichi Handa  <handa@m17n.org>
19502         * coding.c (detect_coding, detect_coding_system): Delete unused
19503         variables.
19505 2008-02-01  Kenichi Handa  <handa@m17n.org>
19507         * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19508         (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19510 2008-02-01  Kenichi Handa  <handa@m17n.org>
19512         * coding.c (Ffind_coding_systems_region_internal): Include
19513         raw-text and no-conversion in the result.
19515 2008-02-01  Kenichi Handa  <handa@m17n.org>
19517         * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19518         (load_font_get_repertory): Delete unnecessary check of ENCODING of
19519         FONT_DEF.
19520         (font_def_arg, add_arg, from_arg, to_arg): New args.
19521         (set_fontset_font): Change argument.
19522         (Fset_fontset_font): Fix for the case that TARGET is a script
19523         name and charset name.
19524         (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19526 2008-02-01  Kenichi Handa  <handa@m17n.org>
19528         * fontset.c (fontset_font): Rename from fontset_face.  Change return
19529         value.
19530         (face_suitable_for_char_p, face_for_char): Adjust for the change
19531         of fontset_font.
19532         (make_fontset_for_ascii_face): Fix setting of the fontset element
19533         for ASCII.
19534         (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19535         to get a font name.
19536         (Ffontset_info): Adjust for the change of fontset_font.
19538         * coding.c (emacs_mule_char): Check invalid code more rigidly.
19540         * character.h (LEADING_CODE_LATIN_1_MIN)
19541         (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19543 2008-02-01  Kenichi Handa  <handa@m17n.org>
19545         * editfns.c (check_translation): New function.
19546         (Ftranslate_region_internal): Handle M:N mapping.
19548 2008-02-01  Kenichi Handa  <handa@m17n.org>
19550         * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19552 2008-02-01  Kenichi Handa  <handa@m17n.org>
19554         * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19555         goto invalid_code.
19556         (decode_coding_iso_2022): Fix handling of invalid designation.
19558         * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19559         after calling code_conversion_save.
19561 2008-02-01  Kenichi Handa  <handa@m17n.org>
19563         * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19565         * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19567         * fontset.c: Include "intervals.h".
19568         (fontset_face): Fix comparing of Lisp_Objects.
19569         (free_face_fontset, new_fontset_from_font_name): Fix
19570         Lisp_Object/int mixup.
19572         * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19574         * coding.c: Add many prototypes for static functions.
19575         (get_translation_table): Allow max_lookup to be NULL.
19576         (decode_coding, Ffind_coding_systems_region_internal)
19577         (Funencodable_char_position, Fcheck_coding_systems_region): Call
19578         get_translation_table with max_lookup NULL.
19580 2008-02-01  Kenichi Handa  <handa@m17n.org>
19582         * coding.c (get_translation_table): Declare it as Lisp_Object.
19583         (LOOKUP_TRANSLATION_TABLE): New macro.
19584         (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19585         instead of CHAR_TABLE_REF.
19587 2008-02-01  Kenichi Handa  <handa@m17n.org>
19589         * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19590         annotation data format.
19591         (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19592         Change arguments FROM and TO to single argument NCHARS.  Change caller.
19593         (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19594         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19595         (decode_coding_ccl, decode_coding_charset): Pay attention to
19596         coding->charbuf_used.
19597         (get_translation): New function.
19598         (produce_chars): New arguments translation_table and last_block.
19599         Translate characters here.  Return number of carryover chars.
19600         Change caller.
19601         (produce_composition): New argument pos.  Change caller.
19602         Adjust for the change of annotation data format.
19603         (produce_charset, produce_annotation): Likewise.
19604         (decode_coding, encode_coding): Don't call translate_chars.
19605         (consume_chars): New arg translation_table.  Change caller.
19606         (translate_chars): Delete.
19607         (syms_of_coding): Make translation-table's number of extra slots 2.
19609 2008-02-01  Kenichi Handa  <handa@m17n.org>
19611         * search.c (simple_search): Fix setting this_pos_byte in backward
19612         search.
19614         * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19615         byte sequence.
19616         (detect_coding_ccl): Fix setting of the variable valids.
19618 2008-02-01  Kenichi Handa  <handa@m17n.org>
19620         * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19622         * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19624         * editfns.c (Ftranslate_region_internal): Rename from
19625         Ftranslate_region.  Accept a char-table in TABLE.
19626         (syms_of_editfns): Defsubr Stranslate_region_internal.
19628         * xfaces.c (set_lface_from_font_name): If a font is specified for
19629         a frame, generate a fontset from the font.
19630         (build_scalable_font_name): If the scalable font is requested for
19631         a specific size, don't change that size.
19632         (try_font_list): Try a scalable font also in the case that a
19633         pattern string is specified.
19635 2008-02-01  Kenichi Handa  <handa@m17n.org>
19637         * xfaces.c (Fface_font): New optional arg CHARACTER.
19639 2008-02-01  Kenichi Handa  <handa@m17n.org>
19641         * charset.h (CHARSET_OFFSET): New macro.
19643 2008-02-01  Kenichi Handa  <handa@m17n.org>
19645         * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19647         * fontset.c (fontset_face): Handle the case that repertory is a
19648         char-table.
19649         (find_font_encoding): Return nil for unknown encoding.
19650         (Fset_fontset_font): Ignore a font of unknown encoding.
19652 2008-02-01  Kenichi Handa  <handa@m17n.org>
19654         * keymap.c (describe_vector): Handle default value of a char table.
19656         * fontset.c (fontset_face): Handle fallback fonts correctly.
19657         (Ffontset_info): Return infomation about fallback fonts.
19659 2008-02-01  Kenichi Handa  <handa@m17n.org>
19661         * fontset.c (FONTSET_DEFAULT): New macro.
19662         (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19663         (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19664         the case that it is nil.
19665         (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19666         (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19668         * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19669         subset or superset.
19671 2008-02-01  Kenichi Handa  <handa@m17n.org>
19673         * emacs.c (main): Call init_charset after syms_of_XXX.
19675         * charset.c (Vcharset_map_directory): Delete.
19676         (Vcharset_map_path): New variable.
19677         (load_charset_map_from_file): Use Vcharset_map_path instead.
19678         (init_charset): Initialize Vcharset_map_path.
19679         (syms_of_charset): Delete declaration of "charset-map-directory",
19680         add declaration of "charset-map-path".
19682 2008-02-01  Kenichi Handa  <handa@m17n.org>
19684         * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19685         ASCII only string.
19687         * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19689         * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19690         (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19692 2008-02-01  Kenichi Handa  <handa@m17n.org>
19694         * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19696         * coding.c (QCmnemonic, QCdefalut_char)
19697         (QCdecode_translation_table, QCencode_translation_table)
19698         (QCpost_read_conversion, QCpre_write_conversion): New variables.
19699         (get_translation_table): Return a list of translation tables if
19700         necessary.
19701         (decode_coding): Call get_translation_table with ENCODEP 0.
19702         (char_encodable_p): If translation_table is non-nil, always call
19703         translate_char.
19704         (Fdefine_coding_system_internal): Accept list of translation
19705         tables as :encode-translation-table and :decode-translation-table.
19706         (Fcoding_system_put): New function.
19707         (syms_of_coding): Declare new symbols.  Defsubr
19708         Scoding_system_put.
19709         (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19710         typically JISX0212.
19712         * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19713         when the charset is superset type.
19715         * character.c (translate_char): Accept list of translation tables.
19717 2008-02-01  Kenichi Handa  <handa@m17n.org>
19719         * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19720         (CODING_ATTR_TRANS_TBL): New macro.
19722         * coding.c (get_translation_table): New function.
19723         (translate_chars): Fix the bug of skipping annotation data.
19724         (decode_coding, encode_coding): Utilize get_translation_table.
19725         (char_encodable_p, Funencodable_char_position): Translate char if
19726         necessary.
19727         (Ffind_coding_systems_region_internal)
19728         (Fcheck_coding_systems_region): Setup translation table for encode
19729         in a coding system attribute vector in advance.
19730         (Fdefine_coding_system_internal): Allow a symbol as translation
19731         table.  For shift-jis type coding system, allow 4th charset.
19733 2008-02-01  Kenichi Handa  <handa@m17n.org>
19735         * coding.c (decode_coding_sjis): Check the first byte rigidly.
19737         * xdisp.c (get_next_display_element): Pass -1 as POS to
19738         FACE_FOR_CHAR if displaying a C-string.
19740 2008-02-01  Kenichi Handa  <handa@m17n.org>
19742         * composite.c (get_composition_id): Handle xoff and yoff in a
19743         composition rule.
19745         * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19746         (struct composition): New member lbearing and rbearing.
19748         * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19749         (x_get_glyph_overhangs): Handle a composition glyph.
19750         (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19752         * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19753         composition glyph.
19755 2008-02-01  Kenichi Handa  <handa@m17n.org>
19757         * print.c: Include charset.h.
19758         (Vprint_charset_text_property): New variable.
19759         (Qdefault): Extern it.
19760         (PRINT_STRING_NON_CHARSET_FOUND)
19761         (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19762         (print_check_string_result): New variable.
19763         (print_check_string_charset_prop): New function.
19764         (print_prune_charset_plist): New variable.
19765         (print_prune_string_charset): New function.
19766         (print_object): Call print_prune_string_charset if
19767         Vprint_charset_text_property is not t.
19768         (print_interval): Print nothing if interval->plist is nil.
19769         (syms_of_print): Declare Vprint_charset_text_property as a lisp
19770         variable.  Init and staticpro print_prune_charset_plist.
19772 2008-02-01  Kenichi Handa  <handa@m17n.org>
19774         * fontset.c (new_fontset_from_font_name): Use the specified font
19775         for all characters in the new fontset.
19777         * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19778         OBJECT args.
19780         * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19781         OBJECT args for composition too.
19783         * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19784         OBJECT args.
19786 2008-02-01  Kenichi Handa  <handa@m17n.org>
19788         * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19790         * fontset.c (reorder_font_vector): Adjust for the change of
19791         FONT_DEF format.
19792         (fontset_face): New arg id.  Change caller.
19793         (face_for_char): New args pos and object.
19794         (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19795         (fs_query_fontset): Check NAME by Fassoc too.
19796         (Fset_fontset_font): Allow non-XLFD font name.
19797         (Ffontset_info): Adjust for the change of FONT_DEF format.
19799         * fontset.h (face_for_char): Adjust prototype.
19801         * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19802         (append_space, extend_face_to_end_of_line)
19803         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19804         (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19806         * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19807         POS and OBJECT args.
19809         * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19810         POS and OBJECT args.
19812 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19814         * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19815         of GlobalAlloc'ed memory.
19817 2008-02-01  Kenichi Handa  <handa@m17n.org>
19819         * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19821         * charset.h (charset_table_used): Delete extern.
19823         * charset.c (charset_table_used): Make it static.
19824         (map_charset_chars): Fix args to c_function with.
19826         * chartab.c (map_sub_char_table_for_charset): Fix args to
19827         c_function with.
19829         * coding.h (enum coding_result_code): Delete
19830         CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19832         * coding.c (Qinsufficient_source, Qinconsistent_eol)
19833         (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19834         (Vlast_code_conversion_error): New variables.
19835         (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19836         (ONE_MORE_BYTE): Record error if any instead of signaling an
19837         error.  If non-ASCII multibyte char is found, return the negative
19838         value of the code.  All callers changed to check it.
19839         (ONE_MORE_BYTE_NO_CHECK): Likewise.
19840         (record_conversion_result): New function.  Change all codes setting
19841         coding->result to call this function.
19842         (detect_coding_utf_8, decode_coding_utf_8)
19843         (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19844         Don't use the local variable incomplete.
19845         (emacs_mule_char): Change the second arg to `const'.
19846         (decode_coding): Fix of flushing out unprocessed data.
19847         (make_conversion_work_buffer): Fix making of a work buffer.
19848         (decode_coding_object): Return coding->dst_object.
19850         * fontset.c (set_fontset_font): Fix args.
19852         * lisp.h (CHARACTERBITS): Define as 22.
19854         * process.c (send_process): Be sure to set coding->src_multibyte.
19856         * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19858 2008-02-01  Kenichi Handa  <handa@m17n.org>
19860         * xdisp.c (handle_auto_composed_prop): Give limit to
19861         Fnext_single_char_property_change.
19863 2008-02-01  Kenichi Handa  <handa@m17n.org>
19865         * composite.c (syms_of_composite): Don't make the composition hash
19866         table weak.
19868         * fontset.c (Fset_fontset_font): Fix docstring.
19870         * lisp.h (detect_coding_system): Adjust prototype.
19872         * fileio.c (kill_workbuf_unwind): Delete this function.
19873         (Finsert_file_contents): Adjust the call of detect_coding_system.
19874         Get conversion_buffer by code_conversion_save.  Use the macro
19875         CODING_MAY_REQUIRE_DECODING.  After decoding, update
19876         coding_system.
19878         * coding.h (make_conversion_work_buffer): Delete extern.
19879         (code_conversion_save): Extern it.
19881         * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19882         (CODING_GET_INFO): Delete argument eol_type.  Change callers.
19883         (decode_coding_utf_8): Don't do eol converion.
19884         (detect_coding_utf_16): Check coding->src_chars, not
19885         coding->src_bytes.  Add heuristics for those that have no signature.
19886         (decode_coding_emacs_mule, decode_coding_iso_2022)
19887         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19888         Don't do eol converion.
19889         (adjust_coding_eol_type): Return a new coding system.
19890         (detect_coding): Don't detect eol.  Fix for utf-16 detection.
19891         (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19892         each change.
19893         (decode_coding): Pay attention to undo_list.  Do eol conversion for
19894         all types of coding-systems (if necessary).
19895         (Vcode_conversion_work_buf_list): Delete it.
19896         (Vcode_conversion_reused_workbuf): Rename from
19897         Vcode_conversion_reused_work_buf.
19898         (Vcode_conversion_workbuf_name): New variable.
19899         (reused_workbuf_in_use): New variable.
19900         (make_conversion_work_buffer): Delete the arg DEPTH.
19901         (code_conversion_restore): Change argument to cons.
19902         (code_conversion_save): Delete the argument BUFFER.  Change callers.
19903         (detect_coding_system): New argument src_chars.  Change callers.
19904         Fix for utf-16 detection.
19905         (init_coding_once): Don't use ISO_carriage_return.
19906         (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19907         reused_workbuf_in_use.
19909 2008-02-01  Kenichi Handa  <handa@m17n.org>
19911         * keymap.c (store_in_keymap): Pay attention to the case that idx
19912         is a cons specifying a character range.
19914 2008-02-01  Kenichi Handa  <handa@m17n.org>
19916         * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19917         HANDLED_RECOMPUTE_PROPS.
19919         * coding.c (Fdefine_coding_system_internal): Fix checking of
19920         ascii compatibility.
19922 2008-02-01  Kenichi Handa  <handa@m17n.org>
19924         * charset.c (find_charsets_in_text): Delete unused locale variable.
19925         (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19927         * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19928         Resync charset_list to Vemacs_mule_charset_list.
19930         * keymap.c (store_in_keymap): Pay attention to the case that idx
19931         is a cons specifying a character range.
19933 2008-02-01  Kenichi Handa  <handa@m17n.org>
19935         * composite.c (update_compositions): Bind inhibit-read-only, etc
19936         to t before calling remove-list-of-text-properties.
19938         * print.c (print_object): Always print ASCII chars as is.
19940 2008-02-01  Kenichi Handa  <handa@m17n.org>
19942         * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19944         * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19945         is a char table.
19947 2008-02-01  Kenichi Handa  <handa@m17n.org>
19949         * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19951 2008-02-01  Kenichi Handa  <handa@m17n.org>
19953         * xfaces.c (set_lface_from_font_name): Fix for the case that
19954         FONTNAME is not fontset name.
19956 2008-02-01  Kenichi Handa  <handa@m17n.org>
19958         * fns.c (base64_encode_1): Fix previous change.
19960 2008-02-01  Kenichi Handa  <handa@m17n.org>
19962         * fontset.c (set_fontset_font): New function.
19963         (Fset_fontset_font): If a font is specified for a charset, use
19964         map_charset_chars to store the font spec in a fontset.
19966 2008-02-01  Kenichi Handa  <handa@m17n.org>
19968         * fontset.c (fontset_face): Create a fallback fontset on demand.
19969         (make_fontset): Don't create a fallback fontset here.
19970         (free_face_fontset): Free a fallback fontset (if any) too.
19971         (n_auto_fontsets): Delete this variable.
19972         (auto_fontset_alist): New variable.
19973         (new_fontset_from_font_name): Check auto_fontset_alist.
19974         (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19975         (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19976         (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19977         Defsubr Sfontset_list_all.
19979 2008-02-01  Kenichi Handa  <handa@m17n.org>
19981         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19983 2008-02-01  Kenichi Handa  <handa@m17n.org>
19985         * fontset.c (Fnew_fontset): Check NAME more rigidly.
19987 2008-02-01  Kenichi Handa  <handa@m17n.org>
19989         * editfns.c (Fgoto_char): Fix docstring.
19991 2008-02-01  Kenichi Handa  <handa@m17n.org>
19993         * insdel.c (insert_from_gap): Adjust intervals correctly.
19995 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19997         * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19998         (pfnGetFontUnicodeRanges): New dynamically loaded function.
19999         (w32_initialize): Try to load it.
20000         (x_get_font_repertory): Use it if available.
20001         (w32_encode_char): Add shortcut for unicode output.
20003         * w32fns.c (w32_load_system_font): Default charset to -1.
20004         (x_to_w32_charset): Match all fonts for unicode.
20005         (w32_to_x_charset): New parameter matching.  Don't return partial
20006         or wildcard charsets.
20007         (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20008         (w32_codepage_for_font): Return CP_UNICODE for unicode.
20009         (w32_to_x_font): Match charset to real charset.
20010         (enum_font_cb2): Always list unicode versions.
20012         * makefile.w32-in (temacs): Increase EMHEAP.
20014 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20016         * w32term.c (w32_encode_char): New charset parameter.
20017         font_info.encoding becomes encoding_type.
20018         (x_get_font_repertory): New function.  Warning: stub only!
20019         (x_new_font): Return quickly if font already set.
20020         (x_new_fontset): fontsetname parameter is Lisp_Object.
20021         Use new fs_query_fontset.  Try new_fontset_from_font_name.
20022         Use fontset_name for return value.
20024         * w32term.h: Declare x_get_font_repertory.
20026         * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20027         place of find_charset_in_text.  Use encode_coding_object in place
20028         of encode_coding.
20029         (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20030         decode_coding.
20032         * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20033         of x_new_fontset.
20034         (w32_load_system_font): Initialize charset as unicode.
20035         font_info.encoding becomes encoding_type.
20036         (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20037         (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20038         (syms_of_w32fns): Set get_font_repertory_func.
20040         * w32console.c: Include character.h.  Use terminal_encode_buffer
20041         from term.c.
20042         (write_glyphs): Use new version of encode_terminal_code.  Use
20043         encode_coding_object in place of encode_coding.
20045         * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20046         encoding becomes encoding_type.
20048         * term.c (terminal_encode_buffer): Make externally visible.
20050         * makefile.w32-in: Add character.h dependancies.
20051         (character.o, chartab.o): New targets.
20053 2008-02-01  Kenichi Handa  <handa@m17n.org>
20055         * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20056         CODING_ID_EOL_TYPE.
20058 2008-02-01  Andreas Schwab  <schwab@suse.de>
20060         * coding.c (produce_chars): Revert last change.
20062 2008-02-01  Kenichi Handa  <handa@m17n.org>
20064         * charset.h (charset_unicode): Extern it.
20066         * charset.c (string_xstring_p): Check by (C >= 0x100).
20067         (find_charsets_in_text): Change format of the arc CHARSETS.  New
20068         arg MULTIBYTE.
20069         (Ffind_charset_region, Ffind_charset_string): Adjust for the
20070         change of find_charsets_in_text.
20071         (Fsplit_char): Fix doc.  Never return unknown.
20073         * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20075         * coding.c (Fdefine_coding_system_alias): Update
20076         Vcoding_system_list.
20078         * fontset.c (load_font_get_repertory): Pay attention to the case
20079         that ENCODING of a font is specified by a char-table.
20081         * xterm.c (x_get_font_repertory): Handle the case that the
20082         encoding of font is other than Unicode.
20084 2008-02-01  Kenichi Handa  <handa@m17n.org>
20086         * term.c (encode_terminal_code): Don't handle glyph-table.  Check
20087         if a character is encodable by the terminal coding system.  If
20088         not, produces proper number of `?'s.  Update
20089         terminal_encode_buffer and terminal_encode_buf_size if necessary.
20090         (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20092 2008-02-01  Kenichi Handa  <handa@m17n.org>
20094         * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20095         variables.
20096         (encode_terminal_code): Change argument.  Encode multiple
20097         characters at once.  Store the result of encoding in
20098         terminal_encode_buffer.
20099         (write_glyphs, insert_glyphs): Adjust for the change of
20100         encode_terminal_code.
20101         (term_init): Initialize terminal_encode_buffer and
20102         terminal_encode_buf_size.
20104         * coding.c (consume_chars): If coding->src_object is nil, don't
20105         check annotation.
20107 2008-02-01  Kenichi Handa  <handa@m17n.org>
20109         * character.c (char_string): Use ASCII_CHAR_P instead of
20110         SINGLE_BYTE_CHAR_P.
20112 2008-02-01  Kenichi Handa  <handa@m17n.org>
20114         * xdisp.c (handle_auto_composed_prop): Check if the last
20115         characters of auto-composed region is newly composed with the
20116         following characters.
20117         (handle_composition_prop): Fix checking of point being inside
20118         composition.
20120 2008-02-01  Kenichi Handa  <handa@m17n.org>
20122         * fns.c (concat): Don't change multibyteness of the result by
20123         concatenating an 8-bit character.
20125         * data.c (Faset): Check newelt by CHECK_CHARACTER.  Don't change
20126         multibyteness of the result when newelt is an 8-bit character.
20128 2008-02-01  Dave Love  <fx@gnu.org>
20130         * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20131         EMACS_INT.
20133         * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20135         * xfaces.c (face_numeric_value): Declare dim size_t.
20136         (Finternal_lisp_face_equal_p): Remove unused f.
20138         * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20139         (MATRIX_ROW): Remove unused vars.
20140         (draw_glyphs, x_insert_glyphs, fast_find_position)
20141         (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20142         byte/char counts.
20144         * regex.c (regex_compile): Remove unused var.
20146         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20148         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20149         (Faccessible_keymaps, where_is_internal): Remove unused vars.
20151         * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20153         * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20155         * fileio.c (Fwrite_region): Remove unused var.
20157         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20158         (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20160         * composite.c (Fremove_list_of_text_properties): Declare.
20162         * coding.c (inhibit_pre_post_conversion): Remove (unused).
20163         (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20164         (coding_inherit_eol_type): Remove unused attrs.
20165         (detect_coding): Cast arg of detect_eol.
20167         * charset.c (syms_of_charset): Remove unused var p.
20168         (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20169         byte/char counts.
20171         * casetab.c (set_case_table): Remove unused var.
20173         * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20174         unused vars.
20176 2008-02-01  Dave Love  <fx@gnu.org>
20178         * xterm.c (x_bitmap_mask): Declare.
20180 2008-02-01  Dave Love  <fx@gnu.org>
20182         * xterm.c (x_term_init): Fix type error.
20184         * lisp.h: Add Funibyte_char_to_multibyte.
20186         * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20187         (Fset_coding_system_priority): Doc fix.
20189         * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20191         * indent.c (check_composition): Make start and end EMACS_INT.
20193         * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20195         * xdisp.c (handle_composition_prop, check_point_in_composition):
20196         Make buffer positions EMACS_INT.
20198         * composite.c (find_composition, run_composition_function)
20199         (update_compositions, Ffind_composition_internal): Make buffer
20200         positions EMACS_INT.
20202         * composite.h (find_composition, update_compositions): Make
20203         position args EMACS_INT.
20205         * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20207         * intervals.c (get_property_and_range):
20208         * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20210         * unexalpha.c: Don't include varargs.h.
20212 2008-02-01  Dave Love  <fx@gnu.org>
20214         * coding.h (ENCODE_UTF_8): New.
20216         * Makefile.in (gtkutil.o): Depend on coding.h.
20218         * coding.c (Fset_coding_system_priority): Doc fix.
20220 2008-02-01  Kenichi Handa  <handa@m17n.org>
20222         * fileio.c (Finsert_file_contents): Call setup_coding_system in
20223         the case of auto saving.
20225 2008-02-01  Andreas Schwab  <schwab@suse.de>
20227         * chartab.c (map_char_table, map_char_table_for_charset): Protect
20228         `range' from GC.
20230 2008-02-01  Kenichi Handa  <handa@m17n.org>
20232         * coding.c (decode_coding_sjis): Check bytes more rigidly.
20234 2008-02-01  Kenichi Handa  <handa@m17n.org>
20236         * fileio.c (choose_write_coding_system): Return a decided coding system.
20237         (Fwrite_region): Set Vlast_coding_system_used to the return value
20238         of choose_write_coding_system.
20240 2008-02-01  Kenichi Handa  <handa@m17n.org>
20242         * charset.c (Fset_charset_priority): Pay attention to duplicated
20243         arguments.
20245         * coding.c (QCcategory): New variable.
20246         (syms_of_coding): Defsym it.  Set all elements of
20247         Vcoding_category_table and their symbol values.
20248         (Fset_coding_system_priority): Doc fix.  Update symbol qvalues of
20249         coding-category-XXX, and coding-category-list.
20250         (Fdefine_coding_system_internal): Add category in the plist.
20252 2008-02-01  Kenichi Handa  <handa@m17n.org>
20254         * callproc.c (Fcall_process): Handle carryover correctly.
20256         * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20257         (raw_text_coding_system): Check NILP (coding_system).
20258         (coding_inherit_eol_type): Check NILP (coding_system) and
20259         NILP (parent).
20260         (consume_chars): Fix for the case of raw-text.
20262         * process.c (read_process_output): Handle carryover correctly.
20264 2008-02-01  Dave Love  <fx@gnu.org>
20266         * regex.c (re_search_2): Fix last change.
20268 2008-02-01  Kenichi Handa  <handa@m17n.org>
20270         * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20271         target_multibyte.  Even in a unibyte case, return a converted
20272         multibyte char.
20273         (GET_CHAR_AFTER): New macro.
20274         (PATFETCH): Translate via multibyte char.
20275         (HANDLE_UNIBYTE_RANGE): Delete this macro.
20276         (SETUP_MULTIBYTE_RANGE): New macro.
20277         (regex_compile): Setup compiled code so that its multibyteness
20278         matches that of a target.  Fix the handling of "[X-YZ]" using
20279         SETUP_MULTIBYTE_RANGE.
20280         (analyse_first) <charset>: For filling fastmap for all multibyte
20281         characters, don't check by BASE_LEADING_CODE_P.
20282         (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp).  It is
20283         the same as RE_MULTIBYTE_P (bufp) now.
20284         (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20285         (TARGET_CHAR_AND_LENGTH): Delete this macro.
20286         (TRANSLATE_VIA_MULTIBYTE): New macro.
20287         (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20288         It is the same as RE_MULTIBYTE_P (bufp) now.
20289         <exactn>: Translate via multibyte.
20290         <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.  Don't
20291         translate it.
20292         <charset, charset_not>: Fetch a character by
20293         RE_STRING_CHAR_AND_LENGTH.  Translate via multibyte.
20294         <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20295         <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20296         notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20297         by GET_CHAR_AFTER.
20298         (bcmp_translate): Likewise.
20300         * search.c (compile_pattern): Check the member target_multibyte,
20301         not the member multibyte of buf.
20303         * lread.c (read1): While reading a string, set force_singlebyte
20304         and force_multibyte correctly.
20306         * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20307         up of unibyte_to_multibyte_table.
20309 2008-02-01  Kenichi Handa  <handa@m17n.org>
20311         * coding.c (setup_coding_system): If coding has
20312         post-read-conversion or pre-write-conversion, set
20313         CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20314         respectively.
20315         (decode_coding_gap): Run post-read-conversion if any.
20317         * fileio.c (Finsert_file_contents): Even if we read into a
20318         unibyte buffer, check if we must decode the result or not.
20320 2008-02-01  Kenichi Handa  <handa@m17n.org>
20322         * coding.c (make_conversion_work_buffer): Change the work buffer
20323         name to the same one as that of Emacs 21.
20325 2008-02-01  Kenichi Handa  <handa@m17n.org>
20327         * coding.h (make_conversion_work_buffer): Adjust prototype.
20328         (code_conversion_restore): Don't extern it.
20330         * coding.c (detected_mask): Delete unused variable.
20331         (decode_coding_iso_2022): Pay attention to the byte sequence of
20332         CTEXT extended segment, and retain those bytes as is.
20333         (decode_coding_ccl): Delete unused variable `valids'.
20334         (setup_coding_system): Delete unused variable `category'.
20335         (consume_chars): Delete unused variable `category'.  Make it work
20336         for non-multibyte case.
20337         (make_conversion_work_buffer): Change argument.
20338         (saved_coding): Delete unused variable.
20339         (code_conversion_restore): Don't check saved_coding->destination.
20340         (code_conversion_save): New function.
20341         (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20342         instead of record_unwind_protect.
20343         (decode_coding_object, encode_coding_object): Likewise.  Recover PT.
20344         (detect_coding_system): Delete unused variable `mask'.
20345         (Fdefine_coding_system_internal): Delete unused variable id.
20347         * fileio.c (kill_workbuf_unwind): New function.
20348         (Finsert_file_contents): On replacing, call
20349         make_conversion_work_buffer with correct args, and call
20350         record_unwind_protect with the first arg kill_workbuf_unwind.
20352         * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20354 2008-02-01  Kenichi Handa  <handa@m17n.org>
20356         * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20357         (fontset_add): Fix for the case that TO is less than TO1.
20358         (Ffontset_info): Don't use fallback fontset on checking the
20359         default fontset.
20360         (dump_fontset): New function for debugging.
20362         * coding.c (Fdefine_coding_system_internal): Fix for the case that
20363         coding_type is Qcharset.
20365 2008-02-01  Kenichi Handa  <handa@m17n.org>
20367         * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20368         (map_char_table): Don't inherit the value from the parent on
20369         initializing VAL.  Adjust for the above change.
20371 2008-02-01  Kenichi Handa  <handa@m17n.org>
20373         * coding.c (Qsignature, Qendian): Delete these variables.
20374         (syms_of_coding): Don't initialize them.
20375         (CATEGORY_MASK_UTF_16_AUTO): New macro.
20376         (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20377         detect_info->found.
20378         (decode_coding_utf_16): Don't detect BOM here.
20379         (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20380         is NOT utf_16_without_bom.
20381         (setup_coding_system): For a coding system of type utf-16, check
20382         if the attribute :endian is Qbig or not (not nil or not), and set
20383         CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20384         (detect_coding): If coding type is utf-16 and BOM detection is
20385         required, detect it.
20386         (Fdefine_coding_system_internal): For a coding system of type
20387         utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20389 2008-02-01  Kenichi Handa  <handa@m17n.org>
20391         * coding.c (coding_set_source): Fix for the case that the current
20392         buffer is different from coding->src_object.
20393         (decode_coding_object): Don't use the conversion work buffer if
20394         DST_OBJECT is a buffer.
20396 2008-02-01  Dave Love  <fx@gnu.org>
20398         * lread.c (read_emacs_mule_char) [len==2]: Index
20399         emacs_mule_charset correctly.
20401 2008-02-01  Dave Love  <fx@gnu.org>
20403         * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20404         (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20405         (Fdecode_big5_char, Fencode_big5_char): Delete.  (Big5 no longer
20406         treated specially.)
20407         (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20408         (detected_mask): Remove Big5 bits.
20410 2008-02-01  Kenichi Handa  <handa@m17n.org>
20412         The following changes are to make the font rescaling facility
20413         compatible with Emacs 21.
20415         * xfaces.c (Vface_font_rescale_alist): Rename from
20416         Vface_resizing_fonts.
20417         (struct font_name): Rename member resizing_ratio to rescale_ratio.
20418         (font_rescale_ratio): Rename from font_resizing_ratio.
20419         (split_font_name): Set font->rescale_ratio.
20420         (better_font_p): Pay attention to font->rescale_ratio.
20421         (build_scalable_font_name): Likewise.  Change RESX, and RESY
20422         fields.
20423         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20425 2008-02-01  Kenichi Handa  <handa@m17n.org>
20427         * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20428         (Qutf_16_le): Remove these variables.
20429         (syms_of_coding): Don't DEFSYM them.
20430         (decode_coding_utf_16): Fix handling of BOM.
20431         (encode_coding_utf_16): Fix handling of BOM.
20433 2008-02-01  Kenichi Handa  <handa@m17n.org>
20435         * fileio.c (Finsert_file_contents): On replacing, before decoding
20436         the file into the work buffer, set point of the work buffer to the end.
20438 2008-02-01  Dave Love  <fx@gnu.org>
20440         * coding.c (Fcheck_coding_systems_region): Fix type errors.
20442 2008-02-01  Dave Love  <fx@gnu.org>
20444         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20445         and fix C types.
20447 2008-02-01  Kenichi Handa  <handa@m17n.org>
20449         * xdisp.c (SKIP_GLYPHS): New macro.
20450         (set_cursor_from_row): Pay attention to string display properties.
20452         * category.c (copy_category_entry): Fix for the case that RANGE
20453         is an integer.
20455         * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20457         * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20459 2008-02-01  Kenichi Handa  <handa@m17n.org>
20461         * charset.c (Fcharset_id_internal): New function.
20462         (syms_of_charset): Defsubr it.
20464         * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20465         with the last arg charset_list acquired from coding.
20466         (Fdefine_coding_system_internal): For ccl-based coding system, fix
20467         the attribute coding_attr_ccl_valids.
20469         * coding.h (enum define_coding_ccl_arg_index): Set the first
20470         member coding_arg_ccl_decoder to coding_arg_max.
20472         * ccl.h (ccl_driver): Adjust prototype.
20474         * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20475         (ccl_driver): New arg CHARSET_LIST.  Use the above macros instead
20476         of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
20477         (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20478         last arg Qnil.
20480 2008-02-01  Kenichi Handa  <handa@m17n.org>
20482         * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20483         call encode_char.
20485         * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20487 2008-02-01  Dave Love  <fx@gnu.org>
20489         * composite.c (syms_of_composite): Make composition_hash_table weak.
20491 2008-02-01  Kenichi Handa  <handa@m17n.org>
20493         * dispextern.h (check_face_attributes, generate_ascii_font_name)
20494         (font_name_registry): Don't extern them.
20495         (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20497         * fontset.h (Qfontset): Don't extern it.
20498         (new_fontset_from_font_name): Extern it.
20500         * fontset.c: Give 8 extra slots to fontset objects.
20501         (Qfontset_info): New variable.
20502         (syms_of_fontset): Defsym it.
20503         (FONTSET_FALLBACK): New macro.
20504         (fontset_face): Try also the default fontset.
20505         (make_fontset): Realize a fallback fontset from the default fontset.
20506         (generate_ascii_font_name): Move from xfaces.c.  Rewritten by
20507         using split_font_name_into_vector and build_font_name_from_vector.
20508         (Fset_fontset_font): Access the elements of font_spec by enum
20509         FONT_SPEC_INDEX.  If font_spec is a string, extract the registry
20510         name by using split_font_name_into_vector.
20511         (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20512         generate a proper font name from the fontset name.  Update
20513         Vfontset_alias_alist.
20514         (n_auto_fontsets): New variable.
20515         (new_fontset_from_font_name): New function.
20516         (Ffont_info): Store the information about fonts generated from the
20517         default fontset in the first extra slot of the returned char-table.
20519         * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20520         (font_name_registry): Delete function.
20521         (split_font_name_into_vector): New function.
20522         (build_font_name_from_vector): New function.
20523         (font_list): The argument REGISTRY is now a list of registry names.
20524         (choose_face_font): If we are choosing an ASCII font, and ATTRS
20525         specifies an explicit font name, return the name as is.  Make a
20526         list of registy names.
20528         * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20529         of x_new_fontset.
20530         (Fx_create_frame): Don't call x_new_fontset here.  Just use
20531         x_list_fonts to check the existence of fonts.
20533         * xterm.h (x_new_fontset): Adjust prototype.
20535         * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20536         string.  Use new_fontset_from_font_name to create a fontset from a
20537         font name.
20539 2008-02-01  Kenichi Handa  <handa@m17n.org>
20541         * syntax.c (Vfind_word_boundary_function_table): New name for
20542         Vnext_word_boundary_function_table.
20543         (find-word-boundary-function-table): New name for
20544         next-word-boundary-function-table.
20546 2008-02-01  Dave Love  <fx@gnu.org>
20548         * Makefile.in: Fix some dependencies.
20550         * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20551         set it to nil before returning.
20553         * composite.c (update_compositions): Fix type error.
20555         * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20557 2008-02-01  Kenichi Handa  <handa@m17n.org>
20559         * xterm.c (x_new_font): Optimize for the case that the font is
20560         already set for the frame.
20562 2008-02-01  Kenichi Handa  <handa@m17n.org>
20564         * chartab.c (char_table_ascii): Check if the char table contents
20565         is sub-char-table or not.
20566         (char_table_set, char_table_set_range): Fix argument to
20567         char_table_ascii.
20569         * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20570         (detect_coding_utf_8, detect_coding_utf_16)
20571         (detect_coding_emacs_mule, detect_coding_iso_2022)
20572         (detect_coding_sjis, detect_coding_big5)
20573         (detect_coding_ccl, detect_coding_charset): Change argument MASK
20574         to DETECT_INFO.  Update DETECT_INFO and return 1 if the byte
20575         sequence is valid in this coding system.  Change callers.
20576         (MAX_ANNOTATION_LENGTH): New macro.
20577         (ADD_ANNOTATION_DATA): New macro.
20578         (ADD_COMPOSITION_DATA): Change argument.  Change callers.  Call
20579         ADD_ANNOTATION_DATA.  Change the format of annotation data.
20580         (ADD_CHARSET_DATA): New macro.
20581         (emacs_mule_char): New argument ID.  Change callers.
20582         (decode_coding_emacs_mule, decode_coding_iso_2022)
20583         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20584         Produce charset annotation data in coding->charbuf.
20585         (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20586         to charset annotation data in coding->charbuf.
20587         (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20588         coding->common_flags if the coding system is iso-2022 based and
20589         uses designation.
20590         (produce_composition): Adjust for the new annotation data format.
20591         (produce_charset): New function.
20592         (produce_annotation): Handle charset annotation.
20593         (handle_composition_annotation, handle_charset_annotation): New
20594         functions.
20595         (consume_chars): Handle charset annotation.  Utilize the above two
20596         functions.
20597         (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20598         buffer, get the deleted text as a string and set
20599         coding->src_object to that string.
20600         (detect_coding, detect_coding_system): Use the new struct
20601         coding_detection_info.
20603         * coding.h (struct coding_detection_info): New structure.
20604         (struct coding_system): Adjust prototype of the member `detector'.
20605         (CODING_ANNOTATE_CHARSET_MASK): New macro.
20607 2008-02-01  Kenichi Handa  <handa@m17n.org>
20609         * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20611 2008-02-01  Dave Love  <fx@gnu.org>
20613         * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20614         (Fapropos_internal): Don't gcpro apropos_accumulate.  Set result
20615         to new local and nullify apropos_accumulate before returning.
20616         (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20618 2008-02-01  Kenichi Handa  <handa@m17n.org>
20620         * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20621         correctly.
20623 2008-02-01  Dave Love  <fx@gnu.org>
20625         * fns.c (Flanginfo): Call synchronize_system_time_locale.
20627 2008-02-01  Kenichi Handa  <handa@m17n.org>
20629         The following changes are to make character composition happen
20630         automatically on displaying.
20632         * Makefile.in (lisp, shortlisp): Add composite.elc.
20634         * composite.h (Qauto_composed, Vauto_composition_function)
20635         (Qauto_composition_function): Extern them.
20637         * composite.c (Vcomposition_function_table)
20638         (Qcomposition_function_table): Delete variables.
20639         (Qauto_composed, Vauto_composition_function)
20640         (Qauto_composition_function): New variables.
20641         (run_composition_function): Don't call
20642         compose-chars-after-function.
20643         (update_compositions): Clear `auto-composed' text property.
20644         (compose_chars_in_text): Delete this function.
20645         (syms_of_composite): Staticpro Qauto_composed and
20646         Qauto_composition_function.  Declare Vauto_composition_function as
20647         a Lisp variable.
20649         * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20651         * xdisp.c (it_props): Add an entry for Qauto_composed.
20652         (handle_auto_composed_prop): New function.
20654         * xselect.c (selection_data_to_lisp_data): Don't call
20655         compose_chars_in_text.
20657 2008-02-01  Dave Love  <fx@gnu.org>
20659         * keyboard.c (read_char): Modify checking around use of
20660         Vkeyboard_translate_table.
20662         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20663         and fix C types.
20665 2008-02-01  Kenichi Handa  <handa@m17n.org>
20667         * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20668         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20669         (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20670         the case that the last byte is '\r' correctly.
20671         (decode_coding): Flush out the unprocessed data correctly.
20672         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20674 2008-02-01  Dave Love  <fx@gnu.org>
20676         * xterm.c (XTread_socket): Fix changes for defined keysyms.
20677         Add XK_ISO... case.
20678         (xaw_scroll_callback): Revert last change.
20680 2008-02-01  Kenichi Handa  <handa@m17n.org>
20682         * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20684 2008-02-01  Kenichi Handa  <handa@m17n.org>
20686         * xfaces.c (Vface_resizing_fonts): New variable.
20687         (struct font_name): New member `resizing_ratio'.
20688         (font_resizing_ratio): New function.
20689         (split_font_name): Set font->resizing_ratio.
20690         (better_font_p): Pay attention to font->resizing_ratio.
20691         (build_scalable_font_name): Likewise.  Don't change POINT_SIZE,
20692         RESX, and RESY fields.
20693         (try_alternative_families): Try scalable fonts if
20694         Vscalable_fonts_allowed is not Qt.
20695         (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20697 2008-02-01  Dave Love  <fx@gnu.org>
20699         * xterm.c (xaw_scroll_callback): Cast correctly.
20701 2008-02-01  Dave Love  <fx@gnu.org>
20703         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20704         (lispy_kana_keys): Comment out.
20705         (make_lispy_event) [XK_kana_A]: Comment out.
20707         * xterm.c (xaw_scroll_callback): Cast call_data.
20708         (XTread_socket): Deal with ASCII keysyms.
20709         (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20711 2008-02-01  Dave Love  <fx@gnu.org>
20713         * xterm.c (Vx_keysym_table): New.
20714         (syms_of_xterm): Initialize it.
20715         (XTread_socket): Use it.
20716         From head: Eliminate incorrect optimization that tried to avoid
20717         decoding the output of X*LookupString.
20718         (x_get_font_repertory): Delete charset declaration.
20720 2008-02-01  Kenichi Handa  <handa@m17n.org>
20722         * coding.c (detect_coding_charset): If only ASCII bytes are found,
20723         return 0.
20724         (Fdefine_coding_system_internal): Setup
20725         CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20727 2008-02-01  Dave Love  <fx@gnu.org>
20729         * coding.c (Fcheck_coding_system): Doc fix.
20731         * editfns.c (Finsert_byte): Return a proper value.
20733 2008-02-01  Kenichi Handa  <handa@m17n.org>
20735         * coding.c (decode_coding): Fix args to translate_chars.  Pay
20736         attention to Vstandard_translation_table_for_decode.
20737         (encode_coding): Fix args to translate_chars.  Pay attention to
20738         Vstandard_translation_table_for_encode.
20740         * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20741         SINGLE_BYTE_CHAR_P.
20743         * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20744         not by SINGLE_BYTE_CHAR_P.
20746         * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20747         SINGLE_BYTE_CHAR_P.
20749         * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20750         SINGLE_BYTE_CHAR_P.
20752         * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20753         by SINGLE_BYTE_CHAR_P.
20755         * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20756         SINGLE_BYTE_CHAR_P.
20758 2008-02-01  Dave Love  <fx@gnu.org>
20760         * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20762 2008-02-01  Dave Love  <fx@gnu.org>
20764         * fns.c (Flanginfo): Fix typo.
20766         * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20768 2008-02-01  Kenichi Handa  <handa@m17n.org>
20770         * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20771         (detect_coding_emacs_mule, detect_coding_iso_2022)
20772         (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20773         incomplete byte sequence.  Don't update *mask when correctly detected.
20774         (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20775         (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20776         (detect_coding, detect_coding_system): Adjust for the changes above.
20778 2008-02-01  Kenichi Handa  <handa@m17n.org>
20780         * character.c (char_string): Rename from
20781         char_string_with_unification.  Pay attention to CHAR_MODIFIER_MASK.
20782         (string_char): Rename from string_char.
20784         * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20785         if C is greater than MAX_3_BYTE_CHAR.
20786         (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20787         string_char instead of string_char_with_unification.
20789 2008-02-01  Dave Love  <fx@gnu.org>
20791         * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20793 2008-02-01  Kenichi Handa  <handa@m17n.org>
20795         * keymap.c (push_key_description): Pay attention to force_multibyte.
20797         * regex.c (re_search_2): Fix for the case of unibyte buffer.
20799 2008-02-01  Dave Love  <fx@gnu.org>
20801         * charset.c (define_charset_internal): Rename `supprementary'.
20803         * Makefile.in (lisp, shortlisp): Remove latin-N.
20805 2008-02-01  Dave Love  <fx@gnu.org>
20807         * xfns.c (x_window, x_window): Use use_xim.
20809         * xterm.c (use_xim): Initialize.
20810         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20811         (x_term_init): Maybe set use_xim.
20813         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20815 2008-02-01  Kenichi Handa  <handa@m17n.org>
20817         * search.c (search_buffer): Fix case-fold-search of multibyte
20818         characters.
20819         (boyer_moore): Rename the last argument to char_high_bits.
20821 2008-02-01  Kenichi Handa  <handa@m17n.org>
20823         * xdisp.c (display_string): Fix for the case of zero width glyph.
20825         * xfns.c (x_set_font): Change the error message of the case that
20826         x_new_fontset returns Qt.
20828         * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20829         (Finternal_set_lisp_face_attribute): Use signal_error for the
20830         error of invalid fontset.
20832         * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20833         fontset, return Qt.
20835 2008-02-01  Dave Love  <fx@gnu.org>
20837         * unexelf.c (unexec): Make .got handling not SGI-specific.
20839         * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20841         * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20843         * keyboard.c (read_key_sequence): Fix type error.
20845         * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20846         type error.
20848         * fontset.c (fontset_add): Return Lisp_Object.
20850 2008-02-01  Dave Love  <fx@gnu.org>
20852         * charset.h (charset_ordered_list_tick): Declare extern.
20854 2008-02-01  Kenichi Handa  <handa@m17n.org>
20856         The following changes (and some of 2008-02-01 changes of mine) are
20857         for handling syntax, category, and case conversion for unibyte
20858         characters by converting them to multibyte on the fly.  With these
20859         changes, we don't have to setup syntax and case tables for unibyte
20860         characters in each language environment.
20862         * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20863         multibyte if necessary.
20865         * bytecode.c (Fbyte_code): Likewise.
20867         * character.h (LEADING_CODE_LATIN_1_MIN)
20868         (LEADING_CODE_LATIN_1_MAX): New macros.
20869         (unibyte_to_multibyte_table): Extern it.
20870         (unibyte_char_to_multibyte): New macro.
20871         (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20872         (CHAR_LEADING_CODE): New macro.
20873         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20875         * character.c (unibyte_to_multibyte_table): New variable.
20876         (unibyte_char_to_multibyte): Move to character.h and define as macro.
20877         (multibyte_char_to_unibyte): If C is an eight-bit character,
20878         convert it to the corresponding byte value.
20880         * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20881         not 1, signals an error.  Update the elements of
20882         unibyte_to_multibyte_table.
20883         (init_charset_once): Initialize unibyte_to_multibyte_table.
20884         (syms_of_charset): Define the charset `iso-8859-1'.
20886         * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20887         as is without converting it to unibyte.  In a unibyte buffer,
20888         convert C to multibyte before checking the syntax.
20890         * lisp.h (unibyte_char_to_multibyte): Delete extern.
20892         * minibuf.c (Fminibuffer_complete_word): Use the macro
20893         FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20895         * regex.h (struct re_pattern_buffer): New member target_multibyte.
20897         * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20898         (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.  If
20899         that is zero, convert an eight-bit char to multibyte.
20900         (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20901         non-emacs case.
20902         (PATFETCH): Convert an eight-bit char to multibyte.
20903         (HANDLE_UNIBYTE_RANGE): New macro.
20904         (regex_compile): Setup the compiled pattern for multibyte chars
20905         even if the given regex string is unibyte.  Use PATFETCH_RAW
20906         instead of PATFETCH in many places.  To handle `charset'
20907         specification of unibyte, call HANDLE_UNIBYTE_RANGE.  Use bitmap
20908         only for ASCII chars.
20909         (analyse_first) <exactn>: Simplify because the compiled pattern
20910         is multibyte.
20911         <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20912         <charset>: Use CHAR_LEADING_CODE to get leading codes.
20913         <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20914         (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20915         multibyte always 1.
20916         (re_search_2): In emacs, set the locale variable multibyte to 1,
20917         otherwise to 0.  New local variable target_multibyte.  Check it
20918         to decide the multibyteness of STR1 and STR2.  If
20919         target_multibyte is zero, convert unibyte chars to multibyte
20920         before translating and checking fastmap.
20921         (TARGET_CHAR_AND_LENGTH): New macro.
20922         (re_match_2_internal): In emacs, set the locale variable multibyte
20923         to 1, otherwise to 0.  New local variable target_multibyte.  Check
20924         it to decide the multibyteness of STR1 and STR2.  Use
20925         TARGET_CHAR_AND_LENGTH to fetch a character from D.
20926         <charset, charset_not>: If multibyte is nonzero, check fastmap
20927         only for ASCII chars.  Call bcmp_translate with
20928         target_multibyte, not with multibyte.
20929         <begline>: Declare the local variable C as `unsigned'.
20930         (bcmp_translate): Change the last arg name to target_multibyte.
20932         * search.c (compile_pattern_1): Don't adjust the multibyteness of
20933         the regexp pattern and the matching target.  Set cp->buf.multibyte
20934         to the multibyteness of the regexp pattern.  Set
20935         cp->but.target_multibyte to the multibyteness of the matching target.
20936         (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20937         FETCH_STRING_CHAR_ADVANCE.
20938         (Freplace_match): Convert unibyte chars to multibyte.
20940         * syntax.c (char_quoted, back_comment, scan_words)
20941         (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20942         (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20943         unibyte chars to multibyte.
20944         (skip_chars): Delete the arg syntaxp, and move the code for
20945         handling syntaxes to skip_syntaxes.  Change callers.
20946         Fix the case that the multibyteness of STRING and the current
20947         buffer doesn't match.
20948         (skip_syntaxes): New function.
20949         (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20950         SINGLE_BYTE_CHAR_P.
20952 2008-02-01  Kenichi Handa  <handa@m17n.org>
20954         * xfaces.c (QCfontset): New variable.
20955         (LFACE_FONTSET): New macro.
20956         (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20957         (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20958         (Finternal_set_lisp_face_attribute)
20959         (Finternal_get_lisp_face_attribute): Handle QCfontset.
20960         (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20961         check also LFACE_FONTSET_INDEX.
20962         (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20963         attrs[LFACE_FONT_INDEX].
20964         (syms_of_xfaces): Intern and staticpro QCfontset.
20966         * dispextern.h (enum lface_attribute_index): New member
20967         LFACE_FONTSET_INDEX.
20969         * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20971 2008-02-01  Kenichi Handa  <handa@m17n.org>
20973         * coding.c (coding_set_destination): Fix coding->destination for
20974         the case converting a region.
20975         (encode_coding_utf_8): Encode eight-bit chars as single byte.
20976         (encode_coding_object): Fix coding->dst_pos and
20977         coding->dst_pos_byte for the case converting a region.
20979         * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20981         * character.h (BYTE8_STRING): New macro.
20983         * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20985 2008-02-01  Kenichi Handa  <handa@m17n.org>
20987         * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20988         characters by octal form.
20990         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20992         * buffer.h (_fetch_multibyte_char_len): Delete extern.
20993         (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20994         _fetch_multibyte_char_len.
20995         (FETCH_CHAR_AS_MULTIBYTE): New macro.
20997         * casetab.c (set_canon, set_identity, shuffle): Simplify.
20999         * casefiddle.c (casify_object): Simplify.  Handle the case that
21000         the case conversion change the byte length.
21001         (casify_region): Likewise.
21003         * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21005         * character.c (_fetch_multibyte_char_len): Delete this variable.
21006         (syms_of_character): Setup Vprintable_chars.
21008         * editfns.c (Fchar_equal): Fix for the unibyte case.
21009         (Finsert_byte): New function.
21010         (syms_of_editfns): Defsubr it.
21012         * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21013         of direct code 0x3ffff.
21015         * search.c (Freplace_match): Fix for the unibyte case.
21017 2008-02-01  Kenichi Handa  <handa@m17n.org>
21019         * lread.c (safe_to_load_p): Fix the logic.
21021         * syntax.c (scan_words): Don't treat characters belonging to
21022         different scripts as constituting a word.
21024         * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21026         * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21028         * emacs.c (main): In the case of --unibyte, instead of aborting on
21029         finding non-empty buffer, make it unibyte.
21031 2008-02-01  Kenichi Handa  <handa@m17n.org>
21033         * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21034         to create a fontset.
21036 2008-02-01  Dave Love  <fx@gnu.org>
21038         * character.c (Funibyte_char_to_multibyte): Doc fix.
21040         * xfns.c [HAVE_STDLIB_H]: Fix last change.
21042 2008-02-01  Kenichi Handa  <handa@m17n.org>
21044         * fontset.c (fontset_add): Make the type `int'.
21045         (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21047         * character.c (unibyte_char_to_multibyte)
21048         (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21049         charset_unibyte, not charset_primary.
21051         * charset.h (charset_unibyte): Extern it instead of charset_primary.
21053         * charset.c (charset_unibyte): Rename from charset_primary.
21054         (Funibyte_charset): Rename from Fprimary_charset.
21055         (Fset_unibyte_charset): Rename from Fset_primary_charset.
21056         (syms_of_charset): Adjust for the above changes.
21058         * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21059         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
21060         it->multibyte_p is zero.
21062         * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21063         Delete extern.
21065 2008-02-01  Kenichi Handa  <handa@m17n.org>
21067         * coding.c (Fdefine_coding_system_internal): Fix category setting
21068         for a coding system of type iso-2022.
21070 2008-02-01  Kenichi Handa  <handa@m17n.org>
21072         * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21074 2008-02-01  Kenichi Handa  <handa@m17n.org>
21076         * syntax.c (Vnext_word_boundary_function_table): New variable.
21077         (next-word-boundary-function-table): Declare it as a Lisp variable
21078         in syms_of_syntax.
21079         (scan_words): Call functions in Vnext_word_boundary_function_table
21080         if any.
21082         * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21084         * fontset.c (fs_load_font): If fontp->charset is not negative,
21085         return fontp without setting its members.
21087 2008-02-01  Dave Love  <fx@gnu.org>
21089         * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21091         * m/sparc.h (HAVE_ALLOCA): Delete.
21093         * s/irix6-5.h: Don't include strings.h.
21094         (bcopy, bzero, bcmp): Don't undef.
21096         * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21098         * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21099         (TIOCSIGSEND): Don't test IRIX6.
21100         (bcopy, bzero, bcmp): Define conditionally.
21102 2008-02-01  Kenichi Handa  <handa@m17n.org>
21104         * buffer.c (Qas, Qmake, Qto): New variables.
21105         (Fset_buffer_multibyte): New optional arg METHOD.  Change caller.
21106         (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21108         * callproc.c (Fcall_process): Don't call insert_1_both directly if
21109         we are inserting a process output into a multibyte buffer.
21111         * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21112         multibyte_char_to_unibyte.
21114         * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21115         by the primary charset, make it eight-bit char.
21116         (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21118         * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21119         (charset_8_bit__control, charset_8_bit_graphic)
21120         (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21121         (define_charset_internal): New function.
21122         (syms_of_charset): Call define_charset_internal for pre-defined
21123         charsets.
21125         * charset.h (charset_8_bit): Extern it.
21127         * coding.c (make_conversion_work_buffer): Adjust for the change
21128         of Fset_buffer_multibyte.
21129         (encode_coding_raw_text): Increment p0 in the loop.
21131         * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21133         * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21134         for the change of Fset_buffer_multibyte.
21136         * fns.c (Fstring_to_multibyte): New function.
21137         (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21139 2008-02-01  Dave Love  <fx@gnu.org>
21141         * xfns.c (x_put_x_image): Declare args.
21143         * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21144         (try_font_list): Declare an arg.
21146         * xdisp.c (message2_nolog, set_message): Declare an arg.
21148         * terminfo.c (tparam): Declare an arg.  Use P_ to declare tparm.
21150         * syntax.c (scan_sexps_forward): Declare an arg.
21152         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21153         Declare an arg.
21155         * lisp.h (Fnew_fontset): Declare.
21157         * keymap.c (push_key_description): Call CHARACTERP correctly.
21159         * fontset.c (fontset_add): Declare args.  Call make_number correctly.
21160         (face_for_char): Delete unused vars.
21161         (Fset_fontset_font): Doc fix.  Delete unused vars.
21163         * doc.c (Fsubstitute_command_keys): Delete unused vars.
21165         * composite.c (update_compositions): Declare arg.
21167         * cm.c (calccost, cmgoto): Declare args.
21169         * charset.c: Remove `emacs' conditional.  Doc fixes.
21170         (map_char_table_for_charset): Declare.
21172         * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21174         * ccl.c: Remove `emacs' conditional.
21176 2008-02-01  Kenichi Handa  <handa@m17n.org>
21178         The following changes are to allow specifying multiple font
21179         patterns for a character range (specified by script or charset).
21181         * Makefile.in (abbrev.o): Depend on syntax.h.
21182         (xfaces.o): Depend on charset.h.
21184         * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21185         SINGLE_BYTE_CHAR_P.
21187         * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21189         * character.h (Vchar_script_table): Extern it.
21191         * character.c (Vscript_alist): Delete.
21192         (Vchar_script_table, Qchar_script_table): New variable.
21193         (syms_of_character): Declare Vchar_script_table as a lisp variable
21194         and initialize it.
21196         * chartab.c (Fmake_char_table): Doc fix.  If PURPOSE doesn't
21197         have property char-table-extra-slots, make no extra slot.
21199         * dispextern.h (struct face): Delete member `charset'.
21200         (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21201         SINGLE_BYTE_CHAR_P.
21202         (choose_face_font, lookup_non_ascii_face, font_name_registry):
21203         Add prototypes.
21204         (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21205         (generate_ascii_font_name): Rename from generate_ascii_font.
21207         * fontset.h (get_font_repertory_func): New prototype.
21208         (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21209         (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21211         * fontset.c (Qprepend, Qappend): New variables.
21212         (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21213         (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21214         (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21215         (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21216         (fontset_ref_and_range, fontset_add, reorder_font_vector)
21217         (load_font_get_repertory): New functions.
21218         (fontset_set): Delete.
21219         (fontset_face): New arg FACE.  Return face ID, not face.
21220         Complete re-write to handle new fontset structure.  Change caller.
21221         (free_face_fontset): Use ASET istead of AREF (X) = Y.
21222         (face_for_char): Don't call lookup_face.
21223         (make_fontset_for_ascii_face): New arg FACE.
21224         (fs_load_font): New arg CHARSET_ID.  Don't check
21225         Vfont_encoding_alist here.
21226         (find_font_encoding): New function.
21227         (list_fontsets): Use STRINGP, not ! NILP.
21228         (accumulate_script_ranges): New function.
21229         (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21230         re-written to handle new fontset structure.
21231         (Ffontset_font): Return a copy of element.
21232         (syms_of_fontset): Define symbols Qprepend and Qappend.  Fix
21233         docstring of font-encoding-alist.
21235         * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21236         (Fset_fotset_font): Fix arguments to 5.
21238         * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21240         * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21241         Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21242         (highlight_trailing_whitespace): Adjust for the change of
21243         lookup_named_face.
21245         * xfaces.c: Include charset.h.
21246         (load_face_font): Delete argument C.  Change caller.
21247         (generate_ascii_font_name): Rename from generate_ascii_font.
21248         (font_name_registry): New function.
21249         (cache_face): Store ascii faces before non-ascii faces in buckets.
21250         (lookup_face): Delete arguments C and BASE_FACE.  Change caller.
21251         Lookup only ascii faces.
21252         (lookup_non_ascii_face): New function.
21253         (lookup_named_face): Delete argument C.  Change caller.
21254         (lookup_derived_face): Delete argument C.  Change caller.
21255         (try_font_list): New arg PATTERN.  Change caller.  If PATTERN is
21256         a string, just call font_list with it.
21257         (choose_face_font): Delete arguments FACE and C.  New arg
21258         FONT_SPEC.  Change caller.
21259         (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21260         Change caller.
21261         (realize_non_ascii_face): New function.
21262         (realize_x_face): Call load_face_font here.
21263         (realize_tty_face): Delete argument C.  Change caller.
21264         (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21265         get a face ID.
21266         (dump_realized_face): Don't print charset of FACE.
21268         * xfns.c (x_set_font): Always call x_new_fontset and
21269         store_frame_parameter.
21270         (Fx_create_frame): Call x_new_fontset, not x_new_font.
21271         (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21273         * xterm.h (x_get_font_repertory): Extern it.
21275         * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21276         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
21277         it->multibyte_p is zero.
21278         (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21279         (x_new_fontset): If FONTSETNAME doesn't match any existing
21280         fontsets, create a new one.
21281         (x_get_font_repertory): New function.
21283 2008-02-01  Kenichi Handa  <handa@m17n.org>
21285         * coding.c (Ffind_coding_systems_region_internal): Detect an
21286         ASCII only string correctly.
21288         * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21289         version is 0.
21291 2008-02-01  Kenichi Handa  <handa@m17n.org>
21293         * lread.c: Include "coding.h".
21294         (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21295         (load_each_byte, unread_char): New variables.
21296         (readchar_backlog): Delete.
21297         (readchar): Return a character unless load_each_byte is nonzero.
21298         Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21299         cons.  If unread_char is not -1, simply return it.
21300         (unreadchar): Handle the case that readcharfun is
21301         Qget_emacs_mule_file_char or a cons.  Set unread_char if necessary.
21302         (read_multibyte): Delete.
21303         (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21304         (read_emacs_mule_char): New functions.
21305         (Fload): Even if the file doesn't have the extension ".elc", if
21306         safe_to_load_p returns a positive version number, assume that the
21307         file contains bytecompiled code.  If the version is less than 22,
21308         load the file while decoding multibyte sequences by emacs-mule.
21309         (readevalloop): Don't use readchar_backlog.
21310         (Fread): Likewise.  Pay attention to the case that STREAM is a cons.
21311         (Fread_from_string): Pay attention to the case that STREAM is a cons.
21312         (read_escape): Delete the arg BYTEREP.
21313         (read1): Set load_each_byte to 1 temporarily while handling
21314         #@NUMBER.  Don't call read_multibyte.
21315         (read_vector): Call Fread with a cons.  If readcharfun is
21316         Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21317         (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21318         (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21319         and Qload_force_doc_strings.
21321 2008-02-01  Kenichi Handa  <handa@m17n.org>
21323         * xdisp.c (face_before_or_after_it_pos): Call
21324         FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21326 2008-02-01  Kenichi Handa  <handa@m17n.org>
21328         * character.h (TRAILING_CODE_P): New macro.
21329         (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21330         (string_char_with_unification): Fix prototype.
21331         (Vscript_alist): Extern it.
21333         * character.c (Vscript_alist): New variable.
21334         (string_char_with_unification, str_as_unibyte)
21335         (string_escape_byte8): Add `const' to local variables.
21336         (syms_of_character): Declare script-alist as a Lisp variable.
21338         * charset.h (Vcharset_ordered_list): Extern it.
21339         (charset_ordered_list_tick): Extern it.
21340         (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21341         (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21342         (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21343         (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21344         (Funify_charset): Adjust for the change of Funify_charset.
21346         * charset.c (charset_ordered_list_tick): New variable.
21347         (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21348         (Funify_charset): New optional arg DEUNIFY.  If it is non-nil,
21349         deunify instead of unify a charset.
21350         (string_xstring_p): Add `const' to local variables.
21351         (find_charsets_in_text): Add `const' to arguments and local variables.
21352         (encode_char): Adjust for the change of Funify_charset.  Fix
21353         detecting of invalid code.
21354         (Fset_charset_priority): Increment charset_ordered_list_tick.
21355         (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21356         and TO_CODE.
21358         * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21359         (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21360         Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21361         (decode_coding_ccl, consume_chars)
21362         (Ffind_coding_systems_region_internal)
21363         (Fcheck_coding_systems_region): Add `const' to local variables.
21365         * print.c (print_object): Use octal form for printing the
21366         contents of a bool vector.
21368 2008-02-01  Dave Love  <fx@gnu.org>
21370         * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21371         <version == 20>: Refuse to load.
21373 2008-02-01  Dave Love  <fx@gnu.org>
21375         * fns.c: Move coding.h.
21376         (Qcodeset, Qdays, Qmonths): New.
21377         (concat): Use CHARACTERP instead of INTEGERP.
21378         (Flocale_codeset): Delete.
21379         (Flanginfo): New function.
21380         (syms_of_fns): Change accordingly.
21382         * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21384 2008-02-01  Dave Love  <fx@gnu.org>
21386         * casetab.c (init_casetab_once, init_casetab_once): Fix
21387         CHAR_TABLE_SET call.
21389         * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21391         * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21393         * charset.c (Fmap_charset_chars): Check args.  Convert Lisp types.
21394         (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21395         (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21397         * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21399         * coding.c (ENCODE_DESIGNATION, decode_eol)
21400         (make_conversion_work_buffer, code_conversion_restore)
21401         (Fdefine_coding_system_internal): Convert Lisp types.
21402         (code_conversion_restore): Use EQ, not ==.
21403         (Fencode_coding_string): Fix code_convert_string call.
21405         * coding.h (code_convert_region): Fix prototype.
21407         * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21409         * fontset.c (fontset_ref, fontset_set, fs_load_font)
21410         (Ffontset_info): Convert Lisp types.
21412         * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21414         * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21416         * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21418         * chartab.c: Include "...h", not <...h> in some cases.
21420         * callproc.c (Fcall_process): Remove unused variables.
21422 2008-02-01  Dave Love  <fx@gnu.org>
21424         * coding.c (Fset_coding_system_priority): Allow null arg list.
21426 2008-02-01  Dave Love  <fx@gnu.org>
21428         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21429         (Fself_insert_and_exit): Use CHARACTERP.
21431         * callproc.c (Fcall_process): Remove unused vars.
21433         * xterm.c (XTread_socket): Add extra dead keysyms.
21435         * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21437         * dispextern.h: Remove prototypes for redraw_frame,
21438         redraw_garbaged_frames.
21440         * cmds.c (Fself_insert_command): Use CHARACTERP.
21442         * chartab.c (make_sub_char_table): Remove unused var.
21443         (Fset_char_table_default, Fmap_char_table): Doc fix.
21445         * keymap.c (access_keymap): Remove generic char code.
21446         (push_key_description): Use CHARACTERP.
21448 2008-02-01  Dave Love  <fx@gnu.org>
21450         * charset.c: Doc fixes.
21451         (Funify_charset): Extra checking.
21453 2008-02-01  Dave Love  <fx@gnu.org>
21455         * lread.c: Remove some unused variables.
21456         (safe_to_load_p): If safe, return the magic number version byte.
21457         (Fload): Maybe use load-with-code-conversion.
21459 2008-02-01  Kenichi Handa  <handa@m17n.org>
21461         * category.c (Fmodify_category_entry): Don't modify the contents
21462         of category_set for characters out of the range.  Avoid
21463         unnecessary modification.
21465         * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21466         Vchar_unify_table.  The default value of the table is now nil.
21468         * character.c (syms_of_character): Setup Vchar_width_table for
21469         eight-bit-control and raw-byte chars.
21471         * charset.h (enum define_charset_arg_index): Delete
21472         charset_arg_parents and add charset_arg_subset and
21473         charset_arg_superset.
21474         (enum charset_attr_index): Delete charset_parents and add
21475         charset_subset and charset_superset.
21476         (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21477         CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21478         (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21479         (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21480         (CHARSET_SUPERSET): New macros.
21481         (charset_work): Extern it.
21482         (ENCODE_CHAR): Use charset_work.
21483         (CHAR_CHARSET_P): Adjust for the change of encoder format.
21484         (map_charset_chars): Extern it.
21486         * charset.c (load_charset_map): Set the default value of encoder
21487         and deunifier char-tables to nil.
21488         (map_charset_chars): Change argument.  Change callers.  Use
21489         map_char_table_for_charset instead of map_char_table.
21490         (Fmap_charset_chars): New optional args from_code and to_code.
21491         (Fdefine_charset_internal): Adjust for the change of
21492         `define-charset' (:parents -> :subset or :superset).
21493         (charset_work): New variable.
21494         (encode_char, syms_of_charset): Adjust for the change of
21495         Fdefine_charset_internal.
21496         (Ffind_charset_string): Setup the vector `charsets' correctly.
21498         * chartab.c (sub_char_table_ref_and_range): New arg default.  Fix
21499         the previous change.
21500         (char_table_ref_and_range): Adjust for the above change.
21501         (map_sub_char_table_for_charset): New function.
21502         (map_char_table_for_charset): New function.
21504         * keymap.c (describe_vector): Handle a char-table directly here.
21505         (describe_char_table): Delete.
21507         * lisp.h (map_charset_chars): Delete.
21509 2008-02-01  Dave Love  <fx@gnu.org>
21511         * fns.c (count_combining): Comment out (unused).
21512         (Flocale_codeset): New.
21513         (syms_of_fns): Defsubr it.
21515         * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21516         (size_t): Remove.
21518 2008-02-01  Dave Love  <fx@gnu.org>
21520         * Makefile.in (chartab.o): Depend on charset.h.
21522 2008-02-01  Kenichi Handa  <handa@m17n.org>
21524         * character.c (syms_of_character): Set the default value of
21525         Vprintable_chars to Qnil.
21527 2008-02-01  Dave Love  <fx@gnu.org>
21529         * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21531 2008-02-01  Kenichi Handa  <handa@m17n.org>
21533         * charset.c (load_charset_map): Handle the case that from < to
21534         correctly.
21536         * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21537         (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21538         Pay attention to raw-8-bit chars.
21540 2008-02-01  Kenichi Handa  <handa@m17n.org>
21542         * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21543         It is not bytecompiled now.
21545         * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21546         (charset_jisx0208): New variables.
21547         (Fdefine_charset_internal): Setup them if appropriate.
21548         (init_charset_once): Initialize them to -1.
21550         * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21551         (charset_jisx0208): Extern them.
21553         * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21554         (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21555         (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21556         (setup_iso_safe_charsets): Fix arguments to Fassq.
21557         (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21558         (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21559         CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21560         (encode_coding_iso_2022): Change the 1st arg to
21561         ENCODE_ISO_CHARACTER to a variable.
21563 2008-02-01  Kenichi Handa  <handa@m17n.org>
21565         * charset.h (enum define_charset_arg_index): New enums
21566         charset_arg_min_code and charset_arg_max_code.
21567         (struct charset): New member char_index_offset.
21569         * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21570         Take charset->char_index_offset into account.
21571         (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21572         args[charset_arg_max_code].  Setup charset.char_index_offset.
21573         (syms_of_charset): Fix args to Fdefine_charset_internal.
21575 2008-02-01  Dave Love  <fx@gnu.org>
21577         * coding.c (decode_coding_utf_8): Reject overlong sequences.
21579 2008-02-01  Dave Love  <fx@gnu.org>
21581         * coding.c: Doc fixes.
21582         (Fcoding_system_aliases): Fix return value.
21583         (Qmac): Remove (duplicated) definition.
21585 2008-02-01  Dave Love  <fx@gnu.org>
21587         * charset.c (Fcharset_priority_list, Fset_charset_priority):
21588         New functions.
21590         * character.c (Fstring): Doc fix.
21592         * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21594         * fontset.c (Ffontset_info): Doc fix.  Return charset names, not ids.
21595         (font-encoding-alist): Doc fix.
21597 2008-02-01  Dave Love  <fx@gnu.org>
21599         * term.c (costs_set): Declare static, non-initialized for pcc.
21600         (encode_terminal_code): Remove unused var.
21602         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21603         for K&R.
21605         * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21607         * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21608         (suffixes): Move out of make_subsidiaries for K&R.
21610         * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21612         * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21614 2008-02-01  Dave Love  <fx@gnu.org>
21616         * data.c (Fchar_or_string_p): Doc fix.  Use CHARACTERP.
21618         * category.c (Fmodify_category_entry): Doc fix.  Remove unused vars.
21620 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
21622         * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21624         * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21626 2008-02-01  Kenichi Handa  <handa@m17n.org>
21628         * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21629         vietnamese.elc to vietnamese.el.  They are not bytecompiled now.
21631 2008-02-01  Kenichi Handa  <handa@m17n.org>
21633         * coding.c (decode_coding_charset): Adjust for the change of
21634         Fdefine_coding_system_internal.
21635         (Fdefine_coding_system_internal): For a coding system of
21636         `charset' type, store a list of charset IDs in
21637         `charset_attr_charset_valids' element of coding attributes.
21639 2008-02-01  Kenichi Handa  <handa@m17n.org>
21641         * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21642         (emacs_mule_char): New arg src.  Delete arg `composition'.  Change
21643         caller.  Handle 2-byte and 3-byte charsets correctly.
21644         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21645         DECODE_EMACS_MULE_COMPOSITION_RULE.  Change caller.
21646         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21647         (DECODE_EMACS_MULE_21_COMPOSITION): Call
21648         DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
21649         sequence.
21650         (decode_coding_emacs_mule): Handle composition correctly.  Rewind
21651         `src' and `consumed_chars' correctly before calling emacs_mule_char.
21652         (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21653         and alt&rule composition.
21654         (decode_coding_iso_2022): Handle composition correctly.
21655         (init_coding_once): Setup emacs_mule_bytes for private charsets.
21657         * charset.c (Fdefine_charset_internal): Fix bug for the case of
21658         re-defining a charset.  If the charset has :emacs-mule-id, setup
21659         emacs_mule_bytes.
21660         (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21662 2008-02-01  Kenichi Handa  <handa@m17n.org>
21664         * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21665         (encode_coding_big5, encode_coding_charset): If coding requires safe
21666         encoding, produce a character specified by
21667         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21669 2008-02-01  Dave Love  <fx@gnu.org>
21671         * xterm.c (XSetIMValues): Declare.
21673         * process.c: Conditionally include sys/wait.h, pty.h.
21675         * print.c (print_object): Fix print format for 64-bit systems.
21677         * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21679         * buffer.c (emacs_strerror): Declare.
21681         * fontset.c (Fclear_face_cache): Declare.
21682         (accumulate_font_info): Comment-out (unused).
21683         (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21684         variables.
21686         * character.h (string_escape_byte8): Declare.
21688         * charset.c (load_charset_map, load_charset_map_from_file): Remove
21689         unused vars.
21690         (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21691         (Fmap_charset_chars): Doc fix.
21693         * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21694         (Fset_coding_system_priority, Fset_coding_system_priority)
21695         (Fdefine_coding_system_internal): Doc fix.
21697 2008-02-01  Dave Love  <fx@gnu.org>
21699         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21701 2008-02-01  Kenichi Handa  <handa@m17n.org>
21703         * character.c (string_escape_byte8): Make multibyte string with
21704         correct size.
21706         * charset.c (Fmake_char): Delete unnecessary code.
21708 2008-02-01  Kenichi Handa  <handa@m17n.org>
21710         * xfns.c (x_encode_text): Allocate coding.destination here, and
21711         call encode_coding_object with dst_object Qnil.
21713         * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21714         multibyte form correctly.
21716         * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21717         against Vfont_encoding_alist.
21719         * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
21720         handling of charset list.
21721         (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21722         (decode_coding_object): Move point to coding->dst_pos before
21723         calling post-read-conversion function.
21724         (encode_coding_object): Give correct arguments to
21725         pre-write-conversion.  Ignore the return value of
21726         pre-write-conversion function.  Pay attention to the case that
21727         pre-write-conversion changes the current buffer.  If dst_object is
21728         Qt, even if coding->src_bytes is zero, allocate at least one byte
21729         to coding->destination.
21731         * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21733         * charset.c (Fmake_char): Make it more backward compatible.
21734         (Fmap_charset_chars): Fix docstring.
21736 2008-02-01  Dave Love  <fx@gnu.org>
21738         * coding.c: Doc fixes.
21739         (Fdefine_coding_system_alias): Use names, not symbols, in
21740         coding-system-alist.
21742 2008-02-01  Kenichi Handa  <handa@m17n.org>
21744         * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21745         of calling free_realized_face.
21747 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
21749         * charset.c (read_hex): Don't treat SPC as a comment starter.
21750         (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21751         (Fdecode_char): Fix typo.
21753 2008-02-01  Kenichi Handa  <handa@m17n.org>
21755         * charset.h (struct charset): New member `code_space_mask'.
21757         * coding.c (coding_set_source): Delete the local variable beg_byte.
21758         (encode_coding_charset, Fdefine_coding_system_internal):
21759         Delete the local variable charset.
21760         (Fdefine_coding_system_internal): Setup
21761         attrs[coding_attr_charset_valids] correctly.
21763         * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21764         member to check if CODE is valid or not.
21765         (Fdefine_charset_internal): Initialize `code_space_mask' member.
21766         (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21767         is within the range of charset->min_code and carset->max_code.
21769 2008-02-01  Dave Love  <fx@gnu.org>
21771         * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21773         * dispextern.h (generate_ascii_font): Fix return type.
21775         * xfaces.c (generate_ascii_font): Fix arg declaration.
21777         * coding.c (coding_inherit_eol_type)
21778         (Fset_terminal_coding_system_internal)
21779         (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21781 2008-02-01  Kenichi Handa  <handa@m17n.org>
21783         * coding.c (decode_coding_charset, encode_coding_charset): Handle
21784         multiple charsets correctly.
21786 2008-02-01  Kenichi Handa  <handa@m17n.org>
21788         * search.c (boyer_moore): Fix handling of multibyte character
21789         translation.
21791         * xdisp.c (display_mode_element): When the variable `elt' is
21792         changed, update `this' and `lisp_string'.
21794 2008-02-01  Kenichi Handa  <handa@m17n.org>
21796         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21798         * callproc.c (Fcall_process): Be sure to give the current buffer
21799         to decode_coding_c_string.  Update PT and PT_BYTE after the insertion.
21801         * charset.c (struct charset_map_entries): New struct.
21802         (load_charset_map): Rename from parse_charset_map.  New args
21803         entries and n_entries.  Change caller.
21804         (load_charset_map_from_file): Rename from load_charset_map.
21805         Change caller.  New arg control_flag.  Call load_charset_map at
21806         the tail.
21807         (load_charset_map_from_vector): New function.
21808         (Fdefine_charset_internal): Setup charset.compact_codes_p.
21809         (encode_char): If the charset is compact, change a character index
21810         to a code point.
21812         * coding.c (coding_alloc_by_making_gap): Check the case that the
21813         source and destination are the same correctly.
21814         (decode_coding_raw_text): Set coding->consumed_char and
21815         coding->consumed to 0.
21816         (produce_chars): If coding->chars_at_source is nonzero, update
21817         coding->consumed_char and coding->consumed before calling
21818         alloc_destination.
21819         (Fdefine_coding_system_alias): Register ALIAS in
21820         Vcoding_system_alist.
21821         (syms_of_coding): Define `no-conversion' coding system at the tail.
21823         * fileio.c (Finsert_file_contents): Set coding_system instead of
21824         val.  If the current buffer is multibyte, always call
21825         decode_coding_gap.
21827         * xfaces.c (try_font_list): Give higher priority to fontset's
21828         family than face's family.
21830 2008-02-01  Kenichi Handa  <handa@m17n.org>
21832         * callproc.c (Fcall_process): Be sure to give the current buffer
21833         to decode_coding_c_string.
21835         * xfaces.c (try_font_list): Give a family specified in a fontset
21836         higher priority than a family specified in a face.
21838 2008-02-01  Kenichi Handa  <handa@m17n.org>
21840         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21841         Fix arguments to insert_from_buffer.
21843         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21845 2008-02-01  Kenichi Handa  <handa@m17n.org>
21847         * coding.c (produce_chars): Set the variable `multibytep' correctly.
21848         (decode_coding_gap): Set coding->dst_multibyte correctly.
21850 2008-02-01  Kenichi Handa  <handa@m17n.org>
21852         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21853         (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21854         (encode_coding_utf_16): Substitute coding->default_char for
21855         non-Unicode characters.
21856         (decode_coding): Don't call record_insert here.
21857         (setup_coding_system): Initialize `surrogate' of
21858         coding->spec.utf_16 to 0.
21859         (EMIT_ONE_BYTE): Fix for multibyte case.
21861         * insdel.c (insert_from_gap): Call record_insert.
21863 2008-02-01  Kenichi Handa  <handa@m17n.org>
21865         * casefiddle.c (casify_region): Fix multibyte case.
21867         * character.c (c_string_width): Add return type `int'.
21868         (char_string_with_unification): Delete arg ADVANCED.
21870         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21871         (CHAR_STRING): Adjust for the change of char_string_with_unification.
21872         (CHAR_STRING_ADVANCE): Make it do-while statement.
21874         * chartab.c (sub_char_table_set_range): Optimize for the case
21875         DEPTH == 3.  Add workaround code for a GCC optimization bug.
21877         * charset.c (parse_charset_map): Remove an unused variable.
21879         * coding.c: Delete unused variables.
21881         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21882         earlier.  If inserted is zero and the coding system doesn't
21883         require flushing, don't call decode_coding_gap.
21885         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21887 2008-02-01  Kenichi Handa  <handa@m17n.org>
21889         The following changes are for using Unicode as an internal
21890         character model, and use UTF-8 format for buffer/string
21891         representation.
21893         * .gdbinit (xchartable): Adjust for the change of char table structure.
21894         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21896         * Makefile.in (obj): Add character.o and chartab.o.
21897         (lisp, shortlisp): Remove utf-8.elc.
21898         (*.o): For many files, change dependency on charset.h to
21899         character.h, and add dependency on character.h.
21900         (character.o, chartab.o): New targets.
21902         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21903         * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21904         * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21905         of "charset.h".
21907         * dired.c, filelock.c: Include "character.h".
21909         * alloc.c: Include "character.h" instead of "charset.h".
21910         (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21911         (syms_of_alloc): Remove defsubr for Smake_char_table.
21913         * buffer.c: Include "character.h" instead of "charset.h", don't
21914         include "coding.h".
21915         (Fset_buffer_multibyte): Adjust for UTF-8.
21917         * buffer.h: EXFUN Fbuffer_live_p.
21919         * callproc.c: Include "character.h" instead of "charset.h".
21920         (Fcall_process): Big change for the new code-conversion APIs.
21922         * casetab.c: Include "character.h" instead of "charset.h".
21923         (set_canon, set_identity, shuffle): Adjust for the new
21924         map_char_table spec.
21925         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21926         accessing the char table structure.
21928         * chartab.c: New file that implements char table.
21930         * category.c: Include "character.h".
21931         (copy_category_entry): New function.
21932         (copy_category_table): Call map_char_table and copy_category_entry.
21933         (Fmake_category_table): Initialize all top-level slots.
21934         (char_category_set): New function.
21935         (modify_lower_category_set): Delete.
21936         (Fmodify_category_entry): Call char_table_ref_and_range.
21938         * category.h (CATEGORY_SET): Just call char_category_set.
21940         * ccl.c: Include "character.h".
21941         (Qccl, Qcclp): New variables.
21942         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21943         it's less than 256.
21944         (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21945         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21946         and DST type.
21947         (ccl_driver): Change types of argument, adjust code accordingly.
21948         (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21949         ccl_driver.
21950         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21952         * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21953         New members src_multibyte, dst_multibyte, consumed, and produced.
21954         (struct ccl_spec): Delete members decoder and encoder.  New member ccl.
21955         (CODING_SPEC_CCL_PROGRAM): New macro.
21956         (ccl_driver): Update prototype.
21957         (Qccl, Qcclp, Fccl_program_p): Extern them.
21958         (CHECK_CCL_PROGRAM): New macro.
21960         * character.c, character.h, chartab.c: New files.
21962         * charset.c: Mostly re-written.  Move character and multibyte sequence
21963         handling codes to character.c.
21965         * charset.h: Mostly re-written.  Move character and multibyte sequence
21966         handling codes to character.h.
21968         * coding.c, coding.h: Mostly re-written.
21970         * composite.c: Include "character.h" instead of "charset.h".
21971         (CHAR_WIDTH): Move to character.h.
21972         (HASH_KEY, HASH_VALUE): Delete.
21974         * composite.h (enum composition_method): Change order of enumeration
21975         symbols.
21977         * data.c: Include "character.h" instead of "charset.h".
21978         (Faref): Call CHAR_TABLE_REF for a char table.
21979         (Faset): Call CHAR_TABLE_SET for a char table.
21981         * dispextern.h (free_realized_face, check_face_attribytes)
21982         (generate_ascii_font): Extern them.
21983         (free_realized_multibyte_face): Delete extern.
21985         * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21986         table structure.
21988         * editfns.c: Include "character.h" instead of "charset.h".
21989         (Fchar_to_string): Always call CHAR_STRING.
21991         * emacs.c (main): Call init_charset_once, init_charset,
21992         syms_of_chartab, and syms_of_character.
21994         * fileio.c: Include "character.h" instead of "charset.h".
21995         (Finsert_file_contents): Big change for the new code-conversion API.
21996         (choose_write_coding_system, Fwrite_region): Likewise.
21997         (build_annotations_2): Delete.
21998         (e_write): Big change for the new code-conversion API.
22000         * fns.c: Include "character.h" instead of "charset.h".
22001         (copy_sub_char_table): Move to chartab.c.
22002         (Fcopy_sequence): Call copy_char_table for a char table.
22003         (concat): Delete codes calling count_multibyte.
22004         (string_char_to_byte, string_byte_to_char): Adjust for the new
22005         multibyte form.
22006         (internal_equal): Adjust for the change of char table structure.
22007         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22008         (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22009         (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22010         (char_table_translate, optimize_sub_char_table)
22011         (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22012         chartab.c.
22013         (char_table_ref_and_index): Delete.
22014         (HASH_KEY, HASH_VALUE): Move to lisp.h.
22015         (Fmd5): Call preferred_coding_system instead of accessing
22016         Vcoding_category_list.  Adjust for the new code-conversion API.
22017         (syms_of_fns): Move defsubr for char table related functions to
22018         chartab.c.
22020         * fontset.c: Mostly re-written.
22022         * fontset.h (struct font_info): Change type of the member encoding_type.
22023         (enum FONT_SPEC_INDEX): New enum.
22024         (fontset_font_pattern, fs_load_font): Update prototype.
22025         (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22027         * indent.c: Include "character.h" instead of "charset.h".
22028         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22030         * insdel.c: Include "character.h" instead of "charset.h".
22031         (copy_text): Don't refer to Vnonascii_translation_table.
22032         (insert_from_gap): New function.
22034         * keyboard.c: Include "character.h" instead of "charset.h".
22035         (command_loop_1): Never call direct_output_forward_char before
22036         a non-ASCII character.
22037         (read_char): If Vkeyboard_translate_table is a char table, always
22038         translate a character.
22040         * keymap.c: Include "character.h".
22041         (store_in_keymap): Handle the case that IDX is a cons.
22042         (Fdefine_key): Handle the case that KEY is a cons and the car part
22043         is also a cons (range).
22044         (push_key_description): Adjust for the new character code.
22045         (describe_vector): Call describe_char_table for a char table.
22046         (describe_char_table): New function.
22048         * keymap.h (describe_char_table): Extern it.
22050         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22051         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22052         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22053         (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22054         Delete.
22055         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22056         structure.
22057         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22058         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22059         (CHARTAB_SIZE_BITS_3): New macros.
22060         (chartab_size): Extern it.
22061         (struct Lisp_Char_Table): Re-design.
22062         (struct Lisp_Sub_Char_Table): New structure.
22063         (HASH_KEY, HASH_VALUE): Move from fns.c.
22064         (CHARACTERBITS): Define as 22.
22065         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22066         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22067         (GC_SUB_CHAR_TABLE_P): New macro.
22068         (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22069         (code_convert_string_norecord): Deleted extern.
22070         (init_character_once, syms_of_character, init_charset)
22071         (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22073         * lread.c: Include "character.h".
22074         (read_multibyte): New arg NBYTES.
22075         (read_escape): Change the meaning of returned *BYTEREP.
22076         (to_multibyte): Delete.
22077         (read1): Adjust the handling of char table and string.
22079         * print.c: Include "character.h" instead of "charset.h".
22080         (print_string): Convert 8-bit raw bytes to octal form by
22081         string_escape_byte8.
22082         (print_object): Adjust for the new multibyte form.  Print 8-bit
22083         raw bytes always in octal form.  Handle sub char table correctly.
22085         * process.c: Include "character.h" instead of "charset.h".
22086         (read_process_output, send_process): Adjust for the new
22087         code-conversion API.
22089         * puresize.h (BASE_PURESIZE): Increase.
22091         * regex.c: Include "character.h" instead of "charset.h".
22092         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22093         (regex_compile): Accept a range whose starting and ending
22094         character have different leading bytes.
22095         (analyse_first): Adjust for the above change.
22097         * search.c: Include "character.h" instead of "charset.h".
22098         (search_buffer, boyer_moore): Adjust for the new multibyte form.
22099         (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22101         * syntax.c: Include "character.h" instead of "charset.h".
22102         (syntax_parent_lookup): Delete.
22103         (Fmodify_syntax_entry): Accept a cons as CHAR.
22104         (skip_chars): Adjust for the new multibyte form.
22105         (init_syntax_once): Call char_table_set_range instead of directly
22106         accessing the structure of a char table.
22108         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22109         (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22110         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22111         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22113         * term.c: Include "buffer.h" and "character.h".
22114         (encode_terminal_code, write_glyphs): Adjust for the new
22115         code-conversion API.
22116         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22118         * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22120         * xdisp.c: Include "character.h".
22121         (get_next_display_element): Adjust for the new multibyte form.
22122         (disp_char_vector): Adjust for the new char table structure.
22123         (decode_mode_spec_coding): Adjust for the new structure of
22124         coding system.
22125         (decode_mode_spec): Adjust for the new code-conversion API.
22127         * xfaces.c: Include "character.h" instead of "charset.h".
22128         (load_face_font): Adjust for the change of choose_face_font and
22129         FS_LOAD_FONT.
22130         (generate_ascii_font): New function.
22131         (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22132         (set_font_frame_param): Adjust for the change of choose_face_font.
22133         (free_realized_face): Make it public.
22134         (free_realized_faces_for_fontset): Rename from
22135         free_realized_multibyte_face.  Free also faces realized for ASCII.
22136         (choose_face_font): Change arguments.  Adjust for the change of
22137         fontset_font_pattern and FS_LOAD_FONT.
22139         * xfns.c: Include "character.h".
22140         (x_encode_text): Adjust for the new code-conversion API.
22142         * xselect.c: Don't include "charset.h".
22143         (selection_data_to_lisp_data): Adjust for the new code conversion API.
22145         * xterm.c: Include "character.h".
22146         (x_encode_char): New argument CHARSET.  Change caller.
22147         (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22148         Call ENCODE_CHAR instead of SPLIT_CHAR.
22149         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22150         CHAR_WIDTH instead of CHARSET_WIDTH.
22151         (XTread_socket): Adjust for the new code-conversion API.
22152         (x_new_font): Adjust for the change of FS_LOAD_FONT.
22153         (x_load_font): Adjust for the change of struct font.
22155 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
22157         * xfaces.c (face_at_buffer_position): Remove unused vars.
22159 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
22161         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22162         Fix overflow checking.
22164 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
22166         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22167         Cancel previous change.
22169 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
22171         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22172         ccl->eight_bit_control.  Fix check for buffer overflow.
22173         (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22174         (ccl_driver): Initialize extra_bytes to 0.
22176 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
22178         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22179         return it ORed with ctrl_modifier.
22181 2008-01-29  Miles Bader  <miles@gnu.org>
22183         * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22185 2008-01-28  Jason Rumney  <jasonr@gnu.org>
22187         * w32.c (stat): Don't double check for networked drive.
22189 2008-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
22191         * window.c (run_window_configuration_change_hook): New function.
22192         Code extracted from set_window_buffer.  Set the selected frame.
22193         (set_window_buffer): Use it.
22194         * window.h (run_window_configuration_change_hook): Declare.
22195         * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22197         * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22199 2008-01-27  Dan Nicolaescu  <dann@ics.uci.edu>
22201         * Makefile.in: Remove references to unused macros.
22203 2008-01-26  Eli Zaretskii  <eliz@gnu.org>
22205         * w32.c (g_b_init_get_sid_sub_authority)
22206         (g_b_init_get_sid_sub_authority_count): New static variables.
22207         (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22208         (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22209         (init_user_info): Use them to retrieve uid and gid.
22210         Use 500/513, the Windows defaults, as Administrator's uid/gid.
22211         (fstat): Use pw_uid and pw_gid from the_passwd structure for
22212         st_uid and st_gid of the file.
22214 2008-01-26  Jason Rumney  <jasonr@gnu.org>
22216         * w32.c (logon_network_drive): New function.
22217         (stat): Use it.
22219 2008-01-26  Chong Yidong  <cyd@stupidchicken.com>
22221         * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22222         invisible text covered with an ellipsis.
22224 2008-01-25  Richard Stallman  <rms@gnu.org>
22226         * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22227         jump back to beginning.  Move some other initializations after that.
22228         (Qwindow_text_change_functions, Vwindow_text_change_functions):
22229         New variables.
22230         (syms_of_xdisp): Init them.
22232         * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22234         * buffer.c (reset_buffer_local_variables):
22235         Implement `permanent-local-hook'.
22236         (Qpermanent_local_hook): New variable.
22237         (syms_of_buffer): Init and staticpro it.
22239 2008-01-25  Michael Albinus  <michael.albinus@gmx.de>
22241         * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22243 2008-01-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
22245         * fns.c (Fclrhash): Return TABLE.
22247 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22249         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22250         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22251         is set even without positional changes.
22252         (x_scroll_bar_clear): Set bar->redraw_needed_p.
22254         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22256 2008-01-23  Jason Rumney  <jasonr@gnu.org>
22258         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22260         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22261         the unicode range available in MULE by locale-coding-system.
22262         Improve dbcs lead byte detection.  Set event timestamp and modifiers
22263         earlier.
22265 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22267         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22268         [MAC_OSX] (init_mac_osx_environment): Initialize it.
22269         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22270         when used on child processes.
22272 2008-01-21  Michael Albinus  <michael.albinus@gmx.de>
22274         * dbusbind.c (Fdbus_method_return_internal): Rename from
22275         Fdbus_method_return.
22276         (Fdbus_unregister_object): Move to dbus.el.
22277         (Fdbus_call_method, Fdbus_method_return_internal)
22278         (Fdbus_send_signal): Improve debug messages.
22280 2008-01-20  Martin Rudalics  <rudalics@gmx.at>
22282         * undo.c (undo_inhibit_record_point): New variable.
22283         (syms_of_undo): Initialize it.
22284         (record_point): Don't record point when undo_inhibit_record_point
22285         is set.
22287 2008-01-19  Stefan Monnier  <monnier@iro.umontreal.ca>
22289         * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22291         * xdisp.c (Qauto_hscroll_mode): New var.
22292         (syms_of_xdisp): Initialize it.
22293         (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22294         window's buffer.
22295         (hscroll_windows): Don't check automatic_hscrolling_p here.
22297         * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22298         vscroll if we're setting window-buffer to the value it already has.
22300 2008-01-18  Dan Nicolaescu  <dann@ics.uci.edu>
22302         * m/intel386.h: Remove references to XENIX.
22304 2008-01-17  Andreas Schwab  <schwab@suse.de>
22306         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22307         instead of HAVE_X86_64_LIB64_DIR.
22308         * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22310 2008-01-17  Glenn Morris  <rgm@gnu.org>
22312         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22313         to HAVE_X86_64_LIB64_DIR.
22315 2008-01-16  Dan Nicolaescu  <dann@ics.uci.edu>
22317         * s/irix3-3.h:
22318         * s/irix4-0.h:
22319         * s/386-ix.h:
22320         * s/domain.h:
22321         * s/hpux9-x11r4.h:
22322         * s/hpux9shxr4.h: Remove files for systems no longer supported.
22324         * sysdep.c: Remove code containing references to symbols defined
22325         by unsupported systems.
22327 2008-01-16  Glenn Morris  <rgm@gnu.org>
22329         * coding.c (select-safe-coding-system-function): Doc fix.
22331 2008-01-15  Glenn Morris  <rgm@gnu.org>
22333         * config.in: Revert 2008-01-13 change: this is a generated file.
22335 2008-01-13  Tom Tromey  <tromey@redhat.com>
22337         * lisp.h: Fix typo.
22339 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
22341         * m/sequent-ptx.h:
22342         * m/sequent.h:
22343         * s/ptx.h:
22344         * s/ptx4-2.h:
22345         * s/ptx4.h: Remove files for systems no longer supported.
22347         * callproc.c (Fcall_process): Fix previous change.
22349 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
22351         * unexsunos4.c: Remove file, system not supported anymore.
22353         * m/mips.h:
22354         * m/intel386.h:
22355         * callproc.c:
22356         * config.in:
22357         * ecrt0.c:
22358         * emacs.c:
22359         * fileio.c:
22360         * frame.c:
22361         * getpagesize.h:
22362         * keyboard.c:
22363         * lread.c:
22364         * process.c:
22365         * puresize.h:
22366         * sysdep.c:
22367         * systty.h:
22368         * syswait.h:
22369         * unexec.c:
22370         * xdisp.c:
22371         * alloc.c: Remove code containing references to symbols defined by
22372         unsupported systems.
22374 2008-01-11  Kenichi Handa  <handa@ni.aist.go.jp>
22376         * coding.c (detect_coding_mask): Fix previous change.
22378 2008-01-09  Kenichi Handa  <handa@ni.aist.go.jp>
22380         * coding.c (detect_coding_iso2022): New arg
22381         latin_extra_code_state.  Allow Latin extra codes only
22382         when *latin_extra_code_state is nonzero.
22383         (detect_coding_mask): If there is a NULL byte, detect the encoding
22384         as UTF-16 or binary.  If Latin extra codes exist, detect the
22385         encoding as ISO-2022 only when there's no other proper encoding is
22386         found.
22388 2008-01-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22390         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22391         #ifdef MAC_OS.
22393 2008-01-08  Richard Stallman  <rms@gnu.org>
22395         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22397 2008-01-06  Nick Roberts  <nickrob@snap.net.nz>
22399         * keyboard.c (parse_menu_item): Don't enclose key bindings on
22400         menu bar in parentheses.
22402 2008-01-06  Dan Nicolaescu  <dann@ics.uci.edu>
22404         * m/7300.h:
22405         * m/acorn.h:
22406         * m/alliant-2800.h:
22407         * m/alliant.h:
22408         * m/alliant1.h:
22409         * m/alliant4.h:
22410         * m/altos.h:
22411         * m/amdahl.h:
22412         * m/apollo.h:
22413         * m/att3b.h:
22414         * m/aviion-intel.h:
22415         * m/aviion.h:
22416         * m/celerity.h:
22417         * m/clipper.h:
22418         * m/cnvrgnt.h:
22419         * m/convex.h:
22420         * m/cydra5.h:
22421         * m/delta88k.h:
22422         * m/dpx2.h:
22423         * m/dual.h:
22424         * m/elxsi.h:
22425         * m/f301.h:
22426         * m/gould-np1.h:
22427         * m/gould.h:
22428         * m/i860.h:
22429         * m/ibmps2-aix.h:
22430         * m/ibmrt-aix.h:
22431         * m/ibmrt.h:
22432         * m/irist.h:
22433         * m/is386.h:
22434         * m/isi-ov.h:
22435         * m/mega68.h:
22436         * m/mg1.h:
22437         * m/news-r6.h:
22438         * m/news-risc.h:
22439         * m/news.h:
22440         * m/nh3000.h:
22441         * m/nh4000.h:
22442         * m/ns16000.h:
22443         * m/ns32000.h:
22444         * m/nu.h:
22445         * m/orion.h:
22446         * m/orion105.h:
22447         * m/paragon.h:
22448         * m/pfa50.h:
22449         * m/plexus.h:
22450         * m/pyramid.h:
22451         * m/pyrmips.h:
22452         * m/sh3el.h:
22453         * m/sps7.h:
22454         * m/sr2k.h:
22455         * m/stride.h:
22456         * m/sun1.h:
22457         * m/sun2.h:
22458         * m/sun3-68881.h:
22459         * m/sun3-fpa.h:
22460         * m/sun3-soft.h:
22461         * m/sun3.h:
22462         * m/sun386.h:
22463         * m/symmetry.h:
22464         * m/tad68k.h:
22465         * m/tahoe.h:
22466         * m/targon31.h:
22467         * m/tek4300.h:
22468         * m/tekxd88.h:
22469         * m/tower32.h:
22470         * m/tower32v3.h:
22471         * m/ustation.h:
22472         * m/wicat.h:
22473         * m/xps100.h:
22474         * s/cxux.h:
22475         * s/cxux7.h:
22476         * s/dgux.h:
22477         * s/dgux4.h:
22478         * s/dgux5-4-3.h:
22479         * s/dgux5-4r2.h:
22480         * s/esix.h:
22481         * s/esix5r4.h:
22482         * s/hiuxmpp.h:
22483         * s/hiuxwe2.h:
22484         * s/iris3-5.h:
22485         * s/iris3-6.h:
22486         * s/isc2-2.h:
22487         * s/isc3-0.h:
22488         * s/isc4-0.h:
22489         * s/isc4-1.h:
22490         * s/newsos5.h:
22491         * s/newsos6.h:
22492         * s/osf1.h:
22493         * s/osf5-0.h:
22494         * s/riscix1-1.h:
22495         * s/riscix12.h:
22496         * s/sco4.h:
22497         * s/sco5.h:
22498         * s/sunos4-0.h:
22499         * s/sunos4-1.h:
22500         * s/sunos413.h:
22501         * s/sunos4shr.h:
22502         * s/umax.h:
22503         * s/unipl5-2.h:
22504         * s/xenix.h:
22505         * cxux-crt0.s:
22506         * unexapollo.c:
22507         * unexconvex.c:
22508         * unexenix.c:
22509         * unexsni.c: Remove files for systems no longer supported.
22511         * m/intel386.h: Remove references to unsupported systems.
22513         * w32.c (get_emacs_configuration): Remove reference to i860.
22515         * sysdep.c: Remove dead code.
22517 2008-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
22519         * s/rtu.h:
22520         * m/masscomp.h: Remove files.  Platform is obsolete.
22522 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
22524         * dbusbind.c (Fdbus_method_return): New function.
22525         (xd_read_message): Add the serial number to the event.
22526         (Fdbus_register_method): Activate the function.
22528 2008-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
22530         * keyboard.c (read_key_sequence): Fix typo.
22532 2008-01-03  Michael Albinus  <michael.albinus@gmx.de>
22534         * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22535         (xd_signature, xd_append_arg): Handle element type detection for
22536         empty arrays.
22537         (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22538         SDATA () calls; this must be solved more general.
22539         (Fdbus_register_signal): Use SBYTES instead of strlen.
22541 2008-01-03  Magnus Henoch  <magnus@zemdatav>
22543         * dbusbind.c (xd_append_arg): Use unsigned char instead of
22544         unsigned int for byte values (necessary for big-endian platform).
22545         (Fdbus_call_method): Handle the case of no returned arguments.
22547 2007-12-31  Tom Tromey  <tromey@redhat.com>  (tiny change)
22549         * dbusbind.c (xd_read_message): Use non-static input_event struct.
22551 2007-12-31  Magnus Henoch  <mange@freemail.hu>
22553         * dbusbind.c (xd_signature): Signature of variant is just "v".
22555 2007-12-30  Michael Albinus  <michael.albinus@gmx.de>
22557         * dbusbind.c: Fix several errors and compiler warnings.
22558         Reported by Tom Tromey <tromey@redhat.com>.
22559         (XD_ERROR, XD_DEBUG_MESSAGE)
22560         (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22561         (xd_append_arg): Part for basic D-Bus types rewritten.
22562         (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22563         DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
22564         appropriate.
22565         (xd_read_message): Return Qnil.  Don't signal an error; it is not
22566         useful during event reading.
22567         (Fdbus_register_signal): Signal an error if the check for
22568         FUNCTIONP fails.
22569         (Fdbus_register_method): New function.  The implementation is not
22570         complete, the call of the function signals an error therefore.
22571         (Fdbus_unregister_object): New function, renamed from
22572         Fdbus_unregister_signal.  The initial check signals an error, if
22573         the object is not well formed.
22575 2007-12-30  Richard Stallman  <rms@gnu.org>
22577         * textprop.c (get_char_property_and_overlay):
22578         Signal error if POSITION is out of range in a buffer.
22580 2007-12-29  Martin Rudalics  <rudalics@gmx.at>
22582         * w32fns.c (Fx_create_frame): Make copy of frame parameters
22583         because the original parameters are in pure storage now.
22585 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22587         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22589 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
22591         * callint.c (syms_of_callint) <command-history>: Add reference to
22592         history-length in the doc string.
22594 2007-12-17  Jason Rumney  <jasonr@gnu.org>
22596         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22597         before passing as wParam.
22599 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
22601         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22602         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22603         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22604         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22605         as number.
22606         (Fdbus_call_method): Fix docstring.
22608 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
22610         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22611         New macros.
22612         (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22613         (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22614         Simplify.
22615         (xd_signature): New function.
22616         (xd_append_arg): Compute also signatures.  Major rewrite.
22617         (xd_retrieve_arg): Make debug messages friendly.
22618         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22619         Check for signatures of arguments.
22621 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
22623         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22624         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22625         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22626         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22627         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22628         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22629         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22630         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22631         (xd_retrieve_value): Remove.  Functionality included in ...
22632         (xd_append_arg): New function.
22633         (Fdbus_call_method, Fdbus_send_signal): Apply it.
22635 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
22637         * dbusbind.c (top): Include <stdio.h>.
22638         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22639         dbus_message_new_method_call and dbus_message_new_signal.
22640         (Fdbus_register_signal): Rename unique_name to uname.
22641         Check handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
22642         non-existing unique name.  Fix typos in matching rule.  Return an
22643         object which is useful in Fdbus_unregister_signal.
22644         (Fdbus_unregister_signal): Reimplementation, in order to remove
22645         only the corresponding entry.
22646         (Vdbus_registered_functions_table): Change the order of entries.
22647         Apply these changes in xd_read_message and Fdbus_register_signal.
22649 2007-12-16  Andreas Schwab  <schwab@suse.de>
22651         * fileio.c (Finsert_file_contents): Fix overflow check to not
22652         depend on undefined integer overflow.
22654 2007-12-14  Jason Rumney  <jasonr@gnu.org>
22656         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22657         for characters above 127.
22659 2007-12-13  Jason Rumney  <jasonr@gnu.org>
22661         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22662         before dereferencing array.
22663         (lookup_vk_code): Remove zero comparison.
22665 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
22667         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22668         (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22669         Use `unsigned int' instead of `uint'.
22670         (xd_read_message, Fdbus_register_signal): Split expressions into
22671         multiple lines before operators "&&" and "||", according to the
22672         GNU Coding Standards.
22674 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
22676         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22678 2007-12-12  Juri Linkov  <juri@jurta.org>
22680         * buffer.c (Frename_buffer): In interactive spec replace
22681         `read-buffer' with `read-string' that uses `buffer-name-history'
22682         as history, and the current buffer's name as default.
22684 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
22686         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22687         manipulating the backtrace manually.
22688         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22689         (struct backtrace, backtrace_list): Remove.
22690         (command_loop_1): Remove dead var `no_direct'.
22692         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22693         preserve non-built-in buffer-local variables.
22694         (Fkill_all_local_variables): Don't re-create&re-set permanent
22695         buffer-local variables.
22697 2007-12-09  Juri Linkov  <juri@jurta.org>
22699         * buffer.c (Frename_buffer): Change interactive spec from "s" to
22700         Lisp code that uses `read-buffer' with current buffer as default.
22702 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
22704         * dbusbind.c (xd_read_message): Generate an event for every
22705         registered handler.  There might be several handlers registered
22706         for the same signal.
22707         (Fdbus_register_signal): Don't overwrite a registration for the
22708         same signal.  Add a new registration if handlers are different.
22709         (Vdbus_registered_functions_table): Rework doc string.
22711 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
22713         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22714         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22715         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22716         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22717         Unify argument lists.
22718         (xd_read_message, Fdbus_register_signal): Reorder and extend event
22719         arguments and hash table keys.  Use unique name for service.
22720         (Fdbus_unregister_signal): Remove checks.
22721         (Vdbus_registered_functions_table): Fix doc string.
22723 2007-12-05  Magnus Henoch  <mange@freemail.hu>
22725         * process.c (make_process): Initialize pty_flag to 0.
22727 2007-12-05  Jason Rumney  <jasonr@gnu.org>
22729         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22730         specified XBMs.
22732 2007-12-05  Richard Stallman  <rms@gnu.org>
22734         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22736 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22738         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22739         New variable.
22740         (mac_try_close_socket) [MAC_OSX]: New function.
22741         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22742         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
22744         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22745         Use mac_try_close_socket.
22747 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22749         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
22750         reloc_base.
22751         (copy_dysymtab): Compute relocation base here.
22752         (rebase_reloc_address) [__ppc64__]: New function.
22753         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22754         changed.
22756 2007-12-05  Jason Rumney  <jasonr@gnu.org>
22758         * w32proc.c (sys_spawnve): Quote args with wildcards.
22760 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22762         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22763         __objc_* sections.
22764         (unrelocate) [_LP64]: Set relocation base to address of data segment.
22766 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
22768         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22769         Move check for Vdbus_registered_functions_table to
22770         xd_read_queued_messages.
22771         (xd_read_queued_messages): Protect xd_read_message calls by
22772         internal_condition_case_1.
22774 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
22776         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22777         Qdbus_system_bus and Qdbus_session_bus, respectively.
22778         (Vdbus_intern_symbols): Remove.
22779         (Vdbus_registered_functions_table): New hash table.
22780         (XD_SYMBOL_INTERN_SYMBOL): Remove.
22781         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22782         Rewrite in order to manage registered functions by hash table
22783         Vdbus_registered_functions_table.
22785 2007-12-03  Jan Djärv  <jan.h.d@swipnet.se>
22787         * xterm.c: Update URL to Window Manager Specification in comment.
22789 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
22791         * config.in (HAVE_DBUS): Add.
22793         * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22794         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22795         (obj): Add $(DBUS_OBJ).
22796         (LIBES): Add $(DBUS_LIBS).
22797         (dbusbind.o): New target.
22799         * dbusbind.c: New file.
22801         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22803         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22804         (Qdbus_event): New Lisp symbol.
22805         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22806         (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
22807         (keys_of_keyboard): Define dbus-event.
22809         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22811 2007-12-01  Richard Stallman  <rms@gnu.org>
22813         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22815 2007-11-30  Jason Rumney  <jasonr@gnu.org>
22817         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22818         (w32con_reset_terminal_modes): Clear screen buffer.
22819         (w32_face_attributes): Don't use color indexes that are out of range.
22820         Only reverse the default colors.
22822         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22823         WINDOWSNT.
22825         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22827 2007-11-29  Jason Rumney  <jasonr@gnu.org>
22829         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22830         (w32_face_attributes): Use Vtty_defined_color_alist to determine
22831         if the terminal colors are initialized.
22832         (unspecified_fg, unspecified_bg): Remove unused declarations.
22834 2007-11-29  Andreas Schwab  <schwab@suse.de>
22836         * keyboard.c (apply_modifiers): Fix typo.
22838 2007-11-29  Richard Stallman  <rms@gnu.org>
22840         * keymap.c (Fcurrent_local_map): Doc fix.
22842 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22844         * s/gnu-kfreebsd.h: New file.
22846 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
22848         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22849         Don't cast redundantly.
22851         * keyboard.c (KEY_TO_CHAR): New macro.
22852         (parse_modifiers, apply_modifiers): Accept integer arguments.
22853         (read_key_sequence): Use them to unify the "shift->unshift" mapping
22854         for chars and symbol keys.
22855         After doing such remapping, apply function-key-map again.
22857 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
22859         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22860         compiled anymore.
22862 2007-11-26  Andreas Schwab  <schwab@suse.de>
22864         * process.c (list_processes_1): Fix indentation level of the
22865         command column.
22867 2007-11-23  Andreas Schwab  <schwab@suse.de>
22869         * editfns.c (Fformat): Handle %c specially since it requires the
22870         argument to be of type int.
22872 2007-11-23  Markus Triska  <markus.triska@gmx.at>
22874         * emacs.c (main): Call init_editfns before init_process, since
22875         init_process sets Vprocess_connection_type depending on OS release.
22877 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
22879         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22880         (find_symbol_value): Use do_symval_forwarding.
22882         * data.c (set_internal): Set the value in the `cons-cell' (for
22883         Buffer_Local_values) not only for frame-local variables.
22885 2007-11-22  Andreas Schwab  <schwab@suse.de>
22887         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22888         values to sprintf.
22889         * keymap.c (Fsingle_key_description): Likewise.
22890         * print.c (print_object): Likewise.
22892 2007-11-22  Jan Djärv  <jan.h.d@swipnet.se>
22894         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22895         file for image is nil.
22897 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
22899         * term.c: Include stdarg.h.
22900         (fatal): Implement using varargs.
22901         * lisp.h (fatal): Add argument types.  (Restore 2005-09-30 change).
22903 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
22905         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22906         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22907         Update call to buffer_slot_type_mismatch.
22908         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22909         (buffer_slot_type_mismatch): Update.
22910         * buffer.c (buffer_local_types): Remove.
22911         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22912         (defvar_per_buffer): Set the type in the buffer_objfwd.
22914 2007-11-21  Jason Rumney  <jasonr@gnu.org>
22916         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22917         CreateFileMapping returns NULL on failure.
22919 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
22921         * search.c (Fset_match_data): Remove the `evaporate' feature.
22922         (unwind_set_match_data): Don't use the `evaporate' feature.
22924 2007-11-21  Jason Rumney  <jasonr@gnu.org>
22926         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22928         * w32console.c (w32con_write_glyphs): Remove unused variables.
22930 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
22932         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22934         * s/darwin.h (MULTI_KBOARD): Remove.
22936         * macfns.c (x_create_tip_frame, Fx_create_frame)
22937         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22939 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
22941         * buffer.c (Fbuffer_local_value): Remove redundant test.
22942         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22943         than in `current-buffer' to match the comment.
22944         Do the swap using swap_in_global_binding.
22946         * data.c (store_symval_forwarding, set_internal):
22947         * eval.c (specbind): Remove dead code.
22949         * coding.c (detect_coding, Fupdate_coding_systems_internal):
22950         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22951         Since we do not want to see internal Lisp_*fwd objects here.
22953 2007-11-18  Jan Djärv  <jan.h.d@swipnet.se>
22955         * sysdep.c (init_system_name): Use getaddrinfo if available.
22957         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22958         (x_scroll_bar_note_movement): start, end, with, height in struct
22959         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22961 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
22963         * puresize.h (BASE_PURESIZE): Increase to 1190000.
22965 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
22967         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22968         This undoes Richard's change of 14-Oct-2002.
22970         * alloc.c (allocate_other_vector):
22971         * lisp.h (allocate_other_vector): Remove.
22973         * window.c (struct save_window_data): Move non-lisp data to the end
22974         and make it `int' rather than Lisp_Object.
22975         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22976         Done wrap/unwrap integer values.
22977         (Fset_window_configuration, compare_window_configurations):
22978         Update use of fields to their new types.
22980         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22981         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
22982         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22983         (SET_SCROLL_BAR_X_WINDOW): Remove.
22984         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22985         Access the new x_window field directly.
22986         * xterm.c (x_scroll_bar_create): Use a pseudovector.
22987         Don't wrap/unwrap integers into Lisp_Objects.
22988         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22989         (x_scroll_bar_report_motion):
22990         Don't wrap/unwrap integers into Lisp_Objects.
22991         (x_term_init): Use SDATA.
22992         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22993         (x_scroll_bar_set_handle, x_scroll_bar_remove)
22994         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22995         (x_scroll_bar_report_motion, x_scroll_bar_clear):
22996         * xfns.c (x_set_background_color):
22997         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22998         Access the new x_window field directly.
23000         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23001         (allocate_pseudovector): Make non-static.
23003         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23004         (allocate_pseudovector): Declare.
23005         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23007 2007-11-15  Andreas Schwab  <schwab@suse.de>
23009         * editfns.c (Fformat): Correctly format EMACS_INT values.
23010         Also take precision into account when formatting an integer.
23012         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23014 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
23016         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23017         (syms_of_keyboard): Defsubr it.
23019         * data.c (swap_in_global_binding): Fix longstanding bug where
23020         store_symval_forwarding was not called with the right second argument,
23021         thus causing objfwd-ing from being dropped.
23023 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
23025         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23026         (Fx_display_pixel_height, Fx_display_planes)
23027         (Fx_display_color_cells, Fx_server_max_request_size)
23028         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23029         (Fx_display_visual_class, Fx_display_save_under):
23030         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23031         (Fx_display_pixel_height, Fx_display_planes)
23032         (Fx_display_color_cells, Fx_server_max_request_size)
23033         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23034         (Fx_display_mm_height, Fx_display_mm_width)
23035         (Fx_display_backing_store, Fx_display_visual_class)
23036         (Fw32_select_font, Fx_display_save_under):
23037         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23038         (Fx_display_pixel_height, Fx_display_planes)
23039         (Fx_display_color_cells, Fx_server_max_request_size)
23040         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23041         (Fx_display_save_under): Fix typos in docstrings.
23043 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
23045         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23046         corresponding to deleted entries; they are an implementation detail.
23047         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23048         Remove variables.
23049         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23050         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23051         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23052         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23053         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23054         (Fw32_define_rgb_color, Fw32_load_color_file)
23055         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23056         Fix typos in docstrings.
23057         (Fx_server_version): Reflow docstring.
23058         (Fw32_shell_execute): Doc fixes.
23060 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
23062         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23063         if w32_parse_hot_key returned nil.
23065 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
23067         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23069 2007-11-09  Jason Rumney  <jasonr@gnu.org>
23071         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23073         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23075         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23076         Remove W32_SCROLL_BAR_CLICK_EVENT.
23078         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23079         Add MULTIMEDIA_KEY_EVENT.
23081         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23082         (lispy_multimedia_keys) [WINDOWSNT]: New array.
23083         (make_lispy_event) [WINDOWSNT]: Use it to translate
23084         MULTIMEDIA_KEY_EVENT.
23086         * w32term.h (WM_APPCOMMAND): Define if not already.
23087         (GET_APPCOMMAND_LPARAM): Likewise.
23089         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23090         WM_APPCOMMAND.
23092         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23093         (syms_of_w32fns): Export and initialize it.
23094         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23096 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
23098         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23099         twice.
23101         * xdisp.c (handle_face_prop): Fix last change.
23103 2007-11-09  Richard Stallman  <rms@gnu.org>
23105         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23106         not just for after-strings and before-strings.
23107         Call face_for_overlay_string and pass the overlay to it.
23108         (handle_display_prop): Determine whether property came from an overlay.
23109         Pass OVERLAY arg to handle_single_display_spec.
23110         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23111         (load_overlay_strings): Fill in it->string_overlays.
23112         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23114         * xfaces.c (face_for_overlay_string): Function renamed from
23115         face_at_buffer_position_no_overlays, and add arg OVERLAY.
23117         * dispextern.h (struct it): New elt string_overlays.
23118         New elt from_overlay, also in stack.
23119         Rearrange a few elements.
23120         (face_for_overlay_string): Decl renamed from
23121         face_at_buffer_position_no_overlays, and add argument.
23123 2007-11-09  Richard Stallman  <rms@gnu.org>
23125         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23126         to get the base face for an overlay string.
23128         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23130         * xfaces.c (face_at_buffer_position_no_overlays): New function.
23132         * xdisp.c (handle_stop): Move some code out of loop.
23134 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
23136         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23137         Fix conversion from Lisp object to ATSUFontID.
23139 2007-11-09  Jason Rumney  <jasonr@gnu.org>
23141         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23143 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
23145         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23146         Don't assume regions are aligned to page boundary.
23147         (print_load_command_name): Add LC_UUID if defined.
23149 2007-11-09  Richard Stallman  <rms@gnu.org>
23151         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23153 2007-11-07  Jason Rumney  <jasonr@gnu.org>
23155         * s/windows95.h: Remove.
23157 2007-11-06  Jan Djärv  <jan.h.d@swipnet.se>
23159         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23160         abort with a message on unhandled store_type values.
23162 2007-11-01  Jan Djärv  <jan.h.d@swipnet.se>
23164         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23165         Remove HAVE_X11R5 and HAVE_X11R4.
23167 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
23169         * Makefile.in: Remove references to sunfns.c and sunfns.o.
23171 2007-11-01  Johan Bockgård  <bojohan@gnu.org>
23173         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23174         Don't set s->stippled_p here, since it has already been set by
23175         x_set_glyph_string_gc from x_draw_glyph_string.
23177 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
23179         * sunfns.c: Remove file.
23181         * m/sun386.h:
23182         * m/sun2.h:
23183         * m/sparc.h: Remove Sun windows code.
23185 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
23187         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23188         (init_keyboard): Set current_kboard's window-system to nil.
23189         (tty_read_avail_input): Typo.
23190         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23192 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
23194         * s/usg5-4.h:
23195         * s/usg5-3.h:
23196         * s/ptx.h:
23197         * m/is386.h:
23198         * m/ibmps2-aix.h:
23199         * Makefile.in: Remove all mentions of X10.
23201         * dispnew.c (syms_of_display): Don't mention version 10.
23203 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
23205         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23206         ($(BLD)/abbrev.$(O)): Remove.
23208 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
23210         Rewrite abbrev.c in Elisp.
23211         * image.c (Qcount): Don't declare as extern.
23212         (syms_of_image): Initialize and staticpro `Qcount'.
23213         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23214         * emacs.c (main): Don't call syms_of_abbrev.
23215         * Makefile.in (obj): Remove abbrev.o.
23216         (abbrev.o): Remove.
23217         * abbrev.c: Remove.
23219 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
23221         * window.c (window_min_size_2): Don't count header-line.
23223 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
23225         * frame.h (struct frame): Move all bit fields after the first bit
23226         field to take advantage of the available space.  Group all the
23227         chars together to reduce wasted space due to padding.
23229 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
23231         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23233         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23234         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23235         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23236         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23237         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23238         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23239         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23240         (last_marked, mark_object_loop_halt): Make static.
23242         * frame.c (syms_of_frame) <delete-frame-functions>:
23243         Fix typo in docstring.
23245 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
23247         * w32.c (init_environment): Fix tiny memory leak.
23248         (w32_get_resource): Remove unused variable `ok'.
23250 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
23252         Make `window-system' into a keyboard-local variable (rather than
23253         frame-local as done originally by multi-tty).
23255         * keyboard.h (struct kboard): Add Vwindow_system.
23256         * keyboard.c (init_kboard): Set a default for Vwindow_system.
23257         (mark_kboards): Mark Vwindow_system.
23259         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23260         (init_display): Don't set the obsolete `window-system' frame-param.
23262         * xterm.c (x_term_init):
23263         * w32term.c (w32_create_terminal):
23264         * term.c (init_tty): Set Vwindow_system.
23265         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23266         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
23268         * xfns.c (Fx_create_frame, x_create_tip_frame):
23269         * w32fns.c (Fx_create_frame, x_create_tip_frame):
23270         * macfns.c (Fx_create_frame):
23271         Don't set the obsolete `window-system' frame-param.
23273         * frame.h (Qwindow_system): Remove.
23274         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
23275         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23277 2007-10-24  Richard Stallman  <rms@gnu.org>
23279         * frame.c (x_figure_window_size): For fullscreen case,
23280         set USPosition | PPosition without clobbering rest of window_prompting.
23282         * keyboard.c (Fcurrent_idle_time): Doc fix.
23284         * print.c (Fwith_output_to_temp_buffer): Doc fix.
23286 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
23288         * process.c (unwind_request_sigio): Only define if __ultrix__.
23290         * callproc.c (child_setup): Remove spurious *.
23292         * lisp.h (Fget_text_property): Declare.
23293         (have_menus_p): Declare it here rather than in sys-dep header files.
23294         * macterm.h (have_menus_p):
23295         * msdos.h (have_menus_p):
23296         * xterm.h (have_menus_p): Remove.
23298         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23299         (Fmake_variable_frame_local): Just check the variable's const-ness
23300         rather than checking nil or t.
23302 2007-10-22  Jason Rumney  <jasonr@gnu.org>
23304         * w32fns.c: Include math.h.
23305         (w32_abort): Declaration moved to nt/config.nt.
23307         * s/ms-w32.h (HAVE_STDLIB_H): Define.
23308         (abort): Redefinition moved to nt/config.nt.
23310         * m/windowsnt.h: Remove.
23312 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
23314         * emacs.c (Fdump_emacs): Fix typo in message.
23315         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23316         <installation-directory>: Reflow docstring.
23318 2007-10-22  Juri Linkov  <juri@jurta.org>
23320         * minibuf.c: Allow minibuffer default to be a list of default values.
23321         With empty input use the first element of this list as returned default.
23322         (string_to_object)
23323         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23324         (read_minibuf): If defalt is cons, set histstring to its car.
23325         (Fread_string): If default_value is cons, set val to its car.
23326         (Fread_buffer): If def is cons, use its car.
23327         (Fcompleting_read): If defalt is cons, set val to its car.
23329 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
23331         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23333 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
23335         * doc.c (Fdocumentation): Check for advice in all cases.
23337 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
23339         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23341 2007-10-19  Richard Stallman  <rms@gnu.org>
23343         * doc.c (Fdocumentation): Check for and handle an advised function.
23345 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
23347         * process.c (Fset_process_filter): Doc fix.
23349 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
23351         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23352         which caused key-translation-map to applied repeatedly (thus breaking
23353         double-mode).
23355 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
23357         * xselect.c (x_own_selection, x_handle_selection_clear)
23358         (x_clear_frame_selections):
23359         * w32menu.c (list_of_panes, list_of_items):
23360         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23361         * textprop.c (validate_plist, interval_has_all_properties)
23362         (interval_has_some_properties, interval_has_some_properties_list)
23363         (add_properties, text_property_list):
23364         * process.c (Fget_buffer_process, list_processes_1, status_notify):
23365         * minibuf.c (Fassoc_string):
23366         * macselect.c (x_own_selection, x_clear_frame_selections)
23367         (Fx_disown_selection_internal):
23368         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23369         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23371 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
23373         * process.c: Link to libs for calling res_init() if available.
23374         (Fmake_network_process): Call res_init() before getaddrinfo or
23375         gethostbyname, if possible.
23377 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
23379         * lread.c (read1): Set pvectype for char_tables.
23381         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23382         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23383         Add type checks.
23384         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23386         * alloc.c (free_misc): Use XMISCTYPE.
23387         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23389 2007-10-17  Glenn Morris  <rgm@gnu.org>
23391         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23392         (syms_of_minibuf): Add Qcompletion_ignore_case.
23393         * dired.c (Qcompletion_ignore_case): Change to external.
23394         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23395         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23396         (Fread_file_name): Use it rather than intern'ing.
23398         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23399         (Fread_coding_system): Ignore case of user input.
23401 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
23403         * xdisp.c (handle_display_prop): Ignore display specs after
23404         replacing one when string text is being replaced.
23405         (handle_single_display_spec): Pretend as if characters with display
23406         property haven't been consumed only when buffer text is being replaced.
23408 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
23410         * xfns.c (Fx_create_frame, Fx_display_list):
23411         * window.c (window_fixed_size_p, enlarge_window)
23412         (shrink_window_lowest_first):
23413         * macterm.c (init_font_name_table):
23414         * macfns.c (Fx_create_frame, Fx_display_list):
23415         * lread.c (close_load_descs):
23416         * keyboard.c (read_char_x_menu_prompt):
23417         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23418         * coding.c (code_convert_region_unwind): Test the type of an object
23419         rather than just !NILP before extracting data from it.
23421         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23423         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23424         (XMISCANY): New macro.
23425         (XMISCTYPE): Use it.
23426         (struct Lisp_Misc_Any): New type.
23427         (union Lisp_Misc): Use it.
23428         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23429         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23430         (find_symbol_value, set_internal, default_value, Fset_default)
23431         (Fmake_variable_buffer_local, Fmake_local_variable)
23432         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23433         (Flocal_variable_if_set_p, Fvariable_binding_locus):
23434         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23435         * alloc.c (allocate_buffer): Set the size and tag.
23436         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23437         Use XMISCANY.
23438         (die): Follow the GNU convention for error messages.
23439         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23440         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23441         tag any more.
23442         (set_buffer_internal_1):
23443         * frame.c (store_frame_param):
23444         * eval.c (specbind):
23445         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23447         * doc.c (Fsnarf_documentation): Simplify.
23449 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
23451         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23452         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23454 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
23456         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23458 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
23460         * eval.c (do_autoload): Don't save autoloads.
23462         * data.c (Ffset): Save autoload of the function being set.
23464 2007-10-07  John Paul Wallington  <jpw@pobox.com>
23466         * xfns.c (x_create_tip_frame): Set the `display-type' frame
23467         parameter before setting up faces.
23469 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
23471         * ccl.c (Fregister_code_conversion_map):
23472         * keyboard.c (append_tool_bar_item): Reformat last change.
23474         * lisp.h (eabs): Rename from `abs'.  All callers changed.
23476 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
23478         * buffer.c (add_overlay_mod_hooklist):
23479         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23480         * fontset.c (make_fontset):
23481         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23482         (append_tool_bar_item):
23483         * macmenu.c (grow_menu_items):
23484         * w32menu.c (grow_menu_items):
23485         * xmenu.c (grow_menu_items): Use larger_vector.
23487 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
23489         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23490         selected frame'' on MSDOS).
23492 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
23494         * frame.c (Qexplicit_name): New variable.
23495         (x_report_frame_params): Report it in parameter alist.
23496         (syms_of_frame): Intern and staticpro it.
23498 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
23500         * macfns.c (x_create_tip_frame): Set terminal for frame.
23502 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
23504         * frame.c (Qenvironment): Remove.
23505         (syms_of_frame) <Qenvironment>: Don't initialize.
23506         (Fdelete_frame): Don't treat the `environment' param specially.
23507         * frame.h (Qenvironment): Don't declare.
23508         * callproc.c (set_initial_environment): Don't set unused frame param.
23510         * frame.c (Fframe_with_environment): Remove.
23511         (syms_of_frame) <Sframe_with_environment>: Don't declare.
23513         * lisp.h (Fframe_with_environment): Don't declare.
23515 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
23517         * indent.c (indent_tabs_mode, last_known_column)
23518         (last_known_column_modified): Make static.
23519         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23521 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
23523         * puresize.h (BASE_PURESIZE): Increase to 1170000.
23525 2007-10-09  Jason Rumney  <jasonr@gnu.org>
23527         * w32term.c (x_set_window_size): Disable code that attempts to tell
23528         Lisp code about a size change before it actually happens.
23530 2007-10-09  Richard Stallman  <rms@gnu.org>
23532         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23533         return HANDLED_RETURN.
23535 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
23537         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23538         when there's an unread command event.
23540         * frame.c (focus_follows_mouse): Move here from frame.el to allow
23541         window autoselection act appropriately when leaving selected frame.
23542         (syms_of_frame): Initialize focus_follows_mouse.
23543         * frame.h (focus_follows_mouse): Extern it.
23544         * macterm.c (XTread_socket): When focus_follows_mouse is nil
23545         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23546         * msdos.c (dos_rawgetc): Likewise.
23547         * w32term.c (w32_read_socket): Likewise.
23548         * xterm.c (handle_one_xevent): Likewise.
23549         * xdisp.c (syms_of_xdisp): In doc-string of
23550         mouse-autoselect-window mention focus-follows-mouse.
23552 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
23554         * macterm.c (mac_load_query_font): Fix missing return value.
23555         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23556         Add BLOCK_INPUT.
23558 2007-10-08  Richard Stallman  <rms@gnu.org>
23560         * xdisp.c (get_window_cursor_type): Implement documented behavior
23561         for cursor-in-non-selected-windows = t.
23563 2007-10-08  Jason Rumney  <jasonr@gnu.org>
23565         * w32.c (w32_get_resource): Always close registry keys.
23567 2007-10-08  Jason Rumney  <jasonr@gnu.org>
23569         * makefile.w32-in (LIBS): Add COMCTL32.
23571         * w32fns.c (globals_of_w32fns): Init common controls.
23573 2007-10-08  Richard Stallman  <rms@gnu.org>
23575         * image.c (our_memory_buffer): Rename from omfib_buffer.
23577 2007-10-08  Richard Stallman  <rms@gnu.org>
23579         * buffer.c (Foverlays_at): Doc fix.
23581 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
23583         * fns.c (Fplist_put): Preserve uneven tail data.
23585 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
23587         * termhooks.h (enum event_kind): Remove trailing comma.
23589         * frame.h (enum): Remove trailing comma.
23591 2007-10-08  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
23593         * w32proc.c (delete_child): Don't terminate threads of zombies.
23595 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
23597         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23599         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23600         last-repeatable-command.
23601         (init_kboard): Initialize Vlast_repeatable_command.
23602         (command_loop_1): Set it to real_this_command unless that was
23603         bound to an input event.
23604         (mark_kboards): Mark it.
23606 2007-10-08  Richard Stallman  <rms@gnu.org>
23608         * eval.c (condition-case): Doc fix.
23610 2007-10-08  Masatake YAMATO  <jet@gyve.org>
23612         * xfaces.c (tty_supports_face_attributes_p): Fix code
23613         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23614         was copied and not edited.
23616 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
23618         Add new `input-decode-map' keymap and use it for terminal
23619         escape sequences.
23620         * keyboard.h (struct kboard): Add Vinput_decode_map.
23621         Remove Vlocal_key_translation_map.
23622         * keyboard.c (read_key_sequence): Add support for input-decode-map.
23623         (init_kboard): Init input-decode-map.
23624         Replace local-key-translation-map back with key-translation-map.
23625         (syms_of_keyboard): Declare input-decode-map.
23626         Remove local-key-translation-map.  Update docstrings.
23627         (mark_kboards): Mark Vinput_decode_map.
23628         Don't mark Vlocal_key_translation_map.
23629         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23630         Replace local-key-translation-map back with key-translation-map.
23631         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23632         Bind in input-decode-map rather than function-key-map.
23634         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23635         This was made redundant by the previous introduction of XSETPVECTYPE.
23637 2007-10-09  Richard Stallman  <rms@gnu.org>
23639         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23641 2007-09-29  Richard Stallman  <rms@gnu.org>
23643         * eval.c (internal_condition_case_2, internal_condition_case_1)
23644         (internal_condition_case): Reenable abort if x_catching_errors ()
23645         to see if that really happens and why.
23647 2007-10-06  Andreas Schwab  <schwab@suse.de>
23649         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23651 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
23653         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23655 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
23657         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23659 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
23661         * window.h (struct window):
23662         * window.c (struct save_window_data, struct saved_window):
23663         * termhooks.h (struct terminal):
23664         * process.h (struct Lisp_Process):
23665         * frame.h (struct frame):
23666         * buffer.h (struct buffer):
23667         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23668         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23669         The size field of (pseudo)vectors is now unsigned.
23670         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23672         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23673         Turn `count' into an integer.
23675         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23676         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23677         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23678         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23679         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23681         * alloc.c (allocate_pseudovector): New fun.
23682         (ALLOCATE_PSEUDOVECTOR): New macro.
23683         (allocate_window, allocate_terminal, allocate_frame)
23684         (allocate_process): Use it.
23685         (mark_vectorlike): New function.
23686         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23687         (mark_terminals): Use it.
23688         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23689         (Fmake_byte_code): Use XSETPVECTYPE.
23691         * frame.c (Fframe_parameters): Minor simplification.
23693         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23695         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23697         * buffer.c (Fget_buffer_create, init_buffer_once):
23698         * lread.c (defsubr):
23699         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23701         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23702         defined differently in the m/*.h files.
23703         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23704         (XSETPVECTYPE): New macro.
23705         (XSETPSEUDOVECTOR): Use it.
23707         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23708         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23710         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23711         * lread.c (defvar_per_buffer):
23712         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23714         * window.c (candidate_window_p): Only consider as visible frames that
23715         are on the same terminal.
23717         * m/ibms390x.h (MARKBIT): Remove unused macro.
23719 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
23721         * lread.c (Fload): Fix typo in docstring.
23723 2007-10-01  Michaël Cadilhac  <michael@cadilhac.name>
23725         * floatfns.c (Fexpt): Manually check for overflows, so that a power
23726         of a non-zero value can't yield zero.
23728 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
23730         * term.c (term_clear_mouse_face, term_mouse_highlight)
23731         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23733         * print.c (safe_debug_print): Use XHASH.
23735         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23736         Lisp elements such as tags.
23737         (XHASH): New macro.
23738         (EQ): Use it.
23739         (SREF, SSET, STRING_COPYIN): Use SDATA.
23740         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23742         * alloc.c (mark_terminal): Remove left-over declaration.
23743         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23744         (allocate_vectorlike): Remove type argument.  Adjust callers.
23745         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23746         Only handle the one remaining MEM_TYPE_VECTORLIKE.
23748         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23749         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23750         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23751         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23752         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23753         Use them.
23755         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23756         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23757         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23759 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
23761         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23762         loaded by default.
23764 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
23766         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23767         on this tty.
23768         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23770         * term.c (mouse_face_window): Rename from Qmouse_face_window.
23771         Update all users.
23772         (handle_one_term_event): Use Gpm_DrawPointer.
23773         (Fgpm_mouse_start): Rename from Fterm_open_connection.
23774         Signal errors instead of returning nil.  Always return nil.
23775         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23776         Make it a noop if gpm-mouse was not activated.
23777         (syms_of_term): Update names.
23779 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
23781         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23782         (init_sys_modes): Check that gpm_tty is the current tty.
23784         * alloc.c (allocate_terminal): Set the vector size to only count the
23785         lisp fields.  Initialize those to nil.
23786         (mark_object): Don't treat terminals specially.
23787         (mark_terminal): Remove.
23788         (mark_terminals): Use mark_object instead.
23790         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23791         the GC to the beginning.
23793         * indent.h:
23794         * indent.c: Use EMACS_INT for ints coming from Elisp data.
23796         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23798 2007-09-25  Jason Rumney  <jasonr@gnu.org>
23800         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23802         * w32console.c (create_w32cons_output): Remove.
23804         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23806         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23807         (reset_sys_modes): Use reset_terminal_modes_hook.
23809 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
23811         * eval.c (do_autoload): Don't output any message.
23813 2007-09-24  Juri Linkov  <juri@jurta.org>
23815         * emacs.c (standard_args): Change priority of "--no-splash"
23816         from 40 to 3.  Add "--no-desktop" with the same priority.
23818 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
23820         * alloc.c (gc_sweep): Check cons cell mark bits word by word
23821         and optimize the case where they are all 1.
23823 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
23825         * lisp.h (abs): Define if not defined.
23826         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23827         Don't define `abs', since it's defined in lisp.h.
23829 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
23831         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
23832         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23833         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23834         (init_tty): Use DEV_TTY instead of "/dev/tty".
23835         [WINDOWSNT]: No need to protect from NAME arg being null.
23837 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
23839         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23840         up the tty state.
23842 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
23844         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
23845         (gpm_tty): Change its type.
23846         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
23847         (gpm_tty): Change its type and initialize it.
23848         (Fterm_open_connection): Check the frame is indeed a tty.
23849         Use the new gpm_tty.
23850         (Fterm_close_connection): Use the new gpm_tty.
23851         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23852         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23854 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
23856         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23857         underline_color, to draw strike-through.
23859 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
23861         * lisp.h (allocate_terminal): Declare.
23863         * window.c (candidate_window_p): Consider frames that are being placed
23864         by the user as somewhere between visible and iconified.
23865         (window_loop): Prefer windows on the current frame.
23866         (Fselect_window): Move the use of select-frame to the beginning so we
23867         can just delegate all the work (it'll call us back anyway).
23869         * frame.c (Qdisplay_environment_variable):
23870         * frame.h (Qdisplay_environment_variable): Delete.
23872         * .gdbinit (xbacktrace): Print the arg's address rather than the value
23873         of the first arg, since that value may be a union.
23875         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23876         parameter rather than Qdisplay_environment_variable.  If all else
23877         fails, look for DISPLAY in initial-environment.
23879 2007-09-21  Glenn Morris  <rgm@gnu.org>
23881         * Makefile.in (emacstool): Remove target.
23882         (lisp, shortlisp): Remove termdev.elc.
23884 2007-09-21  Markus Triska  <markus.triska@gmx.at>
23886         * xterm.c (x_delete_display): Compile session management conditionally.
23888 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
23890         * callproc.c (getenv_internal_1): New function.
23891         (getenv_internal): Use it.
23892         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
23894         * terminal.c (get_terminal): Don't accept ints to represent terminals.
23895         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23896         (Fset_terminal_parameter): Work with dead terminals as well.
23897         (Fmodify_terminal_parameters): Remove.
23899         * terminal.c (get_terminal): Handle terminals.
23900         Make sure the terminal returned is live.
23901         (create_terminal): Use allocate_terminal.
23902         (mark_terminals): Move to alloc.c.
23903         (delete_terminal): Use terminal->name as liveness status.
23904         NULL out fields after freeing their contents.
23905         Don't deallocate the object.
23906         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
23907         rather than an int.
23908         (Fterminal_live_p): Accept non-integer arguments.
23909         (Fterminal_list): Return terminal objects rather than an ints.
23911         * alloc.c (enum mem_type): New member for `terminal' objects.
23912         (allocate_terminal): New function.
23913         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23914         Handle terminals.
23915         (mark_terminal): New fun.
23916         (mark_terminals): Move from terminal.c.
23918         * term.c (get_tty_terminal): Don't treat output_initial specially.
23919         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23920         (delete_tty): Use terminal->name as liveness status.
23922         * termhooks.h (struct terminal): Make it into a pseudovector.
23923         Remove `deleted' replaced by checking `name's nullness.
23925         * print.c (print_object): Handle terminals.
23927         * lisp.h (enum pvec_type): New `terminal' pseudovector.
23928         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23930         * frame.c (make_terminal_frame):
23931         * keyboard.c (tty_read_avail_input):
23932         * w32term.c (x_delete_terminal):
23933         * xfns.c (Fx_create_frame, x_create_tip_frame):
23934         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23936 2007-09-20  Glenn Morris  <rgm@gnu.org>
23938         * process.c (Fmake_network_process): Doc fix.
23940 2007-09-19  Jason Rumney  <jasonr@gnu.org>
23942         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23944 2007-09-19  Michaël Cadilhac  <michael@cadilhac.name>
23946         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23947         Fix a C warning regarding variable constness.
23949         * xterm.c (handle_one_xevent): Fix a C warning.
23951 2007-09-18  Jason Rumney  <jasonr@gnu.org>
23953         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23955 2007-09-17  Jan Djärv  <jan.h.d@swipnet.se>
23957         * gtkutil.c (gdpy_def): New variable.
23958         (xg_initialize): Initialize gdpy_def.
23959         (xg_display_close): If no other display exists, set gdpy_def to a
23960         new connection.
23962 2007-09-16  Jan Djärv  <jan.h.d@swipnet.se>
23964         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23965         when we have no file name for the icon.
23966         (xg_tool_bar_expose_callback): Remove.
23967         (xg_create_tool_bar): Don't connect expose signal to
23968         xg_tool_bar_expose_callback.
23969         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23971 2007-09-16  Andreas Schwab  <schwab@suse.de>
23973         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23974         values instead of zapping them.
23976 2007-09-14  Glenn Morris  <rgm@gnu.org>
23978         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23979         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23980         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23981         scope and rename to omfib_buffer for clarity.
23982         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23984 2007-09-14  Kenichi Handa  <handa@m17n.org>
23986         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23988 2007-09-13  Jason Rumney  <jasonr@gnu.org>
23990         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23992         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23994         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23995         (mac_term_init): Call here instead, passing rif.
23997 2007-09-13  Glenn Morris  <rgm@gnu.org>
23999         * s/hpux.h: No longer define `static' as nothing.
24001 2007-09-13  Johan Bockgård  <bojohan@gnu.org>
24003         * callint.c (Fcall_interactively): Remove unused var `fun'.
24005 2007-09-12  Romain Francoise  <romain@orebokech.com>
24007         * window.c (prefer_window_split_horizontally, display_buffer):
24008         Revert 2007-09-08 change.
24010 2007-09-12  Glenn Morris  <rgm@gnu.org>
24012         * alloca.c: Remove file.
24013         * Makefile.in (alloca): Do not undef.
24014         (allocaobj, alloca.o): Remove.
24015         (otherobj): Remove allocaobj.
24016         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24017         * regex.c (C_ALLOCA): Remove all references and code that was only
24018         used when this was defined.
24019         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24020         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24021         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24023         * Makefile.in (SOURCES, unlock, relock): Delete.
24025         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24026         (menu_grab_callback): All uses changed.
24028         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24029         (x_reply_selection_request): All uses changed.
24031 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
24033         * lread.c (load_warn_old_style_backquotes): Change message to look
24034         better when it appears in the middle of byte-compiler messages.
24036 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
24038         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24040         * xterm.c (x_create_terminal): Add comment.
24042         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24044 2007-09-10  Richard Stallman  <rms@gnu.org>
24046         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24048 2007-09-10  Michaël Cadilhac  <michael@cadilhac.name>
24050         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24051         (DEFUN): Document `intspec', use it instead of `prompt'.
24053         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24055         * data.c (Finteractive_form): If the interactive specification starts
24056         with a `(', use it as a Lisp form.
24058         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24059         name and file modes.
24061         * callint.c (Fcall_interactively): Comment fixes.
24063 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
24065         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24066         and compiled functions.
24068 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
24070         * window.c (prefer_window_split_horizontally): New variable.
24071         (display_buffer): Consider splitting window horizontally depending
24072         on prefer_window_split_horizontally.
24074 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
24076         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24078 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
24080         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24082         * frame.c (x_set_frame_parameters): Check number is positive before
24083         using XFASTINT.
24085         * window.c (freeze_window_start): Don't presume selected_window holds
24086         a window object.
24087         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24089 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
24091         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24093 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
24095         * window.c (Vsplit_window_preferred_function): New var.
24096         (Fdisplay_buffer): Use it.
24097         (syms_of_window): Export, and initialize it.
24099 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
24101         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24103 2007-09-06  Glenn Morris  <rgm@gnu.org>
24105         * gtkutil.c (menu_grab_callback) <cnt>:
24106         * xselect.c (x_reply_selection_request) <cnt>: Move static
24107         variable to file scope.
24109 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
24111         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24112         consistent values of selected_frame and selected_window.
24114 2007-09-04  Jason Rumney  <jasonr@gnu.org>
24116         * w32console.c (initialize_w32_display): Zero unused hooks.
24118 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
24120         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24121         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24123 2007-09-04  Jason Rumney  <jasonr@gnu.org>
24125         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24126         in w32console.c.  Set up input.  Remove XXX comments that have been
24127         confirmed as correct.
24129         * s/ms-w32.h (MULTI_KBOARD): Define.
24131         * w32console.c (one_and_only_w32cons): Remove.
24132         (initialize_w32_display): Take terminal argument.
24134         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24135         initialize_w32_display.
24136         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24138         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24140         * keyboard.c (discard_mouse_events): Discard it.
24141         (make_lispy_event): Translate it to a lisp event.
24142         (lispy_wheel_names): Add wheel-left and right events.
24143         (syms_of_keyboard): Enlarge wheel_syms.
24145         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24146         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24148         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24150         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24151         from WM_MOUSEHWHEEL.
24152         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24154         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24155         terminal.
24157         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24158         keyboard for the terminal.
24160 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
24162         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24163         (Vresume_tty_hook): Rename from Vresume_tty_functions.
24164         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24165         and resume-tty-function to resume-tty-hook.
24166         (Fsuspend_tty, Fresume_tty): Use new names.
24168 2007-09-02  Jan Djärv  <jan.h.d@swipnet.se>
24170         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24171         if it starts with "n:".
24173 2007-08-31  Jan Djärv  <jan.h.d@swipnet.se>
24175         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24177 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
24179         * frame.h:
24180         * frame.c (Qterm_environment_variable): Remove.
24181         (syms_of_frame): Don't init and staticpro it.
24183         * callproc.c (getenv_internal): Remove special case for $TERM.
24185         * callproc.c (Vinitial_environment): New variable.
24186         (set_initial_environment): Initialize it.
24187         (syms_of_callproc): Declare it.
24188         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24189         TERM under which a process runs is never related to the TERM in which
24190         Emacs is running.
24192 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
24194         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24195         * s/darwin.h: ... do it here.
24197 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
24199         * lisp.h (set_initial_environment): Rename from set_global_environment.
24201         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24202         removed by mistake on the multi-tty branch.
24204         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24205         (Fmodify_frame_parameters): Return a value.
24207         * image.c (png_load): Comment-out var only used in commented-out code.
24209         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24210         before passing it to mark_object.
24212         * xfaces.c (internal_resolve_face_name): Return a value.
24213         (internal_resolve_face_name, resolve_face_name_error): Comment out.
24215         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24216         (x_icon): Comment-out var only used in commented-out code.
24218 2007-08-29  Romain Francoise  <romain@orebokech.com>
24220         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24221         QUIT hasn't been provided.
24223 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
24225         * callproc.c (child_setup, getenv_internal): Use the
24226         display-environment-variable and term-environment-variable frame params.
24227         (set_initial_environment): Initialise Vprocess_environment.
24229         * config.in: Disable multi-keyboard support on a mac.
24231         * frame.c (Qterm_environment_variable)
24232         (Qdisplay_environment_variable): New variables.
24233         (syms_of_frame): Intern and staticpro them.
24234         (Fmake_terminal_frame): Disable output method test.
24236         * frame.h: Declare them here.
24238         * macfns.c (x_set_mouse_color): Get rif from the frame.
24239         (x_set_tool_bar_lines): Don't use updating_frame.
24240         (mac_window): Add 2 new parameters for consistency with other systems.
24241         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
24242         frame parameters following what is done in X11 and w32.  Don't use
24243         FRAME_MAC_DISPLAY_INFO.
24244         (Fx_open_connection, start_hourglass): Remove window-system check.
24245         (x_create_tip_frame): Get the keyboard from the terminal.
24247         * macmenu.c: Reorder includes.
24248         (Fx_popup_menu): Use terminal specific mouse_position_hook.
24250         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24251         terminal parameter.
24252         (x_clear_frame): Add a frame parameter.
24253         (note_mouse_movement): Get rif from the frame.
24254         (mac_term_init): Initialize the terminal.
24255         (mac_initialize): Make static and move terminal initialization ...
24256         (mac_create_terminal): ... to this new function.
24258         * macterm.h (struct mac_display_info): Add terminal.
24259         (mac_initialize): Delete declaration.
24261         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24263         * sysdep.c: Comment out text after #endif.
24265         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24266         is defined.  Better initialize ttys in windows.  Use terminal
24267         specific mouse_position_hook.
24269         * termhooks.h (union display_info): Add mac_display_info.
24271         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24272         Set the default minibuffer frame, window_system and the rest of the
24273         frame parameters following what is done in X11.
24275         * w32term.c (w32_initialize): Make static.
24277         * xselect.c (x_handle_selection_clear): Only access
24278         terminal->kboard when MULTI_KBOARD is defined.
24280         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24281         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24283 2007-08-29  Jason Rumney  <jasonr@gnu.org>
24285         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24286         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24288         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24289         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24291         * keyboard.c (restore_kboard_configuration): Only define when
24292         MULTI_KBOARD defined.
24294         * makefile.w32-in: Update dependancies from Makefile.in.
24295         (OBJ1): Add terminal.$(O)
24297         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24298         Don't define function body.
24299         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24301         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24303         * w32.c (request_sigio, unrequest_sigio): Remove.
24305         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24306         (w32con_clear_frame, w32con_clear_end_of_line)
24307         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24308         (w32con_delete_glyphs, w32con_set_terminal_window)
24309         (scroll_line, w32_sys_ring_bell): Add frame arg.
24310         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24311         Add terminal arg.
24312         (PICK_FRAME): Remove.
24313         (w32con_write_glyphs): Use frame specific terminal coding.
24314         (one_and_only_w32cons): New global variable.
24315         (initialize_w32_display): Use it for storing hooks.
24316         (create_w32cons_output): New function.
24318         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24319         arg a frame.
24321         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24322         Set window_system.
24323         (x_set_tool_bar_lines): Don't use updating_frame.
24324         (Fx_create_frame): Set terminal and ref count.
24325         (Fx_open_connection): Remove window-system check.
24327         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24329         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24330         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24331         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24332         Add frame arg.
24333         (x_delete_terminal, w32_create_terminal): New functions.
24334         (w32_term_init): Create a terminal.
24335         (w32_initialize): Move terminal specific initialization to
24336         w32_create_terminal.
24338         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24339         (w32_clear_rect, w32_clear_area): Use background from frame.
24340         (w32_display_info): Add terminal.
24341         (w32_sys_ring_bell, x_delete_display): Declare here.
24343         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24345         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24347 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
24349         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24350         Fix get_named_tty calls for the controlling tty.
24352 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
24354         * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
24356 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
24358         * term.c (tty_insert_glyphs): Add missing first parameter.
24360 2007-08-29  Károly Lőrentey  <karoly@lorentey.hu>
24362         * buffer.c (Fbuffer_list, Fbury_buffer):
24363         Take frame->buried_buffer_list into account.
24365         * cm.c (current_tty): New variable, for cmputc().
24366         (cmputc): Use it.
24367         (cmcheckmagic): Add tty parameter, look up terminal streams there.
24368         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
24369         (cmgoto): Add tty parameter.  Pass it on to calccost().
24370         Use emacs_tputs() instead of tputs().
24372         * cm.h (emacs_tputs): New macro to set current_tty, and then call
24373         tputs().
24374         (current_tty): New variable, for cmputc().
24375         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24377         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24378         (internal_condition_case, internal_condition_case_1)
24379         (internal_condition_case_2): Don't abort when x_catching_errors.
24381         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24382         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
24383         prevent crashes caused by bogus longjmps in read_char.
24385         * keymap.h (Fset_keymap_parent): Add EXFUN.
24387         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24388         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24389         Remove redundant definition.
24391         * macfns.c (x_set_mouse_color, x_make_gc):
24392         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24394         * w32term.c (x_free_frame_resources):
24395         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24396         (w32_initialize): Use the accessor macros for terminal characteristics.
24398         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24399         Use the accessor macros for terminal characteristics.
24400         * msdos.c (internal_terminal_init): Use the accessor macros for
24401         terminal characteristics.
24402         (ScreenVisualBell, internal_terminal_init):
24403         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24405         * termopts.h (no_redraw_on_reenter): Declare.
24407         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24408         (mark_terminals, mark_ttys): Declare.
24409         (Fgarbage_collect): Call them.
24410         (mark_object): Mark buried_buffer_list.
24412         * prefix-args.c: Include stdlib.h for exit.
24414         * syssignal.h: Add comment.
24416         * indent.c: Include stdio.h.
24418         * window.h (Vinitial_window_system): Declare.
24419         (Vwindow_system): Delete declaration.
24421         * fontset.c (Finternal_char_font): Use FRAME_RIF.
24423         * image.c (lookup_image): Don't initialize `c' until the xasserts
24424         have been run.
24426         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24427         FRAME_FOREGROUND_PIXEL.
24429         * print.c (print_preprocess): Don't lose print_depth levels while
24430         iterating.
24432         * widget.c (update_from_various_frame_slots):
24433         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24435         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24436         frames.
24437         (window_internal_height): Remove bogus make_number call.
24438         (init_window_once): Call make_terminal_frame with two zero parameters.
24440         * fileio.c (Fread_file_name): Update comment.
24442         * callint.c (Fcall_interactively):
24443         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24444         Make sure it is correctly unwound.
24446         * xsmfns.c (x_session_close): New function.
24448         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24449         Delete declarations.
24451         * xterm.h: Remove declaration for x_fully_uncatch_errors.
24452         (x_output): Remove background_pixel and foreground_pixel fields.
24453         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
24454         (x_delete_device, x_session_close): Declare.
24456         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
24457         (read_filtered_event): Call `read_char' with a local
24458         `wrong_kboard_jmpbuf'.
24460         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24461         Don't call single_kboard_state.  Use FRAME_RIF.
24463         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24464         systems.
24466         * lisp.h (set_process_environment): Rename to `set_global_environment'.
24467         (Fframe_with_environment, Fset_input_meta_mode)
24468         (Fset_quit_char): EXFUN.
24469         (x_create_device, tty_output, terminal, tty_display_info): Declare.
24470         (init_sys_modes, reset_sys_modes): Update prototypes.
24471         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24473         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24474         Vlocal_key_translation_map, and Vkeyboard_translate_table.
24475         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24476         Delete declarations.
24477         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24478         (temporarily_switch_to_single_kboard, tty_read_avail_input):
24479         New declarations.
24481         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24482         already does that during init_display().  Call syms_of_keymap
24483         before syms_of_keyboard.  Call `syms_of_terminal'.
24484         Call set_initial_environment, not set_process_environment.
24485         (shut_down_emacs): Call reset_all_sys_modes() instead of
24486         reset_sys_modes().
24488         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24489         (internal_resolve_face_name, resolve_face_name_error): New functions.
24490         (resolve_face_name): Protect against loops and errors thrown by Fget.
24491         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24492         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24494         * scroll.c: Replace CURTTY() with local variables throughout the
24495         file (where applicable).
24496         (calculate_scrolling, calculate_direct_scrolling)
24497         (scrolling_1, scroll_cost): Use the accessor macros for terminal
24498         characteristics.
24500         * keymap.c (Vfunction_key_map): Remove.
24501         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24502         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24503         (Vkey_translation_map): Remove.
24504         (syms_of_keymap): Remove DEFVAR for key-translation-map.
24505         (Fdescribe_buffer_bindings)
24506         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24507         Update for terminal-local key-translation-map.
24509         * Makefile.in (callproc.o): Update dependencies.
24510         (lisp, shortlisp): Add termdev.elc.
24511         (obj): Add terminal.o.
24512         (terminal.o): Add dependencies.
24513         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24514         (data.o, fns.o): Add termhooks.h dependency.
24515         (SOME_MACHINE_LISP): Add dnd.elc.
24516         (minibuf.o): Fix typo.
24517         Update dependencies.
24519         * data.c (do_symval_forwarding, store_symval_forwarding)
24520         (find_symbol_value): Use the selected frame's keyboard, not
24521         current_kboard.
24523         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24524         Vwindow_system.
24526         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24527         Fmenu_bar_open.
24528         (syms_of_xmenu): Update defsubr.
24529         (mouse_position_for_popup, Fx_popup_menu)
24530         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24531         (set_frame_menubar, free_frame_menubar)
24532         (create_and_show_popup_menu, xmenu_show)
24533         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24534         an X frame.
24536         * xselect.c (x_own_selection): Abort if not an X frame.
24537         (some_frame_on_display): Check if it is an X frame.
24538         (x_handle_selection_clear): Deal with MULTI_KBOARD.
24540         * coding.c: Include frame.h and termhooks.h.
24541         (terminal_coding, keyboard_coding): Delete.
24542         (Fset_terminal_coding_system_internal)
24543         (Fset_keyboard_coding_system_internal)
24544         (Fkeyboard_coding_system)
24545         (Fterminal_coding_system): Add a terminal parameter.
24546         Get terminal_coding from the terminal.
24547         (init_coding_once): Don't call setup_coding_system here.
24549         * dispextern.h (set_scroll_region, turn_off_insert)
24550         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24551         (tty_clear_end_of_line, tty_setup_colors)
24552         (delete_tty, updating_frame)
24553         (produce_special_glyphs, produce_glyphs, write_glyphs)
24554         (insert_glyphs): Remove.
24555         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24556         (tty_turn_off_highlight, get_tty_size): Add declaration.
24557         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24559         * frame.h (enum output_method): Add output_initial.
24560         (struct x_output): Delete.
24561         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24562         Access foreground_pixel and background_pixel directly from the frame.
24563         (tty_display): Delete.
24564         (struct frame): Add buried_buffer_list, foreground_pixel,
24565         background_pixel and terminal.  Delete kboard.
24566         (union output_data): Add tty.
24567         (FRAME_KBOARD): Get the kboard from the terminal.
24568         (FRAME_INITIAL_P): New macro.
24569         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24570         (Qterm_environment_variable, Qdisplay_environment_variable)
24571         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24572         New declarations.
24574         * termchar.h (tty_output, tty_display_info): New structures.
24575         (tty_list): Declare.
24576         (FRAME_TTY, CURTTY): New macros.
24577         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24578         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24579         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24580         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24582         * callproc.c: Include frame.h and termhooks.h, for terminal
24583         parameters.
24584         (add_env): New function.
24585         (child_setup): Use it.
24586         (child_setup, getenv_internal): Handle the new Vprocess_environment.
24587         (getenv_internal): Fix get_terminal_param call.
24588         (Fgetenv_internal, egetenv): Update doc.
24589         (syms_of_callproc): Initialize Vprocess_environment to nil.
24590         Register and initialize them.  Remove obsolete defvars.  Update doc
24591         strings.
24592         (child_setup): Handle Vlocal_environment_variables.
24593         (getenv_internal): Add terminal parameter.
24594         Handle Vlocal_environment_variables.
24595         (Fgetenv_internal): Add terminal parameter.
24596         (child_setup, getenv_internal, Fgetenv_internal): Store the local
24597         environment in a frame (not terminal) parameter.  Update doc strings.
24598         (set_initial_environment): Rename from set_global_environment.
24599         Store Emacs environment in initial frame parameter.
24601         * xdisp.c (redisplay_internal): Update references to
24602         `previous_terminal_frame'.
24603         (display_mode_line, Fformat_mode_line): Replace calls to
24604         `push_frame_kboard' with `push_kboard'.
24605         (get_glyph_string_clip_rects): Add extra parentheses and
24606         braces to prevent compiler warnings.
24607         (calc_pixel_width_or_height): Add xassert to check that the
24608         frame is alive.  Don't call `lookup_image' on a termcap frame.
24609         (message2_nolog, message3_nolog, redisplay_internal)
24610         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24611         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24612         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24613         (Fx_display_pixel_width, Fx_display_pixel_height)
24614         (Fx_display_planes, Fx_display_color_cells)
24615         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24616         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24617         (Fx_display_backing_store, Fx_display_visual_class)
24618         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24619         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24621         * xfns.c (x_set_foreground_color x_set_background_color)
24622         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24623         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24624         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24625         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24626         terminal that is being deleted.
24627         (Fx_create_frame): Use `store_frame_param' to set `window-system'
24628         frame parameter, and make sure it overrides any user-supplied setting.
24629         (Fx_close_connection, Fx_synchronize): Unify argument names with
24630         the rest of the DEFUNs.
24632         * dispnew.c (Fsend_string_to_terminal): Update call to
24633         `get_tty_terminal'.
24634         (Fredraw_frame, Fsend_string_to_terminal)
24635         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24636         FRAME_TERMCAP_P and FRAME_TTY.
24637         (window_change_signal): Don't believe width/height values that are
24638         impossibly small.
24639         (Vinitial_window_system): Rename from Vwindow_system.
24640         (termscript, Wcm, rif): Delete.
24642         * termhooks.h (struct terminal): New struct containing the
24643         previously global text display hooks and new members NAME,
24644         DELETED and PARAM_ALIST.
24645         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24646         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24647         (FRAME_RIF): New macros.
24648         (get_terminal_param, get_device): New declarations.
24649         (termscript): Delete declaration.
24651         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24652         (XTflash, x_free_frame_resources, x_scroll_bar_create)
24653         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24654         FRAME_FOREGROUND_PIXEL.
24655         (x_fully_uncatch_errors): Disable definition.
24656         (x_scroll_bar_expose): Fix reference to foreground pixel.
24657         (XTread_socket): Disable loop on all X displays.
24658         (x_delete_terminal): Don't set terminal->deleted and let
24659         delete_terminal delete the frames on the terminal.
24660         (x_delete_display): Doc update to reflect changes in
24661         delete_terminal.
24662         (x_display_info) <terminal>: Move member earlier in the struct.
24663         (deleting_tty): Remove old variable.
24664         (Fsuspend_tty): Call clear_tty_hooks.
24665         (Fresume_tty, init_tty): Call set_tty_hooks.
24666         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24667         errors on X frames.
24668         (x_catch_errors_unwind): Abort if x_error_message is NULL.
24669         (handle_one_xevent): Initialize `f' to NULL.
24670         (x_delete_terminal, x_create_terminal): New functions.
24671         (XTset_terminal_modes, XTreset_terminal_modes)
24672         (XTread_socket, x_connection_closed, x_term_init)
24673         (x_term_init, x_delete_display): Add terminal parameter.
24674         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24675         X connections.
24677         * frame.c: Include termchar.h.
24678         (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24679         (Qwindow_system, Qenvironment, Qterm_environment_variable)
24680         (Qdisplay_environment_variable): New vars.
24681         (Fframep): Deal with output_initial.
24682         (Fframe-live-p): Doc fix.
24683         (Fwindow-system): New function.
24684         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24685         (make_terminal_frame): Don't create frames on a terminal that is
24686         being deleted.  Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24687         (store_frame_param): Check for found_for_frame before calling XFRAME.
24688         (Fmake_terminal_frame): Handle NULL tty names correctly.
24689         (syms_of_frame): Enhance doc string of `default-frame-alist'.
24690         (Fdelete_frame): Remove unused variable `count'.  Don't allow other
24691         frames to refer to a deleted frame in their 'environment parameter.
24692         (Fframe_with_environment): New function.
24693         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
24694         (get_future_frame_param): New function.
24695         (Fmake_terminal_frame): Use it.
24696         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24698         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24699         * sysdep.c (reset_sys_modes): Update for renames.
24701         * keyboard.c (tty_read_avail_input): New function.
24702         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24703         (syms_of_keyboard): Defsubr them.
24704         (Fset_input_meta_mode, Fset_quit_char): New functions.
24705         (Fset_input_mode): Split to above functions.
24706         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24707         parameter.  Use it in call to `read_char'.
24708         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
24709         Set wrong_kboard_jmpbuf correctly in recursive calls.
24710         Use current_kboard to access Vkeyboard_translate_table.
24711         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24712         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24713         Update longjmp invocations.  Remember the original current_kboard,
24714         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24715         changes it.  Comment out unnecessary calls to
24716         `record_single_kboard_state' and `any_kboard_state'.
24717         Update recursive calls.
24718         (wrong_kboard_jmpbuf): Remove global variable.
24719         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24720         Handle deleted interrupted_kboards correctly; that is a legal
24721         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
24722         and read_char calls.  Abort if interrupted_kboard died in read_char.
24723         (any_kboard_state, single_kboard_state)
24724         (push_frame_kboard): Remove function.
24725         (pop_kboard): Switch out of single_kboard mode if the kboard has
24726         been deleted.  Remove unused variable.  Help debugging by not
24727         changing current_kboard unnecessarily.  Set current_kboard to the
24728         kboard of the selected frame when the stored kboard object has
24729         been deleted before pop_kboard.
24730         (temporarily_switch_to_single_kboard): Change first parameter to a
24731         frame pointer.  Throw an error when caller wants to change kboards
24732         while in single_kboard mode.  Don't push_kboard if we weren't in
24733         single kboard state.  Don't pop_kboard if we popped into any
24734         kboard state.
24735         (restore_kboard_configuration): Abort if pop_kboard changed the
24736         kboard in single_kboard mode.  Call pop_kboard only after setting
24737         up single_kboard mode.
24738         (Frecursive_edit): Switch to single_kboard mode only in nested
24739         command loops.
24740         (cmd_error, command_loop, command_loop_1, timer_check):
24741         Comment out unnecessary call to `any_kboard_state' and
24742         `record_single_kboard_state'.
24743         (delete_kboard): Exit single_kboard mode if we have just deleted
24744         that kboard.  Use FRAME_KBOARD.
24745         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24746         `fatal_error_signal'.
24747         (record_single_kboard_state): Don't push_kboard if we weren't in
24748         single kboard state.  Don't pop_kboard if we popped into any
24749         kboard state.
24750         (push_frame_kboard): Rename to push_kboard.
24751         (kbd_buffer_get_event): Use FRAME_TERMINAL.
24752         (read_avail_input): Read input from all terminals.
24753         (mark_kboards): Also mark Vkeyboard_translate_table.
24754         (kbd_buffer_store_event_hold): Simplify condition.
24755         (read_key_sequence): Reinitialize fkey and keytran at each replay.
24756         (Vkeyboard_translate_table): Move to struct kboard.
24757         (init_kboard): Initialize Vkeyboard_translate_table.
24758         (syms_of_keyboard): Use DEFVAR_KBOARD to define
24759         Vkeyboard_translate_table.  Update doc strings.  Update docs of
24760         local-function-key-map and function-key-map.
24762         * terminal.c: New file.
24764         * term.c: Include errno.h.
24765         (Vring_bell_function, device_list, initial_device)
24766         (next_device_id, ring_bell, update_begin, update_end)
24767         (set_terminal_window, cursor_to, raw_cursor_to)
24768         (clear_to_end, clear_frame, clear_end_of_line)
24769         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24770         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24771         (syms_of_term): Move their initialization to terminal.c.
24772         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24773         (Ftty_display_color_cells)
24774         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24775         (clear_tty_hooks, set_tty_hooks)
24776         (init_tty, maybe_fatal): New functions.
24777         (Ftty_type): Return nil if terminal is not on a tty instead of
24778         throwing an error.  Doc update.
24779         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24780         Doc update.  Initialize new subrs and variables.
24781         (delete_tty): Use terminal->deleted.
24782         (tty_set_terminal_modes): Rename from set_terminal_modes.
24783         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24784         (set_scroll_region): Rename to `tty_set_scroll_region'.
24785         (turn_on_insert): Rename to `tty_turn_on_insert'.
24786         (turn_off_insert): Rename to `tty_turn_off_insert'.
24787         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24788         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24789         (toggle_highligh): Rename to `tty_toggle_highlight'.
24790         (background_highlight): Rename to `tty_background_highlight'.
24791         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24792         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24793         (tty_set_scroll_region, tty_background_highlight)
24794         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24795         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24796         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24797         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24798         Add static modifier.
24799         (tty_reset_terminal_modes, tty_set_terminal_window)
24800         (tty_set_scroll_region, tty_background_highlight)
24801         (tty_highlight_if_desired, tty_cursor_to)
24802         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24803         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24804         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24805         renames.
24807 2007-08-28  Jan Djärv  <jan.h.d@swipnet.se>
24809         * keyboard.c: Qrtl is new.
24810         (parse_tool_bar_item): Handle :rtl keyword.
24811         (syms_of_keyboard): Intern :rtl keyword.
24813         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24815         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24816         so no Lisp code is executed.
24817         (file_for_image, find_rtl_image): New functions.
24818         (xg_get_image_for_pixmap): Use file_for_image.
24819         (update_frame_tool_bar): If direction is RTL, use RTL image if
24820         defined.  Use Gtk stock images if defined.
24822 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24824         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24825         for nonexistent or zero-width glyph in composition glyph.
24827 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
24829         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24831         * xdisp.c (Finvisible_p): New function.
24832         (syms_of_xdisp): defsubr it.
24834 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
24836         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24837         Doc fixes.
24839 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24841         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24843 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
24845         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24846         whether decoding has modified buffer contents.
24848 2007-08-24  Jason Rumney  <jasonr@gnu.org>
24850         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24851         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24852         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24853         (init_svg_functions) [HAVE_NTGUI]: New function.
24854         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24855         (svg_load_image): Use them.
24856         (svg_load_image) [HAVE_NTGUI]: Implement background.
24858 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24860         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24861         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24862         (LIBX): Remove @RSVG_LIBS@.
24863         (LIBES): Add $(RSVG_LIBS).
24865         * image.c (svg_load_image): Blend with specified background if exists.
24866         Use IMAGE_BACKGROUND.  Add Mac OS Support.
24868         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24869         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24870         Remove macros.
24871         [MAC_OSX] (socket_callback): Do nothing.
24872         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24873         ReceiveNextEvent.
24874         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
24875         socket_callback.
24876         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24878 2007-08-22  Glenn Morris  <rgm@gnu.org>
24880         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24882 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
24884         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24886         * image.c: Add support for SVG images.  Some additional comments
24887         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
24888         (svg_image_p): New function to test for SVG image.
24889         (svg_load): New function to load SVG image.
24890         (svg_load_image): New function, helper for svg_load.
24891         (Qsvg): New Lisp_object.
24892         (svg_keyword_index): New enum.
24893         (svg_format): New static `image_keyword' struct.
24894         (svg_type): New static `image_type' struct.
24895         (librsvg/rsvg.h): Include it.
24897 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
24899         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24901 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
24903         * lread.c (Qold_style_backquotes): New var.
24904         (syms_of_lread): Init and staticpro it.
24905         (load_warn_old_style_backquotes): New fun.
24906         (Fload): Use them to warn about old style backquotes.
24907         (end_of_file_error, Fload): Remove unused vars.
24909         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24911         * lread.c (Vold_style_backquotes): New var.
24912         (syms_of_lread): Init and export it to Elisp.
24913         (read1): Set it when we find an old-style (back)quote.
24915 2007-08-22  Jason Rumney  <jasonr@gnu.org>
24917         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24919 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
24921         * puresize.h (BASE_PURESIZE): Increase to 1140000.
24923 2007-08-19  Richard Stallman  <rms@gnu.org>
24925         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24927 2007-08-19  Andreas Schwab  <schwab@suse.de>
24929         * alloc.c (pure): Round PURESIZE up.
24931 2007-08-17  Jan Djärv  <jan.h.d@swipnet.se>
24933         * xterm.c (handle_one_xevent): Remove check that mouse click is in
24934         active frame.
24936 2007-08-16  Richard Stallman  <rms@gnu.org>
24938         * eval.c (Fcommandp): Add parens to clarify.
24940         * minibuf.c (Fall_completions): Use enum for type of table.
24942         * emacs.c (USAGE2): Improve text.
24944 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
24946         * term.c (tty_default_color_capabilities): Declare static
24947         variables in file scope, to avoid HPUX compiler problem.
24949 2007-08-13  Jan Djärv  <jan.h.d@swipnet.se>
24951         * gtkutil.c (update_frame_tool_bar): Use -1 as index
24952         to gtk_toolbar_insert.
24954 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
24956         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24958         * insdel.c (reset_var_on_error): New fun.
24959         (signal_before_change, signal_after_change):
24960         Use it to reset (after|before)-change-functions to nil in case of error.
24961         Bind inhibit-modification-hooks to t.
24962         Don't bind (after|before)-change-functions to nil while they run.
24964 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24966         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24967         filling pixmap with stippled background.
24969 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24971         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24972         Don't use invisible frame as parent window for repositioning.
24974 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
24976         * print.c (new_backquote_output): Rename from old_backquote_output.
24977         (print): Inverse its logic (according to its name) so as to match the
24978         behavior of new_backquote_flag in lread.c.
24980 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24982         * gmalloc.c (posix_memalign): New function.
24984         * macterm.c (frame_highlight, frame_unhighlight): Don't call
24985         ActivateControl/DeactivateControl here.
24986         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24987         frame-notice-user-settings is non-nil.
24988         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24989         for kEventParamFMFontStyle.
24990         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24991         mac_pass_command_to_system and mac_pass_control_to_system here.
24992         (XTread_socket): Call ActivateControl/DeactivateControl here.
24993         (XTread_socket) [TARGET_API_MAC_CARBON]:
24994         Check mac_pass_command_to_system and mac_pass_control_to_system here.
24995         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24996         for window repositioning.
24998 2007-08-08  Glenn Morris  <rgm@gnu.org>
25000         * Replace `iff' in doc-strings and comments.
25002 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
25004         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25006 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
25008         * fileio.c (Finsert_file_contents): Run format-decode and
25009         after_insert_file_functions on entire buffer when REPLACE is
25010         non-nil and inhibit modification_hooks and point_motion_hooks.
25011         For consistency, run after_insert_file_functions iff something
25012         got inserted.  Move signal_after_change and update_compositions
25013         after code running after_insert_file_functions.  Make sure that
25014         undo_list doesn't record intermediate steps of the decoding process.
25016 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25018         * emacs.c (main)
25019         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25020         Call malloc_enable_thread on interactive startup.
25022         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25023         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25024         [USE_PTHREAD]: Conditionalize with it.
25025         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25026         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25027         New functions.
25029 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
25031         * xdisp.c (redisplay_window): When restoring original buffer
25032         position, make sure it is still valid.
25034         * image.c (png_load): Ignore png-supplied background color.
25036 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25038         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25039         Use kCFAbsoluteTimeIntervalSince1970.
25041         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25042         New variable.
25043         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25044         event loop should be quit.
25045         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25046         Quit dialog event loop if quit_dialog_event_loop is set.
25048         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25049         (Selection): New typedef.  Use instead of ScrapRef.
25050         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25051         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25052         (mac_clear_selection): Rename from clear_scrap.
25053         (get_flavor_type_from_symbol): New argument SEL and subsume function of
25054         scrap_has_target_type.  All uses changed.
25055         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25056         (mac_selection_has_target_p): New functions.
25057         (mac_put_selection_value): Rename from put_scrap_string.
25058         (mac_get_selection_value): Rename from get_scrap_string.
25059         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25060         (put_scrap_private_timestamp, scrap_has_target_type)
25061         (get_scrap_private_timestamp): Remove functions.
25062         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25063         (x_own_selection, x_get_local_selection):
25064         Use mac_valid_selection_value_p.
25065         (x_own_selection): Don't use put_scrap_private_timestamp.
25066         Record OWNERSHIP-INFO into Vselection_alist instead.
25067         (x_get_local_selection): Don't check type if request is local.
25068         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25069         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25071 2007-08-04  Jan Djärv  <jan.h.d@swipnet.se>
25073         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25074         add comment explaining why.
25076 2007-08-03  Richard Stallman  <rms@gnu.org>
25078         * fileio.c (Fvisited_file_modtime): Use make_time.
25080 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
25082         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25083         build.
25085 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
25087         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25089 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
25091         * puresize.h (BASE_PURESIZE): Increase to 1130000.
25093 2007-07-30  Richard Stallman  <rms@gnu.org>
25095         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25097 2007-07-29  Jan Djärv  <jan.h.d@swipnet.se>
25099         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
25101 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
25103         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25104         remote default-directory.
25106         * buffer.c (mode-line-format): Update doc string.
25108 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25110         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25111         scroll bar gap.
25112         (x_scroll_bar_create): Set bar->fringe_extended_p.
25113         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25114         on frame edge.  Check fringe background extension.  Don't clear
25115         extended fringe background area.
25117         * w32term.h (struct scroll_bar): New member fringe_extended_p.
25118         (w32_fill_area): Enclose multiple statements with do ... while (0).
25120         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25121         Extend fringe background to scroll bar gap.
25122         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25123         Set bar->fringe_extended_p.
25124         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25125         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
25126         background extension.  Don't clear extended fringe background area.
25128         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25129         New member fringe_extended_p.
25131 2007-07-25  Glenn Morris  <rgm@gnu.org>
25133         * Relicense all FSF files to GPLv3 or later.
25135         * COPYING: Switch to GPLv3.
25137 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
25139         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25141         * data.c (Finteractive_form): Check for the presence of an
25142         `interactive-form' symbol property more thoroughly.
25144         * data.c (Finteractive_form): Use an `interactive-form' property if
25145         present, analogous to the function-documentation property.
25147 2007-07-24  Jason Rumney  <jasonr@gnu.org>
25149         * w32fns.c (x_real_positions): Get real position from OS instead of
25150         calculating it.
25152 2007-07-23  Jason Rumney  <jasonr@gnu.org>
25154         * filelock.c (current_lock_owner): Allow for @ sign in username.
25156 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
25158         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25159         remote default-directory.
25161         * buffer.c (mode-line-format): Describe above case in doc string.
25163 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
25165         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25166         Define if not defined.
25168 2007-07-18  Jason Rumney  <jasonr@gnu.org>
25170         * w32proc.c (w32_executable_type): Handle 64 bit executables.
25172 2007-07-18  Richard Stallman  <rms@gnu.org>
25174         * data.c (Fsetq_default): Doc fix.
25176         * eval.c (Fsetq): Doc fix.
25178 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
25180         * coding.c (Ffind_operation_coding_system):
25181         * eval.c (For, Fand): Doc fixes.
25182         Reported by Johan Bockgård.
25184 2007-07-18  Jan Djärv  <jan.h.d@swipnet.se>
25186         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25188         * xterm.h: Declare x_ewmh_activate_frame.
25190         * xterm.c (x_ewmh_activate_frame): New function.
25191         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25193 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
25195         * window.c (Fdisplay_buffer): If largest or LRU window is the
25196         only window, split it even if it is not eligible for splitting.
25197         This restores the original behavior broken by the 2007-07-15
25198         change.
25200 2007-07-17  Glenn Morris  <rgm@gnu.org>
25202         * abbrev.c (abbrev_check_chars): New function.
25203         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25204         Call abbrev_check_chars to check abbrev characters are word
25205         constituents.  Doc fix.
25207 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
25209         * process.c (Fstart_process, Fmake_network_process)
25210         (read_process_output): Fix up last changes.
25212 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
25214         * makefile.w32-in (clean): Don't delete *~.
25216 2007-07-16  Andreas Schwab  <schwab@suse.de>
25218         * window.c (Fdisplay_buffer): Use NILP.
25219         (Fset_window_scroll_bars): Likewise.
25221 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
25223         * window.c (window_min_size_2): New function.
25224         (window_min_size_1, size_window, Fdisplay_buffer)
25225         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25226         windows without mode- or header-lines when window-min-height is
25227         too small.
25228         (size_window): Reset nodelete_p after testing it, following an
25229         earlier note by Kim F. Storm.
25230         (display_buffer): Do not set split_height_threshold to twice the
25231         value of window_min_height to avoid changing the value of a
25232         customizable variable.  Rather explicitly check whether the
25233         height of the window that shall be splitted is at least as large
25234         as split_height_threshold.
25235         (Fwindow_full_width_p): New defun.
25236         (syms_of_window): Defsubr it.
25238         * window.h: Add EXFUN for Fwindow_full_width_p.
25240 2007-07-14  Jason Rumney  <jasonr@gnu.org>
25242         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25244 2007-07-14  Richard Stallman  <rms@gnu.org>
25246         * eval.c (maybe_call_debugger): New function.
25247         (find_handler_clause): Use maybe_call_debugger.
25248         Call it when the handler says `debug'.
25249         Eliminate DEBUGGER_VALUE_PTR.
25250         (Fsignal): Eliminate debugger_value.
25251         (Qdebug): New variable.
25252         (syms_of_eval): Initialize it.
25254 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
25256         * eval.c (Fprogn):
25257         * keyboard.c (Ftrack_mouse):
25258         * print.c (Fwith_output_to_temp_buffer):
25259         * window.c (Fsave_window_excursion): Doc fix.
25261 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
25263         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25265 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
25267         * process.h (struct Lisp_Process): Turn slots infd, outfd,
25268         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25269         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25270         read_output_delay, and read_output_skip from Lisp_Objects to ints.
25271         Remove unused encoding_carryover.
25272         * process.c: Adjust all functions accordingly.
25274 2007-07-12  Richard Stallman  <rms@gnu.org>
25276         * term.c: Include unistd.h only if HAVE_UNISTD_H.
25278 2007-07-11  Jason Rumney  <jasonr@gnu.org>
25280         * makefile.w32-in (LIBS): Include OLE32.
25282         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25283         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25285 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
25287         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25288         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25289         from a Lisp_Object into a bare pointer.
25290         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25291         Adjust the code correspondingly.
25293         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25295         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25296         (term_show_mouse_face): Remove unused var `j'.
25297         (handle_one_term_event): Remove unused vars `i' and `j'.
25298         Don't cast return value of ttyname since it's not necessary.
25300 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
25302         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25303         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25305         * fns.c (map_char_table): Use an array of int for `indices' rather than
25306         an array of Lisp_Objects (which are only ever integers anyway).
25307         (Fmap_char_table): Update caller.
25308         * lisp.h: Update prototype.
25309         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25310         * fontset.c (Ffontset_info):
25311         * casetab.c (set_case_table): Update callers.
25313         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25315         * keymap.c (struct accessible_keymaps_data)
25316         (struct where_is_internal_data): New structures.
25317         (accessible_keymaps_1, where_is_internal_1): Use them to change
25318         interface to adhere to the one used by map_keymap.
25319         (Faccessible_keymaps, where_is_internal): Use map_keymap.
25320         (accessible_keymaps_char_table, where_is_internal_2): Remove.
25322         * keymap.h (map_keymap_function_t): More informative prototype.
25324 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
25326         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25327         (looking_at_1): Don't change search_regs and last_thing_searched
25328         if `inhibit-changing-match-data' is non-nil.
25329         (string_match_1, search_buffer, set_search_regs): Likewise.
25330         (syms_of_search): Add Lisp level definition for
25331         `inhibit-changing-match-data' and set it to nil.
25332         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25333         start and end of the match, instead of using values in search_regs.
25335 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
25337         * minibuf.c (Fcompleting_read): New value `confirm-only'
25338         for `require-match'.
25340 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
25342         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25343         part of the 2007-06-27 change to syms_of_fileio.
25345 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25347         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25348         Check WINDOWP before using XWINDOW.  Consolidate return statements.
25350 2007-06-27  Richard Stallman  <rms@gnu.org>
25352         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25354 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
25356         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25358 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25360         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25361         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25362         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25363         (_free_internal, memalign): Use them.
25364         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25365         Initialize to PTHREAD_MUTEX_INITIALIZER.
25366         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25367         (morecore_nolock): Rename from morecore.  All uses changed.
25368         Use only nolock versions of internal allocation functions.
25369         (_malloc_internal_nolock, _realloc_internal_nolock)
25370         (_free_internal_nolock): New functions created from
25371         _malloc_internal, _realloc_internal, and _free_internal.
25372         (_malloc_internal, _realloc_internal, _free_internal): Use them.
25373         Copy hook value to automatic variable before its use.
25374         (memalign): Copy hook value to automatic variable before its use.
25376 2007-06-26  Kenichi Handa  <handa@m17n.org>
25378         * coding.c (Ffind_operation_coding_system): Docstring improved.
25379         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25381 2007-06-25  David Kastrup  <dak@gnu.org>
25383         * keymap.c (Fcurrent_active_maps): Add `position' argument.
25384         (Fwhere_is_internal): Adjust call to `current-active-maps' to
25385         cater for additional parameter.
25387         * keymap.h: Adjust number of parameters to `current-active-maps'.
25389         * doc.c (Fsubstitute_command_keys): Adjust call of
25390         `current-active-maps'.
25392 2007-06-25  David Kastrup  <dak@gnu.org>
25394         * callint.c (Fcall_interactively): Make the parsing of interactive
25395         specs somewhat more readable.
25397 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25399         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25400         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
25401         if extended background has already been filled.
25403 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25405         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25406         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25408         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25409         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25410         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25411         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25412         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25413         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
25414         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25415         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25416         Run timers during dialog popup.
25417         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25419 2007-06-21  Jason Rumney  <jasonr@gnu.org>
25421         * image.c (convert_mono_to_color_image): Swap fore and background.
25423 2007-06-20  Jason Rumney  <jasonr@gnu.org>
25425         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25426         (w32_free_bdf_font): Unmap memory not handle.
25428 2007-06-20  Sam Steingold  <sds@gnu.org>
25430         * gmalloc.c (__morecore): Fix the declaration to comply with the
25431         definition.
25433 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
25435         * w32term.c (w32_delete_display): Remove leftover declaration.
25436         (w32_define_cursor, w32_initialize): Make static.
25438         * w32.c (_wsa_errlist): Fix typo in error message.
25439         (init_environment): Ignore any environment variable from the
25440         registry having a null value.
25442 2007-06-20  Glenn Morris  <rgm@gnu.org>
25444         * Makefile.in (LIBGIF): Default to -lgif.
25446 2007-06-17  Jason Rumney  <jasonr@gnu.org>
25448         * w32menu.c (add_menu_item): Don't use multibyte string functions on
25449         unicode strings.
25451 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
25453         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25454         Fix typo in docstring.
25456 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
25458         * w32menu.c (add_menu_item): Escape `&' characters in menu items
25459         and their keybindings.
25461 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
25463         * composite.c (update_compositions): Fix last fix.
25465 2007-06-14  Jason Rumney  <jasonr@gnu.org>
25467         * w32.c (get_process_times_fn): New function pointer.
25468         (globals_of_w32): Intialize it if present in kernel32.dll.
25469         (w32_get_internal_run_time): New function.
25471         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25473 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
25475         * composite.c (update_compositions): Check the validness of
25476         compositions.
25478 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25480         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25481         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25483         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25484         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25486         * macgui.h (USE_MAC_TOOLBAR): New define.
25488         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25489         Return immediately unless popup is activated.
25491         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25492         background to scroll bar gap.
25493         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25494         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25495         scroll bars on frame edge.  Check fringe background extension.
25496         Don't clear extended fringe background area.
25497         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25498         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25499         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25500         [USE_MAC_TOOLBAR]: New macros.
25501         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25502         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25503         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25504         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25505         [USE_MAC_TOOLBAR]: New functions.
25506         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25507         manually if previous repositioning has failed.
25508         (mac_handle_keyboard_event): Use precomputed event kind.
25509         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25510         as tool bar item click.  Handle mouse movement over tool bar items.
25512         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25513         toolbar_win_gravity.
25514         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25515         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25516         Add externs.
25518         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25519         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25521 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
25523         * image.c (search_image_cache): Remove unused variable.
25525 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
25527         * xfns.c, xmenu.c: Link to xaw3d if available.
25529 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25531         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25532         frame_foreground and frame_background.
25534         * image.c (lookup_image): Save frame foreground and background colors.
25535         (search_image_cache): Check if saved and current frame colors match.
25537 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
25539         * regex.c (regex_compile): Remove the `regnum' counter.
25540         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
25542 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
25544         * term.c: Include intervals.h to declare Fget_text_property.
25546 2007-06-10  Jason Rumney  <jasonr@gnu.org>
25548         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25550 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
25552         * callint.c (Fcall_interactively):
25553         * editfns.c (Fdelete_and_extract_region):
25554         * fileio.c (Fread_file_name):
25555         * fns.c (Fmapconcat):
25556         * keyboard.c (cmd_error_internal):
25557         * keymap.c (Fkey_description):
25558         * lread.c (openp):
25559         * minibuf.c (read_minibuf):
25560         * search.c (wordify):
25561         * sunfns.c (sel_read):
25562         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25563         * xfns.c (x_default_scroll_bar_color_parameter):
25564         * xmenu.c (menu_help_callback):
25565         * xselect.c (Fx_get_atom_name):
25566         * xterm.c (x_term_init): Use empty_unibyte_string.
25568 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
25570         * alloc.c (init_strings): Initialize canonical empty strings.
25571         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25572         canonical empty string when the requested size is 0.
25574         * emacs.c (empty_unibyte_string): Rename from empty_string.
25575         (empty_multibyte_string): New canonical empty string.
25576         (syms_of_emacs): Don't initialize empty_string.
25578         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25579         string, if appropriate.
25580         (empty_unibyte_string, empty_multibyte_string): New externs.
25581         (empty_string): Remove extern.
25583         * lread.c (syms_of_lread): Use empty_unibyte_string.
25585 2007-06-07  Jason Rumney  <jasonr@gnu.org>
25587         * s/ms-w32.h: Don't define HAVE_TZNAME.
25589         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25591 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25593         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25595         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25596         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25598         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25599         Don't call next handler.
25600         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25601         Remove argument.  Install handler to application.
25602         (set_frame_menubar): Don't change deep_p.
25603         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25604         FRAME_OUTER_TO_INNER_DIFF_Y.
25605         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25606         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25607         [HAVE_DIALOGS]: New macros.
25608         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25609         Use them.
25610         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25612         * macselect.c [MAC_OSX] (install_service_handler): Rename from
25613         init_service_handler.  All callers changed.  Return OSStatus value.
25615         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
25616         All callers changed so as not to call SetPortWindowPort.
25617         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25618         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25619         mac_draw_string_common.
25620         (mac_draw_image_string_qd): Likewise.
25621         (mac_draw_string_common): Use them.  Add INLINE.
25622         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25623         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25624         GetGlobalMouse.
25625         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25626         and FRAME_OUTER_TO_INNER_DIFF_Y.
25627         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25628         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25629         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25630         repositioning window to mac_handle_window_event.
25631         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25632         saving window location to mac_handle_window_event
25633         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25634         (install_menu_target_item_handler): Remove argument in extern.
25635         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25636         Also accept command events.
25637         (do_keystroke): New function created from XTread_socket.
25638         (init_command_handler): Remove functions.
25639         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25640         and save window location by kEventWindowShowing and kEventWindowHiding
25641         handlers here.  Don't call next handler for window state change and
25642         focus events.
25643         (mac_handle_application_event, mac_handle_keyboard_event)
25644         [TARGET_API_MAC_CARBON]: New functions.
25645         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25646         kEventWindowShowing and kEventWindowHiding events.  Move installation
25647         of mouse, font, text input and menu target item handlers to
25648         install_application_handler.
25649         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25650         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25651         New function.
25652         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25653         Register it.
25654         (XTread_socket) [TARGET_API_MAC_CARBON]:
25655         Consolidate SendEventToEventTarget calls.
25656         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25657         Move application activation handler to mac_handle_application_event.
25658         Move keyboard handler to mac_handle_keyboard_event.
25659         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25660         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25661         init_command_handler.  Call install_application_handler.
25663         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25664         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25666 2007-06-07  Glenn Morris  <rgm@gnu.org>
25668         * emacs.c (main): Use `emacs-copyright' in --version output.
25670 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
25672         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25674 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25676         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25678         * macgui.h: Replace WindowPtr with WindowRef.
25680         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25681         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
25682         Replace ControlHandle with ControlRef.
25683         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25685         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25686         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
25687         Replace ControlHandle with ControlRef.
25688         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
25689         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25691         * macterm.h (struct scroll_bar): Rename member control_handle_low
25692         and control_handle_high to control_ref_low and control_ref_high.
25693         All uses changed.
25694         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25695         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25696         respectively.  All uses changed.
25697         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25698         (install_window_handler, remove_window_handler): Replace WindowPtr
25699         with WindowRef in externs.
25701 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
25703         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25705 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
25707         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25709         * frame.c (Fmouse_position, Fmouse_pixel_position):
25710         Condition on HAVE_GPM too.
25712         * term.c (term_mouse_highlight): Remove unused variables.
25713         (Fterm_open_connection): Set gpm_zerobased to 1.
25714         (term_mouse_movement, term_mouse_click, handle_one_term_event):
25715         Use zero based co-ordinates.
25716         (handle_one_term_event): Report a drag as mouse movement too.
25718         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25720 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
25722         * image.c (search_image_cache): New function.  Require background
25723         color match if background color is unspecified in the image spec.
25724         (uncache_image, lookup_image): Use it.
25726 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
25728         * window.c (Fshrink_window): Reflow docstring.
25730 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
25732         * Version 22.1 released.
25734 2007-06-01  Richard Stallman  <rms@gnu.org>
25736         * xfns.c (x_encode_text): Add GCPRO.
25738 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25740         * xfns.c (x_set_name_internal): Save encoded name before
25741         x_encode_text in case string data is relocated.
25743 2007-05-31  Richard Stallman  <rms@gnu.org>
25745         * buffer.c (syms_of_buffer): Doc fix.
25747 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
25749         * sysdep.c (init_sys_modes): Add rather than replace with
25750         O_NONBLOCK.
25752         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25753         term_mouse_moveto.
25755         * termhooks.h (term_mouse_moveto): New extern.
25757         * term.c (mouse_face_window): Rename...
25758         (Qmouse_face_window): ...to this.
25759         (term_show_mouse_face, term_clear_mouse_face)
25760         (term_mouse_highlight): Use Qmouse_face_window.
25761         (term_mouse_moveto): New function.
25762         (term_mouse_position): Make it work.
25763         (syms_of_term): Uncomment assignment to mouse_position_hook.
25764         Staticpro Qmouse_face_window.
25766 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25768         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25769         around current_column call.
25771 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
25773         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25774         * xdisp.c (next_element_from_buffer):
25775         * window.c (delete_window):
25776         * term.c (term_mouse_highlight):
25777         * msdos.c (getdefdir):
25778         * macterm.c (mac_create_bitmap_from_bitmap_data)
25779         (init_font_name_table):
25780         * fns.c (Fsxhash):
25781         * data.c (Fmake_local_variable):
25782         * ccl.c (ccl_driver): Likewise.
25784 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25786         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25787         Call mac_wakeup_from_rne on window size change.
25789 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
25791         * image.c (uncache_image): Fix typo.
25793 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
25795         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25797 2007-05-22  Richard Stallman  <rms@gnu.org>
25799         * xterm.c (x_connection_closed): Remove NO_RETURN.
25801 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
25803         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25805 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
25807         * image.c (uncache_image): New function.
25808         (Fimage_refresh): New function.
25810 2007-05-20  Jan Djärv  <jan.h.d@swipnet.se>
25812         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25814 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
25816         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25817         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25819 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
25821         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25822         conditional on [HAVE_GPM_H].
25824 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
25826         * syntax.c (skip_chars): Update syntax-table only after we checked that
25827         the new location is valid.
25829 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25831         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25832         mac_get_window_bounds.
25834 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
25836         * Makefile.in (LIBGPM): Allow it to be set from configure.
25837         If set then link Emacs with it.
25839         * config.in: Regenerate.
25841         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25842         New externs.
25844         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25845         Include gpm.h.
25846         (handle_one_term_event, term_gpm): New externs.
25848         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25849         and allow it to be interrupted by SIGIO.
25851         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25852         (wait_reading_process_output): Wait on gpm_fd too.
25853         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25854         (add_gpm_wait_descriptor_called_flag): New variable.
25855         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25857         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25858         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25859         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25860         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25861         (make_lispy_event): Add case GPM_CLICK_EVENT.
25862         (read_avail_input): Handle mouse input.
25864         * term.c (write_glyphs_with_face): New function.
25865         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25866         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25867         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25868         (mouse_face_face_id, term_gpm, pos_x, pos_y)
25869         (last_mouse_x, last_mouse_y): New variables.
25870         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25871         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25872         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25873         (Fterm_close_connection): New functions.
25874         (term_init): Initialise mouse_face_window.
25876 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
25878         * xdisp.c (redisplay_window): If first window line is a
25879         continuation line, recompute the new window start instead of
25880         recentering.
25882 2007-05-18  Glenn Morris  <rgm@gnu.org>
25884         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25885         Suggested by Alfred M. Szmidt <ams@gnu.org>.
25887 2007-05-17  Glenn Morris  <rgm@gnu.org>
25889         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25891 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25893         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25894         dead key repeat and up events.
25896 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
25898         * image.c (pbm_load): Check image size for monochrome pbm.
25900 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
25902         * xterm.c (XTread_socket): Revert last change.
25904 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
25906         * image.c (pbm_load): Correctly check image size for greyscale pbm.
25908         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25910 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
25912         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25913         mixup (YAILOM).
25915 2007-05-07  Andreas Schwab  <schwab@suse.de>
25917         * keymap.c (Flookup_key): Fix typo in last change.
25919 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
25921         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25922         mapping for unibyte strings.
25924 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25926         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25927         (Fx_popup_dialog) [MAC_OSX]: Likewise.
25929 2007-04-29  Richard Stallman  <rms@gnu.org>
25931         * insdel.c (replace_range): For undo, record insertion first.
25933 2007-04-29  Andreas Schwab  <schwab@suse.de>
25935         * lisp.h (VECSIZE): Use OFFSETOF.
25937 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25939         * xdisp.c (try_window_reusing_current_matrix): Fix number of
25940         disabled lines.
25942 2007-04-28  Richard Stallman  <rms@gnu.org>
25944         * lread.c (read_escape): In a string, \s is always space.
25946 2007-04-27  Jan Djärv  <jan.h.d@swipnet.se>
25948         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25950         * gtkutil.c (xg_update_menubar, create_menus): Create empty
25951         submenu for menu bar items.
25953 See ChangeLog.10 for earlier changes.
25955 ;; Local Variables:
25956 ;; coding: utf-8
25957 ;; add-log-time-zone-rule: t
25958 ;; End:
25960     Copyright (C) 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
25962   This file is part of GNU Emacs.
25964   GNU Emacs is free software: you can redistribute it and/or modify
25965   it under the terms of the GNU General Public License as published by
25966   the Free Software Foundation, either version 3 of the License, or
25967   (at your option) any later version.
25969   GNU Emacs is distributed in the hope that it will be useful,
25970   but WITHOUT ANY WARRANTY; without even the implied warranty of
25971   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25972   GNU General Public License for more details.
25974   You should have received a copy of the GNU General Public License
25975   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
25977 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40