(isearch-forward-regexp, isearch-forward-word)
[emacs.git] / src / ChangeLog
blobbb9f3c600a952f82acd5071ced375d8e02ae71ec
1 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
3         * bitmaps/README:
4         * xfns.c:
5         * termcap.c:
6         * term.c:
7         * syswait.h:
8         * systty.h:
9         * systime.h:
10         * syssignal.h:
11         * sysdep.c:
12         * process.h:
13         * process.c:
14         * print.c:
15         * ndir.h:
16         * lread.c:
17         * keyboard.c:
18         * getpagesize.h:
19         * floatfns.c:
20         * fileio.c:
21         * emacs.c:
22         * doc.c:
23         * dispnew.c:
24         * dired.c:
25         * data.c:
26         * callproc.c:
27         * buffer.c:
28         * README:
29         * Makefile.in:
30         * s/template.h:
31         * s/msdos.h:
32         * m/vax.h: Remove VMS support.
33         * s/vms.h:
34         * vlimit.h:
35         * uaf.h:
36         * temacs.opt:
37         * param.h:
38         * ioctl.h: Remove file.
40 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
42         * s/ms-w32.h (MULTI_KBOARD): Remove.
43         * xterm.c:
44         * xselect.c:
45         * xfns.c:
46         * window.c:
47         * w32term.c:
48         * w32fns.c:
49         * terminal.c:
50         * termhooks.h:
51         * term.c:
52         * sysdep.c:
53         * keyboard.h:
54         * keyboard.c:
55         * frame.h:
56         * frame.c:
57         * frame.c: Remove references to MULTI_KBOARD, it is now the
58         default.
59         * config.in: Regenerate.
61 2008-07-30  Jason Rumney  <jasonr@gnu.org>
63         * w32font.h (struct w32font_info): Use unicode version of textmetrics.
65         * w32font.c (w32font_encode_char): Leave as unicode if in range.
66         (w32font_open_internal): Get unicode version of textmetrics.
67         Don't enable or disable glyph indices here.
68         (w32font_open): Disable use of glyph indices.
70         * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
72 2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
74         * minibuf.c (Vread_buffer_function): Doc fix.
76 2008-07-30  John Paul Wallington  <jpw@pobox.com>
78         * minibuf.c (read_buffer_completion_ignore_case): New var.
79         (Fread_buffer): Use it.
81 2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
83         * systty.h (sensemode): Remove empty #if.  Remove reference to
84         BSD_TERMIOS, unused.
86         * sysdep.c: Remove reference to DGUX.
87         (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
89         * config.in: Regenerate.
91 2008-07-30  Jason Rumney  <jasonr@gnu.org>
93         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
95 2008-07-29  Jason Rumney  <jasonr@gnu.org>
97         * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
98         is populated.
99         (uniscribe_encode_char): Always use uniscribe.
100         Avoid using context if cache is populated.
102 2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
104         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
105         open menu.
107         * gtkutil.c (menu_nav_ended): Remove.
108         (create_menus): Remove signal connect for menu_nav_ended.
110 2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
112         * xdisp.c (redisplay_window): Check return value of
113         compute_window_start_on_continuation_line before forcing a window
114         start.
116 2008-07-28  Jason Rumney  <jasonr@gnu.org>
118         * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
120         * w32term.c (w32_enable_unicode_output, cleartype_active):
121         Remove obsolete display options.
122         (x_draw_glyph_string_background): Don't use old cleartype_active
123         workaround.
124         (w32_initialize): Remove cleartype_active initialization.
125         (syms_of_w32term): Remove w32_enable_unicode_output initialization.
127 2008-07-28  Andreas Schwab  <schwab@suse.de>
129         * lisp.h (init_weak_hash_tables, syms_of_font)
130         (xd_read_queued_messages, syms_of_dbusbind): Declare.
131         (remove_hash_entry): Don't declare.
132         * eval.c (maybe_call_debugger): Make static and move before use.
133         * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
134         * xdisp.c: Include "gtkutil.h" if USE_GTK.
135         * xterm.h (x_set_frame_alpha): Declare.
137 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
139         * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
140         (create_menus): Connect selection-done to menu_nav_ended.
142 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
144         * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
145         Set Vx_resource_name to a fallback.  Replace read of 'buffered'
146         parameter with read of 'alpha' one.
147         (Qns_frame_parameter): Remove.
148         * nsselection.m (selection-coding-system)
149         (next-selection-coding-system, Vselection_coding_system)
150         (Vnext_selection_coding_system): Drop.
152 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
154         * nsfns.m (do-applescript, do_applescript): Rename to
155         ns-do-applescript, ns_do_applescript, and move within file.
157 2008-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
159         Remove support for Mac Carbon.
160         * mactoolbox.c:
161         * macterm.h:
162         * macterm.c:
163         * macselect.c:
164         * macmenu.c:
165         * macgui.h:
166         * macfns.c:
167         * mac.c: Remove file.
168         * s/darwin.h:
169         * m/intel386.h:
170         * xfaces.c:
171         * xdisp.c:
172         * window.c:
173         * tparam.c:
174         * termhooks.h:
175         * termcap.c:
176         * term.c:
177         * syssignal.h:
178         * sysselect.h:
179         * sysdep.c:
180         * process.c:
181         * lread.c:
182         * lisp.h:
183         * keyboard.c:
184         * image.c:
185         * fringe.c:
186         * frame.h:
187         * frame.c:
188         * fontset.c:
189         * font.h:
190         * font.c:
191         * fns.c:
192         * fileio.c:
193         * emacs.c:
194         * dispnew.c:
195         * dispextern.h:
196         * config.in:
197         * atimer.c:
198         * Makefile.in: Remove code for Carbon
200 2008-07-26 YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
202         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
204 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
206         * macterm.h (kCGBitmapByteOrder32Host): New define for
207         non-universal SDKs.
209         * image.c (mac_create_cg_image_from_image, image_load_image_io)
210         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
212         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
213         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
215 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
217         * w32inevt.c: Include dispextern.h.
219 2008-07-26  Andreas Schwab  <schwab@suse.de>
221         * print.c (print_object): Fix off-by-one in last change.
223 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
225         * term.c (syms_of_term): Don't initialize default_orig_pair,
226         default_set_foreground and default_set_background on Windows.
228 2008-07-25  Jason Rumney  <jasonr@gnu.org>
230         * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
231         ScriptItemize.  Clean up return value checking.  Remove unused
232         variables.
233         (uniscribe_encode_char): Encode non-BMP characters with uniscribe
234         shaping engine.
236         * w32font.c (w32font_has_char): Handle the case where we can't
237         determine the script for a character.
239 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
241         * term.c (syms_of_term): Initialize default_orig_pair,
242         default_set_foreground, and default_set_background.
244         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
245         clash (bug#86).
246         (getloadavg): Callers changed.
248         * image.c (svg_load_image): Fix last change.
249         (svg_load_image): Use rsvg_handle_get_dimensions to check that
250         image size is valid.  Use g_object_unref instead of deprecated
251         rsvg_handle_free to free rsvg handle.
252         (x_from_xcolors): Don't initialize pixmap (silence compiler).
254 2008-07-25  Jason Rumney  <jasonr@gnu.org>
256         * w32font.c (w32font_encode_char): Encode characters outside BMP as
257         surrogates before looking up glyph index.
258         (w32font_text_extents): Encode as surrogates if falling back to
259         functions that need UTF-16 wide chars.
261         * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
262         BMP as surrogates before looking up glyph index.
264 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
266         * image.c (svg_load_image): Check for failure in return value of
267         rsvg_handle_get_pixbuf.  Free rsvg handle when done.
269 2008-07-25  Jason Rumney  <jasonr@gnu.org>
271         * w32font.c (Fx_select_font): Reverse sense of second arg.
273 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
275         * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
276         (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
278         * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
279         (PURESIZE): Use it.
281 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
283         * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
284         * m/alpha.h (TEXT_END):
285         * m/ibmrs6000.h (TEXT_END):
286         * m/macppc.h (TEXT_END):
287         * s/darwin.h (TEXT_END):
288         * s/msdos.h (TEXT_END): Remove, unused.
289         * s/gnu-linux.h (BSD_PGRPS): Add a comment.
290         * s/cygwin.h: Remove comment.
292         * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
293         (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
294         * m/intel386.h (DOT_GLOBAL_START):
295         * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
296         (USG): Remove, file not used on USG platforms.
298         * Makefile.in (HAVE_X11): Remove empty #else.
300 2008-07-24  Andreas Schwab  <schwab@suse.de>
302         * fileio.c (Finsert_file_contents): Properly adjust undo list
303         after format conversion.
305 2008-07-24  Jan Djärv  <jan.h.d@swipnet.se>
307         * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
308         (menu_nav_ended): Remove.
309         (create_menus): Remove signal connect for menu_nav_ended.
310         (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
311         create_menus.
312         (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
314 2008-07-23  Jason Rumney  <jasonr@gnu.org>
316         * w32font.c (w32_enumfont_pattern_entity): Return height consistent
317         with opened font.
318         (w32font_open): Set font type to gdi.
320         * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
322 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
324         * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
325         * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
326         defines it.
327         * unexec.c (ADDR_CORRECT): Define unconditionally.
329         * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
331         * unexec.c: Remove code depending on !COFF and USG, the file is
332         not used for such systems.
334         * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
335         * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
336         (LD_SWITCH_SYSTEM_1): Remove, update users.
338         * s/darwin.h (DATA_END):
339         * m/intel386.h (DATA_END):
340         * m/ibmrs6000.h (DATA_END):
341         * m/alpha.h (DATA_END): Remove, unused.
343         * config.in: Regenerate.
344         * s/ms-w32.h (subprocesses): Define unconditionally.
345         * s/template.h (subprocesses): Update comment.
346         * s/vms.h (subprocesses):
347         * s/usg5-4.h (subprocesses):
348         * s/hpux10-20.h (subprocesses):
349         * s/gnu-linux.h (subprocesses):
350         * s/cygwin.h (subprocesses):
351         * s/bsd-common.h (subprocesses):
352         * s/aix4-2.h (subprocesses):
353         * s/darwin.h (subprocesses): Do not define, defined by default now.
355         * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
356         Remove all references.
357         (temacs): Add GNUStep specific ld flags.
359         * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
360         similarly to what X does.
362 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
364         * nsfns.m (x-list-fonts): Remove.
365         (syms_of_nsfns): Drop the x-list-fonts declaration.
366         * nsterm.m: Get rid of remaining "//" comments.
368 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
370         * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
372         * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
373         (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
374         (Fns_own_selection_internal, Fx_disown_selection_internal)
375         (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
377         * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
378         ... */' style of docstrings.  Doc fixes.
380 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
382         * terminfo.c (UP, BC, PC): Undo previous change.
384         * nsfns.m: Rename ns prefixed functions/variables to the
385         corresponding x versions.  Update references.
387 2008-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
389         * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
391 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
393         * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
394         Remove forwarding functions.
395         (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
396         non-static.
397         (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
398         non-static.
399         (ns_frame_parm_handlers): Use the new names.
400         (syms_of_nsfns): Move to the end of file.
402         * nsterm.m (syms_of_nsterm): Move to the end of file.
404         * dispnew.c (init_display): Remove code for X10.
406 2008-07-22  Jason Rumney  <jasonr@gnu.org>
408         * w32proc.c (Fw32_long_file_name): Don't append dir separator to
409         bare drive.
411 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
413         * nsgui.h:
414         * nsfont.m:
415         * nsmenu.m:
416         * nsterm.m: Change PENDINGS to FIXME / TODO / XXX.
418 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
420         * nsterm.m (syms_of_nsterm): Remove debugging println.
422 2008-07-22  David Reitter  <david.reitter@gmail.com>
424         * nsfns.m (do_applescript, F_do_applescript): NS version of the
425         Carbon implementation of the same functionality: execute arbitrary
426         AppleScript code.
428 2008-07-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
430         * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
431         (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
432         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
433         (Fx_display_mm_height, Fx_display_mm_width)
434         (Fx_display_backing_store, Fx_display_visual_class)
435         (Fx_display_save_under, Fx_open_connection)
436         (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
437         (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
438         (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
439         (Fx_display_pixel_width, Fx_display_pixel_height)
440         (Fx_display_usable_bounds, Fx_display_planes)
441         (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
442         ... */' style of docstrings.
444 2008-07-21  Dan Nicolaescu  <dann@ics.uci.edu>
446         * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
447         on this platform.
448         (mips):
449         * m/iris4d.h (mips): Do not define.
450         * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
452         * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
454         * image.c:
455         * nsfns.m:
456         * nsselect.m:
457         * nsterm.h:
458         * nsterm.m: Rename ns prefixed functions/variables to the
459         corresponding x versions.  Update references.
461         * m/ibms390x.h (NO_REMAP): Do not undefine.
463         * m/amdx86-64.h: Use SOLARIS2 instead of sun.
465 2008-07-21  Chong Yidong  <cyd@stupidchicken.com>
467         * nsfns.m: Change NS to Nextstep in docstrings and error messages.
468         (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
469         (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
470         (Fns_server_vendor, Fns_server_version, Fns_display_screens)
471         (Fns_display_mm_height, Fns_display_mm_width)
472         (Fns_display_backing_store, Fns_display_visual_class)
473         (Fns_display_save_under, Fns_open_connection)
474         (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
475         (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
476         (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
477         (Fns_display_pixel_width, Fns_display_pixel_height)
478         (Fns_display_usable_bounds, Fx_display_planes)
479         (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
481 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
483         * print.c (print_object): Check print_depth before searching for
484         circularities.
486 2008-07-21  Michael Albinus  <michael.albinus@gmx.de>
488         * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
489         only sprintf.
491 2008-07-21  Kenichi Handa  <handa@m17n.org>
493         * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
495 2008-07-20  Andreas Schwab  <schwab@suse.de>
497         * syntax.c (find_start_pos, find_start_value)
498         (find_start_value_byte, find_start_begv, find_defun_start)
499         (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
501 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
503         * s/sol2-3.h: Insert contents of s/sol2.h.
504         (LD_SWITCH_SYSTEM): Remove redundant definition.
505         * s/sol2.h: Remove, unused.
507 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
509         * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
511 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
513         * Makefile.in (ns_appdir): Fix typo in find command.
515 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
517         * m/intel386.h (NO_REMAP): Do no define for USG, not used.
519         * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
520         added not supported anymore.
522         * s/usg5-4-2.h (LIBS_SYSTEM):
523         * s/sol2.h (LIBS_SYSTEM): Do not undefine.
525         * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
526         * s/lynxos.h (GETPGRP_NO_ARG):
527         * s/hpux10-20.h (NO_SIOCTL_H):
528         * s/gnu.h (GETPGRP_NO_ARG):
529         * s/gnu-linux.h (NO_SIOCTL_H):
530         * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
531         * s/cygwin.h (GETPGRP_NO_ARG):
532         * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
533         (C_DEBUG_SWITCH): Remove duplicate definition.
535         * m/ibms390.h: Remove boilerplate comments.
537         * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
539         * process.c (HAVE_SERIAL): Consolidate ifdefs.
540         (wait_reading_process_output): Remove code for SunOS, platform not
541         supported anymore.  Use SOLARIS2 instead of sun.
543 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
545         * font.c (font_open_by_name): Under NS, default lface height to zero.
546         (font_open_for_lface): Under NS, set size based on frame fontsize.
547         * nsterm.m (EmacsView-changeFont:): Remove some commented code.
548         * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
550 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
552         * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
553         (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
554         DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
555         YES/NO.
556         * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
557         * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
558         * Makefile.in (clean): Clear out build destination dir.
560 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
562         * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
563         xterm, xselect.
564         * lisp.h: Remove declaration of hash_remove.
565         * nsgui.h: Remove redefinitions of hash_remove.
566         * fns.c (hash_remove): Rename to hash_remove_from_table.
568 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
570         * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
571         strdup() the family UTF8String before modifying it.  Patch due to
572         Seiji Zenitani.
574 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
576         * nsfns.m (ns_set_background_color): Apply patch from Chong Yidong to
577         fix crash.
578         * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
579         NS_FACE_BACKGROUND with 0 instead of nil.
580         * nsfont.m (nsfont_draw): Same.
582 2008-07-18  Chong Yidong  <cyd@stupidchicken.com>
584         * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
586 2008-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
588         * puresize.h (BASE_PURESIZE): Increase to 1240000.
590 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
592         * gtkutil.c: Include <config.h> instead of "config.h".
594         * lisp.h (Foverlay_buffer): Add EXFUN.
596         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
597         child process to complete child_setup.  Undo 2005-09-21 change.
599         * s/darwin.h: Mention setsid after vfork.
601 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
603         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
604         Depend on macgui.h.
606         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
607         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
609         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
610         and f19.
611         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
613         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
614         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
615         Remove enumerators.
617         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
618         Check if FACE_FROM_ID returns NULL.
620 2008-07-17  David Robinow  <drobinow@gmail.com>  (tiny change)
622         * w32inevt.c (change_frame_size): Remove extern declaration.
623         (resize_event, maybe_generate_resize_event): Pass SAFE arg to
624         change_frame_size.
626 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
628         * getloadavg.c: Revert last change (2008-07-15).
630 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
632         * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
633         set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
634         from configure.
636 2008-07-17  Dan Nicolaescu  <dann@ics.uci.edu>
638         * s/sol2.h:
639         * s/sol2-4.h: Reorganize conditionals.
641         * ecrt0.c: Remove code depending on m68000, not used anymore.
643         * fns.c (hash_remove): Make static.
644         * lisp.h (hash_remove): Don't prototype.
646         * m/ibmrs6000.h:
647         * m/ibms390x.h:
648         * m/macppc.h: Remove boilerplate comments.
650         * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
651         Solaris, which does not need them.
653         * m/vax.h: Remove comments about unsupported systems.
655         * s/darwin.h: Reorganize ifdefs.
657 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
659         * config.in:
660         * dispextern.h:
661         * frame.c:
662         * image.c:
663         * nsfns.m:
664         * nsfont.m:
665         * nsgui.h:
666         * nsmenu.m:
667         * nsterm.h:
668         * nsterm.m:
669         * s/darwin.h:
670         * xdisp.c: Change most cases of PENDING to TODO, some to FIXME or XXX.
672 2008-07-17  Andreas Schwab  <schwab@suse.de>
674         * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
676 2008-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
678         Use SDATA.  Follow coding convention of placing operators at
679         beginning of next line rather than end of previous line, and placing
680         spaces around infix operators.
682         * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
683         in case it was defined already.
684         USE @GNUSTEP_MAKEFILES@ rather than envvars.
685         * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
686         ns_default.
687         (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
688         Lisp_Objects.
689         * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
690         (ns_defined_color, ns_color_to_lisp): Declare.
691         * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
692         (Fns_own_selection_internal): Make the big ugly hack more explicit, so
693         it's accepted even with USE_LISP_UNION_TYPE.
694         * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
695         (update_frame_tool_bar): Remove apparently obsolete tests for
696         non-integerness of f->tool_bar_lines.
697         (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
698         hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
699         * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
700         (nsfont_open): Don't confuse NULL for Qnil.
701         * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
702         * menu.h (find_and_call_menu_selection):
703         * menu.c (find_and_call_menu_selection): Use just int for vector size.
704         (find_and_return_menu_selection): Always return something.
705         * frame.h: Include dispextern.h for Display_Info.
706         (display_x_get_resource): Declare.
708 2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
710         * syntax.c: Remove stdio.h include accidentally introduced in
711         Emacs.app commit.
712         * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
713         NS_IMPL_COCOA.
714         * keyboard.c (handle_async_input, input_available_signal): Remove
715         BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
717 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
719         * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
720         (ns_lisp_to_color): Don't mess with internal Lisp data fields.
721         (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
722         Use SDATA.
724         * keymap.c: Remove all NS-specific code.
725         (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
726         (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
727         where_is_preferred_modifier, return a different value depending on how
728         preferred is the binding.
729         (where_is_internal): Adjust accordingly.
730         (Fwhere_is_internal): Refresh where_is_preferred_modifier.
731         Adjust to new preferred_sequence_p.
732         (syms_of_keymap): Declare `where-is-preferred-modifier'.
733         * keyboard.c (parse_solitary_modifier): Not static any more.
734         * keyboard.h (parse_solitary_modifier): Declare.
736 2008-07-16  Andreas Schwab  <schwab@suse.de>
738         * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
739         of easymenu.
741 2008-07-16  Chong Yidong  <cyd@stupidchicken.com>
743         * xdisp.c (move_it_in_display_line): Account for word wrap, so
744         that we don't move off the line.
746 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
748         * keyboard.c (Qsuper): Remove.
749         (parse_menu_item): Don't call where_is_internal specially for NS.
751 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
753         * s/gnu-linux.h: Remove boilerplate comments.
755         * m/alpha.h (__ELF__): Consolidate conditions.
757         * m/m68k.h (linux): Use GNU_LINUX instead.
758         Remove boilerplate comments.
760         * m/intel386.h: Undo reactoring from previous change.
761         (LIB_STANDARD): All systems that define USG define LIB_STANDARD
762         too, remove dead code.
763         (linux): Use GNU_LINUX instead.
765 2008-07-16  Jason Rumney  <jasonr@gnu.org>
767         * w32gui.h: Repeat 26 June changes lost by last change.
769 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
771         * systty.h: Remove code for Aix on 386, unsupported platform.
773         * s/ms-w32.h: Remove boilerplate comments.
774         (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
776         * s/gnu-linux.h (TERM): Remove support.
777         (HAVE_SYSVIPC): Remove, unused.
778         (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
779         for this system.
781         * process.c: Remove support for IRIS, unused.
782         Remove support for TERM, not relevant anymore.
784         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
785         used with the definition.
787         * s/aix4-2.h (static): Do not undef.
789         * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
790         only used on Aix.
791         (HAVE_SYSVIPC): Remove, unused.
793         * m/hp800.h (CANNOT_DUMP): Do not undef.
795         * m/alpha.h: Fix comment.
797         * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
798         (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
799         used by this configuration.
800         * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
801         * unexec.c: Remove code depending on HPUX and
802         USG_SHARED_LIBRARIES, not used with this file.  Remove code
803         depending on IRIS, unused.  Remove if 0-ed code.
805         * s/template.h: Remove comments about static.
807         * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
808         Remove if 0-ed code.
809         (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
810         were the same as the default.
811         * s/vms.h (BAUD_CONVERT): Remove, same as the default.
812         Remove boilerplate comments.
813         * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
814         (HAVE_SYSVIPC): Remove, unused.
815         (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
817         * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
818         Remove boilerplate comments.
819         * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
820         Remove boilerplate comments.
821         * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
822         Remove boilerplate comments.
823         * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
825         * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
826         USG systems which do not use DATA_SEG_BITS.
827         Refactor code.  Remove boilerplate comments.
829         * m/ibms390.h:
830         * m/m68k.h:
831         * s/bsd-common.h:
832         * s/cygwin.h:
833         * s/darwin.h:
834         * s/freebsd.h:
835         * s/gnu.h:
836         * s/msdos.h: Remove boilerplate comments.
838         * m/iris4d.h: Remove boilerplate comments and code for systems that
839          do not use this file.
840         (IRIS_4D): Remove, unused.
842         * m/mips.h: Remove boilerplate comments and code for systems that
843          do not use this file.
844         (SIGN_EXTEND_CHAR):
845         * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
846         * unexmips.c: Remove file, unused.
848         * editfns.c (Fuser_full_name): Replace the only use of
849         USER_FULL_NAME with its value.
850         * config.in: Regenerate.
852 2008-07-16  David Reitter  <david.reitter@gmail.com>
854         * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
855         easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
857 2008-07-16  Glenn Morris  <rgm@gnu.org>
859         * emacs.c (system-type): Doc fix.
861 2008-07-15  Stefan Monnier  <monnier@iro.umontreal.ca>
863         * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
864         If the cache doesn't work, let's fix it, rather than work around it.
866 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
868         * Makefile.in: Correct additions for nsfont.o in last commit.
869         * nsfont.m: New file (forgot last commit).
871 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
873         Changes and additions for NeXTstep windowing system (Cocoa and
874         GNUstep) support.
876         * Makefile.in:
877         * config.in: Support defines and build commands for NS port.
878         * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
879         (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
880         * callproc.c (set_initial_environment): Initialize
881         Vprocess_environment under CANNOT_DUMP (fixes crash when
882         batch-compiling for bootstrap, due to Chris Hall).
883         * dispextern.h: Include nsgui.h and add needed typedefs under NS
884         windowing.
885         (struct face): Add synth_ital field.
886         * dispnew.c: Include nsterm.h when compiling under NS windowing.
887         (init_display): Initialize Vinitial_window_system to "ns" when so
888         compiled.
889         * emacs.c: Include GSConfig.h when compiling under GNUstep.
890         (display_arg): Use under NS.
891         (main): Under NS, allocate autorelease pool and handle command line
892         args.  Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
893         (standard_args): Add NS-specific args.
894         (shut_down_emacs): Shut down NS terminal if compiled under NS.
895         * font.c (DEFAULT_ENCODING): New variable.
896         (font_find_for_lface): Use it.
897         (syms_of_font): Load syms_of_nsfont under NS.
898         * font.h: Declare nsfont_driver when compiled under NS.
899         * fontset.c: When compiling under NS, include nsterm.h.
900         (fontset_from_font): Autoconstruct fontset under NS.
901         * frame.c (various): Under NS, include nsterm.h, add Qns window system
902         symbol, document and use it.
903         (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
904         patch to fix crash due to different init order, due to Chris Hall and
905         Yamamoto Mitsuharu.
906         (do_switch_frame): When for_deletion under Cocoa, add
907         Fraise_frame(Qnil).
908         (x_set_frame_parameters): Ensure font attribute changes are picked up.
909         (x_get_arg): Allow "yes" and "no" as boolean values.
910         (syms_of_frame): Declare Qns.  Init Vdefault_frame_scroll_bars to
911         Qright under Cocoa.
912         (focus-follows-mouse): Default to 0 under NS.
913         * frame.h (enum output_method): Add output_ns.
914         (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
915         (FRAME_EXTERNAL_MENU_BAR): Use under NS.
916         (FRAME_WINDOW_P): NS-specific definition.
917         * fringe.c (max_used_fringe_bitmap): Make public.
918         * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
919         (getloadavg): Use NeXT code under descendant OS's.
920         * image.c (includes and header section, x_create_bitmap_from_data)
921         (x_create_bitmap_from_file, free_bitmap_record, image_background)
922         (image_background_transparent, x_clear_image_1)
923         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
924         (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
925         (x_to_xcolors, x_from_xcolors, x_disable_image)
926         (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
927         other GUIs, including XPM support using code originally written for
928         Carbon GUI.
929         (png_load, jpeg_load, tiff_load, gif_load): Add implementations
930         using NS API.
931         (image_ascent): Use font metrics macros instead of direct struct field
932         access.
933         * keyboard.c (includes): Add nsterm.h when compiling under NS.
934         (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
935         Also, handle NS as GTK for menu bar purposes.
936         (make_lispy_event): Handle NS as other GUI windowing systems, and as X
937         toolkit where they differ.
938         (parse_menu_item): Prefer keybindings using 'super' modifier.  Also,
939         use cachelist, still needed under NS.
940         * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
941         (struct widget_value): Define it here for menu.c.
942         * keymap.c (includes): Include modifier internals.
943         (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
944         NS.
945         (where_is_internal, Fwhere_is_internal): When compiled under NS, add
946         support for preferring sequences using certain modifiers, specified by
947         the FIRSTONLY argument.
948         * lisp.h (hash_remove): Rename to avoid name clash when compiling
949         under NS GNUstep implementation.
950         (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
951         * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
952         * menu.c: Include nsterm.h under NS.
953         (single_menu_item, parse_single_submenu, xmalloc_widget_value)
954         (free_menubar_widget_tree_value, update_submenu_strings)
955         (find_and_call_menu_selection): Treat NS as X and NT.
956         (find_and_return_menu_selection): New function, used for popup menus.
957         * nsgui.h:
958         * nsterm.h:
959         * nsfns.m:
960         * nsimage.m:
961         * nsmenu.m:
962         * nsselect.m:
963         * nsterm.m: New files.
964         * process.c (wait_reading_process_output): Under NS, call ns_select()
965         instead of plain select().
966         * syntax.c (char_quoted): Under NS, avoid a crash when called near
967         beginning of buffer.
968         * sysselect.h (init_process): Rename when compiling under Cocoa to
969         avoid name conflict.
970         * termhooks.h (display_info): Add ns_display_info to union.
971         * terminal.c (Fterminal_live_p): Add ns to terminal types.
972         * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
973         COCOA environment.
974         * unexnext.c: Update to work with mach API on Mac OS X, and to use new
975         unexec() signature.  (Note, this will dump, but the resulting file
976         crashes; unexosx is used instead; keeping around for reference and
977         possible aid in getting dump working under GNUstep.)
978         * w32gui.h (button_type, widget_value): Remove definitions (now in
979         keyboard.h).
980         * window.c: Include nsterm.h when compiling under NS.
981         * xdisp.c (includes): Include nsterm.h when compiling under NS.
982         (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
983         other GUI windowing systems.
984         (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
985         GTK.
986         (x_consider_frame_title): Under NS, set icon type and frame
987         modified-state indicator; use ns_set_name_as_filename() when using
988         formatted title.
989         (update_window_cursor): Make public when compiling under NS.
990         (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
991         (hourglass_atimer, Vhourglass_delay
992         * xfaces.c (header section, init_frame_faces, clear_font_table)
993         (defined_color, unload_color, x_face_list_fonts)
994         (prepare_face_for_display): Add NS support parallel to other GUIs.
995         Emulate GCs like other non-X GUIs.
996         (split_font_name): Don't lowercase font name under NS.
997         (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
998         under NS.
999         * s/darwin.h: Add support for compilation under NS.
1001 2008-07-15  Jason Rumney  <jasonr@gnu.org>
1003         * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
1004         (w32_show_hourglass): Rename from show_hourglass.
1005         (w32_hide_hourglass): Rename from hide_hourglass.
1006         (DEFAULT_HOURGLASS_DELAY): Revert from last change.
1007         (Vhourglass_delay): Declare extern.
1008         (hourglass_started): Remove.
1010         * xdisp.c (Vhourglass_delay): Remove static.
1011         (hourglass_started, start_hourglass, cancel_hourglass):
1012         Don't include these versions on WINDOWSNT.
1014 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
1016         * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
1017         variables (formerly in xfns.c).
1018         (show_hourglass, hide_hourglass): New prototypes (same).
1019         * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
1020         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
1021         in xfns.c).
1022         (syms_of_xdisp): Declare/initialize display-hourglass,
1023         hourglass-delay.  Initialize hourglass_atimer, hourglass_shown_p.
1024         (hourglass_started, start_hourglass, cancel_hourglass): New functions,
1025         formerly in xfns.c.
1026         * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1027         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1028         (start_hourglass, cancel_hourglass): Remove.
1029         (show_hourglass, hide_hourglass): Remove prototypes and static
1030         modifiers.
1031         (syms_of_xfns): Remove display-hourglass, hourglass-delay,
1032         hourglass_atimer, hourglass_shown_p declaration/initialization.
1033         * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1034         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1035         (start_hourglass, cancel_hourglass): Remove.
1036         (show_hourglass, hide_hourglass): Remove prototypes and static
1037         modifiers.
1038         (syms_of_macfns): Remove display-hourglass, hourglass-delay,
1039         hourglass_atimer, hourglass_shown_p declaration/initialization.
1040         * w32fns.c (display_hourglass_p, Vhourglass_delay)
1041         (DEFAULT_HOURGLASS_DELAY): Remove.
1042         (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
1043         hourglass_shown_p declaration/initialization.
1045 2008-07-14  Jason Rumney  <jasonr@gnu.org>
1047         * w32fns.c (w32_get_arg): Remove wrapper function.
1048         (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
1049         directly.
1050         (Fx_create_frame): Sync with xfns.c.  Use x_get_arg directly.
1052 2008-07-14  Kenichi Handa  <handa@m17n.org>
1054         * xfont.c (xfont_open): Add workaround for X's bug.
1056 2008-07-14  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
1058         * fontset.c: Include <stdio.h> unconditionally.
1060 2008-07-13  Michael Albinus  <michael.albinus@gmx.de>
1062         * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
1063         for filtering.
1065 2008-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
1067         * s/vms.h: Use __GNUC__ instead of _GNUC_.
1069         * m/macppc.h:
1070         * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
1072         * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
1073         (SPECIAL_EMACS_INT):
1074         * m/ia64.h (SPECIAL_EMACS_INT):
1075         * m/amdx86-64.h (SPECIAL_EMACS_INT):
1076         * s/gnu.h (NLIST_STRUCT):
1077         * aix4-2.h (X11R5_INHIBIT_I18N):
1078         * s/gnu-linux.h (LINUX):
1079         * s/msdos.h (HAVE_FACES):
1080         * s/ms-w32.h (HAVE_FACES): Don't define, unused.
1082         * systty.h:
1083         * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
1084         anymore.
1086 2008-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
1088         * syswait.h: Remove old if 0 code.  Do not define WAITTYPE, it was
1089         always defined as int.
1091         * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
1092         * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
1093         * s/gnu-linux.h (HAVE_WAIT_HEADER):
1094         * s/freebsd.h (HAVE_WAIT_HEADER):
1095         * s/bsd-common.h (HAVE_UNION_WAIT):
1096         * s/aix4-2.h (HAVE_WAIT_HEADER):
1097         * m/mips.h (HAVE_UNION_WAIT):
1098         * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
1099         (COFF, static): Do not define, they are undefined later in the file.
1101         * process.c (update_status): Don't use a union.
1102         (status_convert):
1103         (sigchld_handler): Use int instead of WAITTYPE.
1105 2008-07-12  Chong Yidong  <cyd@stupidchicken.com>
1107         * indent.c (Fvertical_motion): Restore hscroll before moving to
1108         goal column.
1110 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
1112         * lisp.h: Remove left over code.
1114 2008-07-11  Andreas Schwab  <schwab@suse.de>
1116         * lisp.h: Fix logic in last change.
1118         * menu.h: New file.
1119         * menu.c: Include it.
1120         * xmenu.c: Likewise.
1121         * Makefile.in: Update dependencies.
1123 2008-07-11  Kenichi Handa  <handa@m17n.org>
1125         * fontset.c (fontset_from_font): Cancel the previous change.
1127 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
1129         * lisp.h:
1130         * w32heap.c:
1131         * emacs.c:
1132         * alloc.c: Replace all references of NO_UNION_TYPE with
1133         USE_LISP_UNION_TYPE.
1135         * m/xtensa.h (NO_UNION_TYPE):
1136         * m/vax.h (NO_UNION_TYPE):
1137         * m/template.h (NO_UNION_TYPE):
1138         * m/sparc.h (NO_UNION_TYPE):
1139         * m/mips.h (NO_UNION_TYPE):
1140         * m/macppc.h (NO_UNION_TYPE):
1141         * m/m68k.h (NO_UNION_TYPE):
1142         * m/iris4d.h (NO_UNION_TYPE):
1143         * m/intel386.h (NO_UNION_TYPE):
1144         * m/ibms390x.h (NO_UNION_TYPE):
1145         * m/ibms390.h (NO_UNION_TYPE):
1146         * m/ibmrs6000.h (NO_UNION_TYPE):
1147         * m/ia64.h (NO_UNION_TYPE):
1148         * m/hp800.h (NO_UNION_TYPE):
1149         * m/arm.h (NO_UNION_TYPE):
1150         * m/amdx86-64.h (NO_UNION_TYPE):
1151         * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
1152         defining it the same.
1154 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
1156         * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
1158 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
1160         * src/fileio.c:
1161         * src/sysdep.c
1162         * src/systty.h:
1163         * src/m/ibmrs6000.h:
1164         * src/m/iris4d.h:
1165         * src/s/aix4-2.h:
1166         * src/s/freebsd.h:
1167         * src/s/gnu-linux.h:
1168         * src/s/hpux10-20.h:
1169         * src/s/hpux11.h:
1170         * src/s/netbsd.h:
1171         * src/s/sol2-3.h:
1172         * src/s/sol2-4.h:
1173         * src/s/sol2.h:
1174         * src/s/usg5-4.h:
1175         * src/s/vms.h: Remove references to unused variables.
1177 2008-07-10  Andreas Schwab  <schwab@suse.de>
1179         * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
1180         pattern before matching the generic family.
1182 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
1184         * unexec.c:
1185         * s/vms.h:
1186         * s/usg5-4-2.h:
1187         * s/sol2-5.h:
1188         * s/freebsd.h:
1189         * s/darwin.h: Remove dead code.
1191         * m/template.h:
1192         * m/sparc.h:
1193         * m/mips.h:
1194         * m/m68k.h:
1195         * m/iris4d.h:
1196         * m/intel386.h:
1197         * m/ibms390x.h:
1198         * m/ibms390.h:
1199         * m/ia64.h:
1200         * m/hp800.h:
1201         * m/arm.h:
1202         * m/amdx86-64.h: Remove dead code and references to unused
1203         and compiler defined symbols.
1205         * unexmips.c:
1206         * unexelf.c: Remove references to desupported systems.
1208         * m/powermac.h: Remove file, it is now identical to m/macppc.h.
1210         * m/powermac.h: Remove boilerplate comments.
1211         (NO_REMAP): Remove unused definition.
1213         * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
1214         define them.
1216 2008-07-10  Kenichi Handa  <handa@m17n.org>
1218         * xfont.c (xfont_open): Log the reason of failure.
1220 2008-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
1222         * fontset.c (fontset_get_font_group):
1223         * font.c (font_check_otf): Specify argument types.
1225 2008-07-09  Kenichi Handa  <handa@m17n.org>
1227         * coding.c (detect_coding_utf_8): Set detect_info->found only when
1228         non-ASCII char is found.
1230         * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
1231         (reorder_font_vector): Change the arg preferred_family to font.
1232         Prefer the spec matching with font.
1233         (fontset_get_font_group): New function.
1234         (fontset_find_font): Change the format of an element of a realized
1235         fontset.  Use fontset_get_font_group.
1236         (fontset_font): Try the current fontset, the default fontset, the
1237         fallbacks of the current fonset, and the fallbacks of the default
1238         fontset in this order.
1239         (face_for_char): Delete the shortcut to use the current font.
1240         (fontset_from_font): Don't set fonts for Latin in the fontset.
1242         * font.h (font_make_object, font_match_p): Adjust prototypes.
1244         * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
1246         * font.c (font_make_object): New arg entity and pixelsize.
1247         (font_check_otf_features, font_check_otf): New functions.
1248         (font_match_p): Check :lang, :script, and :otf properties.
1250         * xfont.c (xfont_open): Adjust it for the change of
1251         font_make_object.
1252         (xfont_text_extents): Fix initial setting of metrics.
1254         * ftfont.c (struct ftfont_info): New member index, delete member
1255         fc_charset_idx.  Make the member order compatible with struct
1256         xftfont_info.
1257         (fc_charset_table): Change charset names to registry names.
1258         (ftfont_pattern_entity): Delete the args registry and
1259         fc_charset_idx.  Change the value of :font-entity property
1260         to (FONTNAME . INDEX).  Always set :registry property to
1261         `iso10646-1'.
1262         (struct ftfont_cache_data): New struct.
1263         (ftfont_lookup_cache): New arg for_face.
1264         (ftfont_get_fc_charset, ftfont_get_otf): New functions.
1265         (ftfont_driver): Set the member otf_capability.
1266         (ftfont_get_charset): Adjust it for the change of
1267         fc_charset_table.
1268         (OTF_TAG_SYM): New macro.
1269         (ftfont_spec_pattern): Delete the arg fc_charset_idx.  Adjust it
1270         for the change of fc_charset_table.
1271         (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
1272         ftfont_pattern_entity.  Add FC_INDEX to objset.
1273         (ftfont_match): Adjust it for the change of ftfont_spec_pattern
1274         and ftfont_pattern_entity.
1275         (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
1276         font_make_object, struct ftfont_info.
1277         (ftfont_has_char): Use ftfont_get_fc_charset.
1278         (ftfont_otf_features, ftfont_otf_capability): New functions.
1279         (ftfont_shape): Use ftfont_get_otf.
1280         (ftfont_text_extents): Fix initial setting of metrics.
1282         * xftfont.c (struct xftfont_info): New member ft_size.  Make the
1283         member order compatible with struct ftfont_info.
1284         (xftfont_open): Add FC_CHARSET to the pattern.  Set
1285         xftfont_info->ft_size.  Don't unlock the face.  Check BDF
1286         properties if appropriate.
1287         (xftfont_close): Unlock the face.
1288         (xftfont_anchor_point, xftfont_shape): Deleted.
1289         (syms_of_xftfont): Don't set members anchor_point and shape of
1290         xftfont_driver.
1292         * w32uniscribe.c (uniscribe_open): Adjust it for the change of
1293         font_make_object.
1295         * w32font.c (w32font_open): Adjust it for the change of
1296         font_make_object.
1297         (w32font_open_internal): Don't set properties of font_object here.
1299 2008-07-08  Chong Yidong  <cyd@stupidchicken.com>
1301         * macfns.c (x_create_tip_frame):
1302         * w32fns.c (x_create_tip_frame):
1303         * xfns.c (x_create_tip_frame): Pass parameter argument to
1304         face-set-after-frame-default.
1306         * xfaces.c (Finternal_merge_in_global_face): Save merged
1307         attributes for the default face back into the face vector.
1309 2008-07-08  Andreas Schwab  <schwab@suse.de>
1311         * fontset.h: Declare fontset_from_font.  Don't declare
1312         new_fontset_from_font and fontset_from_font_name.
1313         * xterm.c: Include "fontset.h".
1314         * Makefile.in (xterm.o): Update dependencies.
1316 2008-07-08  Glenn Morris  <rgm@gnu.org>
1318         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
1319         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
1321 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
1323         * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
1324         (x_set_frame_parameters): Don't bind it.
1326 2008-07-07  Juanma Barranquero  <lekktu@gmail.com>
1328         * w32fns.c (map_w32_filename): Declare extern.
1330 2008-07-07  Jason Rumney  <jasonr@gnu.org>
1332         * w32term.c (WS_EX_LAYERED): Define if not already.
1334 2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
1336         * xfaces.c (set_font_frame_param): Don't try to set the font
1337         parameter if it is still unspecified in the lface.
1339 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
1341         * xfaces.c (Finternal_merge_in_global_face): Don't realize default
1342         face if it didn't already exist.
1344         * xdisp.c (try_window_id): Give up if word-wrapping is on.
1346 2008-07-05  Andreas Schwab  <schwab@suse.de>
1348         * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
1350 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
1352         * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
1353         word-wrapping.
1354         (IT_DISPLAYING_WHITESPACE): New macro.
1355         (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
1356         when word-wrapping.  Simplify word-wrapping logic.  Use correct
1357         pixel positions when saving copies of the iterator.
1358         (display_line): Use proper wrap point if the last character on a
1359         line was preceded by whitespace.
1361 2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
1363         * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
1365 2008-07-04  Kenichi Handa  <handa@m17n.org>
1367         * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
1369         * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
1371 2008-07-02  Jason Rumney  <jasonr@gnu.org>
1373         * xfns.c (syms_of_xfns): Only define x-select-font when both
1374         HAVE_FREETYPE and USE_GTK
1376         * xdisp.c (next_element_from_display_vector): Move assignment out
1377         of if statement.
1379 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
1381         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
1383         * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
1384         (syms_of_fileio): Initialize and export them.
1385         (Fdelete_directory, Fdelete_file): Optionally delete via trash.
1387         * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
1388         (Fsystem_move_file_to_trash): New function.
1389         (syms_of_w32fns): Export it to lisp.
1391 2008-07-01  Jason Rumney  <jasonr@gnu.org>
1393         * w32font.c (w32font_text_extents): Don't count overhang as part
1394         of width.
1396 2008-06-30  Miles Bader  <miles@gnu.org>
1398         * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
1399         Add `avoid_cursor_p' field.
1401         * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
1402         (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
1403         (append_glyph, append_composite_glyph, produce_image_glyph)
1404         (append_stretch_glyph): Initialize avoid_cursor_p.
1405         (get_it_property): Rename from `get_line_height_property'.
1406         (x_produce_glyphs): Use get_it_property.
1407         (handle_line_prefix, push_display_prop): New functions.
1408         (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
1409         (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
1410         New variables.
1411         (syms_of_xdisp): Initialize them.
1413 2008-06-30  Kenichi Handa  <handa@m17n.org>
1415         * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
1416         XftDefaultSubstitute (they are called in XftFontMatch).
1417         (xftfont_open): Fix args to ftfont_font_format.
1419         * ftfont.c (fc_charset_table): New member lang.
1420         (ftfont_resolve_generic_family): New arg pattern.
1421         (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
1422         (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
1423         (ftfont_open): Fix args to ftfont_font_format.
1424         (ftfont_font_format): New arg filename.
1426 2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
1428         * xfaces.c (Finternal_merge_in_global_face): If default face was
1429         modified, realize it again.  Update the font face attribute.
1431 2008-06-29  Jason Rumney  <jasonr@gnu.org>
1433         * w32term.c (x_set_frame_alpha): Fix logic.
1435 2008-06-29  Kenichi Handa  <handa@m17n.org>
1437         * fontset.c (Finternal_char_font): Return font-object instead of
1438         font-name.
1440         * composite.c (get_composition_id): Fix the width calculation for TAB.
1442 2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1444         * indent.c (Fvertical_motion): Properly handle float column arg.
1446 2008-06-28  Jason Rumney  <jasonr@gnu.org>
1448         * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
1449         (pfnSetLayeredWindowAttributes): New function pointer.
1450         (w32_initialize): Initialize it when supported.
1451         (x_set_frame_alpha): New function.
1453         * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
1454         (w32_frame_parm_handlers): Set alpha handler.
1456         * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
1458 2008-06-27  Jason Rumney  <jasonr@gnu.org>
1460         * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
1461         (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
1462         (w32_to_x_charset, x_to_w32_charset)
1463         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1464         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1465         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1466         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1467         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1468         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1469         (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
1470         (Qw32_charset_unicode): Remove.
1471         (syms_of_w32fns): Update for above changes.
1473         * w32font.c (w32_to_x_charset, x_to_w32_charset)
1474         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1475         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1476         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1477         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1478         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1479         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1480         (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
1481         (syms_of_w32font): Update for above changes.
1483 2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
1485         * s/usg5-4.h: Fix previous change: keep the correct branch of a
1486         removed #if.
1487         (USG_SHARED_LIBRARIES): Remove duplicate definition.
1489 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
1490             Eli Zaretskii  <eliz@gnu.org>
1492         * makefile.w32-in (LOCAL_FLAGS):
1493         Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
1495         * sysdep.c (_spawnlp, _getpid):
1496         Declare with explicit _cdecl instead of _CRTAPI1.
1498         * editfns.c (Fget_internal_run_time):
1499         Check for WINDOWSNT with #ifdef, not #if.
1501 2008-06-26  Jason Rumney  <jasonr@gnu.org>
1503         * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
1505         * w32term.c (x_draw_glyph_string_foreground)
1506         (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
1507         Use FONT_HANDLE macro.
1508         (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
1510         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
1511         (uniscribe_encode_char): Use FONT_HANDLE macro.
1513         * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
1514         (w32font_text_extents): Use precast w32_font.
1515         (w32font_close): Free cached metrics.
1516         (w32font_open_internal): Allocate space for name on stack.
1518 2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
1520         * xdisp.c (extend_face_to_end_of_line): Fix last change.
1522 2008-06-26  Jason Rumney  <jasonr@gnu.org>
1524         * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
1525         (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
1527 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
1529         * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
1531 2008-06-26  Jason Rumney  <jasonr@gnu.org>
1533         * w32bdf.c, w32bdf.h: Remove obsolete files.
1535         * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1537         * w32gui.h: Don't include w32bdf.h.
1538         (XCharStruct, enum w32_char_font_type, W32FontStruct):
1539         Remove obsolete font support.
1541         * w32font.h (struct w32font_info): Remove compat_w32_font.
1542         Add hfont member.
1543         (FONT_COMPAT): Remove obsolete macro.
1545         * w32font.c (w32font_close): Remove compat code.  Delete hfont member.
1546         (w32font_encode_char, w32font_text_extents): Use new hfont member.
1547         (w32font_open_internal): Remove compat code.  Set new hfont member.
1548         (Fx_select_font): Use new hfont member.
1550         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
1551         (uniscribe_encode_char): Use new hfont member.
1553         * w32term.c (x_draw_glyph_string_foreground)
1554         (x_draw_composite_glyph_string_foreground): Use new hfont member.
1555         (x_draw_glyph_string): Use metrics in w32font_info.
1557 2008-06-26  Kenichi Handa  <handa@m17n.org>
1559         * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
1561 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
1563         * unexnext.c:
1564         * m/ews4800.h:
1565         * m/hp9000s300.h:
1566         * m/ibm370aix.h:
1567         * m/mips-siemens.h:
1568         * m/ncr386.h:
1569         * m/next.h:
1570         * m/pmax.h:
1571         * m/powerpcle.h:
1572         * m/tandem-s2.h:
1573         * s/386bsd.h:
1574         * s/bsd386.h:
1575         * s/bsd4-1.h:
1576         * s/bsd4-2.h:
1577         * s/bsdos2-1.h:
1578         * s/bsdos2.h:
1579         * s/bsdos3.h:
1580         * s/bsdos4.h:
1581         * s/nextstep.h:
1582         * s/ultrix4-3.h:
1583         * s/usg5-0.h:
1584         * s/usg5-2-2.h:
1585         * s/usg5-2.h:
1586         * s/usg5-4-3.h:
1587         * s/ux4800.h:
1588         * s/uxpds.h:
1589         * s/uxpv.h: Remove support for obsolete systems.
1590         * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
1591         Remove, insert contents in s/hpux-10.20.h
1592         * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
1593         Remove, insert contents in s/aix-4.2.h
1594         * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
1595         * s/bsd4-3.h: Rename to ..
1596         * s/bsd-common.h: ... this.
1597         * src/data.c:
1598         * src/doc.c:
1599         * src/ecrt0.c:
1600         * src/emacs.c:
1601         * src/fileio.c:
1602         * src/floatfns.c:
1603         * src/keyboard.c:
1604         * src/mem-limits.h:
1605         * src/print.c:
1606         * src/process.c:
1607         * src/sysdep.c:
1608         * src/syssignal.h:
1609         * src/systty.h:
1610         * src/syswait.h:
1611         * src/term.c:
1612         * src/unexec.c:
1613         * src/unexelf.c:
1614         * src/unexhp9k800.c:
1615         * src/m/hp800.h:
1616         * src/m/ibmrs6000.h:
1617         * src/m/mips.h:
1618         * src/m/vax.h:
1619         * src/s/darwin.h:
1620         * src/s/freebsd.h:
1621         * src/s/gnu.h:
1622         * src/s/ms-w32.h:
1623         * src/s/msdos.h:
1624         * src/s/netbsd.h:
1625         * src/s/template.h: Remove references to obsolete variables.
1627         * Makefile.in: Add dependencies for all unexec files.
1628         (admindir): Remove unused variable.
1629         (UNEXEC_SRC): Remove references.
1631 2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
1633         * xfns.c (x_default_font_parameter): If Xft is available, first
1634         try Monospace-12 for the default font.
1636 2008-06-25  Jason Rumney  <jasonr@gnu.org>
1638         * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
1640 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
1642         * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
1644         * buffer.c (syms_of_buffer): Remove default-word-wrap.
1646 2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
1648         * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
1649         <scroll-conservatively>: Fix typo in docstring.
1651         * xselect.c (Fx_send_client_event): Doc fix.
1653 2008-06-25  Kenichi Handa  <handa@m17n.org>
1655         * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
1657         * font.c (font_parse_fcname): Remove unused variables.
1658         (font_sort_entites): Delete the arg SPEC.  Caller changed.
1659         Fix for the case of ! best_only.
1660         (font_delete_unmatched): Check DPI and AVGWIDTH too.
1662         * lisp.h (Fstring_to_unibyte): EXFUN it.
1664         * character.h (str_to_unibyte): Extern it.
1666         * character.c (str_to_unibyte): New function.
1668         * fns.c (Fstring_to_unibyte): New function.
1669         (syms_of_fns): Defsubr it.
1671 2008-06-24  Kenichi Handa  <handa@m17n.org>
1673         * font.c (font_score): Even if the PIXEL_SIZE is the same, check
1674         DPI too.
1675         (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
1677 2008-06-24  Andreas Schwab  <schwab@suse.de>
1679         * Makefile.in (${lispsource}loaddefs.el): Rename from
1680         ../lisp/loaddefs.el.
1681         (bootstrap-clean): Do what distclean does but don't remove
1682         Makefile.
1683         (distclean): Depend on bootstrap-clean and remove Makefile.
1685 2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
1687         * buffer.h (struct buffer): New member word_wrap.
1689         * buffer.c (syms_of_buffer): New variables default-word-wrap and
1690         word-wrap.
1691         (init_buffer_once): Initialize them.
1693         * dispextern.h (struct it): Replace bool truncate_lines_p with a
1694         line_wrap enum possessing three possible values.
1696         * termopts.h: Replace truncate_partial_width_windows with
1697         Vtruncate_partial_width_windows.
1699         * dispnew.c (direct_output_for_insert): Avoid direct output when
1700         inserting a space with word wrap on.
1702         * indent.c (compute_motion): Obey integer values of
1703         truncate-partial-width-windows.
1705         * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
1706         replacing truncate_partial_width_windows.
1707         (init_iterator): If Vtruncate_partial_width_windows is an integer,
1708         truncate only if the window width is below that integer.
1709         (start_display, resize_mini_window, produce_stretch_glyph)
1710         (display_string, move_it_in_display_line_to): Use line_wrap.
1711         (back_to_previous_visible_line_start, reseat_1): Reset
1712         string_from_display_prop_p.
1713         (display_line): Extend default face to end of line when wrapping.
1715 2008-06-24  Kim F. Storm  <storm@cua.dk>
1717         * xdisp.c (display_line, move_it_in_display_line_to): Add ability
1718         to wrap continued lines at word boundaries.
1720 2008-06-24  Jason Rumney  <jasonr@gnu.org>
1722         * font.c (Ffont_face_attributes): Multiply pixel size before point
1723         conversion to avoid multiplying rounding error.
1725 2008-06-23  Jason Rumney  <jasonr@gnu.org>
1727         * w32term.c (x_draw_glyph_string_background)
1728         (x_draw_glyph_string): Remove old bdf font code.
1730         * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
1732 2008-06-22  Kenichi Handa  <handa@m17n.org>
1734         * font.c (font_find_for_lface): Try the adstyle specified in
1735         the property of LFACE_FONT of LFACE (if any).
1737 2008-06-21  Seiji Zenitani  <zenitani@mac.com>
1738             Ryo Yoshitake  <ryo@shiftmode.net>
1740         * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
1742 2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
1744         * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
1745         Use $(BOOTSTRAPEMACS) rather than witness-emacs.
1746         (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
1747         (witness-emacs): Remove.
1748         (lisp, shortlisp): Move loaddefs.el earlier.
1749         (mostlyclean): Forget about witness-emacs.
1751 2008-06-22  Glenn Morris  <rgm@gnu.org>
1753         * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
1754         (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
1756 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1758         * Makefile.in (PRECOMP): Remove.
1759         (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
1760         (witness-emacs): Run `compile-first'.
1761         (.el.elc): Use the new compile-onefile target.
1763 2008-06-21  Kenichi Handa  <handa@m17n.org>
1765         * xftfont.c (xftfont_open): Handle QCembolden only when
1766         FC_EMBOLDEN is defined.
1768 2008-06-21  Andreas Schwab  <schwab@suse.de>
1770         * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
1771         (.el.elc): Likewise.
1773 2008-06-21  Miles Bader  <miles@gnu.org>
1775         * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
1776         build dir, not the lisp source dir.
1778 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1780         * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
1781         (bootstrapclean): Remove.
1782         (.el.elc): New rule.
1783         (PRECOMP): New var.
1784         (../lisp/subdirs.el): Remove.
1785         (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
1786         (witness-emacs): New target.
1787         (mostlyclean): Remove witness-emacs as well.
1788         (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
1789         Add witness-emacs dependency.
1791 2008-06-20  Chong Yidong  <cyd@stupidchicken.com>
1793         * font.c (Ffont_face_attributes): Omit key-attribute pairs not
1794         defined by the font.
1796 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
1798         * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
1799         (bootstrap-clean): New target that keeps TAGS around.
1800         (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
1801         (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
1803 2008-06-20  Jason Rumney  <jasonr@gnu.org>
1805         * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
1806         Remove obsolete font code.
1808         * w32font.c (font_matches_spec): Use csb bitfield from font signature
1809         to determine language support.
1811 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
1813         * sysdep.c (cfsetspeed): New fun extracted from the code.
1814         (cfmakeraw): Move before first use.
1816 2008-06-20  Angelo Graziosi  <angelo.graziosi@alice.it>  (tiny change)
1818         * sysdep.c (cfmakeraw): Provide fallback implementation.
1819         (serial_configure): Provide fallback implementation of cfsetspeed.
1821 2008-06-20  Kenichi Handa  <handa@m17n.org>
1823         * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
1824         the pattern.
1826         * fontset.c (fontset_from_font): Copy font_spec before changing
1827         the elements.
1829         * xfns.c (x_default_font_parameter): Try "monospace-12" too.
1831 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
1833         * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
1834         for explicit `font' parameters.
1836         * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
1838 2008-06-19  Kenichi Handa  <handa@m17n.org>
1840         * frame.c: Include <ctype.h>.
1841         (x_set_font_backend): Allow spacing characters in the X resource
1842         for FontBackend.
1844 2008-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>
1846         * w32fns.c, xfns.c (Qfont_param): New var.
1847         (syms_of_w32fns): Initialize it.
1848         (x_default_font_parameter): Record explicit `font' into
1849         `font-parameter'.
1851 2008-06-18  Kenichi Handa  <handa@m17n.org>
1853         * font.c (font_parse_xlfd): Fix previous change.
1854         (font_parse_fcname): Don't use :fc-unknown-spec.
1855         (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
1856         (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
1857         (font_add_log): Prepend the driver name to the resulting fonts.
1859         * ftfont.c (ftfont_pattern_entity): New arg extra.  Caller changed.
1860         (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
1861         (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
1863         * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
1864         (QCembolden): New variables.
1865         (syms_of_xftfont): DEFSYM them.
1866         (xftfont_open): Call XftFontMatch.  Don't trust the result of
1867         XftTextExtents8 if the pixel_size is less than 5.
1869 2008-06-18  Andreas Schwab  <schwab@suse.de>
1871         * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
1872         (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
1874 2008-06-18  Jason Rumney  <jasonr@gnu.org>
1876         * w32font.c (w32font_list, w32font_match): Add logging.
1878         * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
1880 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>
1882         * font.c (font_parse_fcname): Store divider characters for
1883         unknown-spec list.  For known key symbols, intern using correct
1884         symbol name.
1886 2008-06-17  Kenichi Handa  <handa@m17n.org>
1888         * xfaces.c (realize_default_face): If the frame is not on window
1889         system, set the fontset of face to nil.
1891 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
1893         * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
1895 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
1897         * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
1898         (build_font_name_from_vector): Delete externs.
1900         * xfaces.c (struct font_name): Don't declare.
1902 2008-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
1904         * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
1906 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
1908         * font.c (font_parse_fcname): Fix handling of unknown-spec string.
1910 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
1912         * font.c (Ffont_spec): Fix usage in docstring.
1913         (Ffont_face_attributes): Doc fix.
1915 2008-06-16  Andreas Schwab  <schwab@suse.de>
1917         * font.c (Ffont_face_attributes): Fix definition.
1919 2008-06-16  Jason Rumney  <jasonr@gnu.org>
1921         * font.h (font_style_symbolic_from_value): Remove.
1923         * font.c (font_style_symbolic_from_value): Remove.
1924         (font_style_symbolic): Revert to pre 2008-06-13 version.
1926         * w32font.c (w32_to_fc_weight): New function.
1927         (w32font_full_name, logfont_to_fcname): Use it.
1929 2008-06-16  Kenichi Handa  <handa@m17n.org>
1931         * font.c (font_check_object): Delete it.
1932         (font_clear_cache): Check if a font-object is alive.
1933         (font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
1934         font-object to nil.
1935         (font_close_object): Don't check FONT_CLOSE_OBJECT.
1936         (font_at): Don't call font_check_object.
1937         (Ffont_get): Return a symbol for :weight, :slant, and :width.
1939 2008-06-16  Katsumi Yamaoka  <yamaoka@jpl.org>
1941         * puresize.h (BASE_PURESIZE): Increase to 1230000.
1943 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
1945         * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
1947 2008-06-15  Chong Yidong  <cyd@stupidchicken.com>
1949         * font.c (font_parse_fcname): Only one decimal point.
1950         (font_unparse_fcname): Handle data in family and foundry indices
1951         as symbols, not strings.
1952         (font_unparse_gtkname, Ffont_face_attributes): New functions.
1954         * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
1956         * font.h (font_unparse_gtkname): Add prototype.
1958 2008-06-15  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
1960         * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
1962 2008-06-15  Andreas Schwab  <schwab@suse.de>
1964         * font.c (font_update_drivers): Fix crash when no drivers match.
1966 2008-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
1968         * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
1969         * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
1971 2008-06-14  Stefan Monnier  <monnier@iro.umontreal.ca>
1973         * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
1975 2008-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
1977         * process.c (Fserial_process_configure, Fprocess_send_eof):
1978         Use EQ to compare Lisp_Objects.
1980 2008-06-13  Jason Rumney  <jasonr@gnu.org>
1982         * w32fns.c (Fw32_select_font): Remove old font API function.
1984         * w32font.c (logfont_to_fcname): New function.
1985         (Fx_select_font): New font dialog function compatible with
1986         GTK/fontconfig version.
1988         * font.c (font_style_symbolic_from_value): New function.
1989         (font_style_symbolic): Use it.
1991         * font.h (font_style_symbolic_from_value): Declare new function.
1993 2008-06-13  Juanma Barranquero  <lekktu@gmail.com>
1995         * font.c (syms_of_font) <font-weight-table, font-slant-table>:
1996         <font-width-table>: Fix typos in docstrings.
1998 2008-06-13  Daniel Engeler  <engeler@gmail.com>
2000         These changes add serial port access.
2001         * process.c: Add HAVE_SERIAL.
2002         (Fdelete_process, Fprocess_status, Fset_process_buffer)
2003         (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
2004         (list_processes_1, select_wrapper, Fstop_process)
2005         (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
2006         (status_notify): Modify to handle serial processes.
2007         [HAVE_SERIAL] (Fserial_process_configure)
2008         [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
2009         New functions.
2010         * process.h (struct Lisp_Process): Add `type'.
2011         * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
2012         New functions.
2013         * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
2014         serial ports.
2015         (serial_open, serial_configure) New functions.
2016         * w32.h: Add FILE_SERIAL.
2017         (struct _child_process): Add ovl_read, ovl_write.
2019 2008-06-13  Kenichi Handa  <handa@m17n.org>
2021         * dispextern.h (enum lface_attribute_index): New member
2022         LFACE_FOUNDRY_INDEX.
2024         * font.c (font_score): Delete arg alternate_families.  Check only
2025         weight, slant, width, and size.  Ignore the difference of alias
2026         style symbols.
2027         (font_sort_entites): Adjust for the above change.  Reflect the
2028         order of font-driver to scores.
2029         (font_list_entities): Don't check alternate_familes here.
2030         (font_clear_prop): Handle foundry.
2031         (font_update_lface): Don't parse "foundry-family" form here.
2032         Handle FONT_FOUNDRY_INDEX.
2033         (font_find_for_lface): Likewise.  Handle alternate families here.
2034         If registry is nil, try iso8859-1 and ascii-0.
2035         (font_open_for_lface): Pay attention to size in ENTITY.
2036         (font_open_by_name): Simplify by calling font_load_for_lface.
2037         (free_font_driver_list): Delete it.
2038         (font_update_drivers): Preserve the order of backends.
2039         (syms_of_font): Setting of sort_shift_bits adjusted for the change
2040         of font_score and font_sort_entites.
2041         (font_update_sort_order): Likewise.
2043         * xfaces.c (LFACE_FOUNDRY): New macro.
2044         (check_lface_attrs): Check foundry.
2045         (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
2046         (merge_face_vectors): Check foundry.
2047         (merge_face_ref): Likewise.
2048         (Finternal_set_lisp_face_attribute): Likewise.
2049         (x_update_menu_appearance): Likewise.
2050         (Finternal_get_lisp_face_attribute): Likewise.
2051         (lface_hash): Likewise.
2052         (lface_same_font_attributes_p): Likewise.
2053         (x_supports_face_attributes_p): Likewise.
2054         (tty_supports_face_attributes_p): Likewise.
2055         (Finternal_set_alternative_font_family_alist): Intern strings.
2056         (Finternal_set_alternative_font_registry_alist): Downcase strings.
2057         (realize_default_face): Set LFACE_FOUNDRY (lface).
2059         * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
2060         font-driver at first.
2062         * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
2064 2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
2066         * lread.c (Fload): Use xfree, not free on saved_doc_string.
2068 2008-06-12  Jim Meyering  <meyering@redhat.com>
2070         Make unexec_free handle NULL the same way free does.
2071         * unexmacosx.c (unexec_free): Ignore a NULL argument.
2073 2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2075         * character.h (CHAR_TO_BYTE_SAFE): New macro.
2076         * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
2077         * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
2078         (WEAK_ALIAS): Simplify.
2079         * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
2080         when searching a unibyte buffer.
2082 2008-06-12  Chong Yidong  <cyd@stupidchicken.com>
2084         * xfns.c (Fx_select_font): Rename from x-font-dialog.
2086 2008-06-12  Juanma Barranquero  <lekktu@gmail.com>
2088         * w32font.c: Include ctype.h.
2090 2008-06-11  Jason Rumney  <jasonr@gnu.org>
2092         * w32font.c (w32font_encode_char): Detect missing glyphs that are
2093         misreported as space.
2094         (add_font_entity_to_list): Support unicode-bmp and unicode-sip
2095         as aliases for registry iso10646-1.
2097 2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2099         * buffer.c (clone_per_buffer_values): Skip `name'.
2101 2008-06-11  Chong Yidong  <cyd@stupidchicken.com>
2103         * font.c (font_parse_fcname): Fix last change; accept decimal
2104         points in font size.
2106 2008-06-10  Jason Rumney  <jasonr@gnu.org>
2108         * w32uniscribe.c (add_opentype_font_name_to_list):
2109         Skip non unicode fonts.
2111 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
2113         * xfns.c (Fx_font_dialog): New function.
2115         * gtkutil.c (xg_dialog_response_cb): Rename from
2116         xg_file_response_callback.
2117         (pop_down_dialog): Rename from pop_down_file_dialog.
2118         (xg_get_file_name): Callers changed.
2119         (xg_get_font_name): New function.
2121         * gtkutil.h (xg_get_font_name): Insert prototype.
2123 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2125         * xdisp.c (underline_minimum_offset): Rename from xterm.c's
2126         x_underline_minimum_display_offset.
2127         (syms_of_xdisp): Declare it here rather than in xterm.c.
2128         * dispextern.h (underline_minimum_offset): Declare it.
2129         * w32term.c (x_draw_glyph_string): Use it.
2130         * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
2131         (syms_of_xterm): Don't declare it any more.
2132         (x_draw_glyph_string): Adjust to the new name.
2134 2008-06-10  David De La Harpe Golden  <david@harpegolden.net>  (tiny change)
2136         * xterm.c (x_underline_minimum_display_offset): New var.
2137         (x_draw_glyph_string): Use it.
2138         (syms_of_xterm): Declare it.
2140 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
2142         * font.c (font_parse_fcname): Accept GTK-style font names too.
2144 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2146         * dired.c (file_name_completion): Don't return t if the match is exact
2147         but with different capitalization.
2148         * minibuf.c (Ftry_completion): Simplify.
2150         * window.c (Vwindow_point_insertion_type): New var.
2151         (set_window_buffer): Use it.
2152         (syms_of_window): Init and export it to Lisp.
2154 2008-06-10  Kenichi Handa  <handa@m17n.org>
2156         * font.h (font_intern_prop): Prototype adjusted.
2158         * font.c (font_intern_prop): New arg force_symbol.
2159         (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
2160         Adjust for the change of font_intern_prop.
2162         * ftfont.c (ftfont_pattern_entity):
2163         * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
2164         (w32_registry):
2165         * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
2166         the change of font_intern_prop.
2168 2008-06-09  Juanma Barranquero  <lekktu@gmail.com>
2170         * w32menu.c (digest_single_submenu): Declare extern.
2172 2008-06-09  Jason Rumney  <jasonr@gnu.org>
2174         * w32term.c (x_make_frame_visible): Use alternate restore flags.
2176         * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
2177         (parse_single_submenu): Remove.
2178         (digest_single_submenu): Remove.
2179         (syms_of_w32menu): Don't initialise variables that have moved
2180         to menu.c.
2181         (set_frame_menubar): Sync with version in xmenu.c.
2182         (w32_menu_show): Sync with xmenu_show in xmenu.c.
2184         * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
2185         Make static again.
2187 2008-06-09  Jason Rumney  <jasonr@gnu.org>
2189         Changes to w32 files related to the move of common menu code
2190         to menu.c on 2008-06-08 by Chong Yidong.
2192         * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
2193         defs to w32gui.h.
2194         (single_keymap_panes, push_menu_item, push_menu_pane):
2195         Make globally visible.
2197         * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
2198         (local_free, malloc_widget_value, free_widget_value)
2199         (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
2200         (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
2201         (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
2202         (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
2203         (menu_items, menu_items_allocated, menu_items_used)
2204         (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
2205         (init_menu_items, finish_menu_items, discard_menu_items)
2206         (grow_menu_items, push_submenu_start, push_submenu_end)
2207         (push_left_right_boundary, push_menu_pane, push_menu_item)
2208         (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
2209         (free_menubar_widget_tree_value, parse_single_submenu)
2210         (update_submenu_strings): Remove functions.
2211         (xmalloc_widget_value): Remove and declare extern.
2213         * makefile.w32-in ($(SRC)/menu.$(O)): New target.
2214         (OBJ1): Build it.
2216         * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
2217         (local_heap, local_alloc, local_free, malloc_widget_value)
2218         (free_widget_value): Define here.
2220 2008-06-09  Kenichi Handa  <handa@m17n.org>
2222         * font.h (Qascii_0): Extern it.
2224         * font.c (Qascii_0): New variable.
2225         (syms_of_font): DEFSYM it.
2226         (font_open_by_name): If the registry "iso8859-1" fails, try also
2227         "ascii-0".
2229         * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
2231 2008-06-08  Kenichi Handa  <handa@m17n.org>
2233         * .gdbinit (xfont): New command.
2235 2008-06-08  Andreas Schwab  <schwab@suse.de>
2237         * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
2238         * Makefile.in (menu.o): Update dependencies.
2240         * Makefile.in (obj): Always add menu.o.
2241         * emacs.c (main): Always call syms_of_menu.
2242         * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
2244 2008-06-08  Chong Yidong  <cyd@stupidchicken.com>
2246         * Makefile.in: Compile menu.c.
2248         * lisp.h: Declare syms_of_menu.
2250         * emacs.c (main): Call syms_of_menu.
2252         * keyboard.h: Relocate platform-independent menu definitions from
2253         xmenu.c.
2255         * menu.c: New file.  Relocate platform-independent menu
2256         definitions from xmenu.c.  Suggested by Adrian Robert.
2258         * xmenu.c: Remove platform-independent menu definitions.
2259         (menu_items menu_items_inuse, menu_items_allocated)
2260         (menu_items_used, menu_items_n_panes)
2261         (menu_items_submenu_depth): Move to keyboard.h.
2262         (init_menu_items, finish_menu_items, unuse_menu_items)
2263         (discard_menu_items, restore_menu_items, save_menu_items)
2264         (grow_menu_items, push_submenu_start, push_submenu_end)
2265         (push_left_right_boundary, push_menu_pane, push_menu_item)
2266         (keymap_panes, single_keymap_panes, single_menu_item)
2267         (list_of_panes, list_of_items, find_and_call_menu_selection)
2268         (xmalloc_widget_value, free_menubar_widget_value_tree)
2269         (parse_single_submenu, digest_single_submenu)
2270         (update_submenu_strings): Move to menu.c.
2272 2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
2274         * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
2276 2008-06-06  Miles Bader  <miles@gnu.org>
2278         * xdisp.c (x_produce_glyphs): Calculate tab width based on current
2279         face, not frame default.
2281 2008-06-05  Martin Rudalics  <rudalics@gmx.at>
2283         * window.c (pop_up_windows, pop_up_frames)
2284         (display_buffer_reuse_frames, Vpop_up_frame_function)
2285         (Vdisplay_buffer_function, Veven_window_heights)
2286         (Vspecial_display_buffer_names, Vspecial_display_regexps)
2287         (Vspecial_display_function, Vsame_window_buffer_names)
2288         (Vsame_window_regexps, split_height_threshold)
2289         (Vsplit_window_preferred_function): Move those vars to window.el.
2290         (display_buffer_1, Fspecial_display_p, Fsame_window_p)
2291         (Fdisplay_buffer): Move those functions to window.el.
2292         (syms_of_window): Remove corresponding declarations.
2293         (display_buffer): New function.
2294         (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
2295         * dispnew.c (Flast_nonminibuf_frame): New function.
2296         * buffer.c (Fpop_to_buffer): Move to window.el.
2298 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
2300         * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
2302 2008-06-05  Kenichi Handa  <handa@m17n.org>
2304         * coding.c (detect_coding): Fix previous change.
2305         (detect_coding_system): Likewise.
2307 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
2309         * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
2311         * keymap.c (Vminibuffer_local_filename_must_match_map):
2312         Rename from Vminibuffer_local_must_match_filename_map.
2313         (syms_of_keymap):
2314         * minibuf.c (Fcompleting_read): Adjust accordingly.
2315         * commands.h: Rename declaration as well.
2317 2008-06-05  Kenichi Handa  <handa@m17n.org>
2319         * font.c (Ffont_spec): Don't use font_parse_family_registry for
2320         family name.
2321         (Ffont_put): Likewise.
2323         * fontset.c (fontset_find_font): Call font_open_for_lface with the
2324         current font-spec.
2326         * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
2327         is unspecified.
2329         * xfaces.c (realize_x_face): If the font-related face attributes
2330         are the same as those of default face, realize a new fontset from
2331         default->fontset.
2332         (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
2334 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
2336         * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
2337         (move_it_in_display_line): New wrapper.
2339         * window.c (window_scroll_pixel_based_preserve_x)
2340         (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
2341         (window_scroll_pixel_based, window_scroll_line_based):
2342         Use them to preserve column positions.
2343         (syms_of_window): Initialize them.
2345         * indent.c (Fvertical_motion): Extend first arg to allow passing an
2346         (HPOS . VPOS) pair.
2348         * dispextern.h (move_it_in_display_line): Declare.
2350 2008-06-05  Juanma Barranquero  <lekktu@gmail.com>
2352         * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
2353         (Fwindow_parameters): Return copy of parameter alist.  Doc fix.
2354         (Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.
2356 2008-06-04  Juanma Barranquero  <lekktu@gmail.com>
2358         * window.c (Fset_window_parameter): Doc fix.
2359         (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
2361 2008-06-04  Joakim Verona  <joakim@verona.se>
2363         * window.h (struct window): Add new member window_parameters.
2365         * window.c (Fwindow_parameters, Fwindow_parameter)
2366         (Fset_window_parameter): New defuns.
2367         (syms_of_window): Defsubr the new defuns.
2368         (make_window): Initialize window_parameters to nil.
2370 2008-06-04  John Paul Wallington  <jpw@pobox.com>
2372         * eval.c (Fdefmacro): Doc fix.
2374 2008-06-04  Kenichi Handa  <handa@m17n.org>
2376         * coding.c (detect_coding): Fix handling of coding->head_ascii.
2377         Be sure to call setup_coding_system when we find a proper coding system.
2378         (detect_coding_system): Fix handling of coding->head_ascii.
2380 2008-06-03  Andreas Schwab  <schwab@suse.de>
2382         * font.c (font_prop_validate_spacing): Fix last change.
2384 2008-06-03  Kenichi Handa  <handa@m17n.org>
2386         * font.c (font_prop_validate_spacing): Handle uppercase symbols.
2387         (font_parse_fcname): Fix handling of unknown key.
2389         * xfont.c (xfont_list): Try an alias.
2391         * charset.c (char_charset): Return NULL if the arg charset_list is
2392         specified and C doesn't belong to any of them.
2394 2008-06-02  Chip Coldwell  <coldwell@redhat.com>
2396         * font.c (font_pixel_size): Don't take cdr of an integer.
2398 2008-06-02  Jim Meyering  <meyering@redhat.com>
2400         Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
2401         * alloc.c (xfree): Return right away for a NULL arg.
2402         * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
2403         * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
2404         * mac.c (create_apple_event_from_event_ref): Likewise.
2405         (create_apple_event_from_drag_ref, cfstring_create_normalized):
2406         Likewise.
2407         * doprnt.c (doprnt1): Likewise.
2408         * frame.c (frame): Likewise.
2409         * keyboard.c (wipe_kboard): Likewise.
2410         * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
2411         (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
2412         * term.c (tty_default_color_capabilities, maybe_fatal)
2413         (delete_tty): Likewise.
2414         * w16select.c (string): Likewise.
2415         * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
2416         * w32bdf.c (w32_free_bdf_font): Likewise.
2417         * w32fns.c (w32_unload_font): Likewise.
2418         * w32font.c (w32font_close): Likewise.
2419         * window.c (size_window): Likewise.
2420         * xselect.c (receive_incremental_selection): Likewise.
2421         * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
2422         * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
2423         * w32.c (stat): Likewise.
2425         Remove useless if-before-free tests.
2426         * editfns.c (Fset_time_zone_rule): Likewise.
2427         * lread.c (nosuffix): Likewise.
2428         * ralloc.c (get_bloc): Likewise.
2429         * regex.c (reg_free): Likewise.
2430         * xftfont.c (xftfont_open, xftfont_close): Likewise.
2431         * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
2432         * xsmfns.c (smc_save_yourself_CB): Likewise.
2434 2008-06-02  Kenichi Handa  <handa@m17n.org>
2436         * font.c (font_find_for_lface): Handle float font size.
2437         (font_open_for_lface): Likewise.
2439         * xfaces.c (x_supports_face_attributes_p): Check face->font before
2440         comparing the properties.
2442 2008-06-01  Jason Rumney  <jasonr@gnu.org>
2444         * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
2445         Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
2446         Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
2447         Don't add empty script list.
2448         (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
2450 2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>
2452         * Makefile.in (dot, dotdot): Remove, update users.
2453         ".." has been used elsewhere in the file for a long time.
2454         (LIBXT_STATIC): Remove conditional based on unused variable.
2456 2008-06-01  Miles Bader  <miles@gnu.org>
2458         * xfaces.c (Vface_remapping_alist): New variable.
2459         (syms_of_xfaces): Initialize it.
2460         (enum named_merge_point_kind): New type.
2461         (struct named_merge_point): Add `named_merge_point_kind' field.
2462         (push_named_merge_point): Make cycle detection respect different
2463         named-merge-point kinds.
2464         (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
2465         Remove face-name alias resolution.
2466         (lface_from_face_name): New definition using
2467         `lface_from_face_name_no_resolve'.
2468         (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
2469         Call lface_from_face_name_no_resolve instead of lface_from_face_name.
2470         (get_lface_attributes): New definition that layers face-remapping on
2471         top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
2472         (lookup_basic_face): New function.
2473         (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
2474         (realize_named_face): Call `get_lface_attributes_no_remap' instead of
2475         `get_lface_attributes'.
2476         (face_at_buffer_position): Use `lookup_basic_face' to lookup
2477         DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
2478         return default_face's face-id instead of the constant DEFAULT_FACE_ID.
2480         * xdisp.c (init_iterator): Pass base_face_id through
2481         `lookup_basic_face' when we actually use it as a face-id.
2482         (handle_single_display_prop): Use `lookup_basic_face' to lookup
2483         DEFAULT_FACE_ID.
2485         * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
2486         lookup the initial face-id.
2488         * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
2490 2008-06-01  Juanma Barranquero  <lekktu@gmail.com>
2492         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
2493         (Fremove_text_properties): Fix typos in docstrings.
2495 2008-05-31  Kenichi Handa  <handa@m17n.org>
2497         * font.c (font_list_entities): Fix the car part of data to be
2498         stored in the cache.
2500         * ftfont.c (ftfont_font_format): Don't use strcasestr.
2502 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
2504         * chartab.c (Foptimize_char_table, optimize_sub_char_table):
2505         Add a `test' argument so another predicate than `equal' can be used.
2506         (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
2507         (map_char_table): Remove unused vars `c' and `i'.
2508         * lisp.h (Foptimize_char_table): Adjust declaration.
2509         * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2511 2008-05-30  Kenichi Handa  <handa@m17n.org>
2513         * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
2514         (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
2515         defined.
2517 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
2519         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2520         (Fmake_variable_frame_local): Disallow mixing buffer-local and
2521         frame-local settings for the same variable.
2523 2008-05-30  Kenichi Handa  <handa@m17n.org>
2525         * fontset.c (Ffont_info): Move to font.c.
2526         (syms_of_fontset): Delete defsubr of Sfont_info.
2528         * font.c (font_style_to_value, font_score): Delete casting of the
2529         args to xstcasecmp.
2530         (register_font_driver): Increment num_font_drivers only when
2531         registering the driver globally.
2532         (Ffont_info): Move from fontset.c.  Handle a font object too.
2533         (syms_of_font): Defsubr Sfont_info.
2535 2008-05-29  Kenichi Handa  <handa@m17n.org>
2537         * coding.h (enum define_coding_utf8_arg_index): New enum.
2538         (enum coding_attr_index): Change coding_attr_utf_16_bom to
2539         coding_attr_utf_bom.
2540         (enum utf_bom_type): Rename from utf_16_bom_type.
2541         (struct utf_16_spec): Adjust for the above change.
2542         (struct coding_system): Add utf_8_bom in `spec' union.
2544         * coding.c (CODING_UTF_8_BOM): New macro.
2545         (enum coding_category): Delete coding_category_utf_8, add
2546         coding_category_utf_8_auto, coding_category_utf_8_nosig, and
2547         coding_category_utf_8_sig.
2548         (CATEGORY_MASK_UTF_8): Delete it.
2549         (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
2550         (CATEGORY_MASK_UTF_8_SIG): New macros.
2551         (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
2552         CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
2553         CATEGORY_MASK_UTF_8_SIG.
2554         (CATEGORY_MASK_UTF_8): New macro.
2555         (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
2556         (detect_coding_utf_8): Check BOM.
2557         (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
2558         (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
2559         (encode_coding_utf_16): Likewise.
2560         (setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
2561         (detect_coding, detect_coding_system): Handle utf-8-auto.
2562         (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
2563         (syms_of_coding): Fix setting up of Vcoding_category_table.
2565 2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
2567         * process.c (Faccept_process_output): If `millisec' is non-nil,
2568         `seconds' default to 0.
2569         (wait_reading_process_output): Also return non-nil if we read output
2570         from a non-running process.
2572 2008-05-29  Jason Rumney  <jasonr@gnu.org>
2574         * w32font.c (w32font_open_internal): Prefer truetype fonts unless
2575         `raster' specified.
2576         (add_font_entity_to_list): Allow non-opentype truetype fonts back
2577         in the uniscribe backend, but disallow any font that has no
2578         unicode subrange support.
2580 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
2582         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
2583         Fix typos in docstrings.
2585 2008-05-29  Kenichi Handa  <handa@m17n.org>
2587         * xfaces.c (Fx_list_fonts): Make it return a list of font names.
2588         (Fx_family_fonts): Set frame correctly.
2590 2008-05-28  Jason Rumney  <jasonr@gnu.org>
2592         * w32term.c (x_draw_glyph_string): Use clipmask if specified.
2594 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
2596         * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
2597         calling build_annotations.
2599 2008-05-28  Juanma Barranquero  <lekktu@gmail.com>
2601         * coding.c (Fdecode_coding_region, Fencode_coding_region)
2602         (Fencode_coding_string):
2603         (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
2604         <latin-extra-code-table>: Fix typos in docstrings.
2605         (syms_of_coding) <coding-system-alist>: Doc fix.
2606         (syms_of_coding) <translation-table-for-input>: Reflow docstring.
2608 2008-05-28  Kenichi Handa  <handa@m17n.org>
2610         * fontset.c (Ffont_info): Don't call font_close_object.
2612         * font.c (font_parse_family_registry): Use Ffont_put to validate
2613         foundry and family.
2614         (font_delete_unmatched): Don't check spacing.
2615         (font_list_entities): Add spacing to the spec to list fonts.
2617         * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
2618         (ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
2620         * coding.c (encode_coding_raw_text): Fix previous change.
2621         (encode_coding_object): When the dst_object is a buffer and is
2622         different from src_object, move gap to PT.
2624 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
2626         * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
2628 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
2630         * coding.c (encode_coding_raw_text): Set coding->produced_char for
2631         all branches.  Compute it differently.
2633         * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
2635 2008-05-27  Juanma Barranquero  <lekktu@gmail.com>
2637         * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
2638         into "else if () ... else ...".
2640 2008-05-27  Jason Rumney  <jasonr@gnu.org>
2642         * w32font.c (w32font_open_internal): Determine if glyph indices
2643         are likely to work here.
2645 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
2647         * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
2648         draw overlap glyphs with appropriate highlighting.
2650 2008-05-27  Kenichi Handa  <handa@m17n.org>
2652         * xfont.c (xfont_open): Fix calculation of font->average_width.
2654 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
2656         * casefiddle.c (casify_object): Try to guess better whether the
2657         argument is a byte or a char.
2659 2008-05-26  Andreas Schwab  <schwab@suse.de>
2661         * xselect.c (x_reply_selection_request): Properly handle format == 32.
2662         Always send multiples of format size.
2664         * xterm.c (x_set_frame_alpha): Fix type mismatch.
2666 2008-05-26  Jason Rumney  <jasonr@gnu.org>
2668         * w32font.c (w32font_text_extents): Zero whole metrics struct first.
2669         (compute_metrics): Don't set failure if we just cleared the cache.
2670         (w32_weight_table): Remove unused variable.
2671         (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
2672         backwards compatibility.
2674 2008-05-25  Kenichi Handa  <handa@m17n.org>
2676         * w32term.c (x_draw_glyph_string):
2677         * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
2679         * xfaces.c: Delete unused function prototypes.
2680         (xstrlwr, font_frame): Delete them.
2681         (clear_face_cache): Delete unused variable.
2683         * xftfont.c (xftfont_open): Delete unused variable.
2684         If underline_thickness is not 1, adjust underline_position.
2686         * ftxfont.c (ftxfont_open): Delete unused variable.
2688         * fontset.c (face_for_char): Optimize for the case of no charset
2689         property.
2691         * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
2692         (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
2693         (otf_open, font_otf_capability, generate_otf_features)
2694         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
2695         Comment out by surrounding "#if 0" and "#endif" for the moment.
2696         (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
2697         (syms_of_font): Codes for accessing above commented out.
2699 2008-05-24  Eli Zaretskii  <eliz@gnu.org>
2701         * w32proc.c: Include dispextern.h.
2703         * w32.c: Include dispextern.h.
2705 2008-05-23  Juanma Barranquero  <lekktu@gmail.com>
2707         * charset.c (Fencode_char, Fsplit_char): Doc fixes.
2708         (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
2709         Fix typos in docstrings.
2711 2008-05-23  Jason Rumney  <jasonr@gnu.org>
2713         * xsmfns.c: Remove includes that are already included by config.h.
2715 2008-05-23  Kenichi Handa  <handa@m17n.org>
2717         * charset.c (Qemacs, charset_emacs): New variables.
2718         (char_charset): Fix for non-Unicode characters.
2719         (syms_of_charset): Define charset_emacs.
2721         * w32term.c (x_draw_glyph_string): Be sure to update
2722         s->underline_thickness and s->underline_position.  Be sure to draw
2723         underline within the current line area.
2725         * xterm.c (x_draw_glyph_string): Be sure to update
2726         s->underline_thickness and s->underline_position.  Be sure to draw
2727         underline within the current line area.
2729         * fontset.c: Delete unused variables and add casting for char *
2730         throughout the file.
2731         (fontset_font): Try the fallback fonts of the current fontset
2732         before consulting the default fontset.
2734         * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
2736         * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
2738 2008-05-22  Jason Rumney  <jasonr@gnu.org>
2740         * font.c: Don't include strings.h.
2742         * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
2744         * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
2745         * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
2746         * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
2747         to call xstrcasecmp.
2749         * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
2751         * fontset.c (fs_query_fontset): Use xstrcasecmp.
2753         * font.c (font_style_to_value, font_score): Use xstrcasecmp.
2755         * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
2757 2008-05-22  Kenichi Handa  <handa@m17n.org>
2759         * puresize.h (BASE_PURESIZE): Increase to 1220000.
2761         * font.c (font_prop_validate_style): Adjust for the format
2762         change of font_style_table.
2764         * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
2765         two args.
2767         * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
2768         two args.
2770 2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>
2772         * minibuf.c (keys_of_minibuf): Delete.
2773         * lisp.h (keys_of_minibuf): Delete.
2774         * emacs.c (main): Don't call keys_of_minibuf.
2776 2008-05-22  Kenichi Handa  <handa@m17n.org>
2778         * ftfont.c (ftfont_resolve_generic_family): Rename from
2779         ftfont_list_generic_family.  Return a single family for each
2780         generic family.
2781         (ftfont_spec_pattern): Add FC_FAMILY to pattern.
2782         (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
2783         Call font_add_log.
2784         (ftfont_match): Call font_add_log.
2786         * font.h (Ffont_xlfd_name): EXFUN adjusted.
2787         (FONT_DEBUG): Define it.
2788         (font_add_log): Extern it.
2789         (font_assert): Rename from xassert.
2791         * xfont.c (xfont_get_pcm): Change xassert to font_assert.
2792         (xfont_list_family): Call font_add_log.
2793         (xfont_match): Likewise.
2794         (memq_no_quit): Delete.
2796         * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
2797         call of Ffont_xlfd_name.
2799         * xfaces.c (struct table_entry, slant_table, weight_table)
2800         (swidth_table): Move to font.c.
2802         * font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
2803         xassert are changed to font_assert.  Delete many unused variables.
2804         (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
2805         New variables.
2806         (struct table_entry): Move from xfaces.c and modified.
2807         (weight_table, slant_table, width_table): Move from xfaces.c and
2808         contents adjusted for the change of struct table_entry.
2809         (font_style_to_value, font_style_symbolic): Adjust for the
2810         format change of font_style_table.
2811         (font_parse_family_registry): Don't overwrite existing foundry and
2812         family of font_spec.
2813         (font_score): Fix calculation of diff for sizes.
2814         (font_sort_entites): Call font_add_log.
2815         (font_delete_unmatched): Return a newly created list.
2816         (font_list_entities): Fix previous change.  Call font_add_log.
2817         (font_matching_entity, font_open_entity, font_close_entity):
2818         Call font_add_log.
2819         (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
2820         (Finternal_set_font_style_table): Delete.
2821         (BUILD_STYLE_TABLE): New macro.
2822         (build_style_table): New function.
2823         (Vfont_log, font_log_env_checked): New variables.
2824         (font_add_log): New function.
2825         (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
2826         Declare Lisp variables "font-weight-table", "font-slant-table",
2827         "font-width-table", and "font-log".  Initialize font_style_table.
2829 2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>
2831         * xterm.c (x_set_frame_alpha): Move declarations before statements.
2833 2008-05-21  Seiji Zenitani  <zenitani@mac.com>
2834             Ryo Yoshitake  <ryo@shiftmode.net>
2836         * frame.c (Qalpha): Add a new frame parameter `alpha'.
2837         (Vframe_alpha_lower_limit): New variable.
2838         (x_set_alpha): New function.
2840         * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
2842         * xfns.c (x-create-frame, Qalpha):
2843         Initialize the frame parameter `alpha'.
2844         * xterm.c (OPAQUE, OPACITY): New.
2845         (x_set_frame_alpha): New function.
2846         (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
2848         * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
2849         * w32fns.c (w32_frame_parm_handlers): Likewise.
2851 2008-05-20  Jason Rumney  <jasonr@gnu.org>
2853         * w32font.c (add_font_entity_to_list): Don't add non-opentype
2854         truetype fonts to opentype list.
2856 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
2858         * fontset.c (Ffontset_info): Doc fix.
2859         (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
2860         <ignore-relative-composition>: Fix typos in docstrings.
2862         * font.c (syms-of-font) <font-encoding-alist>:
2863         (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
2864         (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
2865         (Ffont_otf_alternates): Doc fixes.
2867 2008-05-20  Kenichi Handa  <handa@m17n.org>
2869         * Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
2870         font.h through out the file.
2871         (FONT_DRIVERS): Rename from FONTOBJ.
2872         (obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
2873         (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
2875         * emacs.c (main): Call syms_of_font unconditionally.
2877         * font.h (find_font_encoding): Extern it.
2879         * font.c (Vfont_encoding_alist, find_font_encoding): Move from
2880         fontset.c.
2881         (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
2882         (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
2883         FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
2884         only when HAVE_WINDOW_SYSTEM is defined.
2885         (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
2886         when HAVE_WINDOW_SYSTEM is defined.
2888         * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
2889         (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
2891         * xfaces.c: Include font.h unconditionally.
2892         (merge_face_ref, merge_face_vectors)
2893         (Finternal_set_lisp_face_attribute): Cancel the previous change.
2895 2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
2897         * xdisp.c (select_frame_for_redisplay): Adjust for last change to
2898         indirect_variable.
2899         * eval.c (lisp_indirect_variable): New fun.
2900         (Fuser_variable_p): Use it.
2902 2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
2904         * lisp.h (indirect_variable):
2905         * data.c (indirect_variable, let_shadows_buffer_binding_p):
2906         Use Lisp_Symbol pointers rather than Lisp_Object.
2907         Adjust callers.
2908         * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
2909         To this end, change calling-convention.
2911         * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
2912         if some non-hidden buffers are selected by string&pred.
2914 2008-05-19  Chong Yidong  <cyd@stupidchicken.com>
2916         * process.c (wait_reading_process_output): Always check status
2917         when in batch mode.
2919 2008-05-19  Kenichi Handa  <handa@m17n.org>
2921         * font.c (font_list_entities): Fix handling of cache.
2922         (font_matching_entity): Likewise.
2924         * ftfont.c (cs_iso8859_1): Delete.
2925         (ft_face_cache): New variable.
2926         (struct ftfont_info): New member fc_charset_idx.
2927         (ftfont_build_basic_charsets): Delete.
2928         (fc_charset_table): New variable.
2929         (ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
2930         . FC_CHARSET_IDX) as :font-entity property in the font entity.
2931         Callers changed.
2932         (ftfont_lookup_cache, ftfont_get_charset): New functions.
2933         (ftfont_spec_pattern): New argument fc_charset_idx.
2934         Check registry more rigidly.  Change callers.
2935         (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
2936         change of :font-entity property of the font.
2938         * xftfont.c (xftfont_open): Adjust for the change of :font-entity
2939         property of the font.
2941 2008-05-18  Juanma Barranquero  <lekktu@gmail.com>
2943         * coding.c (Fcoding_system_p): Rename argument to match docstring.
2944         (Funencodable_char_position, Fcheck_coding_systems_region)
2945         (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
2946         (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
2947         (Ffind_operation_coding_system, Fset_coding_system_priority)
2948         (Fcoding_system_eol_type): Doc fixes.
2950 2008-05-17  Glenn Morris  <rgm@gnu.org>
2952         * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
2954 2008-05-16  Eli Zaretskii  <eliz@gnu.org>
2956         * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
2957         and st_gid.
2959         * frame.c (Fdelete_frame): Don't call font_update_drivers if
2960         HAVE_WINDOW_SYSTEM is not defined.
2962         * xfaces.c (merge_face_ref, merge_face_vectors)
2963         (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
2964         HAVE_WINDOW_SYSTEM is defined.
2965         (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
2967 2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>
2969         * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
2971 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2973         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
2975 2008-05-15  Kenichi Handa  <handa@m17n.org>
2977         * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
2978         preference.
2980 2008-05-15  Glenn Morris  <rgm@gnu.org>
2982         * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
2984 2008-05-15  Chong Yidong  <cyd@stupidchicken.com>
2986         * fns.c (init_fns): Don't initialize weak_hash_tables here.
2987         (init_weak_hash_tables): New fun.  Initialize weak_hash_tables.
2989         * alloc.c (init_alloc_once): Call init_weak_hash_tables.
2991 2008-05-15  Kenichi Handa  <handa@m17n.org>
2993         * ftfont.c (ftfont_list): Downcase family name to check generic
2994         families.
2996         * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
2997         font-spec for QCfont value.
2999         * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
3000         buffer.  Check the return value of it.
3002 2008-05-14  Jason Rumney  <jasonr@gnu.org>
3004         * w32term.c (w32_get_glyph_overhangs): Remove.
3005         (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
3007 2008-05-14  Kenichi Handa  <handa@m17n.org>
3009         * font.c (font_prop_validate): Make nil a valid value.
3010         (font_clear_cache): Check if the cached vector of entities is nil
3011         or not.
3013 2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3015         * emacs.c (main_thread): Conditionalize on
3016         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3017         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
3019         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
3020         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
3021         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3023 2008-05-14  Kenichi Handa  <handa@m17n.org>
3025         * coding.c (detect_coding_iso_2022): Ignore a coding category that
3026         has no corresponding coding system.
3028 2008-05-14  Jason Rumney  <jasonr@gnu.org>
3030         * font.h (struct font) [WINDOWSNT]: Remove codepage member.
3032         * w32font.h (w32font_open_internal): Update declaration.
3034         * w32font.c (w32font_open_internal): Change last argument from
3035         w32font_info struct to font object.  Fill in font object from
3036         font_entity.  Get Outline metrics if possible.  Use them to
3037         calculate underline position and thickness.  Use xlfd name as name
3038         property.  Don't set codepage.
3039         (w32font_open): Pass font_object to w32font_open_internal.  Don't
3040         update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
3041         (w32font_draw): Use s->font.
3042         (clear_cached_metrics): Don't clear non-existent blocks.
3044         * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
3045         font was not found.
3046         (x_draw_glyph_string): Use underline position and thickness from font.
3048         * w32uniscribe.c (uniscribe_open): Pass font_object to
3049         w32font_open_internal.
3051 2008-05-14  Kenichi Handa  <handa@m17n.org>
3053         These changes are to delete all legacy font-handling codes, and
3054         make Emacs use only font-backends.
3056         * Makefile.in: Delete USE_FONT_BACKEND conditionals.
3057         (frame.o, image.o, print.o): Depend on $(FONTSRC).
3059         * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
3061         * charset.h (Vcharset_non_preferred_head)
3062         (Vcurrent_iso639_language): Extern them.
3064         * charset.c (Vcharset_non_preferred_head): New variable.
3065         (Vcurrent_iso639_language): New variable.
3066         (syms_of_charset): Declare it as a Lisp variable.
3067         (char_charset): Don't check non preferred charsets.  As a last
3068         resort, return charset_unicode.
3069         (Fset_charset_priority): Update Vcharset_non_preferred_head.
3071         * composite.c: Throughout the file, delete all USE_FONT_BACKEND
3072         conditionals.  Don't check enable_font_backend.  Delete all codes
3073         used only when USE_FONT_BACKEND is not defined.
3075         * dispextern.h (struct glyph_string): Change type of `font' to
3076         `struct font *'.
3077         (struct glyph_string): New member underline_position and
3078         underline_thickness.
3079         (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
3080         (struct face): Change type of `font' to `struct font *'.  Remove
3081         members `font_name', `font_info_id'.
3082         (per_char_metric, encode_char): Delete externs.
3083         (calc_pixel_width_or_height): Adjust the prototype.
3085         * emacs.c (enable_font_backend): Delete extern.
3086         (main): Don't set enable_font_backend.  Don't check the command
3087         line argument "-disable-font-backend".
3089         * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
3090         (enum font_property_index): New members FONT_DPI_INDEX,
3091         FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
3092         FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
3093         FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
3094         (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
3095         (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
3096         (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
3097         (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
3098         (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
3099         (struct font_spec, struct font_entity): New structs.
3100         (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
3101         (struct font): Many members from old "struct font_info" moved to
3102         here.  Members font and entity deleted.
3103         (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
3104         the new font-related objects.
3105         (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
3106         (CHECK_FONT_GET_OBJECT): Likewise.
3107         (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
3108         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
3109         (struct font_driver): New members case_sensitive anc check.  Type
3110         of the member list and open changed.
3111         (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
3112         (font_symbolic_width, font_find_object, font_get_spec)
3113         (font_set_lface_from_name): Delete extern.
3114         (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
3116         * font.c: Include <strings.h>.
3117         (enable_font_backend): Delete it.
3118         (Qfont_spec, Qfont_entity, Qfont_object): New variables.
3119         (CHECK_VALIDATE_FONT_SPEC): Delete it.
3120         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
3121         (null_string): Delete it.
3122         (null_vector): Make it static.
3123         (font_family_alist): Delete it.
3124         (Qnormal): Extern it.
3125         (QCextra, QClanguage): Delete it.
3126         (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
3127         (font_make_spec, font_make_entity, font_make_object)
3128         (font_intern_prop): Renamed from intern_downcase.  Don't downcase
3129         the string.  Callers changed.
3130         (font_pixel_size): Adjusted for the format change of font-related
3131         objects.
3132         (prop_name_to_numeric, prop_numeric_to_name): Delete them.
3133         (font_style_to_value, font_style_symbolic): New function.
3134         (build_font_family_alist): Delete it.
3135         (font_registry_charsets): Use Fassoc_string instead of
3136         assq_no_quit.
3137         (font_prop_validate_symbol): Don't return null_string.
3138         (font_prop_validate_style): Adjusted for the change of
3139         style-related values in a font vector.
3140         (font_property_table): Delete entries for QClanguage and
3141         QCantialias, add entries for QCavgwidth.
3142         (get_font_prop_index): Delete the 2nd argument FROM.
3143         (font_prop_validate): Arguments changed.
3144         (font_put_extra): Adjusted for the change of font-related objects.
3145         (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
3146         (font_parse_fcname, font_unparse_fcname)
3147         (font_prepare_composition): Likewise.
3148         (font_parse_family_registry): Renamed from font_merge_old_spec.
3149         (otf_open): Delete the 1st arg entity.
3150         (font_otf_capability): Adjusted for the above change.
3151         (font_score): New arg alternate_families.  Adjusted for the change
3152         of font-related objects.
3153         (font_sort_entites): New arg best_only.
3154         (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
3155         Delete them.
3156         (font_match_p): Check alternate families.
3157         (font_find_object): Delete it.
3158         (font_check_object): New function.
3159         (font_clear_cache): Adjusted for the change of font-related objects.
3160         (font_delete_unmatched): New arg.
3161         (font_list_entities): Call font_driver->list with a spec that
3162         doesn't specify style-related properties.
3163         (font_matching_entity): Arguments changed.  Caller changed.
3164         (font_open_entity): Adjusted for the change of font-related objects.
3165         (font_close_object, font_has_char, font_encode_char)
3166         (font_get_name, font_get_spec): Likewise.
3167         (font_spec_from_name, font_clear_prop, font_update_lface):
3168         New functions.
3169         (font_find_for_lface, font_open_for_lface, font_load_for_lface)
3170         (font_prepare_for_face, font_done_for_face, font_open_by_name)
3171         (font_at): Adjusted for the change of font-related objects.
3172         (font_range): New function.
3173         (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
3174         (Ffont_xlfd_name): Adjusted for the change of font-related objects.
3175         (Fcopy_font_spec, Fmerge_font_spec): New function.
3176         (Ffont_family_list): Renamed from list-families.
3177         (Finternal_set_font_style_table): Arguments changed.
3178         (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
3179         (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
3180         change of font-related objects.
3181         (syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
3183         * fontset.h (struct font_info): Delete it.  Most members go to
3184         struct font.
3185         (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
3186         (enum FONT_SPEC_INDEX): Delete it.
3187         (font_info, list_fonts_func, load_font_func, query_font_func)
3188         (set_frame_fontset_func, find_ccl_program_func)
3189         (get_font_repertory_func, new_fontset_from_font_name): Delete
3190         externs.
3191         (fontset_from_font_name): Extern it.
3192         (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
3193         (FONT_INFO_FROM_FACE): Deleted.
3194         (face_for_font): Adjust prototype.
3196         * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
3197         conditionals.  Don't check enable_font_backend.  Delete all codes
3198         used only when USE_FONT_BACKEND is not defined.
3199         (get_font_info_func, list_font_func, load_font_func)
3200         (query_font_func, set_frame_fontset_func, find_ccl_program_func)
3201         (get_font_repertory_func): Delete them.
3202         (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
3203         (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
3204         (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
3205         (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
3206         (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
3207         (fontset_compare_rfontdef): New function.
3208         (reorder_font_vector): Remove the argument CHARSET-ID.  Sort
3209         ront-defs by qsort.  Adjusted for the change of font-group vector.
3210         (load_font_get_repertory): Deleted.
3211         (fontset_find_font): Use new macros to ref/set elements of
3212         font-def and rfont-def.
3213         (fontset_font): Fix the timing of remembering that no font for C.
3214         (free_face_fontset): Do nothing if the face has no fontset.
3215         (face_suitable_for_char_p): Use new macros to ref/set elements of
3216         rfont-def.
3217         (face_for_char): Likewise.  Call face_for_char with font_object.
3218         (fs_load_font): Delete.  Delete #pragma surrounding it.
3219         (fs_query_fontset): Use strcasecmp instead of strcmp.
3220         (generate_ascii_font_name): Adjusted for the format change of
3221         font-spec.
3222         (Fset_fontset_font): Likewise.  Use new macros to set elements of
3223         font-def.
3224         (Fnew_fontset): Use font_unparse_xlfd to generate
3225         FONTSET_ASCII (fontset).
3226         (new_fontset_from_font_name): Deleted.
3227         (fontset_from_font): Renamed from new_fontset_from_font.  Check if
3228         a fontset is already created for the font.  FIx updating of
3229         Vfontset_alias_alist.
3230         (fontset_ascii_font): Deleted.
3231         (Ffont_info): Adjusted for the format change of font-spec.
3232         (Finternal_char_font): Likewise.
3233         (Ffontset_info): Likewise.
3234         (syms_of_fontset): Don't check load_font_func.
3236         * fns.c (internal_equal): Handle PREV_FONT.
3238         * frame.h: Delete USE_FONT_BACKEND conditional.
3240         * frame.c: Throughout the file, delete all USE_FONT_BACKEND
3241         conditionals.  Don't check enable_font_backend.  Delete all codes
3242         used only when USE_FONT_BACKEND is not defined.
3243         (x_set_font): Call x_new_font, not x_new_fontset2.
3244         (x_set_font_backend): Use FRAME_FONT macro to check if a font is
3245         already set for the frame.
3247         * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.  Make
3248         a font-entity by font_make_entity.  Use font_intern_prop instead
3249         of intern_downcase.  Use FONT_SET_STYLE to set a style-related
3250         font property.  If a font is scalable, set avgwidth property to 0.
3251         Set font-entity property by font_put_extra.
3252         (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
3253         (ffont_driver): Adjusted for the change of struct font_driver.
3254         (ftfont_spec_pattern): New function.
3255         (ftfont_list): Return a list, not vector.
3256         (ftfont_match): Use ftfont_spec_pattern to get a pattern.
3257         (ftfont_list_family): Don't downcase names.
3258         (ftfont_free_entity): Deleted.
3259         (ftfont_open): Return a font-ojbect.  Adjusted for the change of
3260         struct font.  Get underline_thickness and underline_position from
3261         font property.  Don't update dpyinfo->smallest_font_height and
3262         dpyinfo->smallest_char_width.
3263         (ftfont_close): Don't free `struct font'.
3264         (ftfont_has_char): Adjusted for the format change of font-entity.
3265         (ftfont_encode_char, ftfont_text_extents): Likewise.
3267         * ftxfont.c (ftxfont_list): Return a list, not vector.
3268         (ftxfont_open): Return a font-ojbect.  Adjusted for the change of
3269         struct font.  Get underline_thickness and underline_position from
3270         font property.  Don't update dpyinfo->smallest_font_height and
3271         dpyinfo->smallest_char_width.
3272         (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
3273         (ftxfont_draw): Adjusted for the change of struct font.
3275         * image.c (image_ascent): Don't include "charset.h".  Include
3276         "character.h" and "font.h".
3278         * lisp.h (enum pvec_type): New member PREV_FONT.
3279         (Fassoc_string): EXFUN it.
3281         * print.c: Include font.h.
3282         (print_object): Handle font-related objects.
3284         * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
3285         conditionals.  Don't check enable_font_backend.  Delete all codes
3286         used only when USE_FONT_BACKEND is not defined.
3287         (handle_auto_composed_prop): Do nothing if it->f is not on a
3288         window system.  Check how many following characters can be
3289         displayed by the same font.
3290         (calc_pixel_width_or_height): Type of the 4th arg is changed to
3291         'struct font *'.
3292         (get_char_face_and_encoding): Assign the whole encoding task to
3293         the `encode-char' method of a font driver.
3294         (fill_composite_glyph_string): Adjusted for the change of `struct
3295         face' and `struct glyph_string'.
3296         (fill_glyph_string): Likewise.
3297         (get_per_char_metric): Arguments changed.
3298         (x_get_glyph_overhangs): Adjusted for the change of `struct face'
3299         and `struct glyph_string'.
3300         (produce_stretch_glyph, calc_line_height_property)
3301         (x_produce_glyphs): Likewise.
3303         * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
3304         conditionals.  Don't check enable_font_backend.  Delete all codes
3305         used only when USE_FONT_BACKEND is not defined.  Use
3306         FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
3307         (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
3308         (Qp): Extern them.
3309         (clear_font_table, load_face_font, xlfd_lookup_field_contents):
3310         Deleted.
3311         (struct font_name): Deleted.
3312         (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
3313         (compare_fonts_by_sort_order): New function.
3314         (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
3315         (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
3316         Deleted.
3317         (Fx_family_fonts): Use font_list_entities, and sort fonts by
3318         compare_fonts_by_sort_order.
3319         (Fx_font_family_list): Call Ffont_family_list.
3320         (face_numeric_value, face_numeric_weight, face_numeric_slant)
3321         (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
3322         (face_symbolic_slant, face_symbolic_swidth)
3323         (split_font_name_into_vector, build_font_name_from_vector)
3324         (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
3325         (font_rescale_ratio, split_font_name, build_font_name)
3326         (free_font_names, sort_fonts, x_face_list_fonts)
3327         (face_font_available_p, sorted_font_list, cmp_font_names)
3328         (font_list_1, concat_font_list, font_list, remove_duplicates):
3329         Deleted.
3330         (Fx_list_fonts): Use Ffont_list.
3331         (LFACE_AVGWIDTH): Deleted.
3332         (check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
3333         by FONTP.
3334         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3335         (set_lface_from_font_name): Delete it.
3336         (set_lface_from_font): Renamed from
3337         set_lface_from_font_and_fontset.  Caller changed.  Don't set
3338         LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
3339         for face.
3340         (merge_face_vectors): Copy font-spec if necessary.
3341         Clear properties of the font-spec if necessary.
3342         (merge_face_ref): Clear properties of the font-spec if necessary.
3343         (Finternal_set_lisp_face_attribute): Likewise.
3344         (set_font_frame_param): Use font_load_for_lface to load a
3345         font-object, and call Fmodify_frame_parameters with it.
3346         (x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
3347         font name by Ffont_xlfd_name.
3348         (Finternal_lisp_face_attribute_values): Don't check QCweight,
3349         QCslant, and QCwidth.
3350         (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
3351         (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
3352         Compare fonts by EQ.
3353         (lookup_non_ascii_face): Deleted.
3354         (face_for_font): The 2nd argument changed.
3355         (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
3356         Check atomic font properties by case insensitive.
3357         (realize_non_ascii_face): Set face->overstrike correctly.
3358         (realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
3359         (dump_realized_face): Get font name from
3360         font->props[FONT_NAME_INDEX].  Don't print font_info_id.
3362         * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
3363         conditionals.  Don't check enable_font_backend.  Delete all codes
3364         used only when USE_FONT_BACKEND is not defined.
3365         (xic_create_xfontset): Original code deleted and renamed from
3366         xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
3367         (x_make_gc): Don't set GCFont in GCs.
3368         (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
3369         opened by "fixed".
3370         (syms_of_xfns): Don't set get_font_info_func, load_font_func,
3371         find_ccl_program_func, query_font_func, set_frame_fontset_func,
3372         get_font_repertory_func.
3374         * xfont.c: Include <stdlib.h> and "ccl.h".
3375         (struct xfont_info): New structure.
3376         (xfont_query_font): Deleted.
3377         (xfont_find_ccl_program): Renamed from x_find_ccl_program and
3378         moved from xterm.c.
3379         (xfont_driver): Adjusted for the change of struct font_driver.
3380         (compare_font_names): New function.
3381         (xfont_list_pattern): Sort font names case insensitively.  Make
3382         font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
3383         (xfont_list): Return a list, not vector.
3384         (xfont_match): If the font doesn't have QCname property, generate
3385         a name from the other font properties.
3386         (xfont_open): Return a font-ojbect.  Adjusted for the change of
3387         struct font.  Get underline_thickness and underline_position from
3388         font property.  Don't update dpyinfo->smallest_font_height and
3389         dpyinfo->smallest_char_width.
3390         (xfont_close): Don't free struct font.
3391         (xfont_prepare_face): Adjusted for the change of struct font.
3392         (xfont_done_face): Deleted.
3393         (xfont_has_char): Adjusted for the change of struct font.
3394         (xfont_encode_char, xfont_draw): Likewise.
3395         (xfont_check): New function.
3397         * xftfont.c (xftfont_list): Adjusted for the change of `list'
3398         callback function.
3399         (xftfont_match): Adjusted for the fontmat change of font-entity.
3400         (xftfont_open): Adjusted for the format change of font-entity and
3401         font-object.  Adjusted for the change of struct font.  Return a
3402         font-object.  Don't update dpyinfo->smallest_font_height and
3403         dpyinfo->smallest_char_width.
3404         (xftfont_close): Block input while calling XftFontClose.
3405         (xftfont_prepare_face): Don't block input while calling
3406         xftfont_get_colors.  Adjusted for the change of struct font.
3407         (xftfont_shape): Return value of error case fixed.
3409         * xrdb.c (x_load_resources): Don't setup a fontset resource.
3411         * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
3412         conditionals.
3413         (FONT_WIDTH): Return (f)->max_width.
3414         (struct x_display_info): Delete member `font'.
3415         (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
3416         (x_find_ccl_program, x_get_font_repertory): Delete externs.
3417         (struct x_output): Change type of `font' to `struct font *'.
3419         * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
3420         conditionals.  Don't check enable_font_backend.  Delete all codes
3421         used only when USE_FONT_BACKEND is not defined.  Don't include ccl.h.
3422         (x_per_char_metric, x_encode_char): Deleted.
3423         (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
3424         (x_compute_glyph_string_overhangs): Adjusted for the change of
3425         `struct face'.
3426         (x_draw_glyph_string_foreground)
3427         (x_draw_composite_glyph_string_foreground): Likewise.
3428         (x_draw_glyph_string): Likewise.  Use font->underline_position and
3429         font->underline_thickness.
3430         (x_new_font): Renamed from x_new_fontset2.
3431         (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
3432         (x_check_font): Call `check' method of a font driver.
3433         (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
3434         (x_query_font, x_get_font_repertory): Deleted.
3435         (x_find_ccl_program): Renamed and moved to xfont.c.
3436         (x_redisplay_interface): Adjusted for the change of `struct
3437         redisplay_interface'.
3439         * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
3440         conditionals.  Don't check enable_font_backend.  Delete all codes
3441         used only when USE_FONT_BACKEND is not defined.  Surround non-used
3442         code by "#ifdef OLD_FONT" and "endif".
3443         (Fw32_select_font): Use FONT_COMPAT to get old font structure.
3445         * w32font.h (struct w32font_info): New member.
3446         (FONT_COMPAT): New macro.
3447         (w32font_open_internal): Prototype adjusted.
3449         * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
3450         OLD_FONT" and "endif".
3452         * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
3453         conditionals.  Don't check enable_font_backend.  Delete all codes
3454         used only when USE_FONT_BACKEND is not defined.
3455         (w32font_open): Return a font-object.  Make a font-object by
3456         font_make_object.  Adjusted for the change of struct w32font_info.
3457         (w32font_close): Don't free struct font.  Adjusted for the change
3458         of struct w32font_info.
3459         (w32font_encode_char, w32font_text_extents, w32font_draw):
3460         Adjusted for the change of struct w32font_info.
3461         (w32font_draw): Likewise.
3462         (w32font_list_internal): Return a list, not vector.
3463         (w32font_open_internal): Change the 4th arg to font-object.
3464         Adjusted for the change of struct w32font_info and font-object format.
3465         (add_font_name_to_list): Don't downcase names.
3466         (w32_enumfont_pattern_entity): Make a font-entity by
3467         font_make_entity.  Adjusted for the format change of font-entity.
3468         Use FONT_SET_STYLE to set a style-related font property.  If a
3469         font is scalable, set avgwidth property to 0.  Set font-entity
3470         property by font_put_extra.
3471         (font_matches_spec): Adjusted for the format change of font-entity.
3472         (w32_weight_table, w32_decode_weight): New variables.
3473         (w32_encode_weight): New function.
3474         (fill_in_logfont): Adjusted for the format change of font-spec.
3475         (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
3476         weight value.
3477         (w32font_driver): Adjusted for the change of struct font_driver.
3479         * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
3480         conditionals.  Don't check enable_font_backend.  Surround non-used
3481         code by "#ifdef OLD_FONT" and "endif".
3482         (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
3483         (FONT_AVG_WIDTH): Adjusted for the change of struct font.
3485         * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
3486         conditionals.  Don't check enable_font_backend.  Delete all codes
3487         used only when USE_FONT_BACKEND is not defined.  Surround non-used
3488         code by "#ifdef OLD_FONT" and "endif".
3490         * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
3491         (uniscribe_open): Return value changed to font-object.
3492         Adjusted for the format change of font-object.
3493         (uniscribe_otf_capability): Adjusted for the change of struct font.
3494         (add_opentype_font_name_to_list): Don't downcase names.
3495         (uniscribe_font_driver): Adjusted for the change of struct
3496         font_driver.
3498 2008-05-13  Chong Yidong  <cyd@stupidchicken.com>
3500         * dispnew.c (update_frame_1): Check if tty output is still valid
3501         before flushing it.
3503 2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
3505         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
3506         to Gtk+ menus.
3508 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
3510         * dired.c (file_name_completion): Tweak the code so as to always do it
3511         in a single pass.  Tighten the scope of some variables.
3513         * dired.c (Qdefault_directory): New var.
3514         (file_name_completion): Use it instead of Fexpand_file_name.
3515         (syms_of_dired): Initialize it.
3517 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
3519         * fileio.c (double_dollars): Remove dead code.
3521 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
3523         * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
3524         Mention w32-get-true-file-attributes in doc string.
3526         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3528 2008-05-09  Glenn Morris  <rgm@gnu.org>
3530         * fileio.c (Fread_file_name): Remove reference to insdef, deleted
3531         2008-04-23.
3533 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
3535         Support for reporting owner and group of each file on MS-Windows:
3536         * dired.c (stat_uname, stat_gname): New functions, with special
3537         implementation for w32.
3538         (Ffile_attributes): Use them instead of getpwuid and getgrgid.
3540         * w32.c: Rename the_passwd_* to dflt_passwd_*.
3541         (dflt_group_name): New static variable.
3542         (dflt_group): Rename from the_group.
3543         (init_user_info): Init dflt_group fields.  Get user's group name
3544         from LookupAccountSid.
3545         (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
3546         (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
3547         New initialization states.
3548         (globals_of_w32): Initialize them to zero.  Initialize the default
3549         group name to "None".
3550         (GetFileSecurity_Name): New global var, the name of the function
3551         to call for GetFileSecurity.
3552         (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
3553         (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
3554         (get_file_security, get_security_descriptor_owner)
3555         (get_security_descriptor_group, is_valid_sid)
3556         (get_file_security_desc, get_rid, get_name_and_id)
3557         (get_file_owner_and_group): New functions.
3558         (stat): Use get_file_security_desc and get_file_owner_and_group to
3559         report the owner and primary group of each file.  Don't ignore the
3560         high 32 bits of file's size, now that st_size is 64-bit wide.
3561         Fix test when to get true file attributes.
3562         (init_user_info): Use get_rid instead of equivalent inline code.
3563         (fstat): Don't ignore the high 32 bits of file's size.
3565 2008-05-09  Chong Yidong  <cyd@stupidchicken.com>
3567         * image.c (png_load): Use correct bit-depth for setting background
3568         color.
3570 2008-05-08  Eli Zaretskii  <eliz@gnu.org>
3572         * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
3573         epa-hook.elc.
3575 2008-05-08  Juanma Barranquero  <lekktu@gmail.com>
3577         * font.c (Ffont_match_p): Don't use `iff' in docstring.
3579 2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
3581         * macfns.c (Fx_create_frame): Make a copy of frame parameters
3582         because the original parameters are in pure storage now.
3583         (mac_window): Remove unused params.  Update callers.
3585 2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
3587         * lread.c (substitute_object_recurse): Use lower-level primitives.
3588         Don't signal errors when traversing sub-char-tables.
3589         Don't loop over all the possible characters when traversing char-tables.
3591         * print.c (print_preprocess): Add sub-char-tables to the print-table,
3592         just like we do in print.c.
3594 2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
3596         * minibuf.c (Ftry_completion): Remove code left over from when we used
3597         scmp instead of Fcompare_strings.
3599 2008-05-04  Juanma Barranquero  <lekktu@gmail.com>
3601         * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
3603 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3605         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
3606         Create bitmap context in native byte order.
3608         * macterm.c (XDrawLine)
3609         (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
3610         context in native byte order.
3612 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3614         * config.in: Regenerate.
3616         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
3617         New definitions for Image I/O support.
3618         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3619         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
3620         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3621         (mac_data_provider_release_data, image_load_image_io)
3622         [USE_MAC_IMAGE_IO]: New functions.
3623         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
3624         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
3625         (init_image_func_pointer) [MAC_OSX]: Remove function.
3626         (image_load_quartz2d) [MAC_OSX]: Check availability of
3627         CGImageCreateWithPNGDataProvider at compile time.
3628         Use lowercase `false' for boolean constant.
3629         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
3630         Use image_load_image_io.
3631         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
3632         Don't check MyCGImageCreateWithPNGDataProvider.
3633         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
3634         Don't call init_image_func_pointer.
3636         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
3638         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
3639         Make variable non-static.
3640         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3641         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3643         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
3644         (RED_FROM_ULONG): Mask off higher bits.
3645         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
3647         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
3648         Include AvailabilityMacros.h.
3649         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
3650         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
3652 2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>
3654         * chartab.c (Fset_char_table_range): If range is t, really set all
3655         chars to that value.
3657 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
3659         * dired.c (Ffile_attributes): Don't allow the device number become
3660         negative.
3662 2008-05-02  Daiki Ueno  <ueno@unixuser.org>
3664         * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
3666 2008-05-02  Juri Linkov  <juri@jurta.org>
3668         * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
3669         (Fread_variable, Fread_buffer, Fcompleting_read): Document the
3670         DEFAULT argument as a list of default values in docstrings.
3672 2008-05-01  Chong Yidong  <cyd@stupidchicken.com>
3674         * puresize.h (BASE_PURESIZE): Increase to 1210000.
3676 2008-05-01  Martin Rudalics  <rudalics@gmx.at>
3678         * dispnew.c (change_frame_size_1): Preserve small windows when
3679         shrinking frames by calling set_window_height|width with third
3680         arg 2.
3682         * window.h (struct window): Replace field too_small_ok by field
3683         resize_proportionally.
3685         * window.c (make_window): Initialize resize_proportionally.
3686         (enlarge_window): Temporarily set resize_proportionally to make
3687         sure that shrink_windows does scale the window proportionally.
3688         (shrink_windows): When window has resize_proportionally set try
3689         to shrink it proportionally by stealing from other windows.
3690         (struct saved_window, Fset_window_configuration)
3691         (compare_window_configurations): Handle resize_proportionally.
3692         (WINDOW_TOTAL_SIZE): New macro.
3693         (window_min_size, shrink_windows, size_window): Use it.
3694         (check_min_window_sizes): Remove.  Invalid values of
3695         window-min-height|width are handled by window_min_size_2 now.
3696         (size_window, Fsplit_window, enlarge_window)
3697         (adjust_window_trailing_edge, grow_mini_window): Don't call
3698         check_min_window_sizes.
3699         (window_min_size_2, window_min_size_1, window_min_size):
3700         New argument safe_p for retrieving "safe" minimum sizes.
3701         (Fdisplay_buffer, Fsplit_window, enlarge_window)
3702         (adjust_window_trailing_edge, grow_mini_window):
3703         Adjust arguments of window_min_size... functions.
3704         (shrink_windows): Argument min_size removed.  New argument
3705         safe_p allows shrinking windows to their safe minimum sizes.
3706         Calculate minimum size and decide whether a window shall be
3707         deleted for each window individually.
3708         (size_window): When nodelete_p equals 2, tell shrink_windows to
3709         delete windows only if their new minimum size is no more safe.
3710         (shrink_window_lowest_first): Call window_min_size_1 to make
3711         sure to preserve modeline of bottom-most window when resizing
3712         the minibuffer.
3713         (Fset_window_configuration, Fcurrent_window_configuration)
3714         (compare_window_configurations): Do not handle
3715         window-min-height|width any more.
3716         (syms_of_window): Clarify window-min-height|width doc-strings.
3718 2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>
3720         * dired.c (file_name_completion): Fix up the encoding/decoding issue
3721         some more.  Copy some of the code from Ftry_completions.
3722         Remove special case code that dates back to initial revision when the
3723         slash was only added when necessary and that can't trigger nowadays.
3725 2008-04-27  Kenichi Handa  <handa@m17n.org>
3727         * font.c (font_prop_validate): Signal `error' instead of `font'.
3729 2008-04-29  Jason Rumney  <jasonr@gnu.org>
3731         * w32fns.c (Fw32_battery_status): New defun.
3732         (syms_of_w32fns): Defsubr it.
3734 2008-04-28  Andreas Schwab  <schwab@suse.de>
3736         * dired.c (file_name_completion): Fix another mixing of encoded
3737         and decoded names.
3739 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
3741         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
3743 2008-04-27  Juanma Barranquero  <lekktu@gmail.com>
3745         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3747 2008-04-27  Andreas Schwab  <schwab@suse.de>
3749         * dired.c (file_name_completion): Fix inappropriate mixing of
3750         encoded and decoded names.
3752         * xterm.c (XTread_socket): Fix use of uninitialized variable.
3754         * puresize.h (BASE_PURESIZE): Increase to 1200000.
3756 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
3758         * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
3759         2008-03-31, it's not needed anymore with `struct stat' definition
3760         on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
3761         for the same reasons.
3763 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
3765         * m/sparc.h: Additional redefinitions for GNU/Linux.
3767 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3769         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
3770         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3771         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
3772         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
3773         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3774         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
3775         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3776         Likewise.
3778         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
3779         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
3780         (mac_ax_number_of_characters): Add externs.
3781         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3782         [USE_MAC_TSM]: Likewise.
3783         (mac_handle_text_input_event) [MAC_OSX]:
3784         Handle kEventTextInputOffsetToPos for no active input area case.
3785         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3786         (mac_handle_document_access_event)
3787         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
3788         (install_application_handler) [MAC_OSX]: Register handlers for
3789         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3790         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3791         Register mac_handle_document_access_event.
3793         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
3794         Make functions non-static.
3796 2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
3798         * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
3799         (read_file_name_completion_ignore_case, insert_default_directory)
3800         (Qdefault_directory): Move to minibuffer.el.
3801         (Fread_file_name): Call the new `read-file-name' instead.
3803 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3805         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
3806         Make function non-static.
3807         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
3808         Remove function.
3809         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3810         Move to mactoolbox.c.
3811         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
3813         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
3814         (mac_rect_make): New macro.
3816         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
3817         instead of float.
3818         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3819         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
3820         (XSetBackground) [USE_CG_DRAWING]: Likewise.
3821         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
3822         CGRectMake.
3823         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3824         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
3825         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
3826         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3827         instead of WindowRef in argument type.
3828         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
3829         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
3830         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
3831         instead of DISPLAY.  All uses changed.
3832         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
3833         (x_calc_absolute_position): Simplify so as not to use
3834         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
3836         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3837         instead of WindowRef in argument type.
3838         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
3839         [TARGET_API_MAC_CARBON]: Remove externs.
3840         (create_apple_event, mac_event_parameters_to_lisp)
3841         [TARGET_API_MAC_CARBON]: Add externs.
3843         * mactoolbox.c (Vmac_ts_script_language_on_focus)
3844         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
3845         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
3846         is clicked.
3847         (x_activate_menubar): Remove extern for saved_menu_event_location.
3848         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3849         Move from mac.c.
3851 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3853         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
3854         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
3856 2008-04-23  Jason Rumney  <jasonr@gnu.org>
3858         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
3859         attributes only for local files.
3861         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
3862         default to Qlocal.
3864 2008-04-22  Juri Linkov  <juri@jurta.org>
3866         * buffer.c (Fswitch_to_buffer): Change interactive spec to call
3867         read-buffer-to-switch instead of using the letter "B".
3869 2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
3871         * fileio.c (Qdefault_directory): New variable.
3872         (Fread_file_name): Use it to pass `dir' to the completion functions.
3874 2008-04-20  Chong Yidong  <cyd@stupidchicken.com>
3876         * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
3878 2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
3880         * keyboard.c (Vpre_help_message): Remove.
3881         (show_help_echo): Remove default C code.
3883         * dired.c (directory_files_internal, file_name_completion):
3884         Only call ENCODE_FILE if the string is indeed decoded.
3886 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
3888         * Makefile.in (TOOLKIT_DEFINES): Remove.
3889         (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
3891 2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3893         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
3894         (mactoolbox.o): New target.
3896         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
3897         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
3899         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
3900         Use mac_set_frame_window_background instead of XSetWindowBackground.
3901         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
3902         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
3903         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
3904         instead of SetWindowTitleWithCFString.
3905         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
3906         Move function to mactoolbox.c.
3907         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
3908         Use mac_set_window_modified instead of SetWindowModified.
3909         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
3910         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
3911         (Fx_focus_frame): Use mac_front_non_floating_window instead of
3912         FrontNonFloatingWindow.  Use mac_activate_window instead of
3913         ActivateWindow.  Use mac_active_non_floating_window instead of
3914         ActiveNonFloatingWindow.
3915         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
3916         Use mac_show_hourglass and mac_hide_hourglass.
3917         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
3918         instead of GetGlobalMouse.
3919         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
3920         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
3921         Use mac_bring_window_to_front instead of BringToFront.
3922         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
3923         mactoolbox.c.
3924         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
3925         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
3926         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
3927         mactoolbox.c.
3929         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
3930         (XtPointer): Move typedef from macmenu.c.
3931         (enum button_type): Move enum from macmenu.c.
3932         (widget_value): Move typedef from macmenu.c.
3933         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
3934         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3935         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3936         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3937         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3938         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3939         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3940         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
3941         (Selection): Move typedef from macselect.c.
3942         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
3943         macterm.c.
3944         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
3945         (mac_is_window_collapsed, mac_bring_window_to_front)
3946         (mac_send_window_behind, mac_hide_window, mac_show_window)
3947         (mac_collapse_window, mac_front_non_floating_window)
3948         (mac_active_non_floating_window, mac_activate_window)
3949         (mac_move_window_structure, mac_move_window, mac_size_window)
3950         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
3952         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
3953         (enum mac_menu_kind): Move enum to mactoolbox.c.
3954         (min_menu_id): Move variable to mactoolbox.c.
3955         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
3956         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
3957         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
3958         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
3959         [TARGET_API_MAC_CARBON]: Likewise.
3960         (XtPointer): Move typedef to macgui.h.
3961         (enum button_type): Move enum to macgui.h.
3962         (widget_value): Move typedef to macgui.h.
3963         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
3964         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
3965         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
3966         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
3967         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
3968         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
3969         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
3970         (popup_activated_flag): Make variable non-static.
3971         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
3972         (add_menu_item, fill_menu, dispose_menus):
3973         Move functions to mactoolbox.c.
3974         (restore_show_help_function, menu_target_item_handler)
3975         (install_menu_target_item_handler, mac_handle_dialog_event)
3976         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
3977         [TARGET_API_MAC_CARBON]: Likewise.
3978         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
3979         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
3980         (find_and_call_menu_selection, name_is_separator): Make function
3981         non-static.
3982         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
3983         to mactoolbox.c.
3984         (set_frame_menubar): Don't call install_menu_quit_handler.
3985         (menu_item_selection): New variable.
3986         (mac_menu_show): Use create_and_show_popup_menu.
3987         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
3988         selection but set variable menu_item_selection.  All uses changed.
3989         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
3990         Call install_menu_quit_handler.  Move to mactoolbox.c.
3992         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
3993         (Selection): Move typedef to macgui.h.
3994         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
3995         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
3996         Make variables non-static.
3997         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
3998         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
3999         Make functions non-static.
4000         (Vmac_service_selection) [MAC_OSX]: Likewise.
4001         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
4002         (mac_valid_selection_target_p, mac_clear_selection)
4003         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4004         (mac_put_selection_value, mac_selection_has_target_p)
4005         (mac_get_selection_value, mac_get_selection_target_list)
4006         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
4007         Move functions to mactoolbox.c.
4008         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
4009         Likewise.
4010         (copy_scrap_flavor_data, mac_handle_service_event)
4011         (install_service_handler) [MAC_OSX]: Likewise.
4012         (syms_of_macselect) <Vmac_dnd_known_types>:
4013         Use mac_dnd_default_known_types.
4015         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
4016         Move to mactoolbox.c.
4017         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
4018         (Fx_selection_owner_p): Add EXFUN.
4019         (install_window_handler, remove_window_handler, XSetWindowBackground):
4020         Remove externs.
4021         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
4022         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
4023         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
4024         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
4025         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
4026         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
4027         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
4028         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
4029         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
4030         (create_and_show_popup_menu, mac_get_selection_from_symbol)
4031         (mac_valid_selection_target_p, mac_clear_selection)
4032         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4033         (mac_put_selection_value, mac_selection_has_target_p)
4034         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
4035         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
4036         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
4037         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4038         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
4039         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4040         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
4041         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
4042         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
4044         * mactoolbox.c: New file.
4046 2008-04-18  Jason Rumney  <jasonr@gnu.org>
4048         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
4050 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
4052         * character.c (Fmultibyte_char_to_unibyte):
4053         Return latin1 chars unchanged.
4055         * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
4056         relocated if it points to `name'.
4058 2008-04-17  Kenichi Handa  <handa@m17n.org>
4060         * data.c (Faset): Allow setting a multibyte character in an
4061         ASCII-only unibyte string.
4063         * lisp.h (STRING_SET_MULTIBYTE): New macro.
4065 2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
4067         * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
4068         done in config.h.
4070 2008-04-16  Juanma Barranquero  <lekktu@gmail.com>
4072         * character.c (Fchar_bytes, Fchar_width, Fstring_width)
4073         (Fchar_direction): Add usage in the docstring.
4075 2008-04-15  Chong Yidong  <cyd@stupidchicken.com>
4077         * keyboard.c (read_key_sequence): Remove always-true checks.
4079 2008-04-14  Jason Rumney  <jasonr@gnu.org>
4081         * w32font.c (w32font_open_internal): Set max_bounds.descent in
4082         compatibility struct, for better underline positioning.
4084 2008-04-13  David Hansen  <david.hansen@gmx.net>
4086         * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
4087         string.
4089 2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
4091         * m/hp800.h (XUINT, XSET): Remove.
4093 2008-04-12  Juanma Barranquero  <lekktu@gmail.com>
4095         * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
4096         previous change.
4098 2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
4100         * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
4101         Relocate `nm' after calling DECODE_FILE, in case the GC was run.
4103 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
4105         * keymap.h (map_keymap_canonical): Declare.
4106         * xmenu.c (single_keymap_panes): Use it.
4108 2008-04-11  Glenn Morris  <rgm@gnu.org>
4110         * eval.c (Fdefvaralias): If the alias is bound and the target is not,
4111         set the target's value to that of the alias.
4113 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
4115         * term.c (set_tty_color_mode): Left over typo.
4117 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
4119         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
4120         only after check for file name handler functions.  Signal, when
4121         native functionality is not supported.
4122         (syms_of_fileio): Declare it unconditionally.
4124 2008-04-10  Jason Rumney  <jasonr@gnu.org>
4126         * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
4127         (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
4129         * w32.c (logon_network_drive): Also logon to remote drives that
4130         are mapped to drive letters.
4132 2008-04-10  Glenn Morris  <rgm@gnu.org>
4134         * xdisp.c (truncate-partial-width-windows): Doc fix.
4136 2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
4138         * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
4139         Move functions to minibuffer.el.
4140         (syms_of_fileio): Don't declare them.
4142 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
4144         * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
4145         (syms_of_minibuf): Remove its initialization.
4147         * minibuf.c (temp_echo_area_glyphs): Remove unused function.
4149 2008-04-09  Juanma Barranquero  <lekktu@gmail.com>
4151         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
4153 2008-04-09  Jason Rumney  <jasonr@gnu.org>
4155         * makefile.w32-in (distclean): Delete makefile too.
4156         (maintainer-clean): New target.
4158         * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
4160         * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
4161         for new font backend and composite cases.
4163 2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>
4165         * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
4166         Most of the code moved to run_timers.
4167         (do_pending_atimers): Call run_timers.
4168         (run_timers): New function.
4170         * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
4171         run atimers.
4173         * process.c (wait_reading_process_output): The same as above.
4175 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
4177         * minibuf.c (last_exact_completion): Remove variable.
4178         (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
4179         (complete_and_exit_1, complete_and_exit_2)
4180         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
4181         (Fdisplay_completion_list, display_completion_list_1)
4182         (Fminibuffer_completion_help, Fself_insert_and_exit)
4183         (Fexit_minibuffer, Fminibuffer_message): Move functions to
4184         minibuffer.el.
4185         (syms_of_minibuf): Remove corresponding initializations.
4187         * keyboard.c (Qdeactivate_mark): New var.
4188         (command_loop_1): Use it to call `deactivate-mark'.
4189         (syms_of_keyboard): Initialize it.
4191         * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
4192         to another frame.
4193         * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
4194         Don't call set_tty_color_mode.
4195         (store_frame_param): Reset previous_frame rather than call
4196         set_tty_color_mode.
4197         * term.c (set_tty_color_mode): Rewrite.
4198         * dispextern.h (set_tty_color_mode): New type.
4199         * termchar.h (struct tty_display_info): Add `previous_color_mode'.
4201 2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
4203         * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
4204         for generic chars, which do not exist any more in emacs-unicode.
4206 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
4208         * coding.c (detect_coding_emacs_mule)
4209         (Ffind_operation_coding_system): Fix typo.
4211 2008-04-08  Jason Rumney  <jasonr@gnu.org>
4213         * w32uniscribe.c (SNAME): Extract only symbol name.
4215         * w32font.h (struct w32_metric_cache): New struct.
4216         (w32font_info): Use it.
4217         (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
4218         (CACHE_BLOCKSIZE): New constants.
4220         * w32font.c (Qja, Qko, Qzh): New symbols.
4221         (syms_of_w32font): Initialise them.
4222         (font_matches_spec): Use them to filter by language.
4223         (recompute_cached_metrics): Remove function.
4224         (compute_metrics, clear_cached_metrics): New functions.
4225         (w32font_encode_char): Use them to manage metric cache.
4226         (w32font_text_extents): Cache metrics for all glyphs on demand.
4227         Delay converting glyph indices to WORD until needed.
4228         (w32font_open_internal): Initialize metric cache to empty.
4229         (registry_to_w32_charset): Charset should always be a symbol.
4230         (fill_in_logfont, list_all_matching_fonts): Family should
4231         always be a symbol.
4233 2008-04-06  Jason Rumney  <jasonr@gnu.org>
4235         * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
4236         Give up if glyph indices not supported.  Use uniscribe obtained
4237         ABC widths for individual metrics.  Map glyph clusters back to
4238         characters using fClusterStart flag.  Return number of glyphs
4239         produced, not chars processed.
4240         (uniscribe_shape): Map char at FROM to current glyph.
4242 2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4244         * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
4245         Use SetMenuItemHierarchicalMenu.
4247 2008-04-05  Jason Rumney  <jasonr@gnu.org>
4249         * image.c (pbm_load): Allow color values up to 65535.
4250         Throw an error if max_color_idx is outside the supported range.
4251         Report an error when image size is invalid.
4252         Read two bytes at a time when raw images have max_color_idx above 255.
4254 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
4256         * w32.c (readdir): If FindFirstFile/FindNextFile return in
4257         cFileName a file name that includes `?' characters, use the 8+3
4258         alias in cAlternateFileName instead.
4260 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
4262         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
4263         append "CCL: Quitted" when the CCL program is quitted.
4264         (setup_ccl_program): Initialize ccl->quit_silently to zero.
4266         * ccl.h (struct ccl_program): New member quit_silently.
4268 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
4270         * search.c (compile_pattern_1): Treat non-nil and non-string of
4271         search-spaces-regexp as nil.
4273         * minibuf.c (Fassoc_string): Tweak docstring.
4275 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
4277         * dired.c (Ffile_attributes): Support inode numbers wider than 32
4278         bits.  Remove ugly WINDOWSNT-specific kludge introduced on
4279         2008-03-14 to force inode be positive.
4281         * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
4282         _S_* ones, since we now use our own sys/stat.h.
4283         (stat, fstat): Don't mangle the inode number.
4284         (init_user_info): Don't restrict UID and GID to 0-60000 range.
4286 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
4288         * frame.h (struct frame): Give one more bit to `visible' since we use
4289         values larger than 1 to indicate obscured frames on ttys.
4291         * keymap.c (Qkeymap_canonicalize): New var.
4292         (Fmap_keymap_internal): New fun.
4293         (describe_map): Use keymap-canonicalize.
4295         * undo.c (last_boundary_buffer, last_boundary_position): New vars.
4296         (Fundo_boundary): Set them.
4297         (syms_of_undo): Initialize them.
4298         (record_point): Use them instead of last_point_position*.
4299         (last_undo_buffer): Change type.
4301 2008-04-04  Jason Rumney  <jasonr@gnu.org>
4303         * w32font.c (w32font_text_extents): Use font's ascent and descent.
4304         (recompute_cached_metrics): Don't set ascent and descent per char.
4306         * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4307         (uniscribe_check_otf): Add GC protection before consing.
4308         Rearrange loop for counting features.
4310 2008-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
4312         * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
4313         buffer with byte-size of source buffer.
4315 2008-04-03  Chong Yidong  <cyd@stupidchicken.com>
4317         * callint.c (Fcall_interactively): Handle temporary region even
4318         when shift-select-mode is off.
4320 2008-04-03  Jason Rumney  <jasonr@gnu.org>
4322         * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
4324 2008-04-03  Kenichi Handa  <handa@m17n.org>
4326         * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
4327         (CATEGORY_MASK_UTF_16): Likewise.
4328         (detect_coding_utf_16): Add heuristics to reject utf-16 for a
4329         binary file.
4330         (detect_coding): Add null-byte detection for a binary file.
4331         (detect_coding_system): Likewise.
4333 2008-04-03  Jason Rumney  <jasonr@gnu.org>
4335         * w32uniscribe.c: New file.
4337         * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
4339         * w32font.h (uniscribe_check_otf): Declare for w32font.c.
4341         * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
4342         (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
4343         (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
4344         (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
4345         (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
4346         (Qphonetic): New symbols.
4347         (syms_of_w32font): Initialize them.
4348         (font_supported_scripts): Use them.
4349         (w32font_list_family): List all charsets.
4350         (w32font_text_extents, recompute_cached_metrics): Fix metric
4351         calculations.
4352         (w32_enumfont_pattern_entity): Make full_type a DWORD.
4353         Give opentype fonts their own format.
4354         (font_matches_spec): New arguments backend and logfont.
4355         Handle :otf spec for uniscribe backend.
4356         (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
4357         (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4359         * w32fns.c (Fx_create_frame): Conditionally register uniscribe
4360         font backend.
4361         (globals_of_w32fns): Initialize uniscribe font backend.
4363         * makefile.w32-in (CONFIG_H): New variable.  Use it to clean up
4364         dependencies.
4365         (w32uniscribe.$(O)): New file to build.
4366         (FONT_OBJ): Include w32uniscribe.$(O).
4367         (LIBS): Add uniscribe libraries.
4369         * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
4371 2008-04-02  Chong Yidong  <cyd@stupidchicken.com>
4373         * callint.c (Vshift_select_mode): New var.
4374         (Finteractive): Document new ^ spec.
4375         (Fcall_interactively): Call handle-shift-selection if the ^ spec
4376         is present.
4378         * keyboard.c (Vthis_command_keys_shift_translated): New var.
4379         (command_loop_1): Avoid running the direct display versions of
4380         forward-char and backward-char if shift-selection may occur.
4381         (read_key_sequence): Set Vthis_command_keys_shift_translated if
4382         shift-translation takes place.
4384         * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
4385         avoid clobbering by define-minor-mode.
4387         * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
4388         (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
4390         * syntax.c (Fforward_word): Add ^ interactive spec.
4392         * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
4393         (Fscroll_right): Add ^ interactive spec.
4395 2008-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
4397         * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
4399         * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
4401         * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
4403 2008-03-31  Juri Linkov  <juri@jurta.org>
4405         * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
4407 2008-03-30  Jan Djärv  <jan.h.d@swipnet.se>
4409         * gtkutil.c (xg_set_geometry): Fix indentation.
4410         (xg_resize_outer_widget): Remove.
4411         (x_wm_size_hint_off): Fix indentation.
4412         (xg_frame_set_char_size): Call flush_and_sync after
4413         gtk_window_resize.
4414         (x_wm_set_size_hint): Pass NULL as geometry window to
4415         gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
4416         Add menu bar and tool bar height to base height.
4417         (xg_update_frame_menubar, free_frame_menubar)
4418         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4419         (update_frame_tool_bar, free_frame_tool_bar):
4420         Change xg_resize_outer_widget to xg_frame_set_char_size.
4422 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
4424         * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
4425         (Fdbus_call_method): New parameter TIMEOUT.
4426         (dbus-send-signal): Optimize UNGCPRO call.
4428 2008-03-29  Juri Linkov  <juri@jurta.org>
4430         * window.c (Fdisplay_buffer): Move call to
4431         Vsplit_window_preferred_function out of conditions that check
4432         if window is eligible for vertical splitting.
4433         When Vsplit_window_preferred_function is non-nil, call it and use
4434         its non-nil return value as window.  Otherwise, continue doing
4435         vertical splitting using Fsplit_window with arg horflag=nil.
4436         (syms_of_window) <Vsplit_window_preferred_function>: Change the
4437         default value from `split-window' to nil.
4439 2008-03-29  Juri Linkov  <juri@jurta.org>
4441         * callint.c (Fcall_interactively): Revert 2008-03-16 change
4442         for interactive code letters 'b' and 'B'.
4444 2008-03-29  Eli Zaretskii  <eliz@gnu.org>
4446         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
4447         multibyte string.
4449 2008-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
4451         * keyboard.c (pending_funcalls): New var.
4452         (timer_check): Run it.
4453         (syms_of_keyboard): Initialize it.
4454         * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
4455         (Vdelete_terminal_functions): New vars.
4456         (syms_of_terminal): Initialize them.
4457         (Fdelete_terminal): Run delete-terminal-functions.
4458         * xdisp.c (safe_eval): Rewrite.
4459         (safe_call2): New fun.
4460         * frame.c (Qdelete_frame_functions): New var.
4461         (syms_of_frame): Initialize it.
4462         (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
4463         * lisp.h (safe_call2, pending_funcalls): Declare.
4465 2008-03-28  Andreas Schwab  <schwab@suse.de>
4467         * indent.c (Fmove_to_column): Move declaration before statements.
4469 2008-03-27  Stefan Monnier  <monnier@iro.umontreal.ca>
4471         * frame.h (enum fullscreen_type): Give it a name.  Move it before use.
4472         (struct frame): Use bit fields for boolean vars.
4474         * process.c (server_accept_connection): Simplify naming.
4475         (emacs_get_tty_pgrp): Use SDATA.
4477         * coding.c (decode_coding_object): Fix last change.
4479 2008-03-27  Jason Rumney  <jasonr@gnu.org>
4481         * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
4483 2008-03-27  Kenichi Handa  <handa@ni.aist.go.jp>
4485         * charset.c (Fdefine_charset_internal): Change the way of
4486         registering charsets in Vcharset_order_list.
4487         (syms_of_charset): Make the charset `eight-bit' supplementary.
4489 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
4491         * regex.c (EXTEND_BUFFER): Change order of pointer addition
4492         operations, to avoid having the difference between pointers
4493         overflow.
4495 2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
4497         * indent.c (check_display_width): New fun.
4498         (scan_for_column): Use it.
4500         * data.c (syms_of_data): Mark most-positive-fixnum and
4501         most-negative-fixnum as constants.
4503         * xdisp.c (redisplay_internal): Reset selected_frame earlier.
4505         * indent.c (scan_for_column): Extract from current_column_1.
4506         Merge with the same code from Fmove_to_column.
4507         (current_column_1, Fmove_to_column): Use it.
4509 2008-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
4511         * keymap.c (map_keymap_internal): New fun.
4512         (map_keymap): Use it.
4513         (Fmap_keymap_internal): New fun.
4514         (Fmap_keymap): Remove left-out test from before make_save_value.
4516         * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
4518         * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
4519         Use XCAR/XCDR.
4521         * process.h (struct Lisp_Process): Remove filter_multibyte.
4522         * process.c (QCfilter_multibyte): Remove.
4523         (setup_process_coding_systems): Don't use filter_multibyte.
4524         (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
4525         (read_process_output): Don't adjust multibyteness to filter_multibyte.
4526         (Fset_process_filter_multibyte): Change the coding-system to
4527         approximate the previous behavior.
4528         (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
4529         coding-system.
4531         * coding.c (decode_coding_object): When not decoding into a buffer,
4532         obey the coding system's preference of (uni|multi)byte.
4534 2008-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
4536         * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
4537         every char is changed and has a different byte-length.
4538         (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
4539         Fix int -> EMACS_INT.
4541 2008-03-23  David Hansen  <david.hansen@gmx.net>
4543         * dbusbind.c (xd_read_message): Remove extra copying of message
4544         strings.  Check for NULL `interface' or `member'.
4546 2008-03-22  Eli Zaretskii  <eliz@gnu.org>
4548         * w32.c (readdir): If FindFirstFile/FindNextFile return in
4549         cFileName a file name that includes `?' characters, use the 8+3
4550         alias in cAlternateFileName instead.
4552 2008-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
4554         * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
4556 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
4558         * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
4559         (set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
4560         work on current_buffer only instead (that was already the case
4561         for some of the code anyway).
4562         * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
4563         (temp_set_point, temp_set_point_both): Use EMACS_INT.
4564         (SET_PT, SET_PT_BOTH): Adjust.
4565         * intervals.h (set_point, temp_set_point, set_point_both)
4566         (temp_set_point_both): Remove redundant declarations.
4568 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
4570         * fileio.c (Finsert_file_contents):
4571         * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
4572         * buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
4573         when buffer != current_buffer anyway.
4575 2008-03-20  Andreas Schwab  <schwab@suse.de>
4577         * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
4578         as default.
4580 2008-03-19  Jason Rumney  <jasonr@gnu.org>
4582         * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
4583         (syms_of_w32fns): Initialize them.
4584         (HOURGLASS_ID): New constant.
4585         (x_window_to_frame): Don't check hourglass_window.
4586         (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
4587         (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
4588         (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
4589         (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
4590         Only change the cursor if hourglass is not active.
4591         (Fx_create_frame): Initialize frame's current_cursor.
4592         (hourglass_atimer): Remove.
4593         (hourglass_started): New function.
4594         (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
4595         (show_hourglass): Adapt to w32, changing argument to frame.
4597         * w32term.h (struct w32_output): Remove hourglass_window.
4598         Add current_cursor.
4600         * eval.c (call_debugger, Fsignal):
4601         * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
4602         (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
4603         (Fexecute_extended_command, cancel_hourglass_unwind):
4604         * minibuf.c (read_minibuf):
4605         * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
4607 2008-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
4609         * window.c (run_funs): New fun.
4610         (run_window_configuration_change_hook): Use it to run the buffer-local
4611         and the global part of the hook.
4613         * xdisp.c (format_mode_line_unwind_data): Add window argument.
4614         (unwind_format_mode_line): Restore selected window.
4615         (x_consider_frame_title, Fformat_mode_line): Set selected window.
4617 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
4619         * editfns.c (Fchar_equal): Check they are valid characters.
4621         * buffer.h (Fbuffer_list): Declare (for use in callint.c).
4623 2008-03-17  Andreas Schwab  <schwab@suse.de>
4625         * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
4626         against a charset.
4628         * lisp.h (Fbuffer_list): Declare.
4630 2008-03-17  Jan Djärv  <jan.h.d@swipnet.se>
4632         * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
4633         handlebox_widget is != 0.
4635 2008-03-16  Juri Linkov  <juri@jurta.org>
4637         * callint.c (Fcall_interactively): For interactive code letters
4638         'b' and 'B' put the buffer list into the list of default "future"
4639         values of the minibuffer.
4641 2008-03-16  Andreas Schwab  <schwab@suse.de>
4643         * keyboard.c (read_key_sequence): Fix downcasing of letters with
4644         modifiers.
4646         * regex.c (re_match_2_internal): Correct matching of a charset
4647         against latin-1 characters.
4649 2008-03-16  Kenichi Handa  <handa@m17n.org>
4651         * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
4652         (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
4653         (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
4654         (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
4655         (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
4656         CHAR_STRING_ADVANCE.
4657         (produce_chars): Fix for the case that the source and the
4658         destination are the same buffer.  Use CHAR_STRING_ADVANCE_NO_UNIFY
4659         instead of CHAR_STRING_ADVANCE.
4660         (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
4661         STRING_CHAR_ADVANCE.
4663 2008-03-15  Andreas Schwab  <schwab@suse.de>
4665         * regex.c (re_match_2_internal): Correct matching of eight bit
4666         characters in unibyte strings.
4668 2008-03-15  Martin Rudalics  <rudalics@gmx.at>
4670         * buffer.c (overlays_in, Foverlays_in): Include empty overlays
4671         at end of range when it coincides with the end of the buffer.
4673 2008-03-14  Eli Zaretskii  <eliz@gnu.org>
4675         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
4677         * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
4679 2008-03-14  Jason Rumney  <jasonr@gnu.org>
4681         * editfns.c (initial_tz): New variable.
4682         (syms_of_editfns): Initialize it.
4683         (Fset_time_zone_rule): Set it when first called.
4684         Use it when TZSTRING is nil.
4686         * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
4687         (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
4688         (monitor_from_point_fn, get_monitor_info_fn): New globals.
4689         (globals_of_w32fns): Initialize them.
4690         (compute_tip_xy): Use them to position tooltips.
4692 2008-03-14  Glenn Morris  <rgm@gnu.org>
4694         * emacs.c (main): Revert previous change.
4695         (standard_args): Revert -internal-script back to -scriptload,
4696         and remove the long-option form.
4698 2008-03-13  Glenn Morris  <rgm@gnu.org>
4700         * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
4701         Remove option -enable-font-backend.
4703 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
4705         * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
4707 2008-03-11  Jan Djärv  <jan.h.d@swipnet.se>
4709         * xterm.c (x_connection_closed): For GTK: If this is the last
4710         terminal just exit without closing the display.
4712 2008-03-11  Jason Rumney  <jasonr@gnu.org>
4714         * w32font.c (w32font_full_name): Use floor to round.
4716 2008-03-10  dhruva  <dhruvakm@gmail.com>  (tiny change)
4718         * sound.c (alsa_configure): Declare vol at beginning of block.
4720         * fontset.c (Ffontset_info): Remove extra semicolon.
4722 2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
4724         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
4725         size of resulting string.
4727 2008-03-10  Jason Rumney  <jasonr@gnu.org>
4729         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
4731 2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4733         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
4734         Don't pretend as if characters with display property haven't been
4735         consumed for string-replacing-string case.
4737 2008-03-08  Kim F. Storm  <storm@cua.dk>
4739         * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
4740         (get_next_display_element, next_element_from_string)
4741         (next_element_from_ellipsis, next_element_from_buffer): Use it.
4743 2008-03-08  Andreas Schwab  <schwab@suse.de>
4745         * process.h (struct Lisp_Process): Declare bit fields as unsigned.
4747 2008-03-06  Jason Rumney  <jasonr@gnu.org>
4749         * w32font.c (w32_registry): Take font_type argument.  Use ANSI
4750         when charset not specified.  Only translate ANSI to unicode when
4751         font_type is truetype.
4752         (w32font_coverage_ok): New function.
4753         (add_font_entity_to_list): Use it to filter unsuitable fonts.
4755 2008-03-05  Kenichi Handa  <handa@ni.aist.go.jp>
4757         * lread.c (Fread_char): Resolve modifiers.
4758         (Fread_char_exclusive): Likewise.
4760         * character.c (char_resolve_modifier_mask): New function.
4761         (char_string): Use char_resolve_modifier_mask.
4762         (Fchar_resolve_modifiers): New function.
4763         (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
4764         function.
4766 2008-03-04  Jason Rumney  <jasonr@gnu.org>
4768         * makefile.w32-in: Always include w32font.c in the build.
4769         * w32font.c: Wrap in USE_FONT_BACKEND conditional.
4771 2008-03-04  Andreas Schwab  <schwab@suse.de>
4773         * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
4774         (versionclean): Likewise.
4776 2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
4778         * .cvsignore: Add oo.
4780 2008-03-03  Andreas Schwab  <schwab@suse.de>
4782         * coding.c (decode_coding_object): Inhibit gap shrinking while
4783         decoding in place.
4785 2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
4787         * w32term.c: Remove unused include "gnu.h".
4788         * makefile.w32-in (w32term.o): Don't depend on gnu.h.
4790         * gnu.h: Rename to ...
4791         * emacs-icon.h: ... this.
4792         * xterm.c: Use emacs-icon.h instead of gnu.h.
4793         * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
4795 2008-03-03  Juanma Barranquero  <lekktu@gmail.com>
4797         * w32font.c: Include math.h.
4799 2008-03-03  Jason Rumney  <jasonr@gnu.org>
4801         * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
4802         Compute options separately.
4803         (w32font_open_internal): Set glyph_idx before caching metrics.
4805         * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
4806         Define if system headers don't.
4807         (struct w32font_info): Enlarge ascii_metrics.  Add glyph_idx.
4808         (w32font_encode_char): Don't declare here.
4810         * w32font.c (Quniscribe, QCformat): New symbols.
4811         (syms_of_w32font): Define them.
4812         (w32font_has_char): Indicate uncertainty.
4813         (w32font_encode_char): Encode as glyph point.  Make static.
4814         (recompute_cached_metrics): New function.
4815         (w32font_open_internal): Use it.  Set font to use glyph points
4816         initially.  Set format based on type of font.
4817         (w32font_text_extents, w32font_draw): Optionally use glyph points.
4818         (w32_enumfont_pattern_entity): Accept backend arg.  Set type based
4819         on it.  Set format based on information available here.
4820         (add_font_entity_to_list): Identify backend based on opentype_only.
4822 2008-03-02  Andreas Schwab  <schwab@suse.de>
4824         * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
4826         * coding.c (decode_coding_big5, produce_chars):
4827         Fix typos in last change.
4829 2008-03-02  Kentaro Ohkouchi  <nanasess@fsm.ne.jp>
4831         * gnu.h: New icon.
4833 2008-03-02  Kenichi Handa  <handa@m17n.org>
4835         * coding.c (decode_coding_utf_8): When eol-type of CODING is
4836         `dos', don't decode '\r' if that is the last in the source.
4837         (decode_coding_utf_16, decode_coding_emacs_mule)
4838         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4839         (decode_coding_raw_text, decode_coding_charset): Likewise.
4840         (produce_chars): Don't decode EOL here.  Use EMACS_INT.
4842 2008-03-01  Jason Rumney  <jasonr@gnu.org>
4844         * w32font.c (w32font_full_name): Report point size for scalable fonts.
4846 2008-03-01  Kim F. Storm  <storm@cua.dk>
4848         * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
4850 2008-03-01  Jason Rumney  <jasonr@gnu.org>
4852         * w32font.c (w32font_full_name): New function.
4853         (w32font_open_internal): Use it.
4855 2008-03-01  Kim F. Storm  <storm@cua.dk>
4857         * dispnew.c (line_draw_cost): Fix invalid glyph check.
4859 2008-03-01  Jason Rumney  <jasonr@gnu.org>
4861         * font.c (font_unparse_fcname): Increase len when style is a symbol.
4863 2008-03-01  Jan Djärv  <jan.h.d@swipnet.se>
4865         * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
4866         xg_frame_resized when the event is for the edit widget.
4868         * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
4870         * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
4871         set_char_size.
4872         (xg_frame_resized): Renamed from xg_resize_widgets.  Remove all
4873         operations on widgets here.  Just set frame size if needed.
4874         (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
4875         (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
4876         (x_wm_set_size_hint): Set size hints on the edit widget only, not
4877         the whole frame.
4878         (xg_create_tool_bar): Move attachement of the tool bar to
4879         xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
4880         (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
4882 2008-03-01  Jason Rumney  <jasonr@gnu.org>
4884         * w32fns.c (w32_msg_pump): Disable debug code.
4886 2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4888         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
4890 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
4892         * xdisp.c (next_overlay_string): Don't set
4893         overlay_strings_at_end_processed_p if we're currently reading from
4894         a display string.
4896 2008-02-29  Stefan Monnier  <monnier@iro.umontreal.ca>
4898         * xdisp.c (get_overlay_strings_1): Fix typo.
4900 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
4902         * xdisp.c (get_overlay_strings_1): Add missing argument type.
4904 2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
4906         * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
4908         * xdisp.c (display_mode_element): Cancel the previous change.
4909         (decode_mode_spec): Likewise.
4910         (handle_auto_composed_prop): Don't make composition if it->string
4911         is a string.
4913 2008-02-27  Kim F. Storm  <storm@cua.dk>
4915         * lisp.h (GLYPH): Change type from int to struct with separate char
4916         and face_id members.
4917         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
4918         (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
4919         (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
4920         (GLYPH_CHAR, GLYPH_FACE): ... these.  Change users.
4921         (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove.  Rewrite users to use ...
4922         (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
4923         (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
4924         (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
4925         handle new Lisp glyph code encoding, either an integer or a cons.
4927         * disptab.h (GLYPH_SIMPLE_P): Rewrite.
4928         (GLYPH_ALIAS): Delete.
4929         (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
4930         (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
4931         (GLYPH_FROM_CHAR): Replace macro by ...
4932         (SET_GLYPH_FROM_CHAR): ... this macro.  Change users.
4934         * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
4935         (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
4936         (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro.  Change users.
4937         (GLYPH_INVALID_P): New macro.
4938         (spec_glyph_lookup_face): Update prototype.
4940         * dispnew.c (line_draw_cost): Adapt to new glyph type.
4941         (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
4942         new glyph code encoding.
4943         (spec_glyph_lookup_face): No return value; update passed glyph instead.
4944         (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
4946         * xdisp.c (get_next_display_element, next_element_from_display_vector):
4947         Adapt to new glyph type and new glyph code encoding.
4949         * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
4951         * indent.c (current_column, current_column_1, Fmove_to_column)
4952         (compute_motion): Adapt to new glyph code encoding.
4954         * msdos.c (IT_write_glyphs): Adapt to new glyph type.
4956 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
4958         * process.c (wait_reading_process_output): Check for window
4959         changes caused by timers.
4960         Suggested by Johan Bockgård.
4962 2008-02-27  Glenn Morris  <rgm@gnu.org>
4964         * emacs.c (USAGE1): Add `--disable-font-backend'.
4966 2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
4968         * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
4969         is made to the buffer.
4971 2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
4973         * dispextern.h (face_at_buffer_position, face_for_overlay_string)
4974         (face_at_string_position):
4975         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4976         (face_at_string_position):
4977         * xdisp.c (display_string, next_overlay_change):
4978         * buffer.h (overlays_at):
4979         * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
4980         Update callers.
4982 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
4984         * editfns.c (Fformat): Doc fix.
4986 2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
4988         * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
4989         (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
4990         (Ffont_otf_alternates, Fquery_font): Doc fixes.
4992 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
4994         * buffer.c (Fbuffer_swap_text): New function.
4995         (syms_of_buffer): Defsubr it.
4997 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
4999         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
5001 2008-02-25  Jason Rumney  <jasonr@gnu.org>
5003         * w32font.c (w32font_draw): Draw one character at a time when padding.
5005 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
5007         * window.c (Fdelete_window, Fadjust_window_trailing_edge):
5008         Handle a nil arg.  Use run_window_configuration_change_hook.
5009         (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
5010         (Fenlarge_window, Fshrink_window, Fset_window_configuration):
5011         Use run_window_configuration_change_hook.
5013 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
5015         * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
5016         1-pixel width.
5018 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
5020         * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
5021         (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
5022         if the glyph in the font is zero pixel with.
5024         * dispextern.h (struct glyph_string): New member padding_p.
5026         * w32font.c (w32font_draw): Pay attention to s->padding_p.
5028         * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
5030         * xfont.c (xfont_draw): Pay attention to s->padding_p.
5032         * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
5034         * font.c: If the font driver doesn't have `shape' function, return Qnil.
5036 2008-02-25  Jason Rumney  <jasonr@gnu.org>
5038         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
5040 2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
5042         Allow fine-grained image-cache flushing.
5043         * dispextern.h (struct image): Add `dependencies' field.
5044         (clear_image_caches): Change arg to Lisp_Object.
5045         * image.c (make_image): Initialize `dependencies' field.
5046         (clear_image_cache): Change arg to allow fine-grained flushing.
5047         Perform the flush even if image-cache-eviction-delay is nil.
5048         (clear_image_caches): Change arg to Lisp_Object.
5049         (Fclear_image_cache): Expand meaning of the argument.
5050         (mark_image): Mark `dependencies' field.
5051         * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
5052         (lface_hash): Use XHASH rather than XFASTINT.
5053         (face_at_buffer_position): Fix int -> EMACS_INT position.
5054         * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
5055         (select_frame_for_redisplay): Remove code duplication.
5056         (redisplay_internal): Adapt arg to call to clear_image_caches.
5058 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
5060         * s/vms4-0.h:
5061         * s/vms4-2.h:
5062         * s/vms4-4.h:
5063         * s/vms5-5.h: Remove, unused.
5065         * s/irix5-2.h:
5066         * s/irix6-0.h:
5067         * s/riscos5.h:
5068         * s/mach-bsd4-3.h:
5069         * m/mips4.h: Remove files for obsolete systems.
5071         * Makefile.in:
5072         * filelock.c:
5073         * unexmips.c:
5074         * m/hp9000s300.h:
5075         * m/iris4d.h:
5076         * s/aix3-1.h:
5077         * s/hpux.h:
5078         * s/msdos.h:
5079         * s/usg5-0.h:
5080         * s/usg5-2-2.h:
5081         * s/usg5-2.h:
5082         * s/usg5-3.h: Remove references to obsolete variables.
5084         * s/irix5-0.h: Remove, move all the contents ...
5085         * s/irix6-5.h: ... here.  Simplify.
5086         * config.in: Regenerate.
5088 2008-02-24  Jason Rumney  <jasonr@gnu.org>
5090         * w32term.c (x_draw_glyph_string_background): Clear the background
5091         manually when cleartype is in use.
5092         (x_draw_glyph_string_foreground): Draw text transparently when
5093         cleartype is in use.
5095         * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
5096         a font into it unless we have to.
5098 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
5100         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
5101         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
5103 2008-02-18  Jason Rumney  <jasonr@gnu.org>
5105         * w32fns.c (Fw32_shell_execute): Encode parameters.
5107 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
5109         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
5111 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
5113         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
5115 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
5117         * xterm.c (x_set_offset): Don't change the gravity if
5118         CHANGE_GRAVITY is -1.
5120 2008-02-23  Chong Yidong  <cyd@stupidchicken.com>
5122         * fileio.c (auto_save_error_occurred): New var.
5123         (auto_save_error): Set it.
5124         (Fdo_auto_save): Don't overwrite the error message if an auto-save
5125         error occurred.
5127 2008-02-23  Eli Zaretskii  <eliz@gnu.org>
5129         * w32.c (globals_of_w32): Add initializations for
5130         g_b_init_get_sid_sub_authority and
5131         g_b_init_get_sid_sub_authority_count.
5133 2008-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
5135         * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
5136         (font_parse_xlfd): Use them for sanity check.
5137         (Finternal_set_font_style_table): Make sure the table is bijective.
5139         Consolidate the image_cache to the terminal struct.
5140         * termhooks.h (P_): Remove redundant def.
5141         (struct terminal): New field `image_cache'.
5142         * frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
5143         of FRAME_X_IMAGE_CACHE.
5144         * xterm.h (struct x_display_info): Remove image_cache field.
5145         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
5146         * w32term.h (struct w32_display_info): Remove image_cache field.
5147         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
5148         * macterm.h (struct mac_display_info): Remove image_cache field.
5149         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
5150         * xterm.c (x_term_init):
5151         * w32term.c (w32_term_init):
5152         * macterm.c (mac_term_init): Set the image_cache in the terminal.
5153         * dispextern.h (clear_image_cache, forall_images_in_image_cache):
5154         Remove declarations.
5155         (clear_image_caches, mark_image_cache): New declarations.
5156         * xfaces.c (clear_face_cache):
5157         * xdisp.c (redisplay_internal): Use clear_image_caches.
5158         * image.c (clear_image_cache): Don't check that a frame is on
5159         a window-system before checking if it shares the same cache.
5160         (clear_image_caches): New function.
5161         (Fclear_image_cache): Use it.
5162         (mark_image): Move from allo.c.
5163         (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
5164         * alloc.c (mark_image, mark_image_cache): Move to image.c.
5165         (mark_object): Don't call mark_image_cache for frames.
5166         (mark_terminals): Call mark_image_cache.
5168         * lisp.h (Fdelete_terminal): Declare.
5170         * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
5171         (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
5172         wrong_type_argument.
5174 2008-02-22  Kenichi Handa  <handa@ni.aist.go.jp>
5176         * Makefile.in (lisp): Remove devanagari.el, kannada.el,
5177         malayalam.el, and tamil.el.  Add sinhala.el.
5179 2008-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
5181         * xterm.c (x_connection_closed): Consolidate identical tests.
5182         (x_delete_terminal): Don't crash if called via x_connection_closed.
5184 2008-02-21  Kenichi Handa  <handa@ni.aist.go.jp>
5186         * xdisp.c (decode_mode_spec): New arg string.
5187         (display_mode_element): Adjust for the above change.
5189 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
5191         * callint.c (Fcall_interactively): Use AREF.
5193 2008-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
5195         * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
5197 2008-02-18  Jan Djärv  <jan.h.d@swipnet.se>
5199         * xfns.c (Fx_show_tip): Set string to " " if empty.
5201 2008-02-17  Dan Nicolaescu  <dann@ics.uci.edu>
5203         * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
5204         with Qt.
5206 2008-02-17  Kenichi Handa  <handa@m17n.org>
5208         * ftfont.c (ftfont_shape): Return Lispy number.
5210         * xfaces.c (prepare_face_for_display): Use display_info->font->fid
5211         for GCs.
5212         (Finternal_set_font_selection_order): Call font_update_sort_order
5213         only when enable_font_backend is set.
5214         (realize_x_face): Set face->font_info to that of default face only
5215         when enable_font_backend is set.
5217         * xdisp.c (handle_composition_prop): Set it->c to the fist
5218         characte of the composed region.
5219         (fill_composite_glyph_string): Set base_face->font_info to
5220         s->font_info.  Get a face for ascii from base_face->ascii_face.
5221         (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
5222         with a face already decided.
5223         (x_produce_glyphs): Be sure to set it->ascent and it->descent to
5224         non-negative.
5225         (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
5226         call font_prepare_composition unconditionally.
5228         * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
5230         * xterm.h (struct x_display_info): New member font.
5232         * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
5233         (x_set_mouse_face_gc, x_new_font): Likewise.
5234         (x_term_init): Setup display_info->font.
5235         (x_delete_terminal): Free display_info->font.
5237         * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
5239         * ftxfont.c (ftxfont_default_fid): Delete it.
5240         (ftxfont_open): Set xfont->fid to 0.
5241         (ftxfont_end_for_frame): Clear data specific to the frame and the
5242         font-driver.
5244         * xftfont.c (xftfont_default_fid): Delete it.
5245         (xftfont_open): Set xfont->fid to 0.
5247         * fontset.c (FONTSET_OBJLIST): New macro.
5248         (fontset_find_font): Update font-object list of the fontset.
5249         (free_realized_fontset): New function.
5250         (free_face_fontset): Call free_realized_fontset.
5251         (Ffont_info): Call font_close_object only when enable_font_backend
5252         is set.
5254         * font.c [HAVE_X_WINDOWS]: Include xterm.h.
5255         [HAVE_NTGUI]: Include w32term.h.
5256         [MAC_OS]: Include macterm.ch.
5257         (font_otf_ValueRecord): Use make_number.
5258         (font_finish_cache): Fix handling of reference count.
5259         (font_clear_cache): Update num_fonts.
5260         (font_open_entity): Update smallest_char_width and
5261         smallest_font_height of the frame.
5262         (font_close_object): Update num_fonts.
5263         (Fclear_font_cache): Fix finding the target cache data.
5265 2008-02-16  Glenn Morris  <rgm@gnu.org>
5267         * fontset.c (Finternal_char_font): Fix compilation warning.
5269 2008-02-16  Eli Zaretskii  <eliz@gnu.org>
5271         * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
5272         instead of char arrays.  Enlarge the size of array passed to
5273         get_token_information.
5275         * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
5276         warnings.
5278 2008-02-15  Dan Nicolaescu  <dann@ics.uci.edu>
5280         * .gdbinit: Don't set `args', it breaks gdb --args.
5282 2008-02-14  Stefan Monnier  <monnier@iro.umontreal.ca>
5284         * fileio.c (Finsert_file_contents): Adjust offsets when replacing
5285         within a narrowed buffer.
5287 2008-02-14  Kenichi Handa  <handa@ni.aist.go.jp>
5289         * coding.c (decode_coding_object, encode_coding_object):
5290         Preserve Vdeactivate_mark.  Delete unnecessary call of Fcurrent_buffer.
5292 2008-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
5294         * coding.c (coding_set_destination): Use BEG_BYTE rather than
5295         hardcoding 1.
5296         (detect_coding_system):
5297         * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
5298         (string_char_to_byte, string_byte_to_char, insert_from_gap):
5299         * insdel.c (insert_from_gap):
5300         * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
5301         (string_char_to_byte, string_byte_to_char, string_make_multibyte)
5302         (string_to_multibyte):
5303         * character.c (chars_in_text, multibyte_chars_in_text):
5304         * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
5306         * character.h (FETCH_STRING_CHAR_ADVANCE)
5307         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
5308         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
5309         (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
5311         * casefiddle.c (casify_region): Only call after-change and composition
5312         functions on the part of the region that was changed.
5314         * keyboard.c (read_avail_input):
5315         * frame.c (Fdelete_frame): Call Fdelete_terminal.
5317 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
5319         * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
5320         (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
5322 2008-02-11  Juanma Barranquero  <lekktu@gmail.com>
5324         * w32menu.c (push_submenu_start, push_submenu_end)
5325         (push_left_right_boundary, push_menu_pane, push_menu_item):
5326         * keyboard.c (read_key_sequence): Don't pass args with side effects
5327         to AREF, it fails when compiling with -DENABLE_CHECKING.
5329 2008-02-11  Kenichi Handa  <handa@ni.aist.go.jp>
5331         * Makefile.in (${lispsource}international/charprop.el):
5332         Delete this target.
5334         * search.c (boyer_moore): Fix incorrect synching of the trunk and
5335         emacs-unicode-2.
5337 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
5339         * terminal.c (Fdelete_terminal): Clean up the `force' path.
5341 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
5343         * frame.c (Qnoelisp): New symbol.
5344         (syms_of_frame): Initialize it.
5345         (Fdelete_frame): Use it to distinguish a mere `force' passed from
5346         someharmles Elisp code, from a strong `force' from x_connection_closed.
5347         * frame.h (Qnoelisp): Declare.
5348         * xterm.c (x_connection_closed): Pass `noelisp'.
5350         * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
5351         (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
5352         (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
5353         rather than `int' for the type of `type'.
5355 2008-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
5357         * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
5359         * Makefile.in (GNUC): Remove support for gcc-1.x.
5361 2008-02-10  Richard Stallman  <rms@gnu.org>
5363         * lisp.h (ASET): Use AREF, not ASLOT.
5365 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
5367         * lisp.h (ASET): Check bounds.
5369 2008-02-10  Glenn Morris  <rgm@gnu.org>
5371         * buffer.c (mode-name): Doc fix.
5373 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
5375         * Makefile.in:
5376         * emacs.c:
5377         * gmalloc.c:
5378         * keyboard.c:
5379         * lisp.h:
5380         * m/ibm370aix.h:
5381         * process.c:
5382         * regex.c:
5383         * s/hpux.h:
5384         * sysdep.c:
5385         * sysselect.h:
5386         * systty.h:
5387         * unexec.c:
5388         * w32term.c:
5389         * xsmfns.c:
5390         * xterm.c: Remove code that deals with obsolete variables.
5392         * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
5394         * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
5395         nothing else needs it anymore.
5397 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
5399         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
5400         instead of unibyte_char_to_multibyte.
5402 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
5404         * s/gnu-linux.h: Remove commented out code.
5406         * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
5408         * Makefile.in: Update what RMS says about using autoconf.
5409         (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
5410         (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
5411         (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
5412         (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
5414 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
5416         * keymap.c (Fkey_description): Move side effect outside of macro call.
5418         * xfaces.c (Finternal_make_lisp_face):
5419         * keyboard.c (add_command_key, parse_menu_item): Use ASET.
5421         * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
5422         (syms_of_fontset): Use ASET.
5424         * fns.c (concat): Move side effect outside of macro call.
5425         (hash_clear): Use ASET.
5427 2008-02-08  Richard Stallman  <rms@gnu.org>
5429         * frame.c (Fdelete_frame): If FORCE, don't call hooks.
5430         If FORCE, and frame has a surrogate minibuffer for another frame,
5431         delete the other frame first.
5433 2008-02-07  Timo Savola  <timo.savola@iki.fi>
5435         * xterm.c (x_detect_focus_change): Handle embed client message.
5436         (handle_one_xevent): Ditto.
5437         (handle_one_xevent): If embedded and we get a button press/release,
5438         request focus.
5439         (xembed_set_info, xembed_send_message): New functions.
5440         (x_make_frame_visible): Call xembed_set_info if embedded.
5441         (x_make_frame_invisible): Call xembed_set_info if embedded.
5442         (x_term_init): Initialize Xatom_XEMBED.
5443         (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
5444         (x_iconify_frame): Ditto.
5446         * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
5447         (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
5448         (enum xembed_modifier, enum xembed_accelerator): New.
5449         (xembed_set_info, xembed_send_message): Declare.
5450         (FRAME_X_EMBEDDED_P): New.
5452         * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
5453         gtk_plug_new.
5455         * xfns.c (Fx_create_frame): Do not override the explicitly set parent
5456         window ID of a frame.
5457         (x_window): Reparent frame if embedded.
5458         (Fx_create_frame): Don't set border width if embedded.
5460         * emacs.c (USAGE3): Add --parent-id.
5461         (standard_args): Ditto.
5463 2008-02-07  Jan Djärv  <jan.h.d@swipnet.se>
5465         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
5467 2008-02-07  Jim Meyering  <meyering@redhat.com>
5469         Use "do...while (0)", not "if (1)...else" in macro definitions.
5470         The latter provokes a warning from gcc about the empty else, when
5471         followed by ";".  Also, without that trailing semicolon, it would
5472         silently swallow up any following statement.
5473         * syntax.h (SETUP_SYNTAX_TABLE)
5474         (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
5475         * buffer.h (DECODE_POSITION): Likewise.
5476         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
5477         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
5478         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
5479         (FETCH_CHAR_ADVANCE): Likewise.
5480         (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
5482 2008-02-07  Jim Meyering  <meyering@redhat.com>
5484         * lread.c [lint]: Don't include <sys/inode.h>.
5486 2008-02-07  Stefan Monnier  <monnier@iro.umontreal.ca>
5488         * xselect.c (x_handle_dnd_message):
5489         * xmenu.c (digest_single_submenu, xmenu_show):
5490         * xdisp.c (with_echo_area_buffer_unwind_data)
5491         (format_mode_line_unwind_data, unwind_format_mode_line)
5492         (display_menu_bar):
5493         * eval.c (Ffetch_bytecode):
5494         * doc.c (store_function_docstring):
5495         * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
5496         (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
5497         * buffer.c (add_overlay_mod_hooklist): Use ASET.
5499 2008-02-07  Kenichi Handa  <handa@m17n.org>
5501         * ftxfont.c (ftxfont_open): Don't set
5502         dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
5504         * ftfont.c (ftfont_open): Fix previous change.
5506 2008-02-06  Jason Rumney  <jasonr@gnu.org>
5508         * w32font.c (w32font_text_extents): Fill in lbearing metric.
5509         Use cached metrics for ASCII characters.
5510         (w32font_open_internal): Don't set font's owning_frame.
5511         Cache metrics for ASCII characters.
5513         * w32font.h (struct w32font_info): Add ascii_metrics.
5514         Remove owning_frame.
5516 2008-02-06  Kenichi Handa  <handa@ni.aist.go.jp>
5518         * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
5519         to negative value.
5521         * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
5523         * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
5525         * charset.c (syms_of_charset): Set QCtest and Qeq.
5527 2008-02-06  Stefan Monnier  <monnier@iro.umontreal.ca>
5529         * process.c (Fstart_process):
5530         * callproc.c (Fcall_process): Handle the case where
5531         Funhandled_file_name_directory returns nil.
5533         * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
5534         (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
5535         * font.c (check_gstring): Use them and AREF to access the vector before
5536         we know it's really a gstring.
5537         (Ffont_shape_text): Fix typo.
5538         (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
5540         * composite.h (Fcompose_region_internal, Fcompose_string_internal):
5541         Declare.
5543         * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
5545 2008-02-05  Jason Rumney  <jasonr@gnu.org>
5547         * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
5548         Set smallest_font_height and smallest_char_width in display info.
5550 2008-02-05  Kenichi Handa  <handa@ni.aist.go.jp>
5552         * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
5554 2008-02-05  Miles Bader  <miles@gnu.org>
5556         * xfaces.c (get_lface_attributes, merge_named_face)
5557         (lookup_named_face, lookup_derived_face, realize_named_face):
5558         Revert 2008-02-01 change by cyd@stupidchicken.com.
5560 2008-02-04  Kenichi Handa  <handa@ni.aist.go.jp>
5562         * fontset.c (Ffontset_info): Handle the case of inhibitting the
5563         fallback fonts.
5564         (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
5566 2008-02-04  Jason Rumney  <jasonr@gnu.org>
5568         * w32font.c (w32font_open_internal): Use font_unparse_fcname to
5569         set full_name.
5570         (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5572 2008-02-03  Jason Rumney  <jasonr@gnu.org>
5574         * makefile.w32-in (OBJ1): Include font.o here.
5575         (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
5577 2008-02-02  Jason Rumney  <jasonr@gnu.org>
5579         * makefile.w32-in (temacs): Bump EMHEAP to 21.
5581 2008-02-01  Jason Rumney  <jasonr@gnu.org>
5583         * s/cygwin.h: Define VIRT_ADDR_VARIES.
5585         * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
5587 2008-02-01  Andreas Schwab  <schwab@suse.de>
5589         * Makefile.in (shortlisp, lisp): Update for rename of
5590         ../lisp/language/myanmar.el.
5592 2008-02-01  Chong Yidong  <cyd@stupidchicken.com>
5594         * xfaces.c (get_lface_attributes): Delete function.
5595         (merge_named_face, lookup_named_face, lookup_derived_face)
5596         (realize_named_face): Call lface_from_face_name directly, and use
5597         the fact that merge_face_vectors does not alter its FROM argument.
5599 2008-02-01  Jason Rumney  <jasonr@gnu.org>
5601         * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
5602         input in the default locale.  Handle non-Unicode multibyte input.
5604 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5606         * fontset.c (reorder_font_vector): Exclude nil elements from the
5607         font group.  Don't try multiple fonts.
5608         (fontset_font): Adjust for the above change.
5609         (Finternal_char_font): Return nil if the found font doesn't
5610         contain the character ch.
5612         * Makefile.in (lisp, shortlisp): Add cham.el.
5614 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5616         * font.h (FONTP): Make it return 1 also for a font-object.
5618         * .gdbinit (xfontset): New function.
5620         * font.c (font_find_for_lface): Check if the character C is
5621         supported or not only for the first font.
5623         * fontset.c (reorder_font_vector): Fix typo.
5624         (fontset_find_font): Don't add a font-spec specifying a script.
5625         Use 0 (not Qt) for the indication of empty font-group.  Change the
5626         format of RFONT-DEF.  Return Qt if no font in the font-group
5627         support the character.
5628         (fontset_font): Adjust for the above change.  If no font was
5629         found the character, remember that.
5630         (face_for_char): Adjust for the change of RFONT-DEF.
5631         (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
5632         no font for the target.
5633         (Finternal_char_font): Adjust for the change of RFONT-DEF.
5635 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5637         * font.c (font_load_for_face): Handle the case that the font in
5638         face->lface is a string.
5640 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5642         * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
5644 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5646         * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
5647         Fix previous change.  If the frame is not on a window system,
5648         signal an error.
5650 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5652         * coding.c (decode_coding_object, encode_coding_object): Adjust
5653         marker positions after conversion.
5655         * lisp.h (struct Lisp_Marker): New member need_adjustment.
5657 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5659         * font.c (font_find_for_lface): Fix the handling of the return
5660         value of font_has_char.
5661         (Ffont_shape_text): Fix previous change.
5663         * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
5664         (fontset_ref_and_range): Delete it.
5665         (fontset_find_font): Call char_table_ref_and_range instead of
5666         FONTSET_REF_AND_RANGE.
5667         (make_fontset): Don't setup font groups of Latin here.
5668         (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
5669         (new_fontset_from_font): Make the specified font the default for
5670         all Latin characters.
5672 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5674         * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
5675         is on a window system before accessing the fontset of the frame.
5677 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5679         * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
5681         * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
5682         when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
5684         * font.c (Ffont_shape_text): If the font driver doesn't have a
5685         shaper function, make zero-width glyphs to have at least one-pixel
5686         width.  Fix setting of `to' field of glyphs.
5688 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5690         * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
5691         glyphs.
5693         * font.h (struct font_driver): Improve docstring of member `shape'.
5695 2008-02-01  Kenichi Handa  <handa@m17n.org>
5697         * composite.c (syms_of_composite): Fix docstring of
5698         auto-composition-function.
5700         * font.h (LGLYPH_SIZE): New macro.
5702         * font.c (Ffont_fill_gstring): Stop filling when a character not
5703         supported by the font is found.
5704         (Ffont_shape_text): When a shape callback function returns nil,
5705         try at most two more times with larger gstring.
5706         (Ffont_at): Fix getting of w.  Call font_at with correct 5th argument.
5708         * xdisp.c (handle_auto_composed_prop): Change the argument to
5709         auto-composition-function.
5711         * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
5712         (ftfont_shape_by_flt): If an element of lgstring is nil, make a
5713         Lispy glyph and store it in the lgstring.
5715         * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
5717         * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
5719 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5721         * font.c (Ffont_shape_text): Avoid unnecessary composition.
5723         * fontset.c (Vfont_encoding_charset_alist): New variable.
5724         (syms_of_fontset): DEFVAR it.
5725         (reorder_font_vector, fontset_find_font): Optimize for the case of
5726         no need of reordering.
5727         (face_for_char): Map the charset property by
5728         Vfont_encoding_charset_alist.
5730 2008-02-01  Jason Rumney  <jasonr@gnu.org>
5732         * w32font.c (logfonts_match): Don't check adstyle here.
5733         (font_matches_spec): Check here against physical font instead.
5734         (add_font_entity_to_list): Avoid some substitutions.
5736         * font.c (font_parse_fcname): Default weight and slant to normal.
5737         (font_score): Prefer normal fonts if weight or slant unspecified.
5738         (font_score) [WINDOWSNT]: Scale weight difference down to closer
5739         match freetype scores.
5741 2008-02-01  Jason Rumney  <jasonr@gnu.org>
5743         * w32font.c (w32font_text_extents): Don't use the frame stored in the
5744         font, as it may have been deleted.
5745         (w32_enumfont_pattern_entity): Map generic family to adstyle using
5746         most common hyphenless variation.
5747         (logfonts_match): Check generic family.
5748         (font_matches_spec): Don't check generic family here.
5749         (fill_in_logfont): Set generic family based on adstyle.
5751         * w32font.h (w32font_get_cache): Update declaration.
5753 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5755         * ftfont.c (ftfont_get_cache): Adjust the argument type.
5757         * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
5758         If none of the new drivers are available, call font_update_drivers
5759         with the old drivers.
5761         * w32font.c (w32font_get_cache): Adjust the argument type.
5763         * xfont.c (xfont_get_cache): Adjust the argument type.
5765         * font.h (struct font_driver): Change argument type of get_cache.
5767         * xftfont.c (xftfont_start_for_frame): Delete prototype.
5769         * font.c (Ffont_get): Fix arguments to Fassoc.
5770         (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
5771         (font_clear_cache): New function.
5772         (font_list_entities, font_matching_entity): Use font_get_cache.
5773         (font_update_drivers): Call font_clear_cache when finishing a driver.
5775         * fontset.c (fontset_find_font): Fix previous change.
5777 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5779         * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
5780         dpyinfo->font_table.
5781         (x_delete_display) [USE_FONT_BACKEND]: Likewise.
5782         (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
5784         * font.c (font_at): Handle the case that the arg C is negative.
5785         Handle the unibyte case.
5786         (Ffont_at): Call font_at with the arg C -1.
5788         * xdisp.c (handle_auto_composed_prop): Don't get a character at
5789         the position here, and call font_at with the arg C -1.
5790         Don't check the range of the existing composition at the point.
5792 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5794         * fontset.c (fontset_add): New args charset_id and family.
5795         Change caller.
5796         (load_font_get_repertory, fontset_find_font): Assume that
5797         font_spec is always a font-spec object.
5798         (Fset_fontset_font): Always store a font-spec object in a fontset.
5800         * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
5801         instead of get_property_and_range.
5803 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5805         * xftfont.c (struct xftfont_info): Delete the member ft_face.
5806         (xftfont_open): Don't keep locking face.
5807         (xftfont_close): Don't unlock face.
5808         (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
5810         * fontset.c (fontset_find_font): Don't prefer a font of
5811         supplementary charset.
5813 2008-02-01  Kenichi Handa  <handa@m17n.org>
5815         * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
5816         script, langsys_tag to langsys, new member script.
5817         (OTF_TAG_STR): Terminate by '\0'.
5818         (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
5819         listing to the script specified in that property.  Fix arg to
5820         OTF_check_features.
5822 2008-02-01  Jason Rumney  <jasonr@gnu.org>
5824         * w32font.h: New file.
5826         * w32font.c: Include it.
5827         (struct w32font_info): Add owning_frame field.  Move to w32font.h.
5828         (w32font_open): Set owning_frame.
5829         (w32font_text_extents): Use owning_frame.
5830         (struct font_callback_data): Add opentype_only field.
5831         (add_font_entity_to_list): Use it to filter fonts.
5832         Don't check against full name.
5833         (w32font_list_internal): New function.
5834         (w32font_list): Use it.
5835         (w32font_match_internal): New function.
5836         (w32font_match): Use it.
5837         (w32font_open_internal): New function.
5838         (w32font_open): Use it.
5839         (w32font_get_cache, w32font_close, w32font_has_char)
5840         (w32font_encode_char, w32font_text_extents, w32font_draw):
5841         Make non-static.
5843         * makefile.w32-in (w32font.o): Depend on w32font.h.
5845 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5847         * charset.c (Fdefine_charset_internal): Record a supplementary
5848         charset at the tail of Vcharset_order_list.
5850         * font.c (Ffont_shape_text): Fix the return value.
5852         * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
5854         * xdisp.c (handle_auto_composed_prop): Fix previous change.
5856 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5858         * ftfont.c (struct OpenTypeSpec): New struct.
5859         (OTF_SYM_TAG, OTF_TAG_STR): New macros.
5860         (ftfont_get_open_type_spec): New function.
5861         (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
5863         * lread.c (read1): Redo the previous change with checking Vpurify_flag.
5865 2008-02-01  Jason Rumney  <jasonr@gnu.org>
5867         * w32font.c (add_font_entity_to_list): Compare only the beginning
5868         of full name.
5870 2008-02-01  Kenichi Handa  <handa@m17n.org>
5872         * xdisp.c (handle_auto_composed_prop): Simplify the code.
5873         Never return HANDLED_RECOMPUTE_PROPS.
5875 2008-02-01  Kenichi Handa  <handa@m17n.org>
5877         * font.c (font_gstring_produce): Delete it.
5879         * composite.h (COMPOSITION_METHOD):
5880         Handle COMPOSITION_WITH_GLYPH_STRING.
5882 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5884         * xfont.c (Qx): Delete.
5885         (syms_of_xfont): Don't initialize Qx.
5887         * composite.h (enum composition_method):
5888         Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
5890 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5892         * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
5893         (choose_face_font): Accept new form of font-spec.
5895         * frame.h (font_driver_list): Declare it unconditionally.
5896         (struct frame): Define members font_driver_list and font_data_list
5897         unconditionally.
5899         * fontset.c: Include "font.h" unconditionally.
5900         (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
5901         (Fset_fontset_font): Accept a font-spec object.
5903         * font.c (font_unparse_xlfd): If pixel_size is zero, make the
5904         PIXEL_SIZE part a wild card.
5906         * dispextern.h (struct glyph_string): Define members clip and
5907         num_clips unconditionally.
5908         (struct face): Define members font_info and extra unconditionally.
5910         * ftfont.c (ftfont_open): Set members maybe_otf and otf of
5911         ftfont_info only when HAVE_LIBOTF is defined.
5913 2008-02-01  Andreas Schwab  <schwab@suse.de>
5915         * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
5916         and end.
5918 2008-02-01  Jason Rumney  <jasonr@gnu.org>
5920         * w32font.c (w32font_driver): Add new fields.
5922 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
5924         * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
5925         (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
5926         (LIBES): Add @M17N_FLT_CFLAGS@.
5928         * composite.c (compose_text): Don't treat the new style
5929         composition specially.
5931         * emacs.c (main): Call syms_of_font unconditionally.
5933         * font.h (FONT_ENTITY_NOT_LOADABLE)
5934         (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
5935         (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
5936         (struct font_driver): New member shape.
5937         (font_registry_charsets): Extern it.
5938         (font_find_for_lface, font_prepare_composition): Adjust prototype.
5939         (font_otf_capability, font_drive_otf): Delete their externs.
5941         * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
5942         (font_charset_alist, font_registry_charsets): Move from xfont.c
5943         and rename.
5944         (font_prop_validate_otf): New function.
5945         (font_property_table): Register it for QCotf.
5946         (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
5947         (font_drive_otf): Delete.
5948         (font_prepare_composition): New arg F.  Adjust for the change of
5949         lispy gstring.
5950         (font_find_for_lface): New arg C.
5951         (font_load_for_face): Adjust for the change of font_find_for_lface.
5952         (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
5953         lispy gstring.
5954         (Ffont_shape_text): New function.
5955         (Fopen_font): If the font size is not given, use 12-pixel.
5956         (Ffont_at): New arg STRING.
5957         (syms_of_font): Initalize font_charset_alist.
5958         Declare Ffont_shape_text as a Lisp function.  Call syms_of_XXfont
5959         conditionally.
5961         * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
5962         fonts of the same font-spec.  Change the format of RFONT-DEF.
5963         (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
5964         Adjust for the change of RFONT-DEF.
5965         (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
5967         * ftfont.h: New file.
5969         * ftfont.c: Don't include Freetype headers.  Include "ftfont.h".
5970         (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
5971         (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
5972         (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
5973         font_otf_capability and font_drive_otf, set ftfont_shape.
5974         (ftfont_list): Adjust for the change of :otf property value.
5975         (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
5976         (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
5977         (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
5978         (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
5979         (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
5980         (otf_gstring, gstring, m17n_flt_initialized): New variables.
5982         * w32term.c (x_draw_composite_glyph_string_foreground):
5983         Adjust for the change of lispy gstring.
5985         * xdisp.c (handle_composition_prop): Adjust for the change of
5986         lispy gstring.  Call a function for auto-composition with the
5987         third arg it->window.
5988         (fill_composite_glyph_string): Adjust for the change of lispy string.
5989         (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
5991         * xfaces.c (set_font_frame_param): Adjust for the change of
5992         font_find_for_lface.
5994         * xfont.c (x_font_charset_alist): Move to font.c and rename.
5995         (xfont_registry_charsets): Likewise.  Change caller.
5996         (syms_of_xfont): Don't handle x_font_charset_alist.
5998         * xftfont.c: Include "ftfont.h".
5999         (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
6000         (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6001         (xftfont_close) [HAVE_LIBOTF]: Close otf.
6002         (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
6003         (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
6004         Set xftfont_driver.shape to xftfont_shape.
6006         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6007         the change of lispy gstring.
6009 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
6011         * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
6013 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6015         * w32font.c (w32font_draw): Fill background manually.
6017 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6019         * font.c (Qfontp): Remove unused symbol.
6020         (QCantialias): New symbol.
6021         (syms_of_font): Define it.
6022         (font_property_table): Set a validator for QCantialias.
6024         * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
6025         Define if not already.
6026         (QCfamily): Share with xfaces.c.
6027         (Qstandard, Qsubpixel, Qnatural): New symbols.
6028         (syms_of_w32font): Define them.  Don't define QCfamily here.
6029         (w32_antialias_type, lispy_antialias_type): New functions.
6030         (w32_enumfont_pattern_entity): New arg requested_font.
6031         Set antialias parameter if non-default was requested.
6032         (fill_in_logfont): Fill in lfQuality if :antialias specified.
6034 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
6036         * lread.c (read1): Undo the previous change.
6038 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (tiny change)
6040         * frame.c (Fdelete_frame): Call font_update_drivers only when
6041         USE_FONT_BACKEND is defined.
6043 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
6045         * font.h (struct font_bitmap): New member bits_per_pixel.
6046         (struct font_driver): New members start_for_frame and end_for_frame.
6047         (struct font_data_list): New struct.
6048         (font_put_frame_data, font_get_frame_data): Extern them.
6050         * frame.h (struct frame): New member font_data_list.
6052         * font.c (font_update_drivers): Call driver->start_for_frame and
6053         driver->end_for_frame at proper timings.
6054         (font_put_frame_data, font_get_frame_data): New functions.
6055         (Ffont_spec): Add usage in the docstring.
6057         * frame.c (make_frame): Initialize f->font_data_list to NULL.
6058         (Fdelete_frame): Call font_update_drivers.
6060         * xftfont.c (struct xftface_info): Delete the member xft_draw.
6061         (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
6062         (xftfont_get_xft_draw): New function.
6063         (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
6064         (xftfont_end_for_frame): New function.
6065         (syms_of_xftfont): Set xftfont_driver.end_for_frame.
6067         * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
6068         Change argument.  Cache GCs in the per-frame data.
6069         (struct ftxfont_frame_data): New struct.
6070         (ftxfont_draw_bitmap): New arg gc_fore and flush.
6071         (ftxfont_prepare_face, ftxfont_done_face): Delete them.
6072         (ftxfont_draw): Get GCs by ftxfont_get_gcs.  Reflect s->clip in GCs.
6073         (ftxfont_end_for_frame): New function.
6074         (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
6076         * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
6078 2008-02-01  Kenichi Handa  <handa@m17n.org>
6080         * xselect.c (Vselection_coding_system)
6081         (Vnext_selection_coding_system): Delete them.
6082         (syms_of_xselect): Don't declare selection-coding-system and
6083         next-selection-coding-system.  They are declared in select.el.
6085 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6087         * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
6089         * w32fns.c: Include imm.h.
6090         (get_composition_string_fn, get_ime_context_fn): New optional
6091         system functions.
6092         (globals_of_w32fns): Load them from imm32.dll.
6093         (ignore_ime_char): New flag.
6094         (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
6095         WM_IME_ENDCOMPOSITION messages.
6097         * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
6098         MULTIBYTE_CHAR_KEYSTROKE_EVENT.
6100 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
6102         * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
6103         (READCHAR_REPORT_MULTIBYTE): New macro.
6104         (readchar): New 2nd arg MULTIBYTE.
6105         (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
6106         Make symbol's name multibyte according to the multibyteness of the
6107         source.
6109 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
6111         * xfaces.c (face_for_overlay_string): Call lookup_face with
6112         correct arguments (fix of synching with the trunk).
6114 2008-02-01  Kenichi Handa  <handa@m17n.org>
6116         * font.c (font_prop_validate_symbol, font_prop_validate_style)
6117         (font_prop_validate_non_neg, font_prop_validate_spacing):
6118         Delete argument prop_index.
6119         (font_property_table): Change arguments to validater.  Change Callers.
6120         (font_lispy_object): Delete.
6121         (font_at): Use font_find_object instead fo font_lispy_object.
6123 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
6125         * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
6126         and file names.
6128 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6130         * w32font.c (add_font_name_to_list): Avoid vertical fonts.
6131         (font_matches_spec): Remove debug output.
6132         (add_font_entity_to_list): Avoid using substituted fonts.
6134 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6136         * doc.c (Fsnarf_documentation):
6137         * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
6139 2008-02-01  Miles Bader  <miles@gnu.org>
6141         * dispextern.h (struct glyph_row): Only define "clip" field if
6142         HAVE_WINDOW_SYSTEM is defined.
6144 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
6146         Fix up multi-tty merge.
6148         * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
6149         and indentation.
6151         * xfaces.c (free_realized_face, clear_face_gcs):
6152         Include font_done_for_face in the input_blocked section, just in case.
6154         * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
6155         (get_char_face_and_encoding): Undo last change and remove the *other*
6156         duplicate definition (i.e. keep the one that's better scoped and that
6157         includes code for the font-backend).
6159         * terminal.c (create_terminal): Default keyboard_coding to
6160         `no-conversion' and terminal_coding to `undecided'.
6162         * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
6164         * fontset.c (free_realized_fontsets): Check that the table entry does
6165         contain a fontset before trying to compare it to `base'.
6167         * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
6168         syms_of_charset, and syms_of_coding earlier because init_window_once
6169         now needs Vcoding_system_hash_table to be setup.
6171         * coding.h (default_buffer_file_coding): Remove.
6173         * coding.c (default_buffer_file_coding): Remove.
6174         (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
6175         than ->symbol, and use the terminal-local coding system.
6176         (syms_of_coding): Don't setup the coding-systems that are not
6177         terminal-local.
6178         (Fdefine_coding_system_internal): Use XCAR/XCDR.
6180         * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
6181         Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
6183         * alloc.c (Fmake_char_table, make_sub_char_table): Remove.  They're now
6184         in chartab.c and were re-added here by mistake.
6185         (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
6187         * doc.c (Fsnarf_documentation):
6188         * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
6189         src to etc.
6191         * ChangeLog.10: Add mistakenly removed entry.
6193 2008-02-01  Dan Nicolaescu  <dann@ics.uci.edu>
6195         * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
6197 2008-02-01  Miles Bader  <miles@gnu.org>
6199         * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
6200         Add extra args to FACE_FOR_CHAR.
6202 2008-02-01  Kenichi Handa  <handa@m17n.org>
6204         * keymap.c (where_is_internal_1): If key is a cons, store the copy
6205         in sequence.
6207         * chartab.c (map_sub_char_table, map_char_table): If the range
6208         contains just one character, call the function with that character
6209         even if the depth is not 3.
6211 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6213         * w32font.c (w32font_text_extents): Calculate metrics for the
6214         whole string.
6216 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6218         * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
6220 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6222         * w32term.c (x_set_glyph_string_clipping): Use
6223         get_glyph_string_clip_rects.
6224         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6225         Adjust for the change of struct glyph_string.
6227         * w32font.c (w32font_draw): Do clipping here.
6229 2008-02-01  Kenichi Handa  <handa@m17n.org>
6231         * xftfont.c (xftfont_draw): Adjust for the change of struct
6232         glyph_string.
6234         * xterm.c (x_set_glyph_string_clipping): Use
6235         get_glyph_string_clip_rects.
6236         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6237         Adjust for the change of struct glyph_string.
6239         * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
6240         the resulting clip(s}.
6241         (expose_overlaps): Add arg r.  Change callers.  Set it to
6242         row->clip temporarily.
6243         (expose_window): Redraw rows overlapping the exposed area.
6245         * dispextern.h (struct glyph_row): New member clip.
6246         (struct glyph_string): Delete members clip_x, clip_y, clip_width,
6247         clip_height, new member clip, and num_clips.
6249 2008-02-01  Kenichi Handa  <handa@m17n.org>
6251         * data.c (Fchar_or_string_p): Fix docstring.
6253 2008-02-01  Kenichi Handa  <handa@m17n.org>
6255         * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
6256         create a temporal XftDraw object.
6258 2008-02-01  Kenichi Handa  <handa@m17n.org>
6260         * font.c (Ffontp): Fix docstring.
6262         * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
6263         strong evidence of ISO-2022.
6265 2008-02-01  Kenichi Handa  <handa@m17n.org>
6267         * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
6268         SYNTAX_ENTRY_FOLLOW_PARENT.
6270 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
6272         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
6273         its type.
6274         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
6275         Update to the new type of weak_hash_tables and next_weak.
6277         * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
6278         a plain C pointer to Lisp_Hash_Table.
6280         * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
6281         (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
6282         (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
6283         (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
6284         (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
6285         (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
6286         (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
6287         (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
6288         (GC_EQ): Remove since they've been identical to their non-GC_
6289         alter-egos ever since the markbit was eradicated.
6291         * alloc.c:
6292         * buffer.c:
6293         * buffer.h:
6294         * data.c:
6295         * fileio.c:
6296         * filelock.c:
6297         * fns.c:
6298         * frame.h:
6299         * lisp.h:
6300         * macterm.c:
6301         * print.c:
6302         * process.c:
6303         * w32fns.c:
6304         * w32menu.c:
6305         * w32term.c:
6306         * xfns.c:
6307         * xmenu.c:
6308         * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
6310 2008-02-01  Kenichi Handa  <handa@m17n.org>
6312         * chartab.c (map_sub_char_table): Make it work for the top-level
6313         char-table.  Fix handling of parent char-table.
6314         (map_char_table): Adjust for the above change.
6316 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6318         * w32font.c (Qgdi): Rename from Qw32.
6320 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6322         * w32bdf.c (get_quoted_string): Make function static.
6324 2008-02-01  Kenichi Handa  <handa@m17n.org>
6326         * xftfont.c (xftfont_open): If one of font's ASCII glyph has
6327         bigger ascent and descent than those of the font, use them as
6328         font's ascent and descent.
6330 2008-02-01  Kenichi Handa  <handa@m17n.org>
6332         * Makefile.in (${lispsource}international/charprop.el): Move this
6333         target within "#ifdef HAVE_UNIDATA" and "#endif".
6335 2008-02-01  Kenichi Handa  <handa@m17n.org>
6337         * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
6338         (shortlisp): Add ../lisp/language/tai-viet.el.
6340 2008-02-01  Ulrich Mueller  <ulm@gentoo.org>
6342         * Makefile.in (${lispsource}international/charprop.el): Depend on
6343         temacs${EXEEXT}.
6345 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6347         * w32font.c (w32font_close): Delete the GDI font object.
6349         * w32menu.c: Include character.h.
6351         * w32proc.c: Likewise.
6353         * w32select.c: Likewise.
6355         * makefile.w32-in (w32proc.o): Depend on character.h.
6357 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6359         * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
6361         * w32menu.c (syms_of_w32menu): Likewise.
6363         * w32proc.c (syms_of_ntproc): Likewise.
6365         * w32select.c (syms_of_w32select): Likewise.
6367         * w32term.c (syms_of_w32term): Likewise.
6369 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6371         * w32font.c (w32font_draw): Delete brush after using it.
6373 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6375         * w32font.c (w32font_open): Don't set font_idx.
6376         (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
6377         to font settings.
6378         (w32font_draw): Fill background explicitly.
6380 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6382         * w32term.c (w32_initialize): Don't call w32font_initialize.
6384         * w32font.c (w32font_info): Remove subranges.
6385         (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
6386         (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
6387         (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
6388         (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
6389         (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
6390         (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
6391         (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
6392         (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
6393         (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
6394         (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
6395         New symbols.
6396         (font_callback_data): New struct.
6397         (w32font_list, w32font_match): Use it.
6398         (w32font_open): Don't populate subranges.
6399         (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
6400         (w32font_encode_char): Always return unicode code-point as-is.
6401         (w32font_text_extents): Supply a tranformation matrix to
6402         GetGlyphOutline.  Never look up by glyph index.  Avoid looping
6403         twice.  Use unicode version of GetTexExtentPoint32 instead of
6404         glyph index version.
6405         (set_fonts_frame): Remove.
6406         (w32_enumfont_pattern_entity): Add frame parameter, use it to
6407         set frame parameter.  Use backward compatible fake foundries.
6408         Save generic family in extra slot under QCfamily.  Make width slot
6409         constant.  Save QCspacing value.  Save list of scripts instead of
6410         binary subranges.
6411         (w32_generic_family, logfonts_match, font_matches_spec): New functions.
6412         (add_font_entity_to_list): Use font_callback_data struct.  Filter
6413         unwanted fonts.
6414         (add_one_font_entity_to_list): Use font_callback_data struct.
6415         (w32_registry): Default to iso10646_1.
6416         (fill_in_logfont): Use dpi from extra slot.  Don't bother with
6417         string font registries.  Don't fill in font name if it is a generic
6418         family name, fill family instead.  Use spacing, family and script
6419         extra info to fill pitch, family and charset fields.
6420         (list_all_matching_fonts): Use font_callback_data struct.
6421         (unicode_range_for_char): Remove.
6422         (font_supported_scripts): New function.
6423         (w32font_initialize): Remove.
6424         (syms_of_w32font): Update which symbols are defined.
6426 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6428         * font.c (font_pixel_size): Reverse assq_no_quit args.
6430         * w32term.h (FONT_WIDTH): Report max width, not average.
6431         (FONT_MAX_WIDTH): Remove.
6432         (FONT_AVG_WIDTH): New macro.
6434         * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
6435         redefinition of FONT_WIDTH.
6437         * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
6438         (w32_cache_char_metrics): Use FONT_WIDTH.
6440         * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
6442 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6444         * w32font.c (w32font_open): Make lfHeight negative.
6446         * w32fns.c (x_default_font_parameter): Use new style font name.
6447         (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
6449 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6451         * w32font.c (QCsubranges): New symbol.
6452         (w32font_open, w32font_has_char): Get subranges from subproperty
6453         of extra.
6454         (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
6455         (syms_of_w32font): Define :subranges symbol.
6457         * font.c (font_put_extra): Expose externally.
6459         * font.h (font_put_extra): Move declaration from font.c.
6461         * font.c (Ffont_get): Use font driver to determine otf capability.
6462         (adjust_anchor): Check if driver defines anchor_point before using.
6464         * w32font.c (w32font_open): Handle size, height and pixel_size better.
6465         (w32font_draw): Use options.
6466         (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
6467         Fix detection of truetype fonts.
6468         (registry_to_w32_charset): Handle charsets other than iso8859-1
6469         expressed as lisp symbols.
6470         (w32_registry): Express charset as lisp symbol.
6471         (fill_in_logfont): Reverse pixel and point height logic.
6472         Don't set width here.  Set quality to default.
6474         * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
6475         (x_to_w32_font): Fill in lfPitchAndFamily correctly.
6477         * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6478         Remove redundant loop and allocation.
6480         * makefile.w32-in (font.o, w32font.o): New objects.
6481         (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
6482         (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
6484         * xdisp.c (fill_composite_glyph_string): Make the first arg to
6485         STORE_XCHARB a valid l-value.
6487         * w32term.c (w32_native_per_char_metric): Swap width and rbearing
6488         calculations for non-Truetype fonts.
6489         (x_draw_glyph_string): Sync with xterm.c.
6490         (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6491         Remove redundant code.
6492         (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
6494         * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
6495         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
6497         * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
6498         (x_to_w32_charset, w32_to_x_charset): Expose externally.
6500         * w32font.c: New file for w32 font backend.
6502 2008-02-01  Kenichi Handa  <handa@m17n.org>
6504         * term.c: Don't include "buffer.h" twice.
6506 2008-02-01  Kenichi Handa  <handa@m17n.org>
6508         * character.c (Funibyte_string): New function.
6509         (syms_of_character): Defsubr it.
6511 2008-02-01  Jason Rumney  <jasonr@gnu.org>
6513         * w32term.c [USE_FONT_BACKEND]:
6514         (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
6515         (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
6516         (x_draw_glyph_string, x_draw_glyph_string_foreground)
6517         (x_draw_composite_glyph_string_foreground, x_new_fontset2)
6518         (x_free_frame_resources): Sync with xterm.c.
6520 2008-02-01  Andreas Schwab  <schwab@suse.de>
6522         * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
6523         char-table size.
6525 2008-02-01  Kenichi Handa  <handa@m17n.org>
6527         * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
6529 2008-02-01  Kenichi Handa  <handa@m17n.org>
6531         * ftfont.c (ftfont_driver): Delete font_otf_gsub and
6532         font_otf_gpos, add font_drive_otf.
6534         * fontset.c (fontset_find_font): Pay attention to font size
6535         specified for a font.
6536         (reorder_font_vector): Check contents of font_def.
6538         * font.c (struct otf_list): Delete it.
6539         (otf_list): Make it a lisp variable.
6540         (otf_open): Use lispy otf_list.
6541         (generate_otf_features): Rename from parse_gsub_gpos_spec.
6542         (check_otf_features): New function.
6543         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6544         New functions.
6545         (font_drive_otf): New function merging font_otf_gsub and
6546         font_otf_gpos.
6547         (font_open_for_lface): New arg spec.  Change argument order.
6548         (font_load_for_face): Adjust for the change of font_open_for_lface.
6549         (Ffont_drive_otf): New function merging Ffont_otf_gsub and
6550         Ffont_otf_gpos.
6551         (syms_of_font): Staticpro otf_list.  Delete defsubr of
6552         Sfont_otf_gsub and Sfont_otf_gpos.  Defsubr Sfont_drive_otf.
6554         * xfaces.c (set_font_frame_param): Adjust for the change of
6555         font_open_for_lface.
6557         * font.h (font_open_for_lface): Adjust prototype.
6558         (struct font_driver): Delete members otf_gsub and otf_gpos, add
6559         member otf_drive.
6560         (font_otf_gsub, font_otf_gpos): Delete externs.
6561         (font_drive_otf): Extern it.
6563 2008-02-01  Kenichi Handa  <handa@m17n.org>
6565         * font.c (font_at): If the window W is not on a window system,
6566         return Qnil.
6568         * coding.c (produce_chars, encode_coding): Don't call
6569         insert_from_gap if no characters to produce.
6571 2008-02-01  Kenichi Handa  <handa@m17n.org>
6573         * fontset.c (free_realized_fontsets): Avoid unnecessary call of
6574         Fclear_face_cache.
6576         * xfaces.c (face_for_font): Check also face->font==font->font.font.
6578 2008-02-01  Miles Bader  <miles@gnu.org>
6580         * emacs.c (main): Change default value of `enable_font_backend' to 1.
6581         Parse "--disable-font-backend" option.
6582         (standard_args): Add "--disable-font-backend" option.
6584 2008-02-01  Kenichi Handa  <handa@m17n.org>
6586         * fontset.c (fontset_find_font): New function.
6587         (fontset_font): Use fontset_find_font.
6588         (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
6589         Register the specified font for all Latin characters.
6590         (new_fontset_from_font): Register the specified font for all Latin
6591         characters.
6592         (dump_fontset): For a realized fontset, include the base fontset
6593         name in the returned vector.
6595 2008-02-01  Kenichi Handa  <handa@m17n.org>
6597         * character.h (CHAR_STRING): Cast C to unsigned on calling
6598         char_string.
6600         * character.c (char_string): Type of arg C changed to unsigned.
6601         Signal an error if C is an invalid character code.
6603         * editfns.c (general_insert_function, Fchar_to_string):
6604         Use CHARACTERP, not INTEGERP.
6606 2008-02-01  Kenichi Handa  <handa@m17n.org>
6608         * character.h (MIN_MULTIBYTE_LEADING_CODE)
6609         (MAX_MULTIBYTE_LEADING_CODE): New macros.
6611         * regex.c (analyse_first): Fix for multibyte characters in "case
6612         charset:" and "case categoryspec:".
6614 2008-02-01  Andreas Schwab  <schwab@suse.de>
6616         * Makefile.in (LIBES): Move standard libraries to the end.
6618 2008-02-01  Kenichi Handa  <handa@m17n.org>
6620         * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
6621         nonzero, don't shrink the buffer nextb.
6623         * buffer.h (struct buffer_text): New member inhibit_shrinking.
6625         * coding.c (coding_alloc_by_making_gap): New arg offset.
6626         (alloc_destination): Call coding_alloc_by_making_gap with the arg
6627         offset.
6628         (decode_coding_iso_2022): Update coding->safe_charsets.
6629         (decode_coding_gap): Temporarily set
6630         current_buffer->text->inhibit_shrinking to 1.
6632 2008-02-01  Kenichi Handa  <handa@m17n.org>
6634         * xterm.c (x_draw_composite_glyph_string_foreground): Fix
6635         indexing into elements of s->cmp and s->char2b.
6637 2008-02-01  Juanma Barranquero  <lekktu@gmail.com>
6639         * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
6641 2008-02-01  Kenichi Handa  <handa@m17n.org>
6643         * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
6644         target_multibyte instead of multibyte.
6645         (re_match_2_internal): Call bcmp_translate with target_multibyte.
6646         (bcmp_translate): Change the argument name from multibyte to
6647         target_multibyte.
6649 2008-02-01  Kenichi Handa  <handa@m17n.org>
6651         These changes are to compile a regexp into a pattern that can be
6652         used both for multibyte and unibyte targets.
6654         * Makefile.in (search.o): Depend on charset.h.
6656         * character.c (multibyte_char_to_unibyte_safe): New function.
6658         * search.c: Include "charset.h".
6659         (compile_pattern_1): Delete argument multibyte.  Don't set
6660         cp->buf.target_multibyte here.  Set cp->buf.charset_unibyte.
6661         (compile_pattern): Don't compare cp->buf.target_multibyte.
6662         Compare cp->buf.charset_unibyte.
6663         (compile_pattern): Set cp->buf.target_multibyte.
6665         * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
6667         * regex.h (struct re_pattern_buffer): New member charset_unibyte.
6669         * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
6670         multibyte.  Change callers.
6671         (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
6672         (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete.  Change callers
6673         to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
6674         (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
6675         (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
6676         (regex_compile): Make the compiled pattern usable both for
6677         multibyte and unibyte targets.
6678         (analyse_first): Make the fastmap usable both for multibyte and
6679         unibyte targets.
6680         (TRANSLATE_VIA_MULTIBYTE): Delete.
6681         (re_match_2_internal): Pay attention to the case that the
6682         multibyteness of bufp and target may be different.
6684 2008-02-01  Kenichi Handa  <handa@m17n.org>
6686         * xdisp.c (x_produce_glyphs): When a font is not found, make the
6687         empty box occupy at least one column width.
6689 2008-02-01  Miles Bader  <miles@gnu.org>
6691         * Makefile.in: Remove redundant HAVE_XFT clause.
6693 2008-02-01  Kenichi Handa  <handa@m17n.org>
6695         * xrdb.c (x_load_resources): Setup the default fontSet X reource.
6697 2008-02-01  Kenichi Handa  <handa@m17n.org>
6699         * fontset.c (Finternal_char_font): Fix for the case of POSITION
6700         being nil.
6702 2008-02-01  Kenichi Handa  <handa@m17n.org>
6704         * xftfont.c (xftfont_open): Call FcConfigSubstitute.
6706 2008-02-01  Kenichi Handa  <handa@m17n.org>
6708         * xftfont.c (xftfont_open): Don't enable antialias explicitly.
6710 2008-02-01  Kenichi Handa  <handa@m17n.org>
6712         * search.c (simple_search): Fix previous change.
6714 2008-02-01  Kenichi Handa  <handa@m17n.org>
6716         * xftfont.c (ftfont_font_format): Extern declaration.
6718         * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
6720         * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
6721         (xfont_list): Don't directly use Lisp_Object as an operand of &&.
6723         * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
6724         (ftfont_font_format): Fix previous change.
6726         * font.h (Ffont_xlfd_name): EXFUN it.
6728         * font.c (font_parse_xlfd): Fix the array size of `f'.
6729         (register_font_driver): Use EQ to compare driver->type.
6731         * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
6732         (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
6733         (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
6735 2008-02-01  Kenichi Handa  <handa@m17n.org>
6737         * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
6738         (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
6740 2008-02-01  Kenichi Handa  <handa@m17n.org>
6742         * xfont.c (xfont_open): Set font->format.
6744         * xftfont.c (xftfont_open): Set font->format.
6746         * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
6747         (ftfont_list): Include FC_FONTFORMAT in FcObject.
6748         (ftfont_open): Set font->format.
6749         (ftfont_font_format): New function.
6751         * font.h (struct font): New memeber format.
6753         * font.c (Qopentype): New variable.
6754         (syms_of_font): Defsym it.
6755         (Fquery_font): Change the format of the last element of the return
6756         value.
6758 2008-02-01  Kenichi Handa  <handa@m17n.org>
6760         * xfns.c (xic_create_xfontset): Try the default fontset name as a
6761         last resort.
6763 2008-02-01  Kenichi Handa  <handa@m17n.org>
6765         * coding.c (detect_coding_charset): Fix detection of multi-byte
6766         charset.
6768 2008-02-01  Bob Halley  <halley@play-bow.org>  (tiny change)
6770         * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
6772 2008-02-01  Kenichi Handa  <handa@m17n.org>
6774         * xdisp.c (get_next_display_element): Set it->face_id for the
6775         first component of a composition.
6776         (x_produce_glyphs): Check if the font is changed or not for composition.
6778 2008-02-01  Kenichi Handa  <handa@m17n.org>
6780         * fontset.c (Qlatin): New variable.
6781         (syms_of_fontset): Define it as a lisp symbol.
6782         (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
6784 2008-02-01  Kenichi Handa  <handa@m17n.org>
6786         * font.c (font_unparse_fcname): Pay attention to the case that
6787         some of font property is a null string.
6789 2008-02-01  Kenichi Handa  <handa@m17n.org>
6791         * term.c: Include "composite.h".
6792         (encode_terminal_code): Output all components of composition.
6793         Check the size of encode_terminal_src.
6794         (produce_glyphs): For composition, call produce_composite_glyph.
6795         (append_composite_glyph, produce_composite_glyph): New functions.
6797         * xdisp.c (x_produce_glyphs): In handling composition, if a font
6798         is not found, get font_info from the current ascii face.
6800 2008-02-01  Kenichi Handa  <handa@m17n.org>
6802         * fileio.c (Finsert_file_contents): On replacing, temporarily bind
6803         buffer-file-name to Qnil before calling insert_from_buffer.
6805         * font.c (font_unparse_fcname): Pay attention to the case that
6806         foundry is a null string.
6808 2008-02-01  Kenichi Handa  <handa@m17n.org>
6810         * ftfont.c (ftfont_list): Allow registry "unicode-sip".
6812         * font.c (Qunicode_sip): New variable.
6813         (syms_of_font): Declare it as a Lisp symbol.
6815         * font.h (Qunicode_sip): Extern it.
6817 2008-02-01  Kenichi Handa  <handa@m17n.org>
6819         * composite.c (get_composition_id): Pay attention to TAB component.
6821         * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
6822         TAB.  Adjust for the change of s->char2b which always points to
6823         the first elememnt of allocated memory.
6825         * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
6827         * xdisp.c (handle_composition_prop): Set it->c to the first
6828         non-TAB component.
6829         (fill_composite_glyph_string): Change argument.
6830         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
6831         (x_produce_glyphs): Fix handling of left/right padding.
6833 2008-02-01  Kenichi Handa  <handa@m17n.org>
6835         * coding.c (detect_coding_system): Fix for handling off
6836         inhibit_iso_escape_detection.  Fix for the case that no coding
6837         system is defined for a specific coding category.
6839 2008-02-01  Kenichi Handa  <handa@m17n.org>
6841         * font.c (font_matching_entity): Delete unused local var.
6843         * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
6844         opening a font.
6846         * fileio.c (Finsert_file_contents): On recovering a file, assume
6847         Unix-like eol.
6848         (choose_write_coding_system): On auto-saving a file, force
6849         Unix-like eol.
6851         * coding.c (setup_coding_system): Fix setting of
6852         coding->common_flags based on eol_type.
6853         (coding_inherit_eol_type): If PARENT is not nil, be sure to
6854         inherit from it.
6856 2008-02-01  Kenichi Handa  <handa@m17n.org>
6858         * alloc.c (NSTATICS): Increas to 0x600.
6860 2008-02-01  Kenichi Handa  <handa@m17n.org>
6862         * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
6863         (ftfont_list): Don't check :name property.
6864         (ftfont_match): New function.
6865         (ftfont_pattern_entity): If the pattern doesn't contain
6866         FC_SPACING, don't assuce FC_MONO.
6868         * font.h (struct font_driver): New member `match'.
6869         (font_update_drivers): Adjust prototype.
6871         * font.c (font_parse_fcname, font_parse_name): Don't change :name
6872         property of FONT.
6873         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
6874         them unconditionally.
6875         (font_matching_entity): New function.
6876         (font_open_by_name): Try font_matching_entity if exact match is
6877         not found.
6878         (font_update_drivers): Delete the arg FONT.  Return a list of
6879         actually used backends.  Don't free faces, font caches here.
6880         Don't store data in frame parameters.  Don't call x_set_font.
6881         (Ffont_spec): Store :name property as is.
6882         (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
6883         (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
6884         (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
6885         (Ffont_otf_alternates): Check if the driver has otf_gsub function.
6886         Call font->driver->otf_gsub instead of font_otf_gsub.
6888         * frame.c (x_set_font_backend): Do more works that were done in
6889         font_update_drivers before.
6891         * xfont.c (xfont_match): New function.
6892         (xfont_driver): Set xfont_driver.match to xfont_match.
6893         (xfont_draw): Set font in GC if necessary.
6895         * ftxfont.c (ftxfont_match): New function.
6896         (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
6898         * xftfont.c (xftfont_match): New function.
6899         (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
6901 2008-02-01  Kenichi Handa  <handa@m17n.org>
6903         * font.h (struct font): New member scalable.
6904         (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
6905         (font_otf_gsub): Adjust prototype.
6907         * font.c (font_otf_capability): Fix handling of the default langsys.
6908         (parse_gsub_gpos_spec): Change type to void.  New arg nbytes.
6909         Check the contents of SPEC.
6910         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
6911         (check_gstring): New function.
6912         (REPLACEMENT_CHARACTER): New macro.
6913         (font_otf_gsub): New arg alternate_subst.  Be sure to set all
6914         glyph codes of GSTRING.
6915         (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
6916         (font_prepare_composition): Set cmp->glyph_len.
6917         (font_open_entity): Set font->scalable.
6918         (Ffont_get): Handle :otf property.
6919         (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
6920         functions.
6921         (Fquery_font): Use font->font.full_name.
6922         (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
6923         Sfont_otf_alternates.
6925         * ftfont.c (ftfont_open): Set font->font.full_name and
6926         font->font.name properly.  Fix calculation of font->font.height
6927         and font->min_width.
6929         * ftxfont.c (ftxfont_create_gcs): New function.
6930         (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
6931         (ftxfont_draw_backgrond): Fix filling region.
6932         (ftxfont_default_fid): New function.
6933         (ftxfont_open): Set xfotn->fid to the return value of
6934         ftxfont_default_fid.
6935         (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
6936         (ftxfont_done_face): Free only GCs that are created by
6937         ftxfont_create_gcs.
6938         (ftxfont_draw): If face->gc != s->gc, create proper GCs.
6940         * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
6941         Clip to src->width, etc (not src->clip_XXX).
6943         * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
6944         FontBackend frame parameter.
6946 2008-02-01  Kenichi Handa  <handa@m17n.org>
6948         * font.h (struct font_driver_list): New member `on'.
6949         (Fclear_font_cache): EXFUN it.
6950         (font_update_drivers): Extern it.
6952         * font.c (font_unparse_fcname): Fix typo (swidth->width).
6953         (font_list_entities): Check driver_list->on.
6954         (register_font_driver): Initalize `on' member to 0.
6955         (font_update_drivers): New function.
6956         (Fclear_font_cache): Check driver_list->on.
6958         * frame.h (Qfont_backend): Extern it.
6959         (x_set_font_backend): Extern it.
6961         * frame.c (Qfont_backend): New variable.
6962         (frame_parms): New element for font-backend.
6963         (x_set_font_backend): New function.
6965         * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
6966         FontBackend frame parameter.
6967         (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
6968         x_set_font_backend.
6970         * xfont.c (xfont_list): Don't try listing by :name property if the
6971         name is not for XLFD.
6973 2008-02-01  Kenichi Handa  <handa@m17n.org>
6975         * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
6976         (LGLYPH_SET_TO): New macros.
6977         (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
6978         element of G is vector or not.
6979         (font_at): Extern it.
6981         * font.c: Include window.h.
6982         (font_lispy_object): New function.
6983         (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
6984         end of valid glyph.
6985         (font_close_object): Fix getting (struct font *).
6986         (font_at): New function.
6987         (Ffont_get): If FONT is a font-object, get entity from it.
6988         (Ffont_make_gstring): Initialize elements of glyphs with nil.
6989         (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.  Fix
6990         range check.
6991         (Ffont_at): New function.
6992         (syms_of_font): Defsubr Sfont_at.
6994         * xdisp.c (it_props): Move the entry for Qauto_composed to just
6995         before the entry for Qcomposition.
6996         (handle_auto_composed_prop): Call auto-composition-function with 4 args.
6997         (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
6998         the font in gstring.
6999         (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
7000         LGLYPH_FORM (g) to detect the end of valid glyph.
7001         (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
7002         we are composing with gstring.
7004         * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
7005         Check if adjustment is vector or not.
7007         * Makefile.in (font.o): Make it depends on window.h.
7009 2008-02-01  Kenichi Handa  <handa@m17n.org>
7011         * xterm.c (x_draw_composite_glyph_string_foreground): Check if
7012         adjustment is vector or not.
7014 2008-02-01  Miles Bader  <miles@gnu.org>
7016         * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
7018 2008-02-01  Kenichi Handa  <handa@m17n.org>
7020         * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
7021         (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
7022         (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
7024         * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
7025         (DEVICE_DELTA): Fix typo.
7026         (font_otf_gpos, font_prepare_compositio): Adjust for the change of
7027         LGLYPH format.
7029         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7030         the change of LGLYPH format.
7032 2008-02-01  Kenichi Handa  <handa@m17n.org>
7034         * ftfont.c (ftfont_list): Fix typo.
7035         (ftfont_build_basic_charsets): Don't include letters with diacritics.
7037 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
7039         * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
7041         * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
7042         xftface_info is non-NULL.
7044 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
7046         * ftfont.c (ftfont_list): Move misplaced #endif.
7048 2008-02-01  Kenichi Handa  <handa@m17n.org>
7050         * ftfont.c (ftfont_list): Pay attention to the case that
7051         FC_CAPABILITY is not defined.
7053 2008-02-01  Kenichi Handa  <handa@m17n.org>
7055         * xftfont.c (xftfont_open): Set charset related members to -1.
7057         * ftfont.c (ftfont_list): Handle QCotf property.  Fix handling of
7058         QCname.
7059         (ftfont_open): Set charset related members to -1.
7061         * fontset.c (Votf_script_alist): New variable.
7062         (syms_of_fontset): Initialize it.
7063         (fontset_font): Delete unused variable.
7065         * fontset.h (Votf_script_alist): Extern it.
7067         * font.c (font_find_for_lface): Optimize code.
7069         * font.h (font_close_object, font_merge_old_spec): Extern them.
7071 2008-02-01  Kenichi Handa  <handa@m17n.org>
7073         * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
7074         (syms_of_font): Initialize them.
7075         (font_pixel_size): Allow float value in dpi.
7076         (font_prop_validate_type): Delete.
7077         (font_prop_validate_symbol, font_prop_validate_style): Change argument.
7078         Change caller.
7079         (font_prop_validate_non_neg): Rename from font_prop_validate_size.
7080         (font_prop_validate_extra): Delete.
7081         (font_prop_validate_spacing): New function.
7082         (font_property_table): Add elements for all known properties.
7083         (get_font_prop_index): Rename from check_font_prop_name.  New
7084         argument FROM.  Change caller.
7085         (font_prop_validate): Validate all known properties.
7086         (font_put_extra): Delete argument force.  Change caller.
7087         (font_expand_wildcards): Make it static.  Fix the way of shrinking
7088         the possible range.
7089         (font_parse_xlfd): Delete argument merge.  Fix handling of RESX,
7090         RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
7091         Change caller.
7092         (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
7093         (font_parse_fcname): Delete argument merge.  Fix parsing of point
7094         size.  Don't validate properties values here.  Change caller.
7095         (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
7096         (font_open_by_name): Delete unused variable.
7097         (Ffont_spec): Likewise.  Validate property values.
7098         (Ffont_match_p): New function.
7100         * font.h (QCscalable): Extern it.
7101         (font_parse_xlfd, font_parse_fcname): Adjust prototype.
7103         * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
7105         * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
7106         (xfont_list_pattern): New function.
7107         (xfont_list): Use xfont_list_pattern.
7109 2008-02-01  Kenichi Handa  <handa@m17n.org>
7111         * font.h (Flist_fonts): EXFUN it.
7113 2008-02-01  Jason Rumney  <jasonr@gnu.org>
7115         * w32term.c (w32_initialize): Add back smoothing_type and
7116         smoothing_enabled definitions.
7118 2008-02-01  Kenichi Handa  <handa@m17n.org>
7120         * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
7121         s->face->font on determining underline position.
7123 2008-02-01  Kenichi Handa  <handa@m17n.org>
7125         * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
7126         (font_has_char): Accept font-object too.
7127         (font_find_for_lface): Try at first with a size specified in face.
7129 2008-02-01  Kenichi Handa  <handa@m17n.org>
7131         * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
7132         font_open_by_name.
7134 2008-02-01  Kenichi Handa  <handa@m17n.org>
7136         * font.h (QCspacing, QCdpi): Extern them.
7137         (enum font_spacing): New enum.
7138         (FONT_PIXEL_SIZE_QUANTUM): New macro.
7140         * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
7141         (QCspacing, QCdpi): New variables.
7142         (syms_of_font): Initialize them.
7143         (font_pixel_size): New function.
7144         (font_put_extra): New function.
7145         (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
7146         in FONT_EXTRA.
7147         (font_parse_fcname): Handle enumenrated values (e.g. bold).
7148         Fix handling font size.  Add QCname property that contains only
7149         unknown properties.
7150         (font_score): Change argument.  Change caller.  Pay attention to
7151         FONT_PIXEL_SIZE_QUANTUM.
7152         (font_sort_entites, font_list_entities, font_find_for_lface)
7153         (font_open_for_lface, font_open_by_name): Fix handling of font size.
7154         (Ffont_spec): Add QCname property that contains only unknown properties.
7156         * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.  Don't
7157         include weight in listing pattern, instead check weight of each
7158         listed font.  Don't include scalable in pattern.  Pay attention to
7159         FONT_PIXEL_SIZE_QUANTUM.
7161 2008-02-01  Kenichi Handa  <handa@m17n.org>
7163         * font.c (font_parse_fcname): Fix parsing of point-size.
7164         (font_unparse_fcname): Produce symbolic names for style properties.
7165         (font_list_entities): Handle float size correctly.
7166         (font_open_by_name): Prefer `normal' property values if the name
7167         doesn't specify them.
7169         * fontset.c (Finternal_char_font): Use font_get_name, not
7170         Ffont_xlfd_name.
7172         * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
7173         FC_WEIGHT_REGULAR.  Exclude FC_SIZE and FC_PIXEL_SIZE from listing
7174         pattern.  Don't force scalable.
7176         * xftfont.c (xftfont_open): For generating a name, start from
7177         96-byte buffer.
7179 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
7181         * frame.h (x_new_fontset2): Fix prototype.
7183 2008-02-01  Kenichi Handa  <handa@m17n.org>
7185         * font.h (struct font_driver): Delete member parse_name.
7186         (font_match_p, font_get_spec, font_parse_fcname)
7187         (font_unparse_fcname): Extern them.
7188         (font_get_name): Adjust prototype.
7190         * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
7191         (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
7192         (font_expand_wildcards): Fix handling ENCODING field.  Avoid
7193         unnecessary checks for weight, slant, and swidth.
7194         (font_parse_fcname): New function.
7195         (font_unparse_fcname): New function.
7196         (font_parse_name): New function.
7197         (font_match_p): New function.
7198         (font_get_name): Change return value to Lisp string.
7199         (font_get_spec): New function.
7200         (Qunspecified, Qignore_defface): Don't extern them.
7201         (font_find_for_lface): Assume that LFACE is fully specified.
7202         (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
7203         object, use it for FACE.
7204         (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
7205         driver->parse_name.
7206         (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
7208         * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
7209         prototype.
7211         * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
7212         argument F.  Don't call Fnew_fontset.  Instead, directly call
7213         make_fontset.
7215         * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
7217         * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
7218         of x_new_fontset2.
7220         * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
7221         (Qsans__serif): New variables.
7222         (ftfont_generic_family_list): New variable.
7223         (syms_of_ftfont): Initialize the above variables.
7224         (ftfont_pattern_entity): Delete argument NAME.
7225         (ftfont_list_generic_family): New function.
7226         (ftfont_parse_name): Delete this function.
7227         (ftfont_list): Try generic family only when FcFontList found no font.
7228         (ftfont_list_family): Fix args to FcObjectSetBuild.
7230         * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
7231         object in attrs[LFACE_FONT_INDEX].
7232         (set_lface_from_font_name): Cancel all changes for font-backend.
7233         (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
7234         function.
7235         (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
7236         font object in QCfont attribute.
7237         (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
7238         (realize_default_face) [USE_FONT_BACKEND]: Call
7239         set_lface_from_font_and_fontset.
7241         * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
7242         "fixed", and signal error here if no suitable font was found.
7244         * xfont.c (xfont_parse_name): Delete this function.
7246         * xftfont.c (xftfont_open): Change coding style of error
7247         handling.  Generate fontconfig's fontname pattern.
7249         * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
7250         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
7252         * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
7253         Both args FONTSET and FONT_OBJECT must be existing ones.
7255 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7257         * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
7259 2008-02-01  Kenichi Handa  <handa@m17n.org>
7261         * xfont.c (xfont_open, xfont_encode_char): Fix typo.
7263         * font.h (struct font): Fix typo.
7265         * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
7266         XLFD_XXX_INDEX.
7267         (enum xlfd_field_mask): New enum.
7268         (intern_font_field): Changed argument.  Change caller.  If digits
7269         are followed by non-digits, return a symbol.
7270         (font_expand_wildcards): New function.
7271         (font_parse_xlfd): Fix wildcard handling.
7272         (Ffont_spec): If :name is specified, reflect the info in the other
7273         properties.
7275         * ftfont.c (ftfont_pattern_entity): Fix typo.
7276         (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
7277         locale.
7279 2008-02-01  Kenichi Handa  <handa@m17n.org>
7281         * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
7283         * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
7284         (font_unparse_xlfd): Fix argument type declaration.  Append "*" if
7285         registry doesn't specify encoding part.
7286         (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
7287         (font_open_by_name): At first try parsing the name.
7288         (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
7289         as Lisp symbols.
7291         * fontset.c (reorder_font_vector): Pay attention to the case that
7292         the 3rd element of font_def is nil.
7293         (fontset_font): For the default fontset, append one more fontset
7294         elements for a script-based font specification.  Don't add script
7295         attribute on finding a font.
7296         (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
7297         font name.
7298         (fontset_ascii_font): If a font can't be opened, return nil.
7300         * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
7301         (ftfont_pattern_entity): New function.
7302         (ftfont_get_cache): Assume that freetype_font_cache is already
7303         initialized.
7304         (ftfont_list): Handle the case that a file is specified in font
7305         name.  Use ftfont_pattern_entity to generate entities.
7306         (ftfont_has_char): Check if the pattern contains FC_CHARSET.
7307         (syms_of_ftfont): Initialize freetype_font_cache.
7309         * xftfont.c (xftfont_open): Make the font name fontconfig's
7310         style.  Add BLOCK_INPUT and UNBLOCK_INPUT.
7311         (xftfont_close): Free font->font.name if not NULL.
7313         * xfont.c (xfont_list): If script is specified for a font, return
7314         null_vector.
7315         (xfont_list_family): Declare argument type.
7317         * xfaces.c (set_lface_from_font_name): If a font doesn't have a
7318         name, set LFACE_FONT (lface) to nil.
7320         * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
7321         return Qnil.
7323 2008-02-01  Kenichi Handa  <handa@m17n.org>
7325         * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
7326         (standard_args): Add "-enable-font-backend".
7328 2008-02-01  Kenichi Handa  <handa@m17n.org>
7330         * xftfont.c (xftfont_default_fid): Set fid_known to 1.
7331         (struct xftdraw_list, xftdraw_list): Delete them.
7332         (register_xftdraw, check_xftdraw): Delete them.
7333         (xftfont_prepare_face): Don't call register_xftdraw.
7334         (xftfont_done_face): Don't call check_xftdraw.
7335         (xftfont_draw): Get backroudn color only when with_background is
7336         nonzero.
7338         * xfont.c (xfont_encode_char): Fix calculation of char2b.
7340 2008-02-01  Kenichi Handa  <handa@m17n.org>
7342         These changes are for the new font handling codes.
7344         * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
7345         @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
7346         (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
7347         (FONTSRC, FONTOBJ): New variables.
7348         (obj): Add $(FONTOBJ).
7349         (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
7350         (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
7351         @LIBOTF_LIBS@.
7352         (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
7353         (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
7355         * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
7357         * character.h (Vscript_representative_chars): Extern it.
7359         * character.c (Vscript_representative_chars): New variable.
7360         (syms_of_character): Declare it as a Lisp variable.
7362         * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
7363         enable_font_backend is nonzero, accept the composition method
7364         COMPOSITION_WITH_GLYPH_STRING.
7366         * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
7367         enumeration COMPOSITION_WITH_GLYPH_STRING.
7369         * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
7370         members clip_x, clip_y, clip_width, and clip_height.
7371         (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
7373         * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
7374         --enable-font-backend.  Call syms_of_font.
7376         * fns.c (assoc_no_quit): New function.
7378         * fontset.h (FONT_INFO_FROM_FACE): New macro.
7379         (face_for_font, new_fontset_from_font)
7380         (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
7382         * fontset.c [USE_FONT_BACKEND]: Include "font.h".
7383         (fontset_font, fontset_ascii, face_for_char)
7384         (make_fontset_for_ascii_face, Ffont_info)
7385         (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
7386         is nonzero, use font-backend mechanism.
7387         (find_font_encoding): Make it non-static.
7388         (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
7389         New functions.
7391         * frame.h (struct frame): New members resx and resy.
7392         (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
7393         (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
7395         * frame.c [USE_FONT_BACKEND]: Include "font.h".
7396         (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
7398         * lisp.h (assoc_no_quit): Extern it.
7400         * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
7401         Through out the file, use FONT_INFO_FROM_FACE instead of
7402         FONT_INFO_FROM_ID, use get_per_char_metric instead of
7403         rif->per_char_metric.
7404         (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
7405         method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
7406         (get_glyph_face_and_encoding, fill_composite_glyph_string)
7407         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7408         (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
7409         nonzero, use font-backend mechanism.
7410         (get_per_char_metric): New function.
7412         * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
7413         (set_lface_from_font_name)
7414         (set_font_frame_param, free_realized_face)
7415         (prepare_face_for_display, clear_face_gcs)
7416         (Finternal_set_font_selection_order, realize_x_face)
7417         [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
7418         font-backend mechanism.
7419         (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
7420         (load_face_font) [USE_FONT_BACKEND]: Abort.
7421         (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
7422         (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
7424         * xfns.c [USE_FONT_BACKEND]: Include "font.h".
7425         (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
7426         (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
7427         nonzero, register all available font drivers.  Call
7428         x_default_font_parameter for deciding a font.
7429         (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
7431         * xterm.c [USE_FONT_BACKEND]: Include "font.h".
7432         (x_set_mouse_face_gc, x_set_glyph_string_clipping)
7433         (x_set_glyph_string_clipping_exactly)
7434         (x_compute_glyph_string_overhangs)
7435         (x_draw_glyph_string_foreground)
7436         (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
7437         (x_free_frame_resources) [USE_FONT_BACKEND]: If
7438         enable_font_backend is nonzero, use font-backend mechanism.
7439         (x_new_fontset2) [USE_FONT_BACKEND]: New function.
7441 2008-02-01  Kenichi Handa  <handa@m17n.org>
7443         * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
7444         system_eol_type.
7445         (syms_of_coding): Initialize system_eol_type.
7447         * process.c (Fset_process_coding_system): Inherit system's eol
7448         format if necessary.
7450 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7452         * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
7454 2008-02-01  Kenichi Handa  <handa@m17n.org>
7456         * coding.c (decode_eol): Pay attention to buffer relocation in
7457         del_range_2.
7458         (decode_coding): Call decode_eol before restoring undo_list.
7460 2008-02-01  Kenichi Handa  <handa@m17n.org>
7462         * charset.c (Fdefine_charset_internal): Fix setting of
7463         emacs_mule_bytes.
7465 2008-02-01  Kenichi Handa  <handa@m17n.org>
7467         * keyboard.c (read_char): Check if C is a character or not before
7468         looking up Vkeyboard_translate_table.
7470 2008-02-01  Kenichi Handa  <handa@m17n.org>
7472         * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
7473         condition to terminate the loop.
7475 2008-02-01  Kenichi Handa  <handa@m17n.org>
7477         * coding.c (produce_composition): Compare charbuf[i] instead of
7478         args[i] against 0.
7479         (Fterminal_coding_system): Use EQ to compare Lisp objects.
7481 2008-02-01  Kenichi Handa  <handa@m17n.org>
7483         * coding.c (DECODE_COMPOSITION_START): If the source is short, set
7484         coding->result to CODING_RESULT_INSUFFICIENT_SRC.
7485         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
7486         detect_coding.
7487         (emacs_mule_char): Handle old style (Emacs 20) component character
7488         of a composition.
7489         (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
7490         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
7491         composition rule.
7492         (decode_coding_emacs_mule): Handle invalid bytes correctly.
7494 2008-02-01  Kenichi Handa  <handa@m17n.org>
7496         * coding.c (encode_coding_ccl): Allocate destination dynamically
7497         when necessary.
7499 2008-02-01  Kenichi Handa  <handa@m17n.org>
7501         * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
7502         the loop.  When quitted, show a proper error message.
7504 2008-02-01  Kenichi Handa  <handa@m17n.org>
7506         * xterm.c (x_set_glyph_string_clipping_exactly): Set
7507         src->clip_head and src->clip_tail temporarily instead of src->hl.
7509         * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
7510         character sequence.
7511         (Fccl_execute_on_string): Use ASET, not XSET.
7513 2008-02-01  Kenichi Handa  <handa@m17n.org>
7515         * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
7517 2008-02-01  Kenichi Handa  <handa@m17n.org>
7519         * coding.c (decode_coding): Fix the condition of terminating the
7520         decoding loop.
7522 2008-02-01  Kenichi Handa  <handa@m17n.org>
7524         * data.c (Faset): On setting a character bigger than 255 in a
7525         unibyte string, signal an error instead of make the string multibyte.
7527 2008-02-01  Kenichi Handa  <handa@m17n.org>
7529         * charset.c (map_charset_chars): Fix for ascii-compatible charset
7530         made by a mapping table.
7532 2008-02-01  Kenichi Handa  <handa@m17n.org>
7534         * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
7535         not.
7536         (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
7537         (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
7539         * xterm.c (x_draw_composite_glyph_string_foreground): Check
7540         s->face is NULL or not.
7542 2008-02-01  Kenichi Handa  <handa@m17n.org>
7544         * xterm.c (x_set_glyph_string_clipping_exactly): New function.
7545         (x_draw_glyph_string): Fix drawing of right_overhang and
7546         left_overhang around/on cursor.
7548         * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
7550 2008-02-01  Kenichi Handa  <handa@m17n.org>
7552         * xdisp.c (x_produce_glyphs): Handle composition with TAB.
7554 2008-02-01  Kenichi Handa  <handa@m17n.org>
7556         * coding.c (Fdefine_coding_system_internal)
7557         (Fdefine_coding_system_alias): Avoid a duplicated element in
7558         Vcoding_system_alist.
7560 2008-02-01  Kenichi Handa  <handa@m17n.org>
7562         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7564         * coding.c (Qcoding_system_define_form): New variable.
7565         (syms_of_coding): Intern and staticpro it.
7566         (Fcoding_system_p): Check Qcoding_system_define_form.
7567         (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
7569         * coding.h (CODING_SYSTEM_P): If ID is not available, call
7570         Fcoding_system_p.
7571         (CHECK_CODING_SYSTEM): If ID is not available, call
7572         Fcheck_coding_system.
7573         (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
7574         Try also Fcheck_coding_system.
7576 2008-02-01  Kenichi Handa  <handa@m17n.org>
7578         * coding.c (code_conversion_restore): GCPRO arg.
7580 2008-02-01  Kenichi Handa  <handa@m17n.org>
7582         * character.c (lisp_string_width): Check multibyteness of STRING.
7584 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7586         * macterm.c (mac_encode_char): Call ccl_driver with the last arg
7587         Qnil.  Use JIS_TO_SJIS instead of ENCODE_SJIS.
7588         (decode_mac_font_name): Use decode_coding_c_string instead of
7589         decode_coding.
7590         (x_load_font): Initialize fontp->fontset to -1.  Set
7591         fontp->encoding_type.
7593 2008-02-01  Kenichi Handa  <handa@m17n.org>
7595         * search.c (search_buffer): Give up BM search on case-fold-search
7596         if one of a target character has a case-equivalence of different
7597         byte length even if that target charcter is an ASCII.
7598         (simple_search): Fix calculation of byte length of matched text.
7599         (boyer_moore): Fix handling of case-equivalent multibyte characters.
7601 2008-02-01  Kenichi Handa  <handa@m17n.org>
7603         * coding.c (decode_coding): Fix handling of invalid bytes.
7605 2008-02-01  Kenichi Handa  <handa@m17n.org>
7607         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7608         Unicode characters.
7610 2008-02-01  Kenichi Handa  <handa@m17n.org>
7612         * coding.c (encode_coding_object): If a pre-write-conversion
7613         function makes a new buffer, kill it.
7615 2008-02-01  Kenichi Handa  <handa@m17n.org>
7617         * coding.c (QCascii_compatible_p): New variable.
7618         (syms_of_coding): Initialize it.
7619         (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
7620         calling string_char.
7621         (record_conversion_result): Add `default:' case.
7622         (coding_charset_list): Delete unused variable `coding_type'.
7623         (Fdefine_coding_system_internal): Add `ascii-compatible-p'
7624         property in the plist of the coding system.
7625         (Fcoding_system_put): Check QCascii_compatible_p.
7627 2008-02-01  Miles Bader  <miles@gnu.org>
7629         * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
7630         removed calculation of frame `f', as it's now used.
7632 2008-02-01  Kenichi Handa  <handa@m17n.org>
7634         * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
7635         (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
7636         (UNIDATA): New variable.
7637         (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
7638         (bootstrap-emacs${EXEEXT}): Depends on charprop.el.  Run
7639         $(RUN_TEMACS) unconditionally.
7641 2008-02-01  Kenichi Handa  <handa@m17n.org>
7643         * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
7644         (admindir): New variable.
7645         ($(lispsource)international/charprop.el): New target.
7647 2008-02-01  Miles Bader  <miles@gnu.org>
7649         * character.c (chars-in-region): Remove obsolete function.
7650         (syms_of_character): Remove its initialization.
7652 2008-02-01  Benjamin Riefenstahl  <b.riefenstahl@turtle-trading.net>
7654         * w32select.c (validate_coding_system)
7655         (setup_windows_coding_system): New functions.
7656         (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
7657         setup_windows_coding_system.
7658         (setup_config, Fw32_get_clipboard_data): Use
7659         validate_coding_system.
7660         (Fx_selection_exists): Move call to setup_config to a place
7661         where signals are allowed.
7663         * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
7664         (Fcheck_coding_system): Add declarations.
7666 2008-02-01  Kenichi Handa  <handa@m17n.org>
7668         * charset.c (load_charset_map_from_vector): Fix for the first iteration.
7670 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7672         * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
7673         string as the second argument for x_new_fontset.
7675 2008-02-01  Kenichi Handa  <handa@m17n.org>
7677         * coding.c (decode_coding_object): Use safe_call1 instead of call1.
7678         (encode_coding_object): Use safe_call instead of call2.
7680 2008-02-01  Kenichi Handa  <handa@m17n.org>
7682         * fontset.c (Fset_fontset_font): Check family element of a given vector.
7684         * Makefile.in (lisp): Include charprop.el.
7686 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7688         * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
7689         Not sure if it's unnecessary.
7691 2008-02-01  Steven Tamm  <steventamm@mac.com>
7693         * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
7694         some possibly unnecessary fontset checking code that crashed
7695         when creating a new frame.
7697 2008-02-01  Kenichi Handa  <handa@m17n.org>
7699         * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
7700         lookup_face.
7702         * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
7704         * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
7706 2008-02-01  Kenichi Handa  <handa@m17n.org>
7708         * coding.c: Cancel the change done in HEAD on 2008-02-01.
7709         (coding_charset_list): New function.
7711         * coding.h (coding_charset_list): Extern it.
7713 2008-02-01  Kenichi Handa  <handa@m17n.org>
7715         * fontset.c (Fset_fontset_font): Call find_font_encoding with
7716         concatenation of family and registry.
7718 2008-02-01  Kenichi Handa  <handa@m17n.org>
7720         * character.h (BYTE8_STRING): Fix typo.
7722         * editfns.c (Ftranslate_region_internal): Don't convert unibyte
7723         string to multibyte (sync to HEAD).
7725         * casefiddle.c (casify_region): Handle changes in byte-length
7726         using replace_range_2 (sync to HEAD).
7728 2008-02-01  Andreas Schwab  <schwab@suse.de>
7730         * chartab.c (map_char_table): GCPRO table and arg.
7732 2008-02-01  Kenichi Handa  <handa@m17n.org>
7734         * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
7735         already at limit.
7737 2008-02-01  Kenichi Handa  <handa@m17n.org>
7739         * fontset.c (fs_load_font): Use fast_string_match_ignore_case
7740         instead of fast_c_string_match_ignore_case.
7741         (find_font_encoding): Change argument to Lisp_Object.  Use
7742         fast_string_match_ignore_case instead of
7743         fast_c_string_match_ignore_case.  Change caller.
7745 2008-02-01  Kenichi Handa  <handa@m17n.org>
7747         * xdisp.c (get_next_display_element): In unibyte case, decide to
7748         display in octal form by checking a chacter by
7749         UNIBYTE_CHAR_HAS_MULTIBYTE_P.
7751         * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
7753         * character.c (unibyte_has_multibyte_table): New variable.
7755         * character.h (unibyte_has_multibyte_table): Extern it.
7756         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
7758 2008-02-01  Kenichi Handa  <handa@m17n.org>
7760         * coding.c (encode_coding_iso_2022): Fix handling of charset
7761         annotation.
7763 2008-02-01  Kenichi Handa  <handa@m17n.org>
7765         * coding.c (setup_coding_system): If coding_system is nil, use
7766         Qundecided.
7767         (Fterminal_coding_system): Return nil if terminal coding system is
7768         `undecided'.
7769         (syms_of_coding): Define coding-system `undecided' here.  Setup
7770         terminal_coding as `undecided'.
7772 2008-02-01  Kenichi Handa  <handa@m17n.org>
7774         * xdisp.c (message_dolog, set_message_1): Call
7775         unibyte_char_to_multibyte with arg type int.
7777         * lread.c (read1): Fix reading of a char-table.
7779         * print.c (print_object): Include sub char-table in cicularities
7780         detection.
7782 2008-02-01  Kenichi Handa  <handa@m17n.org>
7784         * keymap.c (where_is_internal_2): Fix for the case that KEY is a
7785         cons.  Append the found sequences in car of ARGS instead of prepending.
7787 2008-02-01  Kenichi Handa  <handa@m17n.org>
7789         * fileio.c (report_file_error): Make a unibyte string from
7790         strerror (errorno).
7791         (Fsubstitute_in_file_name): Fix the arg to
7792         unibyte_char_to_multibyte.  It is evaluated twice.
7794 2008-02-01  Kenichi Handa  <handa@m17n.org>
7796         * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
7798 2008-02-01  Kenichi Handa  <handa@m17n.org>
7800         * coding.c (detect_coding_utf_16): Don't set detect_info->found if
7801         BOM is not found.
7802         (detect_coding, detect_coding_system): Optimization for ISO-2022
7803         when no 8-bit data is found.
7805 2008-02-01  Jason Rumney  <jasonr@gnu.org>
7807         * w32fns.c (x_to_w32_font): Update to use new coding struct.
7809 2008-02-01  Kenichi Handa  <handa@m17n.org>
7811         * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
7812         CHARS.
7814 2008-02-01  Steven Tamm  <steventamm@mac.com>
7816         * macterm.c (mac_encode_char): Add charset argument and update
7817         to use encoding_type.
7818         (x_new_font, x_new_fontset): Merge in changes from xterm.c;
7819         switch to pure fontset.
7820         (decode_mac_font_name): Temporarily remove decoding.
7821         (x_font_name_to_mac_font_name): Temporarily remove encoding.
7822         (x_load_font): Temporarily remove encoding.
7824 2008-02-01  Kenichi Handa  <handa@m17n.org>
7826         * xfaces.c (Fface_font): If frame is not on a window system,
7827         ignore CHARACTER arg.  If HAVE_WINDOW_SYSTEM is not defined, don't
7828         refer to face->font.
7829         (split_font_name_into_vector, build_font_name_from_vector)
7830         (lookup_non_ascii_face, realize_non_ascii_face): Define them only
7831         whne HAVE_WINDOW_SYSTEM is defined.
7833 2008-02-01  Kenichi Handa  <handa@m17n.org>
7835         * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
7836         (x_produce_glyphs): Fix setting of members of cmp in case
7837         cmp->glyph_len is zero.
7839         * fontset.c (Fset_fontset_font): Fix docstring.
7840         (Ffontset_info): Make it backward compatible.  New arg ALL.
7842 2008-02-01  Kim F. Storm  <storm@cua.dk>
7844         * process.c (read_process_output): Grow decoding_buf when needed;
7845         this could cause a crash in allocate_string and compact_small_strings.
7847 2008-02-01  Kenichi Handa  <handa@m17n.org>
7849         * fileio.c (WRITE_BUF_SIZE): Delete this macro.
7851 2008-02-01  Kenichi Handa  <handa@m17n.org>
7853         * coding.c (setup_coding_system): Set coding->common_flags
7854         correctly for raw-text.
7855         (consume_chars): On encoding unibyte text by raw-text, don't check
7856         multibyte form.
7857         (encode_coding): On encoding by raw-text, never use translation tables.
7859         * fileio.c (e_write): Short cut for the case of no encoding.
7861 2008-02-01  Kenichi Handa  <handa@m17n.org>
7863         * coding.c (detect_coding, detect_coding_system): Delete unused
7864         variables.
7866 2008-02-01  Kenichi Handa  <handa@m17n.org>
7868         * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
7869         (consume_chars): Fix handling of 8-bit bytes in unibyte source.
7871 2008-02-01  Kenichi Handa  <handa@m17n.org>
7873         * coding.c (Ffind_coding_systems_region_internal): Include
7874         raw-text and no-conversion in the result.
7876 2008-02-01  Kenichi Handa  <handa@m17n.org>
7878         * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
7879         (load_font_get_repertory): Delete unnecessary check of ENCODING of
7880         FONT_DEF.
7881         (font_def_arg, add_arg, from_arg, to_arg): New args.
7882         (set_fontset_font): Change argument.
7883         (Fset_fontset_font): Fix for the case that TARGET is a script
7884         name and charset name.
7885         (new_fontset_from_font_name): Fix argument to Fnew_fontset.
7887 2008-02-01  Kenichi Handa  <handa@m17n.org>
7889         * fontset.c (fontset_font): Rename from fontset_face.  Change return
7890         value.
7891         (face_suitable_for_char_p, face_for_char): Adjust for the change
7892         of fontset_font.
7893         (make_fontset_for_ascii_face): Fix setting of the fontset element
7894         for ASCII.
7895         (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
7896         to get a font name.
7897         (Ffontset_info): Adjust for the change of fontset_font.
7899         * coding.c (emacs_mule_char): Check invalid code more regidly.
7901         * character.h (LEADING_CODE_LATIN_1_MIN)
7902         (LEADING_CODE_LATIN_1_MAX): Delete these macros.
7904 2008-02-01  Kenichi Handa  <handa@m17n.org>
7906         * editfns.c (check_translation): New function.
7907         (Ftranslate_region_internal): Handle M:N mapping.
7909 2008-02-01  Kenichi Handa  <handa@m17n.org>
7911         * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
7913 2008-02-01  Kenichi Handa  <handa@m17n.org>
7915         * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
7916         goto invalid_code.
7917         (decode_coding_iso_2022): Fix handling of invalid designation.
7919         * fileio.c (Finsert_file_contents): Be sure to call unbind_to
7920         after calling code_conversion_save.
7922 2008-02-01  Kenichi Handa  <handa@m17n.org>
7924         * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
7926         * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
7928         * fontset.c: Include "intervals.h".
7929         (fontset_face): Fix comparing of Lisp_Objects.
7930         (free_face_fontset, new_fontset_from_font_name): Fix
7931         Lisp_Object/int mixup.
7933         * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
7935         * coding.c: Add many prototypes for static functions.
7936         (get_translation_table): Allow max_lookup to be NULL.
7937         (decode_coding, Ffind_coding_systems_region_internal)
7938         (Funencodable_char_position, Fcheck_coding_systems_region): Call
7939         get_translation_table with max_lookup NULL.
7941 2008-02-01  Kenichi Handa  <handa@m17n.org>
7943         * coding.c (get_translation_table): Declare it as Lisp_Object.
7944         (LOOKUP_TRANSLATION_TABLE): New macro.
7945         (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
7946         instead of CHAR_TABLE_REF.
7948 2008-02-01  Kenichi Handa  <handa@m17n.org>
7950         * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
7951         annotation data format.
7952         (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
7953         Change arguments FROM and TO to single argument NCHARS.  Change caller.
7954         (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
7955         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7956         (decode_coding_ccl, decode_coding_charset): Pay attention to
7957         coding->charbuf_used.
7958         (get_translation): New function.
7959         (produce_chars): New arguments translation_table and last_block.
7960         Translate characters here.  Return number of carryover chars.
7961         Change caller.
7962         (produce_composition): New argument pos.  Change caller.
7963         Adjust for the change of annotation data format.
7964         (produce_charset, produce_annotation): Likewise.
7965         (decode_coding, encode_coding): Don't call translate_chars.
7966         (consume_chars): New arg translation_table.  Change caller.
7967         (translate_chars): Delete.
7968         (syms_of_coding): Make translation-table's number of extra slots 2.
7970 2008-02-01  Kenichi Handa  <handa@m17n.org>
7972         * search.c (simple_search): Fix setting this_pos_byte in backward
7973         search.
7975         * coding.c (detect_coding_emacs_mule): Fix counting of encoded
7976         byte sequence.
7977         (detect_coding_ccl): Fix setting of the variable valids.
7979 2008-02-01  Kenichi Handa  <handa@m17n.org>
7981         * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
7983         * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
7985         * editfns.c (Ftranslate_region_internal): Rename from
7986         Ftranslate_region.  Accept a char-table in TABLE.
7987         (syms_of_editfns): Defsubr Stranslate_region_internal.
7989         * xfaces.c (set_lface_from_font_name): If a font is specified for
7990         a frame, generate a fontset from the font.
7991         (build_scalable_font_name): If the scalable font is requested for
7992         a specific size, don't change that size.
7993         (try_font_list): Try a scalable font also in the case that a
7994         pattern string is specified.
7996 2008-02-01  Kenichi Handa  <handa@m17n.org>
7998         * xfaces.c (Fface_font): New optional arg CHARACTER.
8000 2008-02-01  Kenichi Handa  <handa@m17n.org>
8002         * charset.h (CHARSET_OFFSET): New macro.
8004 2008-02-01  Kenichi Handa  <handa@m17n.org>
8006         * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
8008         * fontset.c (fontset_face): Handle the case that repertory is a
8009         char-table.
8010         (find_font_encoding): Return nil for unknown encoding.
8011         (Fset_fontset_font): Ignore a font of unknown encoding.
8013 2008-02-01  Kenichi Handa  <handa@m17n.org>
8015         * keymap.c (describe_vector): Handle default value of a char table.
8017         * fontset.c (fontset_face): Handle fallback fonts correctly.
8018         (Ffontset_info): Return infomation about fallback fonts.
8020 2008-02-01  Kenichi Handa  <handa@m17n.org>
8022         * fontset.c (FONTSET_DEFAULT): New macro.
8023         (FONTSET_ADD, fontset_add): Handle the case that range is nil.
8024         (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
8025         the case that it is nil.
8026         (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
8027         (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
8029         * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
8030         subset or superset.
8032 2008-02-01  Kenichi Handa  <handa@m17n.org>
8034         * emacs.c (main): Call init_charset after syms_of_XXX.
8036         * charset.c (Vcharset_map_directory): Delete.
8037         (Vcharset_map_path): New variable.
8038         (load_charset_map_from_file): Use Vcharset_map_path instead.
8039         (init_charset): Initialize Vcharset_map_path.
8040         (syms_of_charset): Delete declaration of "charset-map-directory",
8041         add declaration of "charset-map-path".
8043 2008-02-01  Kenichi Handa  <handa@m17n.org>
8045         * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
8046         ASCII only string.
8048         * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
8050         * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
8051         (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
8053 2008-02-01  Kenichi Handa  <handa@m17n.org>
8055         * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
8057         * coding.c (QCmnemonic, QCdefalut_char)
8058         (QCdecode_translation_table, QCencode_translation_table)
8059         (QCpost_read_conversion, QCpre_write_conversion): New variables.
8060         (get_translation_table): Return a list of translation tables if
8061         necessary.
8062         (decode_coding): Call get_translation_table with ENCODEP 0.
8063         (char_encodable_p): If translation_table is non-nil, always call
8064         translate_char.
8065         (Fdefine_coding_system_internal): Accept list of translation
8066         tables as :encode-translation-table and :decode-translation-table.
8067         (Fcoding_system_put): New function.
8068         (syms_of_coding): Declare new symbols.  Defsubr
8069         Scoding_system_put.
8070         (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
8071         typically JISX0212.
8073         * charset.c (map_charset_chars): Fix arg to map_charset_chars in
8074         when the charset is superset type.
8076         * character.c (translate_char): Accept list of translation tables.
8078 2008-02-01  Kenichi Handa  <handa@m17n.org>
8080         * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
8081         (CODING_ATTR_TRANS_TBL): New macro.
8083         * coding.c (get_translation_table): New function.
8084         (translate_chars): Fix the bug of skipping annotation data.
8085         (decode_coding, encode_coding): Utilize get_translation_table.
8086         (char_encodable_p, Funencodable_char_position): Translate char if
8087         necessary.
8088         (Ffind_coding_systems_region_internal)
8089         (Fcheck_coding_systems_region): Setup translation table for encode
8090         in a coding system attribute vector in advance.
8091         (Fdefine_coding_system_internal): Allow a symbol as translation
8092         table.  For shift-jis type coding system, allow 4th charset.
8094 2008-02-01  Kenichi Handa  <handa@m17n.org>
8096         * coding.c (decode_coding_sjis): Check the first byte rigidly.
8098         * xdisp.c (get_next_display_element): Pass -1 as POS to
8099         FACE_FOR_CHAR if displaying a C-string.
8101 2008-02-01  Kenichi Handa  <handa@m17n.org>
8103         * composite.c (get_composition_id): Handle xoff and yoff in a
8104         composition rule.
8106         * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
8107         (struct composition): New member lbearing and rbearing.
8109         * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
8110         (x_get_glyph_overhangs): Handle a composition glyph.
8111         (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
8113         * xterm.c (x_compute_glyph_string_overhangs): Handle also a
8114         composition glyph.
8116 2008-02-01  Kenichi Handa  <handa@m17n.org>
8118         * print.c: Include charset.h.
8119         (Vprint_charset_text_property): New variable.
8120         (Qdefault): Extern it.
8121         (PRINT_STRING_NON_CHARSET_FOUND)
8122         (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
8123         (print_check_string_result): New variable.
8124         (print_check_string_charset_prop): New function.
8125         (print_prune_charset_plist): New variable.
8126         (print_prune_string_charset): New function.
8127         (print_object): Call print_prune_string_charset if
8128         Vprint_charset_text_property is not t.
8129         (print_interval): Print nothing if itnerval->plist is nil.
8130         (syms_of_print): Declare Vprint_charset_text_property as a lisp
8131         variable.  Init and staticpro print_prune_charset_plist.
8133 2008-02-01  Kenichi Handa  <handa@m17n.org>
8135         * fontset.c (new_fontset_from_font_name): Use the specified font
8136         for all characters in the new fontset.
8138         * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8139         OBJECT args.
8141         * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
8142         OBJECT args for composition too.
8144         * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8145         OBJECT args.
8147 2008-02-01  Kenichi Handa  <handa@m17n.org>
8149         * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
8151         * fontset.c (reorder_font_vector): Adjust for the change of
8152         FONT_DEF format.
8153         (fontset_face): New arg id.  Change caller.
8154         (face_for_char): New args pos and object.
8155         (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
8156         (fs_query_fontset): Check NAME by Fassoc too.
8157         (Fset_fontset_font): Allow non-XLFD font name.
8158         (Ffontset_info): Adjust for the change of FONT_DEF format.
8160         * fontset.h (face_for_char): Adjust prototype.
8162         * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
8163         (append_space, extend_face_to_end_of_line)
8164         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8165         (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
8167         * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
8168         POS and OBJECT args.
8170         * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
8171         POS and OBJECT args.
8173 2008-02-01  Jason Rumney  <jasonr@gnu.org>
8175         * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
8176         of GlobalAlloc'ed memory.
8178 2008-02-01  Kenichi Handa  <handa@m17n.org>
8180         * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
8182         * charset.h (charset_table_used): Delete extern.
8184         * charset.c (charset_table_used): Make it static.
8185         (map_charset_chars): Fix args to c_function with.
8187         * chartab.c (map_sub_char_table_for_charset): Fix args to
8188         c_function with.
8190         * coding.h (enum coding_result_code): Delete
8191         CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
8193         * coding.c (Qinsufficient_source, Qinconsistent_eol)
8194         (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
8195         (Vlast_code_conversion_error): New variables.
8196         (syms_of_coding): DEFSYM or DEFVAR_LISP them.
8197         (ONE_MORE_BYTE): Record error if any instead of signaling an
8198         error.  If non-ASCII multibyte char is found, return the negative
8199         value of the code.  All callers changed to check it.
8200         (ONE_MORE_BYTE_NO_CHECK): Likewise.
8201         (record_conversion_result): New function.  Change all codes setting
8202         coding->result to call this function.
8203         (detect_coding_utf_8, decode_coding_utf_8)
8204         (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
8205         Don't use the local variable incomplete.
8206         (emacs_mule_char): Change the second arg to `const'.
8207         (decode_coding): Fix of flushing out unprocessed data.
8208         (make_conversion_work_buffer): Fix making of a work buffer.
8209         (decode_coding_object): Return coding->dst_object.
8211         * fontset.c (set_fontset_font): Fix args.
8213         * lisp.h (CHARACTERBITS): Define as 22.
8215         * process.c (send_process): Be sure to set coding->src_multibyte.
8217         * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
8219 2008-02-01  Kenichi Handa  <handa@m17n.org>
8221         * xdisp.c (handle_auto_composed_prop): Give limit to
8222         Fnext_single_char_property_change.
8224 2008-02-01  Kenichi Handa  <handa@m17n.org>
8226         * composite.c (syms_of_composite): Don't make the composition hash
8227         table weak.
8229         * fontset.c (Fset_fontset_font): Fix docstring.
8231         * lisp.h (detect_coding_system): Adjust prototype.
8233         * fileio.c (kill_workbuf_unwind): Delete this function.
8234         (Finsert_file_contents): Adjust the call of detect_coding_system.
8235         Get conversion_buffer by code_conversion_save.  Use the macor
8236         CODING_MAY_REQUIRE_DECODING.  After decoding, update
8237         coding_system.
8239         * coding.h (make_conversion_work_buffer): Delete extern.
8240         (code_conversion_save): Extern it.
8242         * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
8243         (CODING_GET_INFO): Delete argument eol_type.  Change callers.
8244         (decode_coding_utf_8): Don't do eol converion.
8245         (detect_coding_utf_16): Check coding->src_chars, not
8246         coding->src_bytes.  Add heuristics for those that have no signature.
8247         (decode_coding_emacs_mule, decode_coding_iso_2022)
8248         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8249         Don't do eol converion.
8250         (adjust_coding_eol_type): Return a new coding system.
8251         (detect_coding): Don't detect eol.  Fix for utf-16 detection.
8252         (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
8253         each change.
8254         (decode_coding): Pay attention to undo_list.  Do eol convesion for
8255         all types of coding-systems (if necessary).
8256         (Vcode_conversion_work_buf_list): Delete it.
8257         (Vcode_conversion_reused_workbuf): Rename from
8258         Vcode_conversion_reused_work_buf.
8259         (Vcode_conversion_workbuf_name): New variable.
8260         (reused_workbuf_in_use): New variable.
8261         (make_conversion_work_buffer): Delete the arg DEPTH.
8262         (code_conversion_restore): Change argument to cons.
8263         (code_conversion_save): Delete the argument BUFFER.  Change callers.
8264         (detect_coding_system): New argument src_chars.  Change callers.
8265         Fix for utf-16 detection.
8266         (init_coding_once): Don't use ISO_carriage_return.
8267         (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
8268         reused_workbuf_in_use.
8270 2008-02-01  Kenichi Handa  <handa@m17n.org>
8272         * keymap.c (store_in_keymap): Pay attention to the case that idx
8273         is a cons specifying a character range.
8275 2008-02-01  Kenichi Handa  <handa@m17n.org>
8277         * xdisp.c (handle_auto_composed_prop): Fix the case of returning
8278         HANDLED_RECOMPUTE_PROPS.
8280         * coding.c (Fdefine_coding_system_internal): Fix checking of
8281         ascii compatibility.
8283 2008-02-01  Kenichi Handa  <handa@m17n.org>
8285         * charset.c (find_charsets_in_text): Delete unused locale variable.
8286         (Fset_charset_priority): Update Vemacs_mule_charset_list too.
8288         * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
8289         Resync charset_list to Vemacs_mule_charset_list.
8291         * keymap.c (store_in_keymap): Pay attention to the case that idx
8292         is a cons specifying a character range.
8294 2008-02-01  Kenichi Handa  <handa@m17n.org>
8296         * composite.c (update_compositions): Bind inhibit-read-only, etc
8297         to t before calling remove-list-of-text-properties.
8299         * print.c (print_object): Always print ASCII chars as is.
8301 2008-02-01  Kenichi Handa  <handa@m17n.org>
8303         * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
8305         * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
8306         is a char table.
8308 2008-02-01  Kenichi Handa  <handa@m17n.org>
8310         * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
8312 2008-02-01  Kenichi Handa  <handa@m17n.org>
8314         * xfaces.c (set_lface_from_font_name): Fix for the case that
8315         FONTNAME is not fontset name.
8317 2008-02-01  Kenichi Handa  <handa@m17n.org>
8319         * fns.c (base64_encode_1): Fix previous change.
8321 2008-02-01  Kenichi Handa  <handa@m17n.org>
8323         * fontset.c (set_fontset_font): New function.
8324         (Fset_fontset_font): If a font is specified for a charset, use
8325         map_charset_chars to store the font spec in a fontset.
8327 2008-02-01  Kenichi Handa  <handa@m17n.org>
8329         * fontset.c (fontset_face): Create a fallback fontset on demand.
8330         (make_fontset): Don't create a fallback fontset here.
8331         (free_face_fontset): Free a fallback fontset (if any) too.
8332         (n_auto_fontsets): Delete this variable.
8333         (auto_fontset_alist): New variable.
8334         (new_fontset_from_font_name): Check auto_fontset_alist.
8335         (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
8336         (Ffontset_list_all) [FONTSET_DEBUG]: New function.
8337         (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
8338         Defsubr Sfontset_list_all.
8340 2008-02-01  Kenichi Handa  <handa@m17n.org>
8342         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8344 2008-02-01  Kenichi Handa  <handa@m17n.org>
8346         * fontset.c (Fnew_fontset): Check NAME more rigidly.
8348 2008-02-01  Kenichi Handa  <handa@m17n.org>
8350         * editfns.c (Fgoto_char): Fix docstring.
8352 2008-02-01  Kenichi Handa  <handa@m17n.org>
8354         * insdel.c (insert_from_gap): Adjust intervals correctly.
8356 2008-02-01  Jason Rumney  <jasonr@gnu.org>
8358         * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
8359         (pfnGetFontUnicodeRanges): New dynamically loaded function.
8360         (w32_initialize): Try to load it.
8361         (x_get_font_repertory): Use it if available.
8362         (w32_encode_char): Add shortcut for unicode output.
8364         * w32fns.c (w32_load_system_font): Default charset to -1.
8365         (x_to_w32_charset): Match all fonts for unicode.
8366         (w32_to_x_charset): New parameter matching.  Don't return partial
8367         or wildcard charsets.
8368         (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
8369         (w32_codepage_for_font): Return CP_UNICODE for unicode.
8370         (w32_to_x_font): Match charset to real charset.
8371         (enum_font_cb2): Always list unicode versions.
8373         * makefile.w32-in (temacs): Increase EMHEAP.
8375 2008-02-01  Jason Rumney  <jasonr@gnu.org>
8377         * w32term.c (w32_encode_char): New charset parameter.
8378         font_info.encoding becomes encoding_type.
8379         (x_get_font_repertory): New function.  Warning: stub only!
8380         (x_new_font): Return quickly if font already set.
8381         (x_new_fontset): fontsetname parameter is Lisp_Object.
8382         Use new fs_query_fontset.  Try new_fontset_from_font_name.
8383         Use fontset_name for return value.
8385         * w32term.h: Declare x_get_font_repertory.
8387         * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
8388         place of find_charset_in_text.  Use encode_coding_object in place
8389         of encode_coding.
8390         (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
8391         decode_coding.
8393         * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
8394         of x_new_fontset.
8395         (w32_load_system_font): Initialize charset as unicode.
8396         font_info.encoding becomes encoding_type.
8397         (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
8398         (x_to_w32_font): Use encode_coding_object in place of encode_coding.
8399         (syms_of_w32fns): Set get_font_repertory_func.
8401         * w32console.c: Include character.h.  Use terminal_encode_buffer
8402         from term.c.
8403         (write_glyphs): Use new version of encode_terminal_code.  Use
8404         encode_coding_object in place of encode_coding.
8406         * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
8407         encoding becomes encoding_type.
8409         * term.c (terminal_encode_buffer): Make externally visible.
8411         * makefile.w32-in: Add character.h dependancies.
8412         (character.o, chartab.o): New targets.
8414 2008-02-01  Kenichi Handa  <handa@m17n.org>
8416         * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
8417         CODING_ID_EOL_TYPE.
8419 2008-02-01  Andreas Schwab  <schwab@suse.de>
8421         * coding.c (produce_chars): Revert last change.
8423 2008-02-01  Kenichi Handa  <handa@m17n.org>
8425         * charset.h (charset_unicode): Extern it.
8427         * charset.c (string_xstring_p): Check by (C >= 0x100).
8428         (find_charsets_in_text): Change format of the arc CHARSETS.  New
8429         arg MULTIBYTE.
8430         (Ffind_charset_region, Ffind_charset_string): Adjust for the
8431         change of find_charsets_in_text.
8432         (Fsplit_char): Fix doc.  Never return unknown.
8434         * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
8436         * coding.c (Fdefine_coding_system_alias): Update
8437         Vcoding_system_list.
8439         * fontset.c (load_font_get_repertory): Pay attention to the case
8440         that ENCODING of a font is specified by a char-table.
8442         * xterm.c (x_get_font_repertory): Handle the case that the
8443         encoding of font is other than Unicode.
8445 2008-02-01  Kenichi Handa  <handa@m17n.org>
8447         * term.c (encode_terminal_code): Don't handle glyph-table.  Check
8448         if a character is encodable by the terminal coding system.  If
8449         not, produces proper number of `?'s.  Update
8450         terminal_encode_buffer and terminal_encode_buf_size if necessary.
8451         (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
8453 2008-02-01  Kenichi Handa  <handa@m17n.org>
8455         * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
8456         variables.
8457         (encode_terminal_code): Change argument.  Encode multiple
8458         characters at once.  Store the result of encoding in
8459         terminal_encode_buffer.
8460         (write_glyphs, insert_glyphs): Adjust for the change of
8461         encode_terminal_code.
8462         (term_init): Initialize terminal_encode_buffer and
8463         terminal_encode_buf_size.
8465         * coding.c (consume_chars): If coding->src_object is nil, don't
8466         check annotation.
8468 2008-02-01  Kenichi Handa  <handa@m17n.org>
8470         * character.c (char_string): Use ASCII_CHAR_P instead of
8471         SINGLE_BYTE_CHAR_P.
8473 2008-02-01  Kenichi Handa  <handa@m17n.org>
8475         * xdisp.c (handle_auto_composed_prop): Check if the last
8476         characters of auto-composed region is newly composed with the
8477         following characters.
8478         (handle_composition_prop): Fix checking of point being inside
8479         composition.
8481 2008-02-01  Kenichi Handa  <handa@m17n.org>
8483         * fns.c (concat): Don't change multibyteness of the result by
8484         concatenating an 8-bit character.
8486         * data.c (Faset): Check newelt by CHECK_CHARACTER.  Don't change
8487         multibyteness of the result when newelt is an 8-bit character.
8489 2008-02-01  Dave Love  <fx@gnu.org>
8491         * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
8492         EMACS_INT.
8494         * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
8496         * xfaces.c (face_numeric_value): Declare dim size_t.
8497         (Finternal_lisp_face_equal_p): Remove unused f.
8499         * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
8500         (MATRIX_ROW): Remove unused vars.
8501         (draw_glyphs, x_insert_glyphs, fast_find_position)
8502         (fast_find_position, fast_find_string_pos): Use EMACS_INT for
8503         byte/char counts.
8505         * regex.c (regex_compile): Remove unused var.
8507         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8509         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8510         (Faccessible_keymaps, where_is_internal): Remove unused vars.
8512         * keyboard.c (cancel_hourglass_unwind): Return Qnil.
8514         * frame.c (frame_name_fnn_p): Make len EMACS_INT.
8516         * fileio.c (Fwrite_region): Remove unused var.
8518         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
8519         (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
8521         * composite.c (Fremove_list_of_text_properties): Declare.
8523         * coding.c (inhibit_pre_post_conversion): Remove (unused).
8524         (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
8525         (coding_inherit_eol_type): Remove unused attrs.
8526         (detect_coding): Cast arg of detect_eol.
8528         * charset.c (syms_of_charset): Remove unused var p.
8529         (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
8530         byte/char counts.
8532         * casetab.c (set_case_table): Remove unused var.
8534         * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
8535         unused vars.
8537 2008-02-01  Dave Love  <fx@gnu.org>
8539         * xterm.c (x_bitmap_mask): Declare.
8541 2008-02-01  Dave Love  <fx@gnu.org>
8543         * xterm.c (x_term_init): Fix type error.
8545         * lisp.h: Add Funibyte_char_to_multibyte.
8547         * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
8548         (Fset_coding_system_priority): Doc fix.
8550         * ccl.c (ccl_driver): Fix arg of CHARACTERP.
8552         * indent.c (check_composition): Make start and end EMACS_INT.
8554         * character.c (lisp_string_width): Make ignore and end EMACS_INT.
8556         * xdisp.c (handle_composition_prop, check_point_in_composition):
8557         Make buffer positions EMACS_INT.
8559         * composite.c (find_composition, run_composition_function)
8560         (update_compositions, Ffind_composition_internal): Make buffer
8561         positions EMACS_INT.
8563         * composite.h (find_composition, update_compositions): Make
8564         position args EMACS_INT.
8566         * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
8568         * intervals.c (get_property_and_range):
8569         * intervals.h (get_property_and_range): Make start and end EMACS_INT.
8571         * unexalpha.c: Don't include varargs.h.
8573 2008-02-01  Dave Love  <fx@gnu.org>
8575         * coding.h (ENCODE_UTF_8): New.
8577         * Makefile.in (gtkutil.o): Depend on coding.h.
8579         * coding.c (Fset_coding_system_priority): Doc fix.
8581 2008-02-01  Kenichi Handa  <handa@m17n.org>
8583         * fileio.c (Finsert_file_contents): Call setup_coding_system in
8584         the case of auto saving.
8586 2008-02-01  Andreas Schwab  <schwab@suse.de>
8588         * chartab.c (map_char_table, map_char_table_for_charset): Protect
8589         `range' from GC.
8591 2008-02-01  Kenichi Handa  <handa@m17n.org>
8593         * coding.c (decode_coding_sjis): Check bytes more rigidly.
8595 2008-02-01  Kenichi Handa  <handa@m17n.org>
8597         * fileio.c (choose_write_coding_system): Return a decided coding system.
8598         (Fwrite_region): Set Vlast_coding_system_used to the return value
8599         of choose_write_coding_system.
8601 2008-02-01  Kenichi Handa  <handa@m17n.org>
8603         * charset.c (Fset_charset_priority): Pay attention to duplicated
8604         arguments.
8606         * coding.c (QCcategory): New variable.
8607         (syms_of_coding): Defsym it.  Set all elements of
8608         Vcoding_category_table and their symbol values.
8609         (Fset_coding_system_priority): Doc fix.  Update symbol qvalues of
8610         coding-category-XXX, and coding-category-list.
8611         (Fdefine_coding_system_internal): Add category in the plist.
8613 2008-02-01  Kenichi Handa  <handa@m17n.org>
8615         * callproc.c (Fcall_process): Handle carryover correctly.
8617         * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
8618         (raw_text_coding_system): Check NILP (coding_system).
8619         (coding_inherit_eol_type): Check NILP (coding_system) and
8620         NILP (parent).
8621         (consume_chars): Fix for the case of raw-text.
8623         * process.c (read_process_output): Handle carryover correctly.
8625 2008-02-01  Dave Love  <fx@gnu.org>
8627         * regex.c (re_search_2): Fix last change.
8629 2008-02-01  Kenichi Handa  <handa@m17n.org>
8631         * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
8632         target_multibyte.  Even in a unibyte case, return a converted
8633         multibyte char.
8634         (GET_CHAR_AFTER): New macro.
8635         (PATFETCH): Translate via multibyte char.
8636         (HANDLE_UNIBYTE_RANGE): Delete this macro.
8637         (SETUP_MULTIBYTE_RANGE): New macro.
8638         (regex_compile): Setup compiled code so that its multibyteness
8639         matches that of a target.  Fix the handling of "[X-YZ]" using
8640         SETUP_MULTIBYTE_RANGE.
8641         (analyse_first) <charset>: For filling fastmap for all multibyte
8642         characters, don't check by BASE_LEADING_CODE_P.
8643         (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp).  It is
8644         the same as RE_MULTIBYTE_P (bufp) now.
8645         (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
8646         (TARGET_CHAR_AND_LENGTH): Delete this macro.
8647         (TRANSLATE_VIA_MULTIBYTE): New macro.
8648         (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
8649         It is the same as RE_MULTIBYTE_P (bufp) now.
8650         <exactn>: Translate via multibyte.
8651         <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.  Don't
8652         translate it.
8653         <charset, charset_not>: Fetch a character by
8654         RE_STRING_CHAR_AND_LENGTH.  Translate via multibyte.
8655         <duplicate>: Call bcmp_translate with the last arg `multibyte'.
8656         <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
8657         notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
8658         by GET_CHAR_AFTER.
8659         (bcmp_translate): Likewise.
8661         * search.c (compile_pattern): Check the member target_multibyte,
8662         not the member multibyte of buf.
8664         * lread.c (read1): While reading a string, set force_singlebyte
8665         and force_multibyte correctly.
8667         * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
8668         up of unibyte_to_multibyte_table.
8670 2008-02-01  Kenichi Handa  <handa@m17n.org>
8672         * coding.c (setup_coding_system): If coding has
8673         post-read-conversion or pre-write-conversion, set
8674         CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
8675         respectively.
8676         (decode_coding_gap): Run post-read-conversion if any.
8678         * fileio.c (Finsert_file_contents): Even if we read into a
8679         unibyte buffer, check if we must decode the result or not.
8681 2008-02-01  Kenichi Handa  <handa@m17n.org>
8683         * coding.c (make_conversion_work_buffer): Change the work buffer
8684         name to the same one as that of Emacs 21.
8686 2008-02-01  Kenichi Handa  <handa@m17n.org>
8688         * coding.h (make_conversion_work_buffer): Adjust prototype.
8689         (code_conversion_restore): Don't extern it.
8691         * coding.c (detected_mask): Delete unused variable.
8692         (decode_coding_iso_2022): Pay attention to the byte sequence of
8693         CTEXT extended segment, and retain those bytes as is.
8694         (decode_coding_ccl): Delete unused variable `valids'.
8695         (setup_coding_system): Delete unused variable `category'.
8696         (consume_chars): Delete unused variable `category'.  Make it work
8697         for non-multibyte case.
8698         (make_conversion_work_buffer): Change argument.
8699         (saved_coding): Delete unused variable.
8700         (code_conversion_restore): Don't check saved_coding->destination.
8701         (code_conversion_save): New function.
8702         (decode_coding_gap, encode_coding_gap): Call code_conversion_save
8703         instead of record_unwind_protect.
8704         (decode_coding_object, encode_coding_object): Likewise.  Recover PT.
8705         (detect_coding_system): Delete unused variable `mask'.
8706         (Fdefine_coding_system_internal): Delete unused vaiable id.
8708         * fileio.c (kill_workbuf_unwind): New function.
8709         (Finsert_file_contents): On replacing, call
8710         make_conversion_work_buffer with correct args, and call
8711         record_unwind_protect with the first arg kill_workbuf_unwind.
8713         * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
8715 2008-02-01  Kenichi Handa  <handa@m17n.org>
8717         * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
8718         (fontset_add): Fix for the case that TO is less than TO1.
8719         (Ffontset_info): Don't use fallback fontset on checking the
8720         default fontset.
8721         (dump_fontset): New function for debugging.
8723         * coding.c (Fdefine_coding_system_internal): Fix for the case that
8724         coding_type is Qcharset.
8726 2008-02-01  Kenichi Handa  <handa@m17n.org>
8728         * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
8729         (map_char_table): Don't inherit the value from the parent on
8730         initializing VAL.  Adjust for the above change.
8732 2008-02-01  Kenichi Handa  <handa@m17n.org>
8734         * coding.c (Qsignature, Qendian): Delete these variables.
8735         (syms_of_coding): Don't initialize them.
8736         (CATEGORY_MASK_UTF_16_AUTO): New macro.
8737         (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
8738         detect_info->found.
8739         (decode_coding_utf_16): Don't detect BOM here.
8740         (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
8741         is NOT utf_16_without_bom.
8742         (setup_coding_system): For a coding system of type utf-16, check
8743         if the attribute :endian is Qbig or not (not nil or not), and set
8744         CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
8745         (detect_coding): If coding type is utf-16 and BOM detection is
8746         required, detect it.
8747         (Fdefine_coding_system_internal): For a coding system of type
8748         utf-16, check if the attribute :endian is Qbig or not (not nil or not).
8750 2008-02-01  Kenichi Handa  <handa@m17n.org>
8752         * coding.c (coding_set_source): Fix for the case that the current
8753         buffer is different from coding->src_object.
8754         (decode_coding_object): Don't use the conversion work buffer if
8755         DST_OBJECT is a buffer.
8757 2008-02-01  Dave Love  <fx@gnu.org>
8759         * lread.c (read_emacs_mule_char) [len==2]: Index
8760         emacs_mule_charset correctly.
8762 2008-02-01  Dave Love  <fx@gnu.org>
8764         * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
8765         (detect_coding_big5, decode_coding_big5, encode_coding_big5)
8766         (Fdecode_big5_char, Fencode_big5_char): Delete.  (Big5 no longer
8767         treated specially.)
8768         (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
8769         (detected_mask): Remove Big5 bits.
8771 2008-02-01  Kenichi Handa  <handa@m17n.org>
8773         The following changes are to make the font rescaling facility
8774         compatible with Emacs 21.
8776         * xfaces.c (Vface_font_rescale_alist): Rename from
8777         Vface_resizing_fonts.
8778         (struct font_name): Rename member resizing_ratio to rescale_ratio.
8779         (font_rescale_ratio): Rename from font_resizing_ratio.
8780         (split_font_name): Set font->rescale_ratio.
8781         (better_font_p): Pay attention to font->rescale_ratio.
8782         (build_scalable_font_name): Likewise.  Change RESX, and RESY
8783         fields.
8784         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
8786 2008-02-01  Kenichi Handa  <handa@m17n.org>
8788         * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
8789         (Qutf_16_le): Remove these variables.
8790         (syms_of_coding): Don't DEFSYM them.
8791         (decode_coding_utf_16): Fix handling of BOM.
8792         (encode_coding_utf_16): Fix handling of BOM.
8794 2008-02-01  Kenichi Handa  <handa@m17n.org>
8796         * fileio.c (Finsert_file_contents): On replacing, before decoding
8797         the file into the work buffer, set point of the work buffer to the end.
8799 2008-02-01  Dave Love  <fx@gnu.org>
8801         * coding.c (Fcheck_coding_systems_region): Fix type errors.
8803 2008-02-01  Dave Love  <fx@gnu.org>
8805         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8806         and fix C types.
8808 2008-02-01  Kenichi Handa  <handa@m17n.org>
8810         * xdisp.c (SKIP_GLYPHS): New macro.
8811         (set_cursor_from_row): Pay attention to string display properties.
8813         * category.c (copy_category_entry): Fix for the case that RANGE
8814         is an integer.
8816         * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
8818         * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
8820 2008-02-01  Kenichi Handa  <handa@m17n.org>
8822         * charset.c (Fcharset_id_internal): New function.
8823         (syms_of_charset): Defsubr it.
8825         * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
8826         with the last arg charset_list acquired from coding.
8827         (Fdefine_coding_system_internal): For ccl-based coding system, fix
8828         the attribute coding_attr_ccl_valids.
8830         * coding.h (enum define_coding_ccl_arg_index): Set the first
8831         member coding_arg_ccl_decoder to coding_arg_max.
8833         * ccl.h (ccl_driver): Adjust prototype.
8835         * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
8836         (ccl_driver): New arg CHARSET_LIST.  Use the above macros instead
8837         of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
8838         (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
8839         last arg Qnil.
8841 2008-02-01  Kenichi Handa  <handa@m17n.org>
8843         * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
8844         call encode_char.
8846         * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
8848 2008-02-01  Dave Love  <fx@gnu.org>
8850         * composite.c (syms_of_composite): Make composition_hash_table weak.
8852 2008-02-01  Kenichi Handa  <handa@m17n.org>
8854         * dispextern.h (check_face_attributes, generate_ascii_font_name)
8855         (font_name_registry): Don't extern them.
8856         (split_font_name_into_vector, build_font_name_from_vector): Extern them.
8858         * fontset.h (Qfontset): Don't extern it.
8859         (new_fontset_from_font_name): Extern it.
8861         * fontset.c: Give 8 extra slots to fontset objects.
8862         (Qfontset_info): New variable.
8863         (syms_of_fontset): Defsym it.
8864         (FONTSET_FALLBACK): New macro.
8865         (fontset_face): Try also the default fontset.
8866         (make_fontset): Realize a fallback fontset from the default fontset.
8867         (generate_ascii_font_name): Move from xfaces.c.  Rewritten by
8868         using split_font_name_into_vector and build_font_name_from_vector.
8869         (Fset_fontset_font): Access the elements of font_spec by enum
8870         FONT_SPEC_INDEX.  If font_spec is a string, extract the registry
8871         name by using split_font_name_into_vector.
8872         (Fnew_fontset): If no ASCII font is specified in FONTLIST,
8873         generate a proper font name from the fontset name.  Update
8874         Vfontset_alias_alist.
8875         (n_auto_fontsets): New variable.
8876         (new_fontset_from_font_name): New function.
8877         (Ffont_info): Store the information about fonts generated from the
8878         default fontset in the first extra slot of the returned char-table.
8880         * xfaces.c (generate_ascii_font_name): Move to fontset.c.
8881         (font_name_registry): Delete function.
8882         (split_font_name_into_vector): New function.
8883         (build_font_name_from_vector): New function.
8884         (font_list): The argument REGISTRY is now a list of registry names.
8885         (choose_face_font): If we are choosing an ASCII font, and ATTRS
8886         specifies an explicit font name, return the name as is.  Make a
8887         list of registy names.
8889         * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
8890         of x_new_fontset.
8891         (Fx_create_frame): Don't call x_new_fontset here.  Just use
8892         x_list_fonts to check the existence of fonts.
8894         * xterm.h (x_new_fontset): Adjust prototype.
8896         * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
8897         string.  Use new_fontset_from_font_name to create a fontset from a
8898         font name.
8900 2008-02-01  Kenichi Handa  <handa@m17n.org>
8902         * syntax.c (Vfind_word_boundary_function_table): New name for
8903         Vnext_word_boundary_function_table.
8904         (find-word-boundary-function-table): New name for
8905         next-word-boundary-function-table.
8907 2008-02-01  Dave Love  <fx@gnu.org>
8909         * Makefile.in: Fix some dependencies.
8911         * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
8912         set it to nil before returning.
8914         * composite.c (update_compositions): Fix type error.
8916         * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
8918 2008-02-01  Kenichi Handa  <handa@m17n.org>
8920         * xterm.c (x_new_font): Optimize for the case that the font is
8921         already set for the frame.
8923 2008-02-01  Kenichi Handa  <handa@m17n.org>
8925         * chartab.c (char_table_ascii): Check if the char table contents
8926         is sub-char-table or not.
8927         (char_table_set, char_table_set_range): Fix argument to
8928         char_table_ascii.
8930         * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
8931         (detect_coding_utf_8, detect_coding_utf_16)
8932         (detect_coding_emacs_mule, detect_coding_iso_2022)
8933         (detect_coding_sjis, detect_coding_big5)
8934         (detect_coding_ccl, detect_coding_charset): Change argument MASK
8935         to DETECT_INFO.  Update DETECT_INFO and return 1 if the byte
8936         sequence is valid in this coding system.  Change callers.
8937         (MAX_ANNOTATION_LENGTH): New macro.
8938         (ADD_ANNOTATION_DATA): New macro.
8939         (ADD_COMPOSITION_DATA): Change argument.  Change callers.  Call
8940         ADD_ANNOTATION_DATA.  Change the format of annotation data.
8941         (ADD_CHARSET_DATA): New macro.
8942         (emacs_mule_char): New argument ID.  Change callers.
8943         (decode_coding_emacs_mule, decode_coding_iso_2022)
8944         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8945         Produce charset annotation data in coding->charbuf.
8946         (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
8947         to charset annotation data in coding->charbuf.
8948         (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
8949         coding->common_flags if the coding system is iso-2022 based and
8950         uses designation.
8951         (produce_composition): Adjust for the new annotation data format.
8952         (produce_charset): New function.
8953         (produce_annotation): Handle charset annotation.
8954         (handle_composition_annotation, handle_charset_annotation): New
8955         functions.
8956         (consume_chars): Handle charset annotation.  Utilize the above two
8957         functions.
8958         (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
8959         buffer, get the deleted text as a string and set
8960         coding->src_object to that string.
8961         (detect_coding, detect_coding_system): Use the new struct
8962         coding_detection_info.
8964         * coding.h (struct coding_detection_info): New structure.
8965         (struct coding_system): Adjust prototype of the member `detector'.
8966         (CODING_ANNOTATE_CHARSET_MASK): New macro.
8968 2008-02-01  Kenichi Handa  <handa@m17n.org>
8970         * insdel.c (insert_from_gap): Fix argument to offset_intervals.
8972 2008-02-01  Dave Love  <fx@gnu.org>
8974         * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
8975         (Fapropos_internal): Don't gcpro apropos_accumulate.  Set result
8976         to new local and nullify apropos_accumulate before returning.
8977         (syms_of_keymap): Staticpro and initialize apropos_accumulate.
8979 2008-02-01  Kenichi Handa  <handa@m17n.org>
8981         * charset.c (Fdefine_charset_internal): Setup charset.fast_map
8982         correctly.
8984 2008-02-01  Dave Love  <fx@gnu.org>
8986         * fns.c (Flanginfo): Call synchronize_system_time_locale.
8988 2008-02-01  Kenichi Handa  <handa@m17n.org>
8990         The following changes are to make character composition happen
8991         automatically on displaying.
8993         * Makefile.in (lisp, shortlisp): Add composite.elc.
8995         * composite.h (Qauto_composed, Vauto_composition_function)
8996         (Qauto_composition_function): Extern them.
8998         * composite.c (Vcomposition_function_table)
8999         (Qcomposition_function_table): Delete variables.
9000         (Qauto_composed, Vauto_composition_function)
9001         (Qauto_composition_function): New variables.
9002         (run_composition_function): Don't call
9003         compose-chars-after-function.
9004         (update_compositions): Clear `auto-composed' text property.
9005         (compose_chars_in_text): Delete this function.
9006         (syms_of_composite): Staticpro Qauto_composed and
9007         Qauto_composition_function.  Declare Vauto_composition_function as
9008         a Lisp variable.
9010         * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
9012         * xdisp.c (it_props): Add an entry for Qauto_composed.
9013         (handle_auto_composed_prop): New function.
9015         * xselect.c (selection_data_to_lisp_data): Don't call
9016         compose_chars_in_text.
9018 2008-02-01  Dave Love  <fx@gnu.org>
9020         * keyboard.c (read_char): Modify checking around use of
9021         Vkeyboard_translate_table.
9023         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9024         and fix C types.
9026 2008-02-01  Kenichi Handa  <handa@m17n.org>
9028         * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
9029         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9030         (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
9031         the case that the last byte is '\r' correctly.
9032         (decode_coding): Flush out the unprocessed data correctly.
9033         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
9035 2008-02-01  Dave Love  <fx@gnu.org>
9037         * xterm.c (XTread_socket): Fix changes for defined keysyms.
9038         Add XK_ISO... case.
9039         (xaw_scroll_callback): Revert last change.
9041 2008-02-01  Kenichi Handa  <handa@m17n.org>
9043         * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
9045 2008-02-01  Kenichi Handa  <handa@m17n.org>
9047         * xfaces.c (Vface_resizing_fonts): New variable.
9048         (struct font_name): New member `resizing_ratio'.
9049         (font_resizing_ratio): New function.
9050         (split_font_name): Set font->resizing_ratio.
9051         (better_font_p): Pay attention to font->resizing_ratio.
9052         (build_scalable_font_name): Likewise.  Don't change POINT_SIZE,
9053         RESX, and RESY fields.
9054         (try_alternative_families): Try scalable fonts if
9055         Vscalable_fonts_allowed is not Qt.
9056         (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
9058 2008-02-01  Dave Love  <fx@gnu.org>
9060         * xterm.c (xaw_scroll_callback): Cast correctly.
9062 2008-02-01  Dave Love  <fx@gnu.org>
9064         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
9065         (lispy_kana_keys): Comment out.
9066         (make_lispy_event) [XK_kana_A]: Comment out.
9068         * xterm.c (xaw_scroll_callback): Cast call_data.
9069         (XTread_socket): Deal with ASCII keysyms.
9070         (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
9072 2008-02-01  Dave Love  <fx@gnu.org>
9074         * xterm.c (Vx_keysym_table): New.
9075         (syms_of_xterm): Initialize it.
9076         (XTread_socket): Use it.
9077         From head: Eliminate incorrect optimization that tried to avoid
9078         decoding the output of X*LookupString.
9079         (x_get_font_repertory): Delete charset declaration.
9081 2008-02-01  Kenichi Handa  <handa@m17n.org>
9083         * coding.c (detect_coding_charset): If only ASCII bytes are found,
9084         return 0.
9085         (Fdefine_coding_system_internal): Setup
9086         CODING_ATTR_ASCII_COMPAT (attrs) correctly.
9088 2008-02-01  Dave Love  <fx@gnu.org>
9090         * coding.c (Fcheck_coding_system): Doc fix.
9092         * editfns.c (Finsert_byte): Return a proper value.
9094 2008-02-01  Kenichi Handa  <handa@m17n.org>
9096         * coding.c (decode_coding): Fix args to translate_chars.  Pay
9097         attention to Vstandard_translation_table_for_decode.
9098         (encode_coding): Fix args to translate_chars.  Pay attention to
9099         Vstandard_translation_table_for_encode.
9101         * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
9102         SINGLE_BYTE_CHAR_P.
9104         * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
9105         not by SINGLE_BYTE_CHAR_P.
9107         * fns.c (concat): Check CH by ASCII_CHAR_P, not by
9108         SINGLE_BYTE_CHAR_P.
9110         * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
9111         SINGLE_BYTE_CHAR_P.
9113         * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
9114         by SINGLE_BYTE_CHAR_P.
9116         * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
9117         SINGLE_BYTE_CHAR_P.
9119 2008-02-01  Dave Love  <fx@gnu.org>
9121         * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
9123 2008-02-01  Dave Love  <fx@gnu.org>
9125         * fns.c (Flanginfo): Fix typo.
9127         * unexelf.c (unexec): Make last change conditional on Irix 6.5.
9129 2008-02-01  Kenichi Handa  <handa@m17n.org>
9131         * coding.c (detect_coding_utf_8, detect_coding_utf_16)
9132         (detect_coding_emacs_mule, detect_coding_iso_2022)
9133         (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
9134         incomplete byte sequence.  Don't update *mask when correctly detected.
9135         (decode_coding_sjis): Fix decoding of katakana-jisx0201.
9136         (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
9137         (detect_coding, detect_coding_system): Adjust for the changes above.
9139 2008-02-01  Kenichi Handa  <handa@m17n.org>
9141         * character.c (char_string): Rename from
9142         char_string_with_unification.  Pay attention to CHAR_MODIFIER_MASK.
9143         (string_char): Rename from string_char.
9145         * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
9146         if C is greater than MAX_3_BYTE_CHAR.
9147         (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
9148         string_char instead of string_char_with_unification.
9150 2008-02-01  Dave Love  <fx@gnu.org>
9152         * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
9154 2008-02-01  Kenichi Handa  <handa@m17n.org>
9156         * keymap.c (push_key_description): Pay attention to force_multibyte.
9158         * regex.c (re_search_2): Fix for the case of unibyte buffer.
9160 2008-02-01  Dave Love  <fx@gnu.org>
9162         * charset.c (define_charset_internal): Rename `supprementary'.
9164         * Makefile.in (lisp, shortlisp): Remove latin-N.
9166 2008-02-01  Dave Love  <fx@gnu.org>
9168         * xfns.c (x_window, x_window): Use use_xim.
9170         * xterm.c (use_xim): Initialize.
9171         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9172         (x_term_init): Maybe set use_xim.
9174         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9176 2008-02-01  Kenichi Handa  <handa@m17n.org>
9178         * search.c (search_buffer): Fix case-fold-search of multibyte
9179         characters.
9180         (boyer_moore): Rename the last argument to char_high_bits.
9182 2008-02-01  Kenichi Handa  <handa@m17n.org>
9184         * xdisp.c (display_string): Fix for the case of zero width glyph.
9186         * xfns.c (x_set_font): Change the error message of the case that
9187         x_new_fontset returns Qt.
9189         * xfaces.c (set_lface_from_font_name): Reject the default fontset.
9190         (Finternal_set_lisp_face_attribute): Use signal_error for the
9191         error of invalid fontset.
9193         * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
9194         fontset, return Qt.
9196 2008-02-01  Dave Love  <fx@gnu.org>
9198         * unexelf.c (unexec): Make .got handling not SGI-specific.
9200         * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
9202         * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
9204         * keyboard.c (read_key_sequence): Fix type error.
9206         * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
9207         type error.
9209         * fontset.c (fontset_add): Return Lisp_Object.
9211 2008-02-01  Dave Love  <fx@gnu.org>
9213         * charset.h (charset_ordered_list_tick): Declare extern.
9215 2008-02-01  Kenichi Handa  <handa@m17n.org>
9217         The following changes (and some of 2008-02-01 changes of mine) are
9218         for handling syntax, category, and case conversion for unibyte
9219         characters by converting them to multibyte on the fly.  With these
9220         changes, we don't have to setup syntax and case tables for unibyte
9221         characters in each language environment.
9223         * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
9224         multibyte if necessary.
9226         * bytecode.c (Fbyte_code): Likewise.
9228         * character.h (LEADING_CODE_LATIN_1_MIN)
9229         (LEADING_CODE_LATIN_1_MAX): New macros.
9230         (unibyte_to_multibyte_table): Extern it.
9231         (unibyte_char_to_multibyte): New macro.
9232         (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
9233         (CHAR_LEADING_CODE): New macro.
9234         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
9236         * character.c (unibyte_to_multibyte_table): New variable.
9237         (unibyte_char_to_multibyte): Move to character.h and define as macro.
9238         (multibyte_char_to_unibyte): If C is an eight-bit character,
9239         convert it to the corresponding byte value.
9241         * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
9242         not 1, singals an error.  Update the elements of
9243         unibyte_to_multibyte_table.
9244         (init_charset_once): Initialize unibyte_to_multibyte_table.
9245         (syms_of_charset): Define the charset `iso-8859-1'.
9247         * cmds.c (internal_self_insert): In a multibyte buffer, insert C
9248         as is without converting it to unibyte.  In a unibyte buffer,
9249         convert C to multibyte before checking the syntax.
9251         * lisp.h (unibyte_char_to_multibyte): Delete extern.
9253         * minibuf.c (Fminibuffer_complete_word): Use the macro
9254         FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
9256         * regex.h (struct re_pattern_buffer): New member target_multibyte.
9258         * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
9259         (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.  If
9260         that is zero, convert an eight-bit char to multibyte.
9261         (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
9262         non-emacs case.
9263         (PATFETCH): Convert an eight-bit char to multibyte.
9264         (HANDLE_UNIBYTE_RANGE): New macro.
9265         (regex_compile): Setup the compiled pattern for multibyte chars
9266         even if the given regex string is unibyte.  Use PATFETCH_RAW
9267         instead of PATFETCH in many places.  To handle `charset'
9268         specification of unibyte, call HANDLE_UNIBYTE_RANGE.  Use bitmap
9269         only for ASCII chars.
9270         (analyse_first) <exactn>: Simplify because the compiled pattern
9271         is multibyte.
9272         <charset_not>: Setup fastmap from bitmap only for ASCII chars.
9273         <charset>: Use CHAR_LEADING_CODE to get leading codes.
9274         <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
9275         (re_compile_fastmap) [emacs]: Call analyse_first with the arg
9276         multibyte always 1.
9277         (re_search_2): In emacs, set the locale variable multibyte to 1,
9278         otherwise to 0.  New local variable target_multibyte.  Check it
9279         to decide the multibyteness of STR1 and STR2.  If
9280         target_multibyte is zero, convert unibyte chars to multibyte
9281         before translating and checking fastmap.
9282         (TARGET_CHAR_AND_LENGTH): New macro.
9283         (re_match_2_internal): In emacs, set the locale variable multibyte
9284         to 1, otherwise to 0.  New local variable target_multibyte.  Check
9285         it to decide the multibyteness of STR1 and STR2.  Use
9286         TARGET_CHAR_AND_LENGTH to fetch a character from D.
9287         <charset, charset_not>: If multibyte is nonzero, check fastmap
9288         only for ASCII chars.  Call bcmp_translate with
9289         target_multibyte, not with multibyte.
9290         <begline>: Declare the local variable C as `unsigned'.
9291         (bcmp_translate): Change the last arg name to target_multibyte.
9293         * search.c (compile_pattern_1): Don't adjust the multibyteness of
9294         the regexp pattern and the matching target.  Set cp->buf.multibyte
9295         to the multibyteness of the regexp pattern.  Set
9296         cp->but.target_multibyte to the multibyteness of the matching target.
9297         (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
9298         FETCH_STRING_CHAR_ADVANCE.
9299         (Freplace_match): Convert unibyte chars to multibyte.
9301         * syntax.c (char_quoted, back_comment, scan_words)
9302         (Fforward_comment, scan_lists, Fbackward_prefix_chars)
9303         (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
9304         unibyte chars to multibyte.
9305         (skip_chars): Delete the arg syntaxp, and move the code for
9306         handling syntaxes to skip_syntaxes.  Change callers.
9307         Fix the case that the multibyteness of STRING and the current
9308         buffer doesn't match.
9309         (skip_syntaxes): New function.
9310         (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
9311         SINGLE_BYTE_CHAR_P.
9313 2008-02-01  Kenichi Handa  <handa@m17n.org>
9315         * xfaces.c (QCfontset): New variable.
9316         (LFACE_FONTSET): New macro.
9317         (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
9318         (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
9319         (Finternal_set_lisp_face_attribute)
9320         (Finternal_get_lisp_face_attribute): Handle QCfontset.
9321         (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
9322         check also LFACE_FONTSET_INDEX.
9323         (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
9324         attrs[LFACE_FONT_INDEX].
9325         (syms_of_xfaces): Intern and staticpro QCfontset.
9327         * dispextern.h (enum lface_attribute_index): New member
9328         LFACE_FONTSET_INDEX.
9330         * fns.c (base64_encode_1): Handle eight-bit chars correctly.
9332 2008-02-01  Kenichi Handa  <handa@m17n.org>
9334         * coding.c (coding_set_destination): Fix coding->destination for
9335         the case converting a region.
9336         (encode_coding_utf_8): Encode eight-bit chars as single byte.
9337         (encode_coding_object): Fix coding->dst_pos and
9338         coding->dst_pos_byte for the case converting a region.
9340         * insdel.c (insert_from_gap): Make it work even if PT != GTP.
9342         * character.h (BYTE8_STRING): New macro.
9344         * fns.c (base64_decode_1): Insert eight-bit chars correctly.
9346 2008-02-01  Kenichi Handa  <handa@m17n.org>
9348         * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
9349         characters by octal form.
9351         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9353         * buffer.h (_fetch_multibyte_char_len): Delete extern.
9354         (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
9355         _fetch_multibyte_char_len.
9356         (FETCH_CHAR_AS_MULTIBYTE): New macro.
9358         * casetab.c (set_canon, set_identity, shuffle): Simplify.
9360         * casefiddle.c (casify_object): Simplify.  Handle the case that
9361         the case conversion change the byte length.
9362         (casify_region): Likewise.
9364         * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
9366         * character.c (_fetch_multibyte_char_len): Delet this variable.
9367         (syms_of_character): Setup Vprintable_chars.
9369         * editfns.c (Fchar_equal): Fix for the unibyte case.
9370         (Finsert_byte): New function.
9371         (syms_of_editfns): Defsubr it.
9373         * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
9374         of direct code 0x3ffff.
9376         * search.c (Freplace_match): Fix for the unibyte case.
9378 2008-02-01  Kenichi Handa  <handa@m17n.org>
9380         * lread.c (safe_to_load_p): Fix the logic.
9382         * syntax.c (scan_words): Don't treat characters belonging to
9383         different scripts as constituting a word.
9385         * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9387         * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
9389         * emacs.c (main): In the case of --unibyte, instead of aborting on
9390         finding non-empty buffer, make it unibyte.
9392 2008-02-01  Kenichi Handa  <handa@m17n.org>
9394         * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
9395         to create a fontset.
9397 2008-02-01  Dave Love  <fx@gnu.org>
9399         * character.c (Funibyte_char_to_multibyte): Doc fix.
9401         * xfns.c [HAVE_STDLIB_H]: Fix last change.
9403 2008-02-01  Kenichi Handa  <handa@m17n.org>
9405         * fontset.c (fontset_add): Make the type `int'.
9406         (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
9408         * character.c (unibyte_char_to_multibyte)
9409         (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
9410         charset_unibyte, not charset_primary.
9412         * charset.h (charset_unibyte): Extern it instead of charset_primary.
9414         * charset.c (charset_unibyte): Rename from charset_primary.
9415         (Funibyte_charset): Rename from Fprimary_charset.
9416         (Fset_unibyte_charset): Rename from Fset_primary_charset.
9417         (syms_of_charset): Adjust for the above changes.
9419         * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9420         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
9421         it->multibyte_p is zero.
9423         * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
9424         Delete extern.
9426 2008-02-01  Kenichi Handa  <handa@m17n.org>
9428         * coding.c (Fdefine_coding_system_internal): Fix category setting
9429         for a coding system of type iso-2022.
9431 2008-02-01  Kenichi Handa  <handa@m17n.org>
9433         * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
9435 2008-02-01  Kenichi Handa  <handa@m17n.org>
9437         * syntax.c (Vnext_word_boundary_function_table): New variable.
9438         (next-word-boundary-function-table): Declare it as a Lisp variable
9439         in syms_of_syntax.
9440         (scan_words): Call functions in Vnext_word_boundary_function_table
9441         if any.
9443         * xterm.c (x_load_font): Initialize fontp->fontset to -1.
9445         * fontset.c (fs_load_font): If fontp->charset is not negative,
9446         return fontp without setting its members.
9448 2008-02-01  Dave Love  <fx@gnu.org>
9450         * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
9452         * m/sparc.h (HAVE_ALLOCA): Delete.
9454         * s/irix6-5.h: Don't include strings.h.
9455         (bcopy, bzero, bcmp): Don't undef.
9457         * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
9459         * s/usg5-4.h (NO_SIOCTL_H): Don't define.
9460         (TIOCSIGSEND): Don't test IRIX6.
9461         (bcopy, bzero, bcmp): Define conditionally.
9463 2008-02-01  Kenichi Handa  <handa@m17n.org>
9465         * buffer.c (Qas, Qmake, Qto): New variables.
9466         (Fset_buffer_multibyte): New optional arg METHOD.  Change caller.
9467         (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
9469         * callproc.c (Fcall_process): Don't call insert_1_both directly if
9470         we are inserting a process output into a multibyte buffer.
9472         * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
9473         multibyte_char_to_unibyte.
9475         * character.c (Funibyte_char_to_multibyte): If C can't be decoded
9476         by the primary charset, make it eight-bit char.
9477         (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
9479         * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
9480         (charset_8_bit__control, charset_8_bit_graphic)
9481         (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
9482         (define_charset_internal): New function.
9483         (syms_of_charset): Call define_charset_internal for pre-defined
9484         charsets.
9486         * charset.h (charset_8_bit): Extern it.
9488         * coding.c (make_conversion_work_buffer): Adjust for the change
9489         of Fset_buffer_multibyte.
9490         (encode_coding_raw_text): Increment p0 in the loop.
9492         * lisp.h (Fset_buffer_multibyte): Adjust prototype.
9494         * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
9495         for the change of Fset_buffer_multibyte.
9497         * fns.c (Fstring_to_multibyte): New function.
9498         (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
9500 2008-02-01  Dave Love  <fx@gnu.org>
9502         * xfns.c (x_put_x_image): Declare args.
9504         * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
9505         (try_font_list): Declare an arg.
9507         * xdisp.c (message2_nolog, set_message): Declare an arg.
9509         * terminfo.c (tparam): Declare an arg.  Use P_ to declare tparm.
9511         * syntax.c (scan_sexps_forward): Declare an arg.
9513         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9514         Declare an arg.
9516         * lisp.h (Fnew_fontset): Declare.
9518         * keymap.c (push_key_description): Call CHARACTERP correctly.
9520         * fontset.c (fontset_add): Declare args.  Call make_number correctly.
9521         (face_for_char): Delete unused vars.
9522         (Fset_fontset_font): Doc fix.  Delete unused vars.
9524         * doc.c (Fsubstitute_command_keys): Delete unused vars.
9526         * composite.c (update_compositions): Declare arg.
9528         * cm.c (calccost, cmgoto): Declare args.
9530         * charset.c: Remove `emacs' conditional.  Doc fixes.
9531         (map_char_table_for_charset): Declare.
9533         * character.c (syms_of_character) <translation-table-vector>: Doc fix.
9535         * ccl.c: Remove `emacs' conditional.
9537 2008-02-01  Kenichi Handa  <handa@m17n.org>
9539         The following changes are to allow specifying multiple font
9540         patterns for a character range (specified by script or charset).
9542         * Makefile.in (abbrev.o): Depend on syntax.h.
9543         (xfaces.o): Depend on charset.h.
9545         * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
9546         SINGLE_BYTE_CHAR_P.
9548         * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
9550         * character.h (Vchar_script_table): Extern it.
9552         * character.c (Vscript_alist): Delete.
9553         (Vchar_script_table, Qchar_script_table): New variable.
9554         (syms_of_character): Declare Vchar_script_table as a lisp variable
9555         and initialize it.
9557         * chartab.c (Fmake_char_table): Doc fix.  If PURPOSE doesn't
9558         have property char-table-extra-slots, make no extra slot.
9560         * dispextern.h (struct face): Delete member `charset'.
9561         (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
9562         SINGLE_BYTE_CHAR_P.
9563         (choose_face_font, lookup_non_ascii_face, font_name_registry):
9564         Add prototypes.
9565         (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
9566         (generate_ascii_font_name): Rename from generate_ascii_font.
9568         * fontset.h (get_font_repertory_func): New prototype.
9569         (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
9570         (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
9572         * fontset.c (Qprepend, Qappend): New variables.
9573         (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
9574         (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
9575         (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
9576         (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
9577         (fontset_ref_and_range, fontset_add, reorder_font_vector)
9578         (load_font_get_repertory): New functions.
9579         (fontset_set): Delete.
9580         (fontset_face): New arg FACE.  Return face ID, not face.
9581         Complete re-write to handle new fontset structure.  Change caller.
9582         (free_face_fontset): Use ASET istead of AREF (X) = Y.
9583         (face_for_char): Don't call lookup_face.
9584         (make_fontset_for_ascii_face): New arg FACE.
9585         (fs_load_font): New arg CHARSET_ID.  Don't check
9586         Vfont_encoding_alist here.
9587         (find_font_encoding): New function.
9588         (list_fontsets): Use STRINGP, not ! NILP.
9589         (accumulate_script_ranges): New function.
9590         (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
9591         re-written to handle new fontset structure.
9592         (Ffontset_font): Return a copy of element.
9593         (syms_of_fontset): Define symbols Qprepend and Qappend.  Fix
9594         docstring of font-encoding-alist.
9596         * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
9597         (Fset_fotset_font): Fix arguments to 5.
9599         * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
9601         * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
9602         Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9603         (highlight_trailing_whitespace): Adjust for the change of
9604         lookup_named_face.
9606         * xfaces.c: Include charset.h.
9607         (load_face_font): Delete argument C.  Change caller.
9608         (generate_ascii_font_name): Rename from generate_ascii_font.
9609         (font_name_registry): New function.
9610         (cache_face): Store ascii faces before non-ascii faces in buckets.
9611         (lookup_face): Delete arguments C and BASE_FACE.  Change caller.
9612         Lookup only ascii faces.
9613         (lookup_non_ascii_face): New function.
9614         (lookup_named_face): Delete argument C.  Change caller.
9615         (lookup_derived_face): Delete argument C.  Change caller.
9616         (try_font_list): New arg PATTERN.  Change caller.  If PATTERN is
9617         a string, just call font_list with it.
9618         (choose_face_font): Delete arguments FACE and C.  New arg
9619         FONT_SPEC.  Change caller.
9620         (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
9621         Change caller.
9622         (realize_non_ascii_face): New function.
9623         (realize_x_face): Call load_face_font here.
9624         (realize_tty_face): Delete argument C.  Change caller.
9625         (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
9626         get a face ID.
9627         (dump_realized_face): Don't print charset of FACE.
9629         * xfns.c (x_set_font): Always call x_new_fontset and
9630         store_frame_parameter.
9631         (Fx_create_frame): Call x_new_fontset, not x_new_font.
9632         (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
9634         * xterm.h (x_get_font_repertory): Extern it.
9636         * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9637         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
9638         it->multibyte_p is zero.
9639         (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9640         (x_new_fontset): If FONTSETNAME doesn't match any existing
9641         fontsets, create a new one.
9642         (x_get_font_repertory): New function.
9644 2008-02-01  Kenichi Handa  <handa@m17n.org>
9646         * coding.c (Ffind_coding_systems_region_internal): Detect an
9647         ASCII only string correctly.
9649         * lread.c (Fload): Don't load with Qload_force_doc_strings t if
9650         version is 0.
9652 2008-02-01  Kenichi Handa  <handa@m17n.org>
9654         * lread.c: Include "coding.h".
9655         (Qget_emacs_mule_file_char, Qload_force_doc_strings)
9656         (load_each_byte, unread_char): New variables.
9657         (readchar_backlog): Delete.
9658         (readchar): Return a character unless load_each_byte is nonzero.
9659         Handle the case that readcharfun is Qget_emacs_mule_file_char or a
9660         cons.  If unread_char is not -1, simply return it.
9661         (unreadchar): Handle the case that readcharfun is
9662         Qget_emacs_mule_file_char or a cons.  Set unread_char if necessary.
9663         (read_multibyte): Delete.
9664         (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
9665         (read_emacs_mule_char): New functions.
9666         (Fload): Even if the file doesn't have the extention ".elc", if
9667         safe_to_load_p returns a positive version number, assume that the
9668         file contains bytecompiled code.  If the version is less than 22,
9669         load the file while decoding multibyte sequences by emacs-mule.
9670         (readevalloop): Don't use readchar_backlog.
9671         (Fread): Likewise.  Pay attention to the case that STREAM is a cons.
9672         (Fread_from_string): Pay attention to the case that STREAM is a cons.
9673         (read_escape): Delete the arg BYTEREP.
9674         (read1): Set load_each_byte to 1 temporarily while handling
9675         #@NUMBER.  Don't call read_multibyte.
9676         (read_vector): Call Fread with a cons.  If readcharfun is
9677         Qget_emacs_mule_file_char, decode the read string by emacs-mule.
9678         (read_list): If doc_reference is 2, make the cdr part string as unibyte.
9679         (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
9680         and Qload_force_doc_strings.
9682 2008-02-01  Kenichi Handa  <handa@m17n.org>
9684         * xdisp.c (face_before_or_after_it_pos): Call
9685         FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9687 2008-02-01  Kenichi Handa  <handa@m17n.org>
9689         * character.h (TRAILING_CODE_P): New macro.
9690         (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
9691         (string_char_with_unification): Fix prototype.
9692         (Vscript_alist): Extern it.
9694         * character.c (Vscript_alist): New variable.
9695         (string_char_with_unification, str_as_unibyte)
9696         (string_escape_byte8): Add `const' to local variables.
9697         (syms_of_character): Declare script-alist as a Lisp variable.
9699         * charset.h (Vcharset_ordered_list): Extern it.
9700         (charset_ordered_list_tick): Extern it.
9701         (EMACS_MULE_LEADING_CODE_PRIVATE_11)
9702         (EMACS_MULE_LEADING_CODE_PRIVATE_12)
9703         (EMACS_MULE_LEADING_CODE_PRIVATE_21)
9704         (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
9705         (Funify_charset): Adjust for the change of Funify_charset.
9707         * charset.c (charset_ordered_list_tick): New variable.
9708         (Fdefine_charset_internal): Increment charset_ordered_list_tick.
9709         (Funify_charset): New optional arg DEUNIFY.  If it is non-nil,
9710         deunify intead of unify a charset.
9711         (string_xstring_p): Add `const' to local variables.
9712         (find_charsets_in_text): Add `const' to arguemnts and local variables.
9713         (encode_char): Adjust for the change of Funify_charset.  Fix
9714         detecting of invalid code.
9715         (Fset_charset_priority): Increment charset_ordered_list_tick.
9716         (Fmap_charset_chars): Fix handling of default value for FROM_CODE
9717         and TO_CODE.
9719         * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
9720         (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
9721         Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
9722         (decode_coding_ccl, consume_chars)
9723         (Ffind_coding_systems_region_internal)
9724         (Fcheck_coding_systems_region): Add `const' to local variables.
9726         * print.c (print_object): Use octal form for printing the
9727         contents of a bool vector.
9729 2008-02-01  Dave Love  <fx@gnu.org>
9731         * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
9732         <version == 20>: Refuse to load.
9734 2008-02-01  Dave Love  <fx@gnu.org>
9736         * fns.c: Move coding.h.
9737         (Qcodeset, Qdays, Qmonths): New.
9738         (concat): Use CHARACTERP instead of INTERGERP.
9739         (Flocale_codeset): Delete.
9740         (Flanginfo): New function.
9741         (syms_of_fns): Change accordingly.
9743         * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
9745 2008-02-01  Dave Love  <fx@gnu.org>
9747         * casetab.c (init_casetab_once, init_casetab_once): Fix
9748         CHAR_TABLE_SET call.
9750         * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
9752         * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
9754         * charset.c (Fmap_charset_chars): Check args.  Convert Lisp types.
9755         (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
9756         (Fset_charset_priority, syms_of_charset): Convert Lisp types.
9758         * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
9760         * coding.c (ENCODE_DESIGNATION, decode_eol)
9761         (make_conversion_work_buffer, code_conversion_restore)
9762         (Fdefine_coding_system_internal): Convert Lisp types.
9763         (code_conversion_restore): Use EQ, not ==.
9764         (Fencode_coding_string): Fix code_convert_string call.
9766         * coding.h (code_convert_region): Fix prototype.
9768         * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
9770         * fontset.c (fontset_ref, fontset_set, fs_load_font)
9771         (Ffontset_info): Convert Lisp types.
9773         * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
9775         * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
9777         * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
9779         * chartab.c: Include "...h", not <...h> in some cases.
9781         * callproc.c (Fcall_process): Remove unused variables.
9783 2008-02-01  Dave Love  <fx@gnu.org>
9785         * coding.c (Fset_coding_system_priority): Allow null arg list.
9787 2008-02-01  Dave Love  <fx@gnu.org>
9789         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9790         (Fself_insert_and_exit): Use CHARACTERP.
9792         * callproc.c (Fcall_process): Remove unused vars.
9794         * xterm.c (XTread_socket): Add extra dead keysyms.
9796         * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
9798         * dispextern.h: Remove prototypes for redraw_frame,
9799         redraw_garbaged_frames.
9801         * cmds.c (Fself_insert_command): Use CHARACTERP.
9803         * chartab.c (make_sub_char_table): Remove unused var.
9804         (Fset_char_table_default, Fmap_char_table): Doc fix.
9806         * keymap.c (access_keymap): Remove generic char code.
9807         (push_key_description): Use CHARACTERP.
9809 2008-02-01  Dave Love  <fx@gnu.org>
9811         * charset.c: Doc fixes.
9812         (Funify_charset): Extra checking.
9814 2008-02-01  Dave Love  <fx@gnu.org>
9816         * lread.c: Remove some unused variables.
9817         (safe_to_load_p): If safe, return the magic number version byte.
9818         (Fload): Maybe use load-with-code-conversion.
9820 2008-02-01  Kenichi Handa  <handa@m17n.org>
9822         * category.c (Fmodify_category_entry): Don't modify the contents
9823         of category_set for characters out of the range.  Avoid
9824         unnecessary modification.
9826         * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
9827         Vchar_unify_table.  The default value of the table is now nil.
9829         * character.c (syms_of_character): Setup Vchar_width_table for
9830         eight-bit-control and raw-byte chars.
9832         * charset.h (enum define_charset_arg_index): Delete
9833         charset_arg_parents and add charset_arg_subset and
9834         charset_arg_superset.
9835         (enum charset_attr_index): Delete charset_parents and add
9836         charset_subset and charset_superset.
9837         (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
9838         CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
9839         (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
9840         (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
9841         (CHARSET_SUPERSET): New macros.
9842         (charset_work): Extern it.
9843         (ENCODE_CHAR): Use charset_work.
9844         (CHAR_CHARSET_P): Adjust for the change of encoder format.
9845         (map_charset_chars): Extern it.
9847         * charset.c (load_charset_map): Set the default value of encoder
9848         and deunifier char-tables to nil.
9849         (map_charset_chars): Change argument.  Change callers.  Use
9850         map_char_table_for_charset instead of map_char_table.
9851         (Fmap_charset_chars): New optional args from_code and to_code.
9852         (Fdefine_charset_internal): Adjust for the change of
9853         `define-charset' (:parents -> :subset or :superset).
9854         (charset_work): New variable.
9855         (encode_char, syms_of_charset): Adjust for the change of
9856         Fdefine_charset_internal.
9857         (Ffind_charset_string): Setup the vector `charsets' correctly.
9859         * chartab.c (sub_char_table_ref_and_range): New arg default.  Fix
9860         the previous change.
9861         (char_table_ref_and_range): Adjust for the above change.
9862         (map_sub_char_table_for_charset): New function.
9863         (map_char_table_for_charset): New function.
9865         * keymap.c (describe_vector): Handle a char-table directly here.
9866         (describe_char_table): Delete.
9868         * lisp.h (map_charset_chars): Delete.
9870 2008-02-01  Dave Love  <fx@gnu.org>
9872         * fns.c (count_combining): Comment out (unused).
9873         (Flocale_codeset): New.
9874         (syms_of_fns): Defsubr it.
9876         * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
9877         (size_t): Remove.
9879 2008-02-01  Dave Love  <fx@gnu.org>
9881         * Makefile.in (chartab.o): Depend on charset.h.
9883 2008-02-01  Kenichi Handa  <handa@m17n.org>
9885         * character.c (syms_of_character): Set the default value of
9886         Vprintable_chars to Qnil.
9888 2008-02-01  Dave Love  <fx@gnu.org>
9890         * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
9892 2008-02-01  Kenichi Handa  <handa@m17n.org>
9894         * charset.c (load_charset_map): Handle the case that from < to
9895         correctly.
9897         * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
9898         (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
9899         Pay attention to raw-8-bit chars.
9901 2008-02-01  Kenichi Handa  <handa@m17n.org>
9903         * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
9904         It is not bytecompiled now.
9906         * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
9907         (charset_jisx0208): New variables.
9908         (Fdefine_charset_internal): Setup them if appropriate.
9909         (init_charset_once): Initialize them to -1.
9911         * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
9912         (charset_jisx0208): Extern them.
9914         * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
9915         (CODING_ISO_FLAG_USE_OLDJIS): New macro.
9916         (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
9917         (setup_iso_safe_charsets): Fix arguments to Fassq.
9918         (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
9919         (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
9920         CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
9921         (encode_coding_iso_2022): Change the 1st arg to
9922         ENCODE_ISO_CHARACTER to a variable.
9924 2008-02-01  Kenichi Handa  <handa@m17n.org>
9926         * charset.h (enum define_charset_arg_index): New enums
9927         charset_arg_min_code and charset_arg_max_code.
9928         (struct charset): New member char_index_offset.
9930         * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
9931         Take charset->char_index_offset into account.
9932         (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
9933         args[charset_arg_max_code].  Setup charset.char_index_offset.
9934         (syms_of_charset): Fix args to Fdefine_charset_internal.
9936 2008-02-01  Dave Love  <fx@gnu.org>
9938         * coding.c (decode_coding_utf_8): Reject overlong sequences.
9940 2008-02-01  Dave Love  <fx@gnu.org>
9942         * coding.c: Doc fixes.
9943         (Fcoding_system_aliases): Fix return value.
9944         (Qmac): Remove (duplicated) definition.
9946 2008-02-01  Dave Love  <fx@gnu.org>
9948         * charset.c (Fcharset_priority_list, Fset_charset_priority): New
9949         functions.
9951         * character.c (Fstring): Doc fix.
9953         * charset.c (Fdefine_charset_alias): Update Vcharset_list.
9955         * fontset.c (Ffontset_info): Doc fix.  Return charset names, not
9956         ids.
9957         (font-encoding-alist): Doc fix.
9959 2008-02-01  Dave Love  <fx@gnu.org>
9961         * term.c (costs_set): Declare static, non-initialized for pcc.
9962         (encode_terminal_code): Remove unused var.
9964         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9965         for K&R.
9967         * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
9969         * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
9970         (suffixes): Move out of make_subsidiaries for K&R.
9972         * charset.c (map_charset_chars): Fix c_function declaration for K&R.
9974         * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
9976 2008-02-01  Dave Love  <fx@gnu.org>
9978         * data.c (Fchar_or_string_p): Doc fix.  Use CHARACTERP.
9980         * category.c (Fmodify_category_entry): Doc fix.  Remove unused vars.
9982 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
9984         * charset.c (Fdefine_charset_internal): Fix argument to bzero.
9986         * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
9988 2008-02-01  Kenichi Handa  <handa@m17n.org>
9990         * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
9991         vietnamese.elc to vietnamese.el.  They are not bytecompiled now.
9993 2008-02-01  Kenichi Handa  <handa@m17n.org>
9995         * coding.c (decode_coding_charset): Adjust for the change of
9996         Fdefine_coding_system_internal.
9997         (Fdefine_coding_system_internal): For a coding system of
9998         `charset' type, store a list of charset IDs in
9999         `charset_attr_charset_valids' element of coding attributes.
10001 2008-02-01  Kenichi Handa  <handa@m17n.org>
10003         * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
10004         (emacs_mule_char): New arg src.  Delete arg `composition'.  Change
10005         caller.  Handle 2-byte and 3-byte charsets correctly.
10006         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
10007         DECODE_EMACS_MULE_COMPOSITION_RULE.  Change caller.
10008         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
10009         (DECODE_EMACS_MULE_21_COMPOSITION): Call
10010         DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
10011         sequence.
10012         (decode_coding_emacs_mule): Handle composition correctly.  Rewind
10013         `src' and `consumed_chars' correctly before calling emacs_mule_char.
10014         (DECODE_COMPOSITION_START): Correctly handle the case of altchar
10015         and alt&rule composition.
10016         (decode_coding_iso_2022): Handle composition correctly.
10017         (init_coding_once): Setup emacs_mule_bytes for private charsets.
10019         * charset.c (Fdefine_charset_internal): Fix bug for the case of
10020         re-defining a charset.  If the charset has :emacs-mule-id, setup
10021         emacs_mule_bytes.
10022         (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
10024 2008-02-01  Kenichi Handa  <handa@m17n.org>
10026         * coding.c (encode_coding_iso_2022, encode_coding_sjis)
10027         (encode_coding_big5, encode_coding_charset): If coding requires safe
10028         encoding, produce a character specified by
10029         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
10031 2008-02-01  Dave Love  <fx@gnu.org>
10033         * xterm.c (XSetIMValues): Declare.
10035         * process.c: Conditionally include sys/wait.h, pty.h.
10037         * print.c (print_object): Fix print format for 64-bit systems.
10039         * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
10041         * buffer.c (emacs_strerror): Declare.
10043         * fontset.c (Fclear_face_cache): Declare.
10044         (accumulate_font_info): Comment-out (unused).
10045         (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
10046         variables.
10048         * character.h (string_escape_byte8): Declare.
10050         * charset.c (load_charset_map, load_charset_map_from_file): Remove
10051         unused vars.
10052         (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
10053         (Fmap_charset_chars): Doc fix.
10055         * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
10056         (Fset_coding_system_priority, Fset_coding_system_priority)
10057         (Fdefine_coding_system_internal): Doc fix.
10059 2008-02-01  Dave Love  <fx@gnu.org>
10061         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
10063 2008-02-01  Kenichi Handa  <handa@m17n.org>
10065         * character.c (string_escape_byte8): Make multibyte string with
10066         correct size.
10068         * charset.c (Fmake_char): Delete unnecessary code.
10070 2008-02-01  Kenichi Handa  <handa@m17n.org>
10072         * xfns.c (x_encode_text): Allocate coding.destination here, and
10073         call encode_coding_object with dst_object Qnil.
10075         * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
10076         multibyte form correctly.
10078         * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
10079         against Vfont_encoding_alist.
10081         * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
10082         handling of charset list.
10083         (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
10084         (decode_coding_object): Move point to coding->dst_pos before
10085         calling post-read-conversion function.
10086         (encode_coding_object): Give correct arguments to
10087         pre-write-conversion.  Ignore the return value of
10088         pre-write-conversion function.  Pay attention to the case that
10089         pre-write-conversion changes the current buffer.  If dst_object is
10090         Qt, even if coding->src_bytes is zero, allocate at least one byte
10091         to coding->destination.
10093         * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
10095         * charset.c (Fmake_char): Make it more backward compatible.
10096         (Fmap_charset_chars): Fix docstring.
10098 2008-02-01  Dave Love  <fx@gnu.org>
10100         * coding.c: Doc fixes.
10101         (Fdefine_coding_system_alias): Use names, not symbols, in
10102         coding-system-alist.
10104 2008-02-01  Kenichi Handa  <handa@m17n.org>
10106         * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
10107         of calling free_realized_face.
10109 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
10111         * charset.c (read_hex): Don't treat SPC as a comment starter.
10112         (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
10113         (Fdecode_char): Fix typo.
10115 2008-02-01  Kenichi Handa  <handa@m17n.org>
10117         * charset.h (struct charset): New member `code_space_mask'.
10119         * coding.c (coding_set_source): Delete the local variable beg_byte.
10120         (encode_coding_charset, Fdefine_coding_system_internal):
10121         Delete the local variable charset.
10122         (Fdefine_coding_system_internal): Setup
10123         attrs[coding_attr_charset_valids] correctly.
10125         * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
10126         member to check if CODE is valid or not.
10127         (Fdefine_charset_internal): Initialize `code_space_mask' member.
10128         (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
10129         is within the range of charset->min_code and carset->max_code.
10131 2008-02-01  Dave Love  <fx@gnu.org>
10133         * syntax.h (syntax_temp) [!__GNUC__]: Declare.
10135         * dispextern.h (generate_ascii_font): Fix return type.
10137         * xfaces.c (generate_ascii_font): Fix arg declaration.
10139         * coding.c (coding_inherit_eol_type)
10140         (Fset_terminal_coding_system_internal)
10141         (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
10143 2008-02-01  Kenichi Handa  <handa@m17n.org>
10145         * coding.c (decode_coding_charset, encode_coding_charset): Handle
10146         multiple charsets correctly.
10148 2008-02-01  Kenichi Handa  <handa@m17n.org>
10150         * search.c (boyer_moore): Fix handling of mulitbyte character
10151         translation.
10153         * xdisp.c (display_mode_element): When the variable `elt' is
10154         changed, update `this' and `lisp_string'.
10156 2008-02-01  Kenichi Handa  <handa@m17n.org>
10158         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
10160         * callproc.c (Fcall_process): Be sure to give the current buffer
10161         to decode_coding_c_string.  Update PT and PT_BYTE after the insertion.
10163         * charset.c (struct charset_map_entries): New struct.
10164         (load_charset_map): Rename from parse_charset_map.  New args
10165         entries and n_entries.  Change caller.
10166         (load_charset_map_from_file): Rename from load_charset_map.
10167         Change caller.  New arg control_flag.  Call load_charset_map at
10168         the tail.
10169         (load_charset_map_from_vector): New function.
10170         (Fdefine_charset_internal): Setup charset.compact_codes_p.
10171         (encode_char): If the charset is compact, change a character index
10172         to a code point.
10174         * coding.c (coding_alloc_by_making_gap): Check the case that the
10175         source and destination are the same correctly.
10176         (decode_coding_raw_text): Set coding->consumed_char and
10177         coding->consumed to 0.
10178         (produce_chars): If coding->chars_at_source is nonzero, update
10179         coding->consumed_char and coding->consumed before calling
10180         alloc_destination.
10181         (Fdefine_coding_system_alias): Register ALIAS in
10182         Vcoding_system_alist.
10183         (syms_of_coding): Define `no-convesion' coding system at the tail.
10185         * fileio.c (Finsert_file_contents): Set coding_system instead of
10186         val.  If the current buffer is multibyte, always call
10187         decode_coding_gap.
10189         * xfaces.c (try_font_list): Give higher priority to fontset's
10190         family than face's family.
10192 2008-02-01  Kenichi Handa  <handa@m17n.org>
10194         * callproc.c (Fcall_process): Be sure to give the current buffer
10195         to decode_coding_c_string.
10197         * xfaces.c (try_font_list): Give a family specified in a fontset
10198         higher priority than a family specified in a face.
10200 2008-02-01  Kenichi Handa  <handa@m17n.org>
10202         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
10203         Fix arguments to insert_from_buffer.
10205         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
10207 2008-02-01  Kenichi Handa  <handa@m17n.org>
10209         * coding.c (produce_chars): Set the variable `multibytep' correctly.
10210         (decode_coding_gap): Set coding->dst_multibyte correctly.
10212 2008-02-01  Kenichi Handa  <handa@m17n.org>
10214         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
10215         (decode_coding_utf_16): Fix converting high and low bytes to code-point.
10216         (encode_coding_utf_16): Substitute coding->default_char for
10217         non-Unicode characters.
10218         (decode_coding): Don't call record_insert here.
10219         (setup_coding_system): Initialize `surrogate' of
10220         coding->spec.utf_16 to 0.
10221         (EMIT_ONE_BYTE): Fix for multibyte case.
10223         * insdel.c (insert_from_gap): Call record_insert.
10225 2008-02-01  Kenichi Handa  <handa@m17n.org>
10227         * casefiddle.c (casify_region): Fix multibyte case.
10229         * character.c (c_string_width): Add return type `int'.
10230         (char_string_with_unification): Delete arg ADVANCED.
10232         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
10233         (CHAR_STRING): Adjust for the change of char_string_with_unification.
10234         (CHAR_STRING_ADVANCE): Make it do-while statement.
10236         * chartab.c (sub_char_table_set_range): Optimize for the case
10237         DEPTH == 3.  Add workaround code for a GCC optimization bug.
10239         * charset.c (parse_charset_map): Remove an unused variable.
10241         * coding.c: Delete unused variables.
10243         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
10244         earlier.  If inserted is zero and the coding system doesn't
10245         require flushing, don't call decode_coding_gap.
10247         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
10249 2008-02-01  Kenichi Handa  <handa@m17n.org>
10251         The following changes are for using Unicode as an internal
10252         character model, and use UTF-8 format for buffer/string
10253         representation.
10255         * .gdbinit (xchartable): Adjust for the change of char table structure.
10256         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
10258         * Makefile.in (obj): Add character.o and chartab.o.
10259         (lisp, shortlisp): Remove utf-8.elc.
10260         (*.o): For many files, change dependency on charset.h to
10261         character.h, and add dependency on character.h.
10262         (character.o, chartab.o): New targets.
10264         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
10265         * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
10266         * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
10267         of "charset.h".
10269         * dired.c, filelock.c: Include "character.h".
10271         * alloc.c: Include "character.h" instead of "charset.h".
10272         (Fmake_char_table, make_sub_char_table): Move to chartab.c.
10273         (syms_of_alloc): Remove defsubr for Smake_char_table.
10275         * buffer.c: Include "character.h" instead of "charset.h", don't
10276         include "coding.h".
10277         (Fset_buffer_multibyte): Adjust for UTF-8.
10279         * buffer.h: EXFUN Fbuffer_live_p.
10281         * callproc.c: Include "character.h" instead of "charset.h".
10282         (Fcall_process): Big change for the new code-conversion APIs.
10284         * casetab.c: Include "character.h" instead of "charset.h".
10285         (set_canon, set_identity, shuffle): Adjust for the new
10286         map_char_table spec.
10287         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
10288         accessing the char table structure.
10290         * chartab.c: New file that implements char table.
10292         * category.c: Include "character.h".
10293         (copy_category_entry): New function.
10294         (copy_category_table): Call map_char_table and copy_category_entry.
10295         (Fmake_category_table): Initialize all top-vel slots.
10296         (char_category_set): New function.
10297         (modify_lower_category_set): Delete.
10298         (Fmodify_category_entry): Call char_table_ref_and_range.
10300         * category.h (CATEGORY_SET): Just call char_category_set.
10302         * ccl.c: Include "character.h".
10303         (Qccl, Qcclp): New variables.
10304         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
10305         it's less than 256.
10306         (CCL_WRITE_MULTIBYTE_CHAR): Delete.
10307         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
10308         and DST type.
10309         (ccl_driver): Change types of argument, adjust code accordingly.
10310         (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
10311         ccl_driver.
10312         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
10314         * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
10315         New members src_multibyte, dst_multibyte, consumed, and produced.
10316         (struct ccl_spec): Delete members decoder and encoder.  New member ccl.
10317         (CODING_SPEC_CCL_PROGRAM): New macro.
10318         (ccl_driver): Update prototype.
10319         (Qccl, Qcclp, Fccl_program_p): Extern them.
10320         (CHECK_CCL_PROGRAM): New macro.
10322         * character.c, character.h, chartab.c: New files.
10324         * charset.c: Mostly re-written.  Move character and multibyte sequence
10325         handling codes to character.c.
10327         * charset.h: Mostly re-written.  Move character and multibyte sequence
10328         handling codes to character.h.
10330         * coding.c, coding.h: Mostly re-written.
10332         * composite.c: Include "character.h" instead of "charset.h".
10333         (CHAR_WIDTH): Move to character.h.
10334         (HASH_KEY, HASH_VALUE): Delete.
10336         * composite.h (enum composition_method): Change order of enumeration
10337         symbols.
10339         * data.c: Include "character.h" instead of "charset.h".
10340         (Faref): Call CHAR_TABLE_REF for a char table.
10341         (Faset): Call CHAR_TABLE_SET for a char table.
10343         * dispextern.h (free_realized_face, check_face_attribytes)
10344         (generate_ascii_font): Extern them.
10345         (free_realized_multibyte_face): Delete extern.
10347         * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
10348         table structure.
10350         * editfns.c: Include "character.h" instead of "charset.h".
10351         (Fchar_to_string): Always call CHAR_STRING.
10353         * emacs.c (main): Call init_charset_once, init_charset,
10354         syms_of_chartab, and syms_of_character.
10356         * fileio.c: Include "character.h" instead of "charset.h".
10357         (Finsert_file_contents): Big change for the new code-conversion API.
10358         (choose_write_coding_system, Fwrite_region): Likewise.
10359         (build_annotations_2): Delete.
10360         (e_write): Big change for the new code-conversion API.
10362         * fns.c: Include "character.h" instead of "charset.h".
10363         (copy_sub_char_table): Move to chartab.c.
10364         (Fcopy_sequence): Call copy_char_table for a char table.
10365         (concat): Delete codes calling count_multibyte.
10366         (string_char_to_byte, string_byte_to_char): Adjust for the new
10367         multibyte form.
10368         (internal_equal): Adjust for the change of char table structure.
10369         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
10370         (Fchar_table_extra_slot, Fset_char_table_extra_slot)
10371         (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
10372         (char_table_translate, optimize_sub_char_table)
10373         (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
10374         chartab.c.
10375         (char_table_ref_and_index): Delete.
10376         (HASH_KEY, HASH_VALUE): Move to lisp.h.
10377         (Fmd5): Call preferred_coding_system instead of accessing
10378         Vcoding_category_list.  Adjust for the new code-conversion API.
10379         (syms_of_fns): Move defsubr for char table related functions to
10380         chartab.c.
10382         * fontset.c: Mostly re-written.
10384         * fontset.h (struct font_info): Change type of the member encoding_type.
10385         (enum FONT_SPEC_INDEX): New enum.
10386         (fontset_font_pattern, fs_load_font): Update prototype.
10387         (FS_LOAD_FONT): Adjust for the change of fs_load_font.
10389         * indent.c: Include "character.h" instead of "charset.h".
10390         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
10392         * insdel.c: Include "character.h" instead of "charset.h".
10393         (copy_text): Don't refer to Vnonascii_translation_table.
10394         (insert_from_gap): New function.
10396         * keyboard.c: Include "character.h" instead of "charset.h".
10397         (command_loop_1): Never call direct_output_forward_char before
10398         a non-ASCII character.
10399         (read_char): If Vkeyboard_translate_table is a char table, always
10400         translate a character.
10402         * keymap.c: Include "character.h".
10403         (store_in_keymap): Handle the case that IDX is a cons.
10404         (Fdefine_key): Handle the case that KEY is a cons and the car part
10405         is also a cons (range).
10406         (push_key_description): Adjust for the new character code.
10407         (describe_vector): Call describe_char_table for a char table.
10408         (describe_char_table): New function.
10410         * keymap.h (describe_char_table): Extern it.
10412         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
10413         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
10414         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
10415         (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
10416         Delete.
10417         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
10418         structure.
10419         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
10420         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
10421         (CHARTAB_SIZE_BITS_3): New macros.
10422         (chartab_size): Extern it.
10423         (struct Lisp_Char_Table): Re-design.
10424         (struct Lisp_Sub_Char_Table): New structure.
10425         (HASH_KEY, HASH_VALUE): Move from fns.c.
10426         (CHARACTERBITS): Define as 22.
10427         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
10428         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
10429         (GC_SUB_CHAR_TABLE_P): New macro.
10430         (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
10431         (code_convert_string_norecord): Deleted extern.
10432         (init_character_once, syms_of_character, init_charset)
10433         (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
10435         * lread.c: Include "character.h".
10436         (read_multibyte): New arg NBYTES.
10437         (read_escape): Change the meaning of returned *BYTEREP.
10438         (to_multibyte): Delete.
10439         (read1): Adjust the handling of char table and string.
10441         * print.c: Include "character.h" instead of "charset.h".
10442         (print_string): Convert 8-bit raw bytes to octal form by
10443         string_escape_byte8.
10444         (print_object): Adjust for the new multibyte form.  Print 8-bit
10445         raw bytes always in octal form.  Handle sub char table correctly.
10447         * process.c: Include "character.h" instead of "charset.h".
10448         (read_process_output, send_process): Adjust for the new
10449         code-conversion API.
10451         * puresize.h (BASE_PURESIZE): Increase.
10453         * regex.c: Include "character.h" instead of "charset.h".
10454         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
10455         (regex_compile): Accept a range whose starting and ending
10456         character have different leading bytes.
10457         (analyse_first): Adjust for the above change.
10459         * search.c: Include "character.h" instead of "charset.h".
10460         (search_buffer, boyer_moore): Adjust for the new multibyte form.
10461         (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
10463         * syntax.c: Include "character.h" instead of "charset.h".
10464         (syntax_parent_lookup): Delete.
10465         (Fmodify_syntax_entry): Accept a cons as CHAR.
10466         (skip_chars): Adjust for the new multibyte form.
10467         (init_syntax_once): Call char_table_set_range instead of directly
10468         accessing the structure of a char table.
10470         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
10471         (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
10472         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
10473         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
10475         * term.c: Include "buffer.h" and "character.h".
10476         (encode_terminal_code, write_glyphs): Adjust for the new
10477         code-conversion API.
10478         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
10480         * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
10482         * xdisp.c: Include "character.h".
10483         (get_next_display_element): Adjust for the new multibyte form.
10484         (disp_char_vector): Adjust for the new char table structure.
10485         (decode_mode_spec_coding): Adjust for the new structure of
10486         coding system.
10487         (decode_mode_spec): Adjust for the new code-conversion API.
10489         * xfaces.c: Include "character.h" instead of "charset.h".
10490         (load_face_font): Adjust for the change of choose_face_font and
10491         FS_LOAD_FONT.
10492         (generate_ascii_font): New function.
10493         (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
10494         (set_font_frame_param): Adjust for the change of choose_face_font.
10495         (free_realized_face): Make it public.
10496         (free_realized_faces_for_fontset): Rename from
10497         free_realized_multibyte_face.  Free also faces realized for ASCII.
10498         (choose_face_font): Change arguments.  Adjust for the change of
10499         fontset_font_pattern and FS_LOAD_FONT.
10501         * xfns.c: Include "character.h".
10502         (x_encode_text): Adjust for the new code-conversion API.
10504         * xselect.c: Don't include "charset.h".
10505         (selection_data_to_lisp_data): Adjust for the new code conversion API.
10507         * xterm.c: Include "character.h".
10508         (x_encode_char): New argument CHARSET.  Change caller.
10509         (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
10510         Call ENCODE_CHAR instead of SPLIT_CHAR.
10511         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
10512         CHAR_WIDTH instead of CHARSET_WIDTH.
10513         (XTread_socket): Adjust for the new code-conversion API.
10514         (x_new_font): Adjust for the change of FS_LOAD_FONT.
10515         (x_load_font): Adjust for the change of struct font.
10517 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
10519         * xfaces.c (face_at_buffer_position): Remove unused vars.
10521 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10523         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
10524         Fix overflow checking.
10526 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10528         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
10529         Cancel previous change.
10531 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
10533         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
10534         ccl->eight_bit_control.  Fix check for buffer overflow.
10535         (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
10536         (ccl_driver): Initialize extra_bytes to 0.
10538 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
10540         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
10541         return it ORed with ctrl_modifier.
10543 2008-01-29  Miles Bader  <miles@gnu.org>
10545         * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
10547 2008-01-28  Jason Rumney  <jasonr@gnu.org>
10549         * w32.c (stat): Don't double check for networked drive.
10551 2008-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
10553         * window.c (run_window_configuration_change_hook): New function.
10554         Code extracted from set_window_buffer.  Set the selected frame.
10555         (set_window_buffer): Use it.
10556         * window.h (run_window_configuration_change_hook): Declare.
10557         * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
10559         * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
10561 2008-01-27  Dan Nicolaescu  <dann@ics.uci.edu>
10563         * Makefile.in: Remove references to unused macros.
10565 2008-01-26  Eli Zaretskii  <eliz@gnu.org>
10567         * w32.c (g_b_init_get_sid_sub_authority)
10568         (g_b_init_get_sid_sub_authority_count): New static variables.
10569         (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
10570         (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
10571         (init_user_info): Use them to retrieve uid and gid.
10572         Use 500/513, the Windows defaults, as Administrator's uid/gid.
10573         (fstat): Use pw_uid and pw_gid from the_passwd structure for
10574         st_uid and st_gid of the file.
10576 2008-01-26  Jason Rumney  <jasonr@gnu.org>
10578         * w32.c (logon_network_drive): New function.
10579         (stat): Use it.
10581 2008-01-26  Chong Yidong  <cyd@stupidchicken.com>
10583         * xdisp.c (pos_visible_p): Handle the case where charpos falls on
10584         invisible text covered with an ellipsis.
10586 2008-01-25  Richard Stallman  <rms@gnu.org>
10588         * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
10589         jump back to beginning.  Move some other initializations after that.
10590         (Qwindow_text_change_functions, Vwindow_text_change_functions):
10591         New variables.
10592         (syms_of_xdisp): Init them.
10594         * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
10596         * buffer.c (reset_buffer_local_variables):
10597         Implement `permanent-local-hook'.
10598         (Qpermanent_local_hook): New variable.
10599         (syms_of_buffer): Init and staticpro it.
10601 2008-01-25  Michael Albinus  <michael.albinus@gmx.de>
10603         * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
10605 2008-01-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
10607         * fns.c (Fclrhash): Return TABLE.
10609 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10611         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
10612         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
10613         is set even without positional changes.
10614         (x_scroll_bar_clear): Set bar->redraw_needed_p.
10616         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
10618 2008-01-23  Jason Rumney  <jasonr@gnu.org>
10620         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
10622         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
10623         the unicode range available in MULE by locale-coding-system.
10624         Improve dbcs lead byte detection.  Set event timestamp and modifiers
10625         earlier.
10627 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10629         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
10630         [MAC_OSX] (init_mac_osx_environment): Initialize it.
10631         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
10632         when used on child processes.
10634 2008-01-21  Michael Albinus  <michael.albinus@gmx.de>
10636         * dbusbind.c (Fdbus_method_return_internal): Rename from
10637         Fdbus_method_return.
10638         (Fdbus_unregister_object): Move to dbus.el.
10639         (Fdbus_call_method, Fdbus_method_return_internal)
10640         (Fdbus_send_signal): Improve debug messages.
10642 2008-01-20  Martin Rudalics  <rudalics@gmx.at>
10644         * undo.c (undo_inhibit_record_point): New variable.
10645         (syms_of_undo): Initialize it.
10646         (record_point): Don't record point when undo_inhibit_record_point
10647         is set.
10649 2008-01-19  Stefan Monnier  <monnier@iro.umontreal.ca>
10651         * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
10653         * xdisp.c (Qauto_hscroll_mode): New var.
10654         (syms_of_xdisp): Initialize it.
10655         (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
10656         window's buffer.
10657         (hscroll_windows): Don't check automatic_hscrolling_p here.
10659         * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
10660         vscroll if we're setting window-buffer to the value it already has.
10662 2008-01-18  Dan Nicolaescu  <dann@ics.uci.edu>
10664         * m/intel386.h: Remove references to XENIX.
10666 2008-01-17  Andreas Schwab  <schwab@suse.de>
10668         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
10669         instead of HAVE_X86_64_LIB64_DIR.
10670         * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
10672 2008-01-17  Glenn Morris  <rgm@gnu.org>
10674         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
10675         to HAVE_X86_64_LIB64_DIR.
10677 2008-01-16  Dan Nicolaescu  <dann@ics.uci.edu>
10679         * s/irix3-3.h:
10680         * s/irix4-0.h:
10681         * s/386-ix.h:
10682         * s/domain.h:
10683         * s/hpux9-x11r4.h:
10684         * s/hpux9shxr4.h: Remove files for systems no longer supported.
10686         * sysdep.c: Remove code containing references to symbols defined
10687         by unsupported systems.
10689 2008-01-16  Glenn Morris  <rgm@gnu.org>
10691         * coding.c (select-safe-coding-system-function): Doc fix.
10693 2008-01-15  Glenn Morris  <rgm@gnu.org>
10695         * config.in: Revert 2008-01-13 change: this is a generated file.
10697 2008-01-13  Tom Tromey  <tromey@redhat.com>
10699         * lisp.h: Fix typo.
10701 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
10703         * m/sequent-ptx.h:
10704         * m/sequent.h:
10705         * s/ptx.h:
10706         * s/ptx4-2.h:
10707         * s/ptx4.h: Remove files for systems no longer supported.
10709         * callproc.c (Fcall_process): Fix previous change.
10711 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
10713         * unexsunos4.c: Remove file, system not supported anymore.
10715         * m/mips.h:
10716         * m/intel386.h:
10717         * callproc.c:
10718         * config.in:
10719         * ecrt0.c:
10720         * emacs.c:
10721         * fileio.c:
10722         * frame.c:
10723         * getpagesize.h:
10724         * keyboard.c:
10725         * lread.c:
10726         * process.c:
10727         * puresize.h:
10728         * sysdep.c:
10729         * systty.h:
10730         * syswait.h:
10731         * unexec.c:
10732         * xdisp.c:
10733         * alloc.c: Remove code containing references to symbols defined by
10734         unsupported systems.
10736 2008-01-11  Kenichi Handa  <handa@ni.aist.go.jp>
10738         * coding.c (detect_coding_mask): Fix previous change.
10740 2008-01-09  Kenichi Handa  <handa@ni.aist.go.jp>
10742         * coding.c (detect_coding_iso2022): New arg
10743         latin_extra_code_state.  Allow Latin extra codes only
10744         when *latin_extra_code_state is nonzero.
10745         (detect_coding_mask): If there is a NULL byte, detect the encoding
10746         as UTF-16 or binary.  If Latin extra codes exist, detect the
10747         encoding as ISO-2022 only when there's no other proper encoding is
10748         found.
10750 2008-01-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10752         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
10753         #ifdef MAC_OS.
10755 2008-01-08  Richard Stallman  <rms@gnu.org>
10757         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
10759 2008-01-06  Nick Roberts  <nickrob@snap.net.nz>
10761         * keyboard.c (parse_menu_item): Don't enclose key bindings on
10762         menu bar in parentheses.
10764 2008-01-06  Dan Nicolaescu  <dann@ics.uci.edu>
10766         * m/7300.h:
10767         * m/acorn.h:
10768         * m/alliant-2800.h:
10769         * m/alliant.h:
10770         * m/alliant1.h:
10771         * m/alliant4.h:
10772         * m/altos.h:
10773         * m/amdahl.h:
10774         * m/apollo.h:
10775         * m/att3b.h:
10776         * m/aviion-intel.h:
10777         * m/aviion.h:
10778         * m/celerity.h:
10779         * m/clipper.h:
10780         * m/cnvrgnt.h:
10781         * m/convex.h:
10782         * m/cydra5.h:
10783         * m/delta88k.h:
10784         * m/dpx2.h:
10785         * m/dual.h:
10786         * m/elxsi.h:
10787         * m/f301.h:
10788         * m/gould-np1.h:
10789         * m/gould.h:
10790         * m/i860.h:
10791         * m/ibmps2-aix.h:
10792         * m/ibmrt-aix.h:
10793         * m/ibmrt.h:
10794         * m/irist.h:
10795         * m/is386.h:
10796         * m/isi-ov.h:
10797         * m/mega68.h:
10798         * m/mg1.h:
10799         * m/news-r6.h:
10800         * m/news-risc.h:
10801         * m/news.h:
10802         * m/nh3000.h:
10803         * m/nh4000.h:
10804         * m/ns16000.h:
10805         * m/ns32000.h:
10806         * m/nu.h:
10807         * m/orion.h:
10808         * m/orion105.h:
10809         * m/paragon.h:
10810         * m/pfa50.h:
10811         * m/plexus.h:
10812         * m/pyramid.h:
10813         * m/pyrmips.h:
10814         * m/sh3el.h:
10815         * m/sps7.h:
10816         * m/sr2k.h:
10817         * m/stride.h:
10818         * m/sun1.h:
10819         * m/sun2.h:
10820         * m/sun3-68881.h:
10821         * m/sun3-fpa.h:
10822         * m/sun3-soft.h:
10823         * m/sun3.h:
10824         * m/sun386.h:
10825         * m/symmetry.h:
10826         * m/tad68k.h:
10827         * m/tahoe.h:
10828         * m/targon31.h:
10829         * m/tek4300.h:
10830         * m/tekxd88.h:
10831         * m/tower32.h:
10832         * m/tower32v3.h:
10833         * m/ustation.h:
10834         * m/wicat.h:
10835         * m/xps100.h:
10836         * s/cxux.h:
10837         * s/cxux7.h:
10838         * s/dgux.h:
10839         * s/dgux4.h:
10840         * s/dgux5-4-3.h:
10841         * s/dgux5-4r2.h:
10842         * s/esix.h:
10843         * s/esix5r4.h:
10844         * s/hiuxmpp.h:
10845         * s/hiuxwe2.h:
10846         * s/iris3-5.h:
10847         * s/iris3-6.h:
10848         * s/isc2-2.h:
10849         * s/isc3-0.h:
10850         * s/isc4-0.h:
10851         * s/isc4-1.h:
10852         * s/newsos5.h:
10853         * s/newsos6.h:
10854         * s/osf1.h:
10855         * s/osf5-0.h:
10856         * s/riscix1-1.h:
10857         * s/riscix12.h:
10858         * s/sco4.h:
10859         * s/sco5.h:
10860         * s/sunos4-0.h:
10861         * s/sunos4-1.h:
10862         * s/sunos413.h:
10863         * s/sunos4shr.h:
10864         * s/umax.h:
10865         * s/unipl5-2.h:
10866         * s/xenix.h:
10867         * cxux-crt0.s:
10868         * unexapollo.c:
10869         * unexconvex.c:
10870         * unexenix.c:
10871         * unexsni.c: Remove files for systems no longer supported.
10873         * m/intel386.h: Remove references to unsupported systems.
10875         * w32.c (get_emacs_configuration): Remove reference to i860.
10877         * sysdep.c: Remove dead code.
10879 2008-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
10881         * s/rtu.h:
10882         * m/masscomp.h: Remove files.  Platform is obsolete.
10884 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
10886         * dbusbind.c (Fdbus_method_return): New function.
10887         (xd_read_message): Add the serial number to the event.
10888         (Fdbus_register_method): Activate the function.
10890 2008-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
10892         * keyboard.c (read_key_sequence): Fix typo.
10894 2008-01-03  Michael Albinus  <michael.albinus@gmx.de>
10896         * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
10897         (xd_signature, xd_append_arg): Handle element type detection for
10898         empty arrays.
10899         (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
10900         SDATA () calls; this must be solved more general.
10901         (Fdbus_register_signal): Use SBYTES instead of strlen.
10903 2008-01-03  Magnus Henoch  <magnus@zemdatav>
10905         * dbusbind.c (xd_append_arg): Use unsigned char instead of
10906         unsigned int for byte values (necessary for big-endian platform).
10907         (Fdbus_call_method): Handle the case of no returned arguments.
10909 2007-12-31  Tom Tromey  <tromey@redhat.com>  (tiny change)
10911         * dbusbind.c (xd_read_message): Use non-static input_event struct.
10913 2007-12-31  Magnus Henoch  <mange@freemail.hu>
10915         * dbusbind.c (xd_signature): Signature of variant is just "v".
10917 2007-12-30  Michael Albinus  <michael.albinus@gmx.de>
10919         * dbusbind.c: Fix several errors and compiler warnings.
10920         Reported by Tom Tromey <tromey@redhat.com>.
10921         (XD_ERROR, XD_DEBUG_MESSAGE)
10922         (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
10923         (xd_append_arg): Part for basic D-Bus types rewitten.
10924         (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
10925         DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
10926         appropriate.
10927         (xd_read_message): Return Qnil.  Don't signal an error; it is not
10928         useful during event reading.
10929         (Fdbus_register_signal): Signal an error if the check for
10930         FUNCTIONP fails.
10931         (Fdbus_register_method): New function.  The implementation is not
10932         complete, the call of the function signals an error therefore.
10933         (Fdbus_unregister_object): New function, renamed from
10934         Fdbus_unregister_signal.  The initial check signals an error, if
10935         the object is not well formed.
10937 2007-12-30  Richard Stallman  <rms@gnu.org>
10939         * textprop.c (get_char_property_and_overlay):
10940         Signal error if POSITION is out of range in a buffer.
10942 2007-12-29  Martin Rudalics  <rudalics@gmx.at>
10944         * w32fns.c (Fx_create_frame): Make copy of frame parameters
10945         because the original parameters are in pure storage now.
10947 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10949         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
10951 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
10953         * callint.c (syms_of_callint) <command-history>: Add reference to
10954         history-length in the doc string.
10956 2007-12-17  Jason Rumney  <jasonr@gnu.org>
10958         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
10959         before passing as wParam.
10961 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
10963         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
10964         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
10965         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
10966         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
10967         as number.
10968         (Fdbus_call_method): Fix docstring.
10970 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
10972         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
10973         New macros.
10974         (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
10975         (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
10976         Simplify.
10977         (xd_signature): New function.
10978         (xd_append_arg): Compute also signatures.  Major rewrite.
10979         (xd_retrieve_arg): Make debug messages friendly.
10980         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
10981         Check for signatures of arguments.
10983 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
10985         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
10986         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
10987         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
10988         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
10989         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
10990         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
10991         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
10992         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
10993         (xd_retrieve_value): Remove.  Functionality included in ...
10994         (xd_append_arg): New function.
10995         (Fdbus_call_method, Fdbus_send_signal): Apply it.
10997 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
10999         * dbusbind.c (top): Include <stdio.h>.
11000         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
11001         dbus_message_new_method_call and dbus_message_new_signal.
11002         (Fdbus_register_signal): Rename unique_name to uname.
11003         Check handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
11004         non-existing unique name.  Fix typos in matching rule.  Return an
11005         object which is useful in Fdbus_unregister_signal.
11006         (Fdbus_unregister_signal): Reimplementation, in order to remove
11007         only the corresponding entry.
11008         (Vdbus_registered_functions_table): Change the order of entries.
11009         Apply these changes in xd_read_message and Fdbus_register_signal.
11011 2007-12-16  Andreas Schwab  <schwab@suse.de>
11013         * fileio.c (Finsert_file_contents): Fix overflow check to not
11014         depend on undefined integer overflow.
11016 2007-12-14  Jason Rumney  <jasonr@gnu.org>
11018         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
11019         for characters above 127.
11021 2007-12-13  Jason Rumney  <jasonr@gnu.org>
11023         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
11024         before dereferencing array.
11025         (lookup_vk_code): Remove zero comparison.
11027 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
11029         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
11030         (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
11031         Use `unsigned int' instead of `uint'.
11032         (xd_read_message, Fdbus_register_signal): Split expressions into
11033         multiple lines before operators "&&" and "||", according to the
11034         GNU Coding Standards.
11036 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
11038         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
11040 2007-12-12  Juri Linkov  <juri@jurta.org>
11042         * buffer.c (Frename_buffer): In interactive spec replace
11043         `read-buffer' with `read-string' that uses `buffer-name-history'
11044         as history, and the current buffer's name as default.
11046 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11048         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
11049         manipulating the backtrace manually.
11050         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
11051         (struct backtrace, backtrace_list): Remove.
11052         (command_loop_1): Remove dead var `no_direct'.
11054         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
11055         preserve non-built-in buffer-local variables.
11056         (Fkill_all_local_variables): Don't re-create&re-set permanent
11057         buffer-local variables.
11059 2007-12-09  Juri Linkov  <juri@jurta.org>
11061         * buffer.c (Frename_buffer): Change interactive spec from "s" to
11062         Lisp code that uses `read-buffer' with current buffer as default.
11064 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
11066         * dbusbind.c (xd_read_message): Generate an event for every
11067         registered handler.  There might be several handlers registered
11068         for the same signal.
11069         (Fdbus_register_signal): Don't overwrite a registration for the
11070         same signal.  Add a new registration if handlers are different.
11071         (Vdbus_registered_functions_table): Rework doc string.
11073 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
11075         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
11076         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
11077         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
11078         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
11079         Unify argument lists.
11080         (xd_read_message, Fdbus_register_signal): Reorder and extend event
11081         arguments and hash table keys.  Use unique name for service.
11082         (Fdbus_unregister_signal): Remove checks.
11083         (Vdbus_registered_functions_table): Fix doc string.
11085 2007-12-05  Magnus Henoch  <mange@freemail.hu>
11087         * process.c (make_process): Initialize pty_flag to 0.
11089 2007-12-05  Jason Rumney  <jasonr@gnu.org>
11091         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
11092         specified XBMs.
11094 2007-12-05  Richard Stallman  <rms@gnu.org>
11096         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
11098 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11100         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
11101         New variable.
11102         (mac_try_close_socket) [MAC_OSX]: New function.
11103         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
11104         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
11106         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
11107         Use mac_try_close_socket.
11109 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11111         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
11112         reloc_base.
11113         (copy_dysymtab): Compute relocation base here.
11114         (rebase_reloc_address) [__ppc64__]: New function.
11115         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
11116         changed.
11118 2007-12-05  Jason Rumney  <jasonr@gnu.org>
11120         * w32proc.c (sys_spawnve): Quote args with wildcards.
11122 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11124         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
11125         __objc_* sections.
11126         (unrelocate) [_LP64]: Set relocation base to address of data segment.
11128 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
11130         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
11131         Move check for Vdbus_registered_functions_table to
11132         xd_read_queued_messages.
11133         (xd_read_queued_messages): Protect xd_read_message calls by
11134         internal_condition_case_1.
11136 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
11138         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
11139         Qdbus_system_bus and Qdbus_session_bus, respectively.
11140         (Vdbus_intern_symbols): Remove.
11141         (Vdbus_registered_functions_table): New hash table.
11142         (XD_SYMBOL_INTERN_SYMBOL): Remove.
11143         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
11144         Rewrite in order to manage registered functions by hash table
11145         Vdbus_registered_functions_table.
11147 2007-12-03  Jan Djärv  <jan.h.d@swipnet.se>
11149         * xterm.c: Update URL to Window Manager Specification in comment.
11151 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
11153         * config.in (HAVE_DBUS): Add.
11155         * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
11156         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
11157         (obj): Add $(DBUS_OBJ).
11158         (LIBES): Add $(DBUS_LIBS).
11159         (dbusbind.o): New target.
11161         * dbusbind.c: New file.
11163         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
11165         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
11166         (Qdbus_event): New Lisp symbol.
11167         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
11168         (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
11169         (keys_of_keyboard ): Define dbus-event.
11171         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
11173 2007-12-01  Richard Stallman  <rms@gnu.org>
11175         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
11177 2007-11-30  Jason Rumney  <jasonr@gnu.org>
11179         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
11180         (w32con_reset_terminal_modes): Clear screen buffer.
11181         (w32_face_attributes): Don't use color indexes that are out of range.
11182         Only reverse the default colors.
11184         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
11185         WINDOWSNT.
11187         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
11189 2007-11-29  Jason Rumney  <jasonr@gnu.org>
11191         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
11192         (w32_face_attributes): Use Vtty_defined_color_alist to determine
11193         if the terminal colors are initialized.
11194         (unspecified_fg, unspecified_bg): Remove unused declarations.
11196 2007-11-29  Andreas Schwab  <schwab@suse.de>
11198         * keyboard.c (apply_modifiers): Fix typo.
11200 2007-11-29  Richard Stallman  <rms@gnu.org>
11202         * keymap.c (Fcurrent_local_map): Doc fix.
11204 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11206         * s/gnu-kfreebsd.h: New file.
11208 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
11210         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
11211         Don't cast redundantly.
11213         * keyboard.c (KEY_TO_CHAR): New macro.
11214         (parse_modifiers, apply_modifiers): Accept integer arguments.
11215         (read_key_sequence): Use them to unify the "shift->unshift" mapping
11216         for chars and symbol keys.
11217         After doing such remapping, apply function-key-map again.
11219 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
11221         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
11222         compiled anymore.
11224 2007-11-26  Andreas Schwab  <schwab@suse.de>
11226         * process.c (list_processes_1): Fix indentation level of the
11227         command column.
11229 2007-11-23  Andreas Schwab  <schwab@suse.de>
11231         * editfns.c (Fformat): Handle %c specially since it requires the
11232         argument to be of type int.
11234 2007-11-23  Markus Triska  <markus.triska@gmx.at>
11236         * emacs.c (main): Call init_editfns before init_process, since
11237         init_process sets Vprocess_connection_type depending on OS release.
11239 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
11241         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
11242         (find_symbol_value): Use do_symval_forwarding.
11244         * data.c (set_internal): Set the value in the `cons-cell' (for
11245         Buffer_Local_values) not only for frame-local variables.
11247 2007-11-22  Andreas Schwab  <schwab@suse.de>
11249         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
11250         values to sprintf.
11251         * keymap.c (Fsingle_key_description): Likewise.
11252         * print.c (print_object): Likewise.
11254 2007-11-22  Jan Djärv  <jan.h.d@swipnet.se>
11256         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
11257         file for image is nil.
11259 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
11261         * term.c: Include stdarg.h.
11262         (fatal): Implement using varargs.
11263         * lisp.h (fatal): Add argument types.  (Restore 2005-09-30 change).
11265 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
11267         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
11268         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
11269         Update call to buffer_slot_type_mismatch.
11270         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
11271         (buffer_slot_type_mismatch): Update.
11272         * buffer.c (buffer_local_types): Remove.
11273         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
11274         (defvar_per_buffer): Set the type in the buffer_objfwd.
11276 2007-11-21  Jason Rumney  <jasonr@gnu.org>
11278         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
11279         CreateFileMapping returns NULL on failure.
11281 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
11283         * search.c (Fset_match_data): Remove the `evaporate' feature.
11284         (unwind_set_match_data): Don't use the `evaporate' feature.
11286 2007-11-21  Jason Rumney  <jasonr@gnu.org>
11288         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
11290         * w32console.c (w32con_write_glyphs): Remove unused variables.
11292 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
11294         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
11296         * s/darwin.h (MULTI_KBOARD): Remove.
11298         * macfns.c (x_create_tip_frame, Fx_create_frame)
11299         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
11301 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
11303         * buffer.c (Fbuffer_local_value): Remove redundant test.
11304         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
11305         than in `current-buffer' to match the comment.
11306         Do the swap using swap_in_global_binding.
11308         * data.c (store_symval_forwarding, set_internal):
11309         * eval.c (specbind): Remove dead code.
11311         * coding.c (detect_coding, Fupdate_coding_systems_internal):
11312         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
11313         Since we do not want to see internal Lisp_*fwd objects here.
11315 2007-11-18  Jan Djärv  <jan.h.d@swipnet.se>
11317         * sysdep.c (init_system_name): Use getaddrinfo if available.
11319         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
11320         (x_scroll_bar_note_movement): start, end, with, height in struct
11321         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
11323 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
11325         * puresize.h (BASE_PURESIZE): Increase to 1190000.
11327 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
11329         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
11330         This undoes Richard's change of 14-Oct-2002.
11332         * alloc.c (allocate_other_vector):
11333         * lisp.h (allocate_other_vector): Remove.
11335         * window.c (struct save_window_data): Move non-lisp data to the end
11336         and make it `int' rather than Lisp_Object.
11337         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
11338         Done wrap/unwrap integer values.
11339         (Fset_window_configuration, compare_window_configurations):
11340         Update use of fields to their new types.
11342         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
11343         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
11344         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
11345         (SET_SCROLL_BAR_X_WINDOW): Remove.
11346         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
11347         Access the new x_window field directly.
11348         * xterm.c (x_scroll_bar_create): Use a pseudovector.
11349         Don't wrap/unwrap integers into Lisp_Objects.
11350         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
11351         (x_scroll_bar_report_motion):
11352         Don't wrap/unwrap integers into Lisp_Objects.
11353         (x_term_init): Use SDATA.
11354         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
11355         (x_scroll_bar_set_handle, x_scroll_bar_remove)
11356         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
11357         (x_scroll_bar_report_motion, x_scroll_bar_clear):
11358         * xfns.c (x_set_background_color):
11359         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
11360         Access the new x_window field directly.
11362         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
11363         (allocate_pseudovector): Make non-static.
11365         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
11366         (allocate_pseudovector): Declare.
11367         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
11369 2007-11-15  Andreas Schwab  <schwab@suse.de>
11371         * editfns.c (Fformat): Correctly format EMACS_INT values.
11372         Also take precision into account when formatting an integer.
11374         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
11376 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
11378         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
11379         (syms_of_keyboard): Defsubr it.
11381         * data.c (swap_in_global_binding): Fix longstanding bug where
11382         store_symval_forwarding was not called with the right second argument,
11383         thus causing objfwd-ing from being dropped.
11385 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
11387         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
11388         (Fx_display_pixel_height, Fx_display_planes)
11389         (Fx_display_color_cells, Fx_server_max_request_size)
11390         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11391         (Fx_display_visual_class, Fx_display_save_under):
11392         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
11393         (Fx_display_pixel_height, Fx_display_planes)
11394         (Fx_display_color_cells, Fx_server_max_request_size)
11395         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11396         (Fx_display_mm_height, Fx_display_mm_width)
11397         (Fx_display_backing_store, Fx_display_visual_class)
11398         (Fw32_select_font, Fx_display_save_under):
11399         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
11400         (Fx_display_pixel_height, Fx_display_planes)
11401         (Fx_display_color_cells, Fx_server_max_request_size)
11402         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11403         (Fx_display_save_under): Fix typos in docstrings.
11405 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
11407         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
11408         corresponding to deleted entries; they are an implementation detail.
11409         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
11410         Remove variables.
11411         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
11412         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
11413         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
11414         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
11415         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
11416         (Fw32_define_rgb_color, Fw32_load_color_file)
11417         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
11418         Fix typos in docstrings.
11419         (Fx_server_version): Reflow docstring.
11420         (Fw32_shell_execute): Doc fixes.
11422 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
11424         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
11425         if w32_parse_hot_key returned nil.
11427 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11429         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
11431 2007-11-09  Jason Rumney  <jasonr@gnu.org>
11433         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
11435         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
11437         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
11438         Remove W32_SCROLL_BAR_CLICK_EVENT.
11440         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
11441         Add MULTIMEDIA_KEY_EVENT.
11443         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
11444         (lispy_multimedia_keys) [WINDOWSNT]: New array.
11445         (make_lispy_event) [WINDOWSNT]: Use it to translate
11446         MULTIMEDIA_KEY_EVENT.
11448         * w32term.h (WM_APPCOMMAND): Define if not already.
11449         (GET_APPCOMMAND_LPARAM): Likewise.
11451         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
11452         WM_APPCOMMAND.
11454         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
11455         (syms_of_w32fns): Export and initialize it.
11456         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
11458 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
11460         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
11461         twice.
11463         * xdisp.c (handle_face_prop): Fix last change.
11465 2007-11-09  Richard Stallman  <rms@gnu.org>
11467         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
11468         not just for after-strings and before-strings.
11469         Call face_for_overlay_string and pass the overlay to it.
11470         (handle_display_prop): Determine whether property came from an overlay.
11471         Pass OVERLAY arg to handle_single_display_spec.
11472         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
11473         (load_overlay_strings): Fill in it->string_overlays.
11474         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
11476         * xfaces.c (face_for_overlay_string): Function renamed from
11477         face_at_buffer_position_no_overlays, and add arg OVERLAY.
11479         * dispextern.h (struct it): New elt string_overlays.
11480         New elt from_overlay, also in stack.
11481         Rearrange a few elements.
11482         (face_for_overlay_string): Decl renamed from
11483         face_at_buffer_position_no_overlays, and add argument.
11485 2007-11-09  Richard Stallman  <rms@gnu.org>
11487         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
11488         to get the base face for an overlay string.
11490         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
11492         * xfaces.c (face_at_buffer_position_no_overlays): New function.
11494         * xdisp.c (handle_stop): Move some code out of loop.
11496 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11498         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
11499         Fix conversion from Lisp object to ATSUFontID.
11501 2007-11-09  Jason Rumney  <jasonr@gnu.org>
11503         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
11505 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11507         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
11508         Don't assume regions are aligned to page boundary.
11509         (print_load_command_name): Add LC_UUID if defined.
11511 2007-11-09  Richard Stallman  <rms@gnu.org>
11513         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
11515 2007-11-07  Jason Rumney  <jasonr@gnu.org>
11517         * s/windows95.h: Remove.
11519 2007-11-06  Jan Djärv  <jan.h.d@swipnet.se>
11521         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
11522         abort with a message on unhandled store_type values.
11524 2007-11-01  Jan Djärv  <jan.h.d@swipnet.se>
11526         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
11527         Remove HAVE_X11R5 and HAVE_X11R4.
11529 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
11531         * Makefile.in: Remove references to sunfns.c and sunfns.o.
11533 2007-11-01  Johan Bockgård  <bojohan@gnu.org>
11535         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
11536         Don't set s->stippled_p here, since it has already been set by
11537         x_set_glyph_string_gc from x_draw_glyph_string.
11539 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
11541         * sunfns.c: Remove file.
11543         * m/sun386.h:
11544         * m/sun2.h:
11545         * m/sparc.h: Remove Sun windows code.
11547 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
11549         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
11550         (init_keyboard): Set current_kboard's window-system to nil.
11551         (tty_read_avail_input): Typo.
11552         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
11554 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
11556         * s/usg5-4.h:
11557         * s/usg5-3.h:
11558         * s/ptx.h:
11559         * m/is386.h:
11560         * m/ibmps2-aix.h:
11561         * Makefile.in: Remove all mentions of X10.
11563         * dispnew.c (syms_of_display): Don't mention version 10.
11565 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
11567         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
11568         ($(BLD)/abbrev.$(O)): Remove.
11570 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
11572         Rewrite abbrev.c in Elisp.
11573         * image.c (Qcount): Don't declare as extern.
11574         (syms_of_image): Initialize and staticpro `Qcount'.
11575         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
11576         * emacs.c (main): Don't call syms_of_abbrev.
11577         * Makefile.in (obj): Remove abbrev.o.
11578         (abbrev.o): Remove.
11579         * abbrev.c: Remove.
11581 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
11583         * window.c (window_min_size_2): Don't count header-line.
11585 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
11587         * frame.h (struct frame): Move all bit fields after the first bit
11588         field to take advantage of the available space.  Group all the
11589         chars together to reduce wasted space due to padding.
11591 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
11593         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
11595         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
11596         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
11597         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
11598         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
11599         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
11600         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
11601         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
11602         (last_marked, mark_object_loop_halt): Make static.
11604         * frame.c (syms_of_frame) <delete-frame-functions>:
11605         Fix typo in docstring.
11607 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
11609         * w32.c (init_environment): Fix tiny memory leak.
11610         (w32_get_resource): Remove unused variable `ok'.
11612 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
11614         Make `window-system' into a keyboard-local variable (rather than
11615         frame-local as done originally by multi-tty).
11617         * keyboard.h (struct kboard): Add Vwindow_system.
11618         * keyboard.c (init_kboard): Set a default for Vwindow_system.
11619         (mark_kboards): Mark Vwindow_system.
11621         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
11622         (init_display): Don't set the obsolete `window-system' frame-param.
11624         * xterm.c (x_term_init):
11625         * w32term.c (w32_create_terminal):
11626         * term.c (init_tty): Set Vwindow_system.
11627         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
11628         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
11630         * xfns.c (Fx_create_frame, x_create_tip_frame):
11631         * w32fns.c (Fx_create_frame, x_create_tip_frame):
11632         * macfns.c (Fx_create_frame):
11633         Don't set the obsolete `window-system' frame-param.
11635         * frame.h (Qwindow_system): Remove.
11636         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
11637         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
11639 2007-10-24  Richard Stallman  <rms@gnu.org>
11641         * frame.c (x_figure_window_size): For fullscreen case,
11642         set USPosition | PPosition without clobbering rest of window_prompting.
11644         * keyboard.c (Fcurrent_idle_time): Doc fix.
11646         * print.c (Fwith_output_to_temp_buffer): Doc fix.
11648 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
11650         * process.c (unwind_request_sigio): Only define if __ultrix__.
11652         * callproc.c (child_setup): Remove spurious *.
11654         * lisp.h (Fget_text_property): Declare.
11655         (have_menus_p): Declare it here rather than in sys-dep header files.
11656         * macterm.h (have_menus_p):
11657         * msdos.h (have_menus_p):
11658         * xterm.h (have_menus_p): Remove.
11660         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11661         (Fmake_variable_frame_local): Just check the variable's const-ness
11662         rather than checking nil or t.
11664 2007-10-22  Jason Rumney  <jasonr@gnu.org>
11666         * w32fns.c: Include math.h.
11667         (w32_abort): Declaration moved to nt/config.nt.
11669         * s/ms-w32.h (HAVE_STDLIB_H): Define.
11670         (abort): Redefinition moved to nt/config.nt.
11672         * m/windowsnt.h: Remove.
11674 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
11676         * emacs.c (Fdump_emacs): Fix typo in message.
11677         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
11678         <installation-directory>: Reflow docstring.
11680 2007-10-22  Juri Linkov  <juri@jurta.org>
11682         * minibuf.c: Allow minibuffer default to be a list of default values.
11683         With empty input use the first element of this list as returned default.
11684         (string_to_object)
11685         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
11686         (read_minibuf): If defalt is cons, set histstring to its car.
11687         (Fread_string): If default_value is cons, set val to its car.
11688         (Fread_buffer): If def is cons, use its car.
11689         (Fcompleting_read): If defalt is cons, set val to its car.
11691 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
11693         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
11695 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
11697         * doc.c (Fdocumentation): Check for advice in all cases.
11699 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
11701         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
11703 2007-10-19  Richard Stallman  <rms@gnu.org>
11705         * doc.c (Fdocumentation): Check for and handle an advised function.
11707 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
11709         * process.c (Fset_process_filter): Doc fix.
11711 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
11713         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
11714         which caused key-translation-map to applied repeatedly (thus breaking
11715         double-mode).
11717 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
11719         * xselect.c (x_own_selection, x_handle_selection_clear)
11720         (x_clear_frame_selections):
11721         * w32menu.c (list_of_panes, list_of_items):
11722         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
11723         * textprop.c (validate_plist, interval_has_all_properties)
11724         (interval_has_some_properties, interval_has_some_properties_list)
11725         (add_properties, text_property_list):
11726         * process.c (Fget_buffer_process, list_processes_1, status_notify):
11727         * minibuf.c (Fassoc_string):
11728         * macselect.c (x_own_selection, x_clear_frame_selections)
11729         (Fx_disown_selection_internal):
11730         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
11731         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
11733 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
11735         * process.c: Link to libs for calling res_init() if available.
11736         (Fmake_network_process): Call res_init() before getaddrinfo or
11737         gethostbyname, if possible.
11739 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
11741         * lread.c (read1): Set pvectype for char_tables.
11743         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
11744         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
11745         Add type checks.
11746         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
11748         * alloc.c (free_misc): Use XMISCTYPE.
11749         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
11751 2007-10-17  Glenn Morris  <rgm@gnu.org>
11753         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
11754         (syms_of_minibuf): Add Qcompletion_ignore_case.
11755         * dired.c (Qcompletion_ignore_case): Change to external.
11756         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
11757         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
11758         (Fread_file_name): Use it rather than intern'ing.
11760         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
11761         (Fread_coding_system): Ignore case of user input.
11763 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11765         * xdisp.c (handle_display_prop): Ignore display specs after
11766         replacing one when string text is being replaced.
11767         (handle_single_display_spec): Pretend as if characters with display
11768         property haven't been consumed only when buffer text is being replaced.
11770 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
11772         * xfns.c (Fx_create_frame, Fx_display_list):
11773         * window.c (window_fixed_size_p, enlarge_window)
11774         (shrink_window_lowest_first):
11775         * macterm.c (init_font_name_table):
11776         * macfns.c (Fx_create_frame, Fx_display_list):
11777         * lread.c (close_load_descs):
11778         * keyboard.c (read_char_x_menu_prompt):
11779         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
11780         * coding.c (code_convert_region_unwind): Test the type of an object
11781         rather than just !NILP before extracting data from it.
11783         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
11785         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
11786         (XMISCANY): New macro.
11787         (XMISCTYPE): Use it.
11788         (struct Lisp_Misc_Any): New type.
11789         (union Lisp_Misc): Use it.
11790         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
11791         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
11792         (find_symbol_value, set_internal, default_value, Fset_default)
11793         (Fmake_variable_buffer_local, Fmake_local_variable)
11794         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
11795         (Flocal_variable_if_set_p, Fvariable_binding_locus):
11796         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
11797         * alloc.c (allocate_buffer): Set the size and tag.
11798         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
11799         Use XMISCANY.
11800         (die): Follow the GNU convention for error messages.
11801         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
11802         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
11803         tag any more.
11804         (set_buffer_internal_1):
11805         * frame.c (store_frame_param):
11806         * eval.c (specbind):
11807         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
11809         * doc.c (Fsnarf_documentation): Simplify.
11811 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
11813         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
11814         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
11816 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
11818         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
11820 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
11822         * eval.c (do_autoload): Don't save autoloads.
11824         * data.c (Ffset): Save autoload of the function being set.
11826 2007-10-07  John Paul Wallington  <jpw@pobox.com>
11828         * xfns.c (x_create_tip_frame): Set the `display-type' frame
11829         parameter before setting up faces.
11831 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
11833         * ccl.c (Fregister_code_conversion_map):
11834         * keyboard.c (append_tool_bar_item): Reformat last change.
11836         * lisp.h (eabs): Rename from `abs'.  All callers changed.
11838 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
11840         * buffer.c (add_overlay_mod_hooklist):
11841         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
11842         * fontset.c (make_fontset):
11843         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
11844         (append_tool_bar_item):
11845         * macmenu.c (grow_menu_items):
11846         * w32menu.c (grow_menu_items):
11847         * xmenu.c (grow_menu_items): Use larger_vector.
11849 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
11851         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
11852         selected frame'' on MSDOS).
11854 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
11856         * frame.c (Qexplicit_name): New variable.
11857         (x_report_frame_params): Report it in parameter alist.
11858         (syms_of_frame): Intern and staticpro it.
11860 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
11862         * macfns.c (x_create_tip_frame): Set terminal for frame.
11864 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11866         * frame.c (Qenvironment): Remove.
11867         (syms_of_frame) <Qenvironment>: Don't initialize.
11868         (Fdelete_frame): Don't treat the `environment' param specially.
11869         * frame.h (Qenvironment): Don't declare.
11870         * callproc.c (set_initial_environment): Don't set unused frame param.
11872         * frame.c (Fframe_with_environment): Remove.
11873         (syms_of_frame) <Sframe_with_environment>: Don't declare.
11875         * lisp.h (Fframe_with_environment): Don't declare.
11877 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
11879         * indent.c (indent_tabs_mode, last_known_column)
11880         (last_known_column_modified): Make static.
11881         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
11883 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
11885         * puresize.h (BASE_PURESIZE): Increase to 1170000.
11887 2007-10-09  Jason Rumney  <jasonr@gnu.org>
11889         * w32term.c (x_set_window_size): Disable code that attempts to tell
11890         Lisp code about a size change before it actually happens.
11892 2007-10-09  Richard Stallman  <rms@gnu.org>
11894         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
11895         return HANDLED_RETURN.
11897 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
11899         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
11900         when there's an unread command event.
11902         * frame.c (focus_follows_mouse): Move here from frame.el to allow
11903         window autoselection act appropriately when leaving selected frame.
11904         (syms_of_frame): Initialize focus_follows_mouse.
11905         * frame.h (focus_follows_mouse): Extern it.
11906         * macterm.c (XTread_socket): When focus_follows_mouse is nil
11907         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
11908         * msdos.c (dos_rawgetc): Likewise.
11909         * w32term.c (w32_read_socket): Likewise.
11910         * xterm.c (handle_one_xevent): Likewise.
11911         * xdisp.c (syms_of_xdisp): In doc-string of
11912         mouse-autoselect-window mention focus-follows-mouse.
11914 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11916         * macterm.c (mac_load_query_font): Fix missing return value.
11917         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
11918         Add BLOCK_INPUT.
11920 2007-10-08  Richard Stallman  <rms@gnu.org>
11922         * xdisp.c (get_window_cursor_type): Implement documented behavior
11923         for cursor-in-non-selected-windows = t.
11925 2007-10-08  Jason Rumney  <jasonr@gnu.org>
11927         * w32.c (w32_get_resource): Always close registry keys.
11929 2007-10-08  Jason Rumney  <jasonr@gnu.org>
11931         * makefile.w32-in (LIBS): Add COMCTL32.
11933         * w32fns.c (globals_of_w32fns): Init common controls.
11935 2007-10-08  Richard Stallman  <rms@gnu.org>
11937         * image.c (our_memory_buffer): Rename from omfib_buffer.
11939 2007-10-08  Richard Stallman  <rms@gnu.org>
11941         * buffer.c (Foverlays_at): Doc fix.
11943 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
11945         * fns.c (Fplist_put): Preserve uneven tail data.
11947 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
11949         * termhooks.h (enum event_kind): Remove trailing comma.
11951         * frame.h (enum): Remove trailing comma.
11953 2007-10-08  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
11955         * w32proc.c (delete_child): Don't terminate threads of zombies.
11957 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
11959         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
11961         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
11962         last-repeatable-command.
11963         (init_kboard): Initialize Vlast_repeatable_command.
11964         (command_loop_1): Set it to real_this_command unless that was
11965         bound to an input event.
11966         (mark_kboards): Mark it.
11968 2007-10-08  Richard Stallman  <rms@gnu.org>
11970         * eval.c (condition-case): Doc fix.
11972 2007-10-08  Masatake YAMATO  <jet@gyve.org>
11974         * xfaces.c (tty_supports_face_attributes_p): Fix code
11975         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
11976         was copied and not edited.
11978 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
11980         Add new `input-decode-map' keymap and use it for terminal
11981         escape sequences.
11982         * keyboard.h (struct kboard): Add Vinput_decode_map.
11983         Remove Vlocal_key_translation_map.
11984         * keyboard.c (read_key_sequence): Add support for input-decode-map.
11985         (init_kboard): Init input-decode-map.
11986         Replace local-key-translation-map back with key-translation-map.
11987         (syms_of_keyboard): Declare input-decode-map.
11988         Remove local-key-translation-map.  Update docstrings.
11989         (mark_kboards): Mark Vinput_decode_map.
11990         Don't mark Vlocal_key_translation_map.
11991         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
11992         Replace local-key-translation-map back with key-translation-map.
11993         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
11994         Bind in input-decode-map rather than function-key-map.
11996         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
11997         This was made redundant by the previous introduction of XSETPVECTYPE.
11999 2007-10-09  Richard Stallman  <rms@gnu.org>
12001         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
12003 2007-09-29  Richard Stallman  <rms@gnu.org>
12005         * eval.c (internal_condition_case_2, internal_condition_case_1)
12006         (internal_condition_case): Reenable abort if x_catching_errors ()
12007         to see if that really happens and why.
12009 2007-10-06  Andreas Schwab  <schwab@suse.de>
12011         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
12013 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
12015         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
12017 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
12019         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
12021 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
12023         * window.h (struct window):
12024         * window.c (struct save_window_data, struct saved_window):
12025         * termhooks.h (struct terminal):
12026         * process.h (struct Lisp_Process):
12027         * frame.h (struct frame):
12028         * buffer.h (struct buffer):
12029         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
12030         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
12031         The size field of (pseudo)vectors is now unsigned.
12032         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
12034         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
12035         Turn `count' into an integer.
12037         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
12038         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
12039         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
12040         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
12041         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
12043         * alloc.c (allocate_pseudovector): New fun.
12044         (ALLOCATE_PSEUDOVECTOR): New macro.
12045         (allocate_window, allocate_terminal, allocate_frame)
12046         (allocate_process): Use it.
12047         (mark_vectorlike): New function.
12048         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
12049         (mark_terminals): Use it.
12050         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
12051         (Fmake_byte_code): Use XSETPVECTYPE.
12053         * frame.c (Fframe_parameters): Minor simplification.
12055         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
12057         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
12059         * buffer.c (Fget_buffer_create, init_buffer_once):
12060         * lread.c (defsubr):
12061         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
12063         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
12064         defined differently in the m/*.h files.
12065         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
12066         (XSETPVECTYPE): New macro.
12067         (XSETPSEUDOVECTOR): Use it.
12069         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
12070         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
12072         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
12073         * lread.c (defvar_per_buffer):
12074         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
12076         * window.c (candidate_window_p): Only consider as visible frames that
12077         are on the same terminal.
12079         * m/ibms390x.h (MARKBIT): Remove unused macro.
12081 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
12083         * lread.c (Fload): Fix typo in docstring.
12085 2007-10-01  Michaël Cadilhac  <michael@cadilhac.name>
12087         * floatfns.c (Fexpt): Manually check for overflows, so that a power
12088         of a non-zero value can't yield zero.
12090 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
12092         * term.c (term_clear_mouse_face, term_mouse_highlight)
12093         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
12095         * print.c (safe_debug_print): Use XHASH.
12097         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
12098         Lisp elements such as tags.
12099         (XHASH): New macro.
12100         (EQ): Use it.
12101         (SREF, SSET, STRING_COPYIN): Use SDATA.
12102         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
12104         * alloc.c (mark_terminal): Remove left-over declaration.
12105         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
12106         (allocate_vectorlike): Remove type argument.  Adjust callers.
12107         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
12108         Only handle the one remaining MEM_TYPE_VECTORLIKE.
12110         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
12111         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
12112         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
12113         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
12114         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
12115         Use them.
12117         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
12118         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
12119         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
12121 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
12123         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
12124         loaded by default.
12126 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
12128         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
12129         on this tty.
12130         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
12132         * term.c (mouse_face_window): Rename from Qmouse_face_window.
12133         Update all users.
12134         (handle_one_term_event): Use Gpm_DrawPointer.
12135         (Fgpm_mouse_start): Rename from Fterm_open_connection.
12136         Signal errors instead of returning nil.  Always return nil.
12137         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
12138         Make it a noop if gpm-mouse was not activated.
12139         (syms_of_term): Update names.
12141 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
12143         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
12144         (init_sys_modes): Check that gpm_tty is the current tty.
12146         * alloc.c (allocate_terminal): Set the vector size to only count the
12147         lisp fields.  Initialize those to nil.
12148         (mark_object): Don't treat terminals specially.
12149         (mark_terminal): Remove.
12150         (mark_terminals): Use mark_object instead.
12152         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
12153         the GC to the beginning.
12155         * indent.h:
12156         * indent.c: Use EMACS_INT for ints coming from Elisp data.
12158         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
12160 2007-09-25  Jason Rumney  <jasonr@gnu.org>
12162         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
12164         * w32console.c (create_w32cons_output): Remove.
12166         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
12168         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
12169         (reset_sys_modes): Use reset_terminal_modes_hook.
12171 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
12173         * eval.c (do_autoload): Don't output any message.
12175 2007-09-24  Juri Linkov  <juri@jurta.org>
12177         * emacs.c (standard_args): Change priority of "--no-splash"
12178         from 40 to 3.  Add "--no-desktop" with the same priority.
12180 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
12182         * alloc.c (gc_sweep): Check cons cell mark bits word by word
12183         and optimize the case where they are all 1.
12185 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
12187         * lisp.h (abs): Define if not defined.
12188         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
12189         Don't define `abs', since it's defined in lisp.h.
12191 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
12193         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
12194         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
12195         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
12196         (init_tty): Use DEV_TTY instead of "/dev/tty".
12197         [WINDOWSNT]: No need to protect from NAME arg being null.
12199 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
12201         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
12202         up the tty state.
12204 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
12206         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
12207         (gpm_tty): Change its type.
12208         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
12209         (gpm_tty): Change its type and initialize it.
12210         (Fterm_open_connection): Check the frame is indeed a tty.
12211         Use the new gpm_tty.
12212         (Fterm_close_connection): Use the new gpm_tty.
12213         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
12214         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
12216 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
12218         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
12219         underline_color, to draw strike-through.
12221 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
12223         * lisp.h (allocate_terminal): Declare.
12225         * window.c (candidate_window_p): Consider frames that are being placed
12226         by the user as somewhere between visible and iconified.
12227         (window_loop): Prefer windows on the current frame.
12228         (Fselect_window): Move the use of select-frame to the beginning so we
12229         can just delegate all the work (it'll call us back anyway).
12231         * frame.c (Qdisplay_environment_variable):
12232         * frame.h (Qdisplay_environment_variable): Delete.
12234         * .gdbinit (xbacktrace): Print the arg's address rather than the value
12235         of the first arg, since that value may be a union.
12237         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
12238         parameter rather than Qdisplay_environment_variable.  If all else
12239         fails, look for DISPLAY in initial-environment.
12241 2007-09-21  Glenn Morris  <rgm@gnu.org>
12243         * Makefile.in (emacstool): Remove target.
12244         (lisp, shortlisp): Remove termdev.elc.
12246 2007-09-21  Markus Triska  <markus.triska@gmx.at>
12248         * xterm.c (x_delete_display): Compile session management conditionally.
12250 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
12252         * callproc.c (getenv_internal_1): New function.
12253         (getenv_internal): Use it.
12254         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
12256         * terminal.c (get_terminal): Don't accept ints to represent terminals.
12257         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
12258         (Fset_terminal_parameter): Work with dead terminals as well.
12259         (Fmodify_terminal_parameters): Remove.
12261         * terminal.c (get_terminal): Handle terminals.
12262         Make sure the terminal returned is live.
12263         (create_terminal): Use allocate_terminal.
12264         (mark_terminals): Move to alloc.c.
12265         (delete_terminal): Use terminal->name as liveness status.
12266         NULL out fields after freeing their contents.
12267         Don't deallocate the object.
12268         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
12269         rather than an int.
12270         (Fterminal_live_p): Accept non-integer arguments.
12271         (Fterminal_list): Return terminal objects rather than an ints.
12273         * alloc.c (enum mem_type): New member for `terminal' objects.
12274         (allocate_terminal): New function.
12275         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
12276         Handle terminals.
12277         (mark_terminal): New fun.
12278         (mark_terminals): Move from terminal.c.
12280         * term.c (get_tty_terminal): Don't treat output_initial specially.
12281         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
12282         (delete_tty): Use terminal->name as liveness status.
12284         * termhooks.h (struct terminal): Make it into a pseudovector.
12285         Remove `deleted' replaced by checking `name's nullness.
12287         * print.c (print_object): Handle terminals.
12289         * lisp.h (enum pvec_type): New `terminal' pseudovector.
12290         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
12292         * frame.c (make_terminal_frame):
12293         * keyboard.c (tty_read_avail_input):
12294         * w32term.c (x_delete_terminal):
12295         * xfns.c (Fx_create_frame, x_create_tip_frame):
12296         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
12298 2007-09-20  Glenn Morris  <rgm@gnu.org>
12300         * process.c (Fmake_network_process): Doc fix.
12302 2007-09-19  Jason Rumney  <jasonr@gnu.org>
12304         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
12306 2007-09-19  Michaël Cadilhac  <michael@cadilhac.name>
12308         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
12309         Fix a C warning regarding variable constness.
12311         * xterm.c (handle_one_xevent): Fix a C warning.
12313 2007-09-18  Jason Rumney  <jasonr@gnu.org>
12315         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
12317 2007-09-17  Jan Djärv  <jan.h.d@swipnet.se>
12319         * gtkutil.c (gdpy_def): New variable.
12320         (xg_initialize): Initialize gdpy_def.
12321         (xg_display_close): If no other display exists, set gdpy_def to a
12322         new connection.
12324 2007-09-16  Jan Djärv  <jan.h.d@swipnet.se>
12326         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
12327         when we have no file name for the icon.
12328         (xg_tool_bar_expose_callback): Remove.
12329         (xg_create_tool_bar): Don't connect expose signal to
12330         xg_tool_bar_expose_callback.
12331         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
12333 2007-09-16  Andreas Schwab  <schwab@suse.de>
12335         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
12336         values instead of zapping them.
12338 2007-09-14  Glenn Morris  <rgm@gnu.org>
12340         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
12341         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
12342         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
12343         scope and rename to omfib_buffer for clarity.
12344         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
12346 2007-09-14  Kenichi Handa  <handa@m17n.org>
12348         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
12350 2007-09-13  Jason Rumney  <jasonr@gnu.org>
12352         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
12354         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
12356         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
12357         (mac_term_init): Call here instead, passing rif.
12359 2007-09-13  Glenn Morris  <rgm@gnu.org>
12361         * s/hpux.h: No longer define `static' as nothing.
12363 2007-09-13  Johan Bockgård  <bojohan@gnu.org>
12365         * callint.c (Fcall_interactively): Remove unused var `fun'.
12367 2007-09-12  Romain Francoise  <romain@orebokech.com>
12369         * window.c (prefer_window_split_horizontally, display_buffer):
12370         Revert 2007-09-08 change.
12372 2007-09-12  Glenn Morris  <rgm@gnu.org>
12374         * alloca.c: Remove file.
12375         * Makefile.in (alloca): Do not undef.
12376         (allocaobj, alloca.o): Remove.
12377         (otherobj): Remove allocaobj.
12378         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
12379         * regex.c (C_ALLOCA): Remove all references and code that was only
12380         used when this was defined.
12381         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
12382         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
12383         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
12385         * Makefile.in (SOURCES, unlock, relock): Delete.
12387         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
12388         (menu_grab_callback): All uses changed.
12390         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
12391         (x_reply_selection_request): All uses changed.
12393 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
12395         * lread.c (load_warn_old_style_backquotes): Change message to look
12396         better when it appears in the middle of byte-compiler messages.
12398 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
12400         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
12402         * xterm.c (x_create_terminal): Add comment.
12404         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
12406 2007-09-10  Richard Stallman  <rms@gnu.org>
12408         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
12410 2007-09-10  Michaël Cadilhac  <michael@cadilhac.name>
12412         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
12413         (DEFUN): Document `intspec', use it instead of `prompt'.
12415         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
12417         * data.c (Finteractive_form): If the interactive specification starts
12418         with a `(', use it as a Lisp form.
12420         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
12421         name and file modes.
12423         * callint.c (Fcall_interactively): Comment fixes.
12425 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
12427         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
12428         and compiled functions.
12430 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
12432         * window.c (prefer_window_split_horizontally): New variable.
12433         (display_buffer): Consider splitting window horizontally depending
12434         on prefer_window_split_horizontally.
12436 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
12438         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
12440 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
12442         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
12444         * frame.c (x_set_frame_parameters): Check number is positive before
12445         using XFASTINT.
12447         * window.c (freeze_window_start): Don't presume selected_window holds
12448         a window object.
12449         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
12451 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
12453         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
12455 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
12457         * window.c (Vsplit_window_preferred_function): New var.
12458         (Fdisplay_buffer): Use it.
12459         (syms_of_window): Export, and initialize it.
12461 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
12463         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
12465 2007-09-06  Glenn Morris  <rgm@gnu.org>
12467         * gtkutil.c (menu_grab_callback) <cnt>:
12468         * xselect.c (x_reply_selection_request) <cnt>: Move static
12469         variable to file scope.
12471 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
12473         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
12474         consistent values of selected_frame and selected_window.
12476 2007-09-04  Jason Rumney  <jasonr@gnu.org>
12478         * w32console.c (initialize_w32_display): Zero unused hooks.
12480 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
12482         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
12483         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
12485 2007-09-04  Jason Rumney  <jasonr@gnu.org>
12487         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
12488         in w32console.c.  Set up input.  Remove XXX comments that have been
12489         confirmed as correct.
12491         * s/ms-w32.h (MULTI_KBOARD): Define.
12493         * w32console.c (one_and_only_w32cons): Remove.
12494         (initialize_w32_display): Take terminal argument.
12496         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
12497         initialize_w32_display.
12498         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
12500         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
12502         * keyboard.c (discard_mouse_events): Discard it.
12503         (make_lispy_event): Translate it to a lisp event.
12504         (lispy_wheel_names): Add wheel-left and right events.
12505         (syms_of_keyboard): Enlarge wheel_syms.
12507         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
12508         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
12510         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
12512         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
12513         from WM_MOUSEHWHEEL.
12514         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
12516         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
12517         terminal.
12519         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
12520         keyboard for the terminal.
12522 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
12524         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
12525         (Vresume_tty_hook): Rename from Vresume_tty_functions.
12526         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
12527         and resume-tty-function to resume-tty-hook.
12528         (Fsuspend_tty, Fresume_tty): Use new names.
12530 2007-09-02  Jan Djärv  <jan.h.d@swipnet.se>
12532         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
12533         if it starts with "n:".
12535 2007-08-31  Jan Djärv  <jan.h.d@swipnet.se>
12537         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
12539 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
12541         * frame.h:
12542         * frame.c (Qterm_environment_variable): Remove.
12543         (syms_of_frame): Don't init and staticpro it.
12545         * callproc.c (getenv_internal): Remove special case for $TERM.
12547         * callproc.c (Vinitial_environment): New variable.
12548         (set_initial_environment): Initialize it.
12549         (syms_of_callproc): Declare it.
12550         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
12551         TERM under which a process runs is never related to the TERM in which
12552         Emacs is running.
12554 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
12556         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
12557         * s/darwin.h: ... do it here.
12559 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
12561         * lisp.h (set_initial_environment): Rename from set_global_environment.
12563         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
12564         removed by mistake on the multi-tty branch.
12566         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
12567         (Fmodify_frame_parameters): Return a value.
12569         * image.c (png_load): Comment-out var only used in commented-out code.
12571         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
12572         before passing it to mark_object.
12574         * xfaces.c (internal_resolve_face_name): Return a value.
12575         (internal_resolve_face_name, resolve_face_name_error): Comment out.
12577         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
12578         (x_icon): Comment-out var only used in commented-out code.
12580 2007-08-29  Romain Francoise  <romain@orebokech.com>
12582         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
12583         QUIT hasn't been provided.
12585 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
12587         * callproc.c (child_setup, getenv_internal): Use the
12588         display-environment-variable and term-environment-variable frame params.
12589         (set_initial_environment): Initialise Vprocess_environment.
12591         * config.in: Disable multi-keyboard support on a mac.
12593         * frame.c (Qterm_environment_variable)
12594         (Qdisplay_environment_variable): New variables.
12595         (syms_of_frame): Intern and staticpro them.
12596         (Fmake_terminal_frame): Disable output method test.
12598         * frame.h: Declare them here.
12600         * macfns.c (x_set_mouse_color): Get rif from the frame.
12601         (x_set_tool_bar_lines): Don't use updating_frame.
12602         (mac_window): Add 2 new parameters for consistency with other systems.
12603         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
12604         frame parameters following what is done in X11 and w32.  Don't use
12605         FRAME_MAC_DISPLAY_INFO.
12606         (Fx_open_connection, start_hourglass): Remove window-system check.
12607         (x_create_tip_frame): Get the keyboard from the terminal.
12609         * macmenu.c: Reorder includes.
12610         (Fx_popup_menu): Use terminal specific mouse_position_hook.
12612         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
12613         terminal parameter.
12614         (x_clear_frame): Add a frame parameter.
12615         (note_mouse_movement): Get rif from the frame.
12616         (mac_term_init): Initialize the terminal.
12617         (mac_initialize): Make static and move terminal initialization ...
12618         (mac_create_terminal): ... to this new function.
12620         * macterm.h (struct mac_display_info): Add terminal.
12621         (mac_initialize): Delete declaration.
12623         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
12625         * sysdep.c: Comment out text after #endif.
12627         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
12628         is defined.  Better initialize ttys in windows.  Use terminal
12629         specific mouse_position_hook.
12631         * termhooks.h (union display_info): Add mac_display_info.
12633         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
12634         Set the default minibuffer frame, window_system and the rest of the
12635         frame parameters following what is done in X11.
12637         * w32term.c (w32_initialize): Make static.
12639         * xselect.c (x_handle_selection_clear): Only access
12640         terminal->kboard when MULTI_KBOARD is defined.
12642         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
12643         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
12645 2007-08-29  Jason Rumney  <jasonr@gnu.org>
12647         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
12648         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
12650         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
12651         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
12653         * keyboard.c (restore_kboard_configuration): Only define when
12654         MULTI_KBOARD defined.
12656         * makefile.w32-in: Update dependancies from Makefile.in.
12657         (OBJ1): Add terminal.$(O)
12659         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
12660         Don't define function body.
12661         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
12663         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
12665         * w32.c (request_sigio, unrequest_sigio): Remove.
12667         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
12668         (w32con_clear_frame, w32con_clear_end_of_line)
12669         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
12670         (w32con_delete_glyphs, w32con_set_terminal_window)
12671         (scroll_line, w32_sys_ring_bell): Add frame arg.
12672         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
12673         Add terminal arg.
12674         (PICK_FRAME): Remove.
12675         (w32con_write_glyphs): Use frame specific terminal coding.
12676         (one_and_only_w32cons): New global variable.
12677         (initialize_w32_display): Use it for storing hooks.
12678         (create_w32cons_output): New function.
12680         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
12681         arg a frame.
12683         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
12684         Set window_system.
12685         (x_set_tool_bar_lines): Don't use updating_frame.
12686         (Fx_create_frame): Set terminal and ref count.
12687         (Fx_open_connection): Remove window-system check.
12689         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
12691         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
12692         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
12693         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
12694         Add frame arg.
12695         (x_delete_terminal, w32_create_terminal): New functions.
12696         (w32_term_init): Create a terminal.
12697         (w32_initialize): Move terminal specific initialization to
12698         w32_create_terminal.
12700         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
12701         (w32_clear_rect, w32_clear_area): Use background from frame.
12702         (w32_display_info): Add terminal.
12703         (w32_sys_ring_bell, x_delete_display): Declare here.
12705         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
12707         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
12709 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
12711         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
12712         Fix get_named_tty calls for the controlling tty.
12714 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
12716         * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
12718 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
12720         * term.c (tty_insert_glyphs): Add missing first parameter.
12722 2007-08-29  Károly Lőrentey  <karoly@lorentey.hu>
12724         * buffer.c (Fbuffer_list, Fbury_buffer):
12725         Take frame->buried_buffer_list into account.
12727         * cm.c (current_tty): New variable, for cmputc().
12728         (cmputc): Use it.
12729         (cmcheckmagic): Add tty parameter, look up terminal streams there.
12730         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
12731         (cmgoto): Add tty parameter.  Pass it on to calccost().
12732         Use emacs_tputs() instead of tputs().
12734         * cm.h (emacs_tputs): New macro to set current_tty, and then call
12735         tputs().
12736         (current_tty): New variable, for cmputc().
12737         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
12739         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
12740         (internal_condition_case, internal_condition_case_1)
12741         (internal_condition_case_2): Don't abort when x_catching_errors.
12743         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
12744         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
12745         prevent crashes caused by bogus longjmps in read_char.
12747         * keymap.h (Fset_keymap_parent): Add EXFUN.
12749         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
12750         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12751         Remove redundant definition.
12753         * macfns.c (x_set_mouse_color, x_make_gc):
12754         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12756         * w32term.c (x_free_frame_resources):
12757         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12758         (w32_initialize): Use the accessor macros for terminal characteristics.
12760         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
12761         Use the accessor macros for terminal characteristics.
12762         * msdos.c (internal_terminal_init): Use the accessor macros for
12763         terminal characteristics.
12764         (ScreenVisualBell, internal_terminal_init):
12765         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12767         * termopts.h (no_redraw_on_reenter): Declare.
12769         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
12770         (mark_terminals, mark_ttys): Declare.
12771         (Fgarbage_collect): Call them.
12772         (mark_object): Mark buried_buffer_list.
12774         * prefix-args.c: Include stdlib.h for exit.
12776         * syssignal.h: Add comment.
12778         * indent.c: Include stdio.h.
12780         * window.h (Vinitial_window_system): Declare.
12781         (Vwindow_system): Delete declaration.
12783         * fontset.c (Finternal_char_font): Use FRAME_RIF.
12785         * image.c (lookup_image): Don't initialize `c' until the xasserts
12786         have been run.
12788         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
12789         FRAME_FOREGROUND_PIXEL.
12791         * print.c (print_preprocess): Don't lose print_depth levels while
12792         iterating.
12794         * widget.c (update_from_various_frame_slots):
12795         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12797         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
12798         frames.
12799         (window_internal_height): Remove bogus make_number call.
12800         (init_window_once): Call make_terminal_frame with two zero parameters.
12802         * fileio.c (Fread_file_name): Update comment.
12804         * callint.c (Fcall_interactively):
12805         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
12806         Make sure it is correctly unwound.
12808         * xsmfns.c (x_session_close): New function.
12810         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
12811         Delete declarations.
12813         * xterm.h: Remove declaration for x_fully_uncatch_errors.
12814         (x_output): Remove background_pixel and foreground_pixel fields.
12815         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
12816         (x_delete_device, x_session_close): Declare.
12818         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
12819         (read_filtered_event): Call `read_char' with a local
12820         `wrong_kboard_jmpbuf'.
12822         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
12823         Don't call single_kboard_state.  Use FRAME_RIF.
12825         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
12826         systems.
12828         * lisp.h (set_process_environment): Rename to `set_global_environment'.
12829         (Fframe_with_environment, Fset_input_meta_mode)
12830         (Fset_quit_char): EXFUN.
12831         (x_create_device, tty_output, terminal, tty_display_info): Declare.
12832         (init_sys_modes, reset_sys_modes): Update prototypes.
12833         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
12835         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
12836         Vlocal_key_translation_map, and Vkeyboard_translate_table.
12837         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
12838         Delete declarations.
12839         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
12840         (temporarily_switch_to_single_kboard, tty_read_avail_input):
12841         New declarations.
12843         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
12844         already does that during init_display().  Call syms_of_keymap
12845         before syms_of_keyboard.  Call `syms_of_terminal'.
12846         Call set_initial_environment, not set_process_environment.
12847         (shut_down_emacs): Call reset_all_sys_modes() instead of
12848         reset_sys_modes().
12850         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
12851         (internal_resolve_face_name, resolve_face_name_error): New functions.
12852         (resolve_face_name): Protect against loops and errors thrown by Fget.
12853         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
12854         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
12856         * scroll.c: Replace CURTTY() with local variables throughout the
12857         file (where applicable).
12858         (calculate_scrolling, calculate_direct_scrolling)
12859         (scrolling_1, scroll_cost): Use the accessor macros for terminal
12860         characteristics.
12862         * keymap.c (Vfunction_key_map): Remove.
12863         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
12864         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
12865         (Vkey_translation_map): Remove.
12866         (syms_of_keymap): Remove DEFVAR for key-translation-map.
12867         (Fdescribe_buffer_bindings)
12868         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
12869         Update for terminal-local key-translation-map.
12871         * Makefile.in (callproc.o): Update dependencies.
12872         (lisp, shortlisp): Add termdev.elc.
12873         (obj): Add terminal.o.
12874         (terminal.o): Add dependencies.
12875         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
12876         (data.o, fns.o): Add termhooks.h dependency.
12877         (SOME_MACHINE_LISP): Add dnd.elc.
12878         (minibuf.o): Fix typo.
12879         Update dependencies.
12881         * data.c (do_symval_forwarding, store_symval_forwarding)
12882         (find_symbol_value): Use the selected frame's keyboard, not
12883         current_kboard.
12885         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
12886         Vwindow_system.
12888         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
12889         Fmenu_bar_open.
12890         (syms_of_xmenu): Update defsubr.
12891         (mouse_position_for_popup, Fx_popup_menu)
12892         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
12893         (set_frame_menubar, free_frame_menubar)
12894         (create_and_show_popup_menu, xmenu_show, )
12895         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
12896         an X frame.
12898         * xselect.c (x_own_selection): Abort if not an X frame.
12899         (some_frame_on_display): Check if it is an X frame.
12900         (x_handle_selection_clear): Deal with MULTI_KBOARD.
12902         * coding.c: Include frame.h and termhooks.h.
12903         (terminal_coding, keyboard_coding): Delete.
12904         (Fset_terminal_coding_system_internal)
12905         (Fset_keyboard_coding_system_internal)
12906         (Fkeyboard_coding_system)
12907         (Fterminal_coding_system): Add a terminal parameter.
12908         Get terminal_coding from the terminal.
12909         (init_coding_once): Don't call setup_coding_system here.
12911         * dispextern.h (set_scroll_region, turn_off_insert)
12912         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
12913         (tty_clear_end_of_line, tty_setup_colors)
12914         (delete_tty, updating_frame)
12915         (produce_special_glyphs, produce_glyphs, write_glyphs)
12916         (insert_glyphs): Remove.
12917         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
12918         (tty_turn_off_highlight, get_tty_size): Add declaration.
12919         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
12921         * frame.h (enum output_method): Add output_initial.
12922         (struct x_output): Delete.
12923         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12924         Access foreground_pixel and background_pixel directly from the frame.
12925         (tty_display): Delete.
12926         (struct frame): Add buried_buffer_list, foreground_pixel,
12927         background_pixel and terminal.  Delete kboard.
12928         (union output_data): Add tty.
12929         (FRAME_KBOARD): Get the kboard from the terminal.
12930         (FRAME_INITIAL_P): New macro.
12931         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
12932         (Qterm_environment_variable, Qdisplay_environment_variable)
12933         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
12934         New declarations.
12936         * termchar.h (tty_output, tty_display_info): New structures.
12937         (tty_list): Declare.
12938         (FRAME_TTY, CURTTY): New macros.
12939         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
12940         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
12941         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
12942         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
12944         * callproc.c: Include frame.h and termhooks.h, for terminal
12945         parameters.
12946         (add_env): New function.
12947         (child_setup): Use it.
12948         (child_setup, getenv_internal): Handle the new Vprocess_environment.
12949         (getenv_internal): Fix get_terminal_param call.
12950         (Fgetenv_internal, egetenv): Update doc.
12951         (syms_of_callproc): Initialize Vprocess_environment to nil.
12952         Register and initialize them.  Remove obsolete defvars.  Update doc
12953         strings.
12954         (child_setup): Handle Vlocal_environment_variables.
12955         (getenv_internal): Add terminal parameter.
12956         Handle Vlocal_environment_variables.
12957         (Fgetenv_internal): Add terminal parameter.
12958         (child_setup, getenv_internal, Fgetenv_internal): Store the local
12959         environment in a frame (not terminal) parameter.  Update doc strings.
12960         (set_initial_environment): Rename from set_global_environment.
12961         Store Emacs environment in initial frame parameter.
12963         * xdisp.c (redisplay_internal): Update references to
12964         `previous_terminal_frame'.
12965         (display_mode_line, Fformat_mode_line): Replace calls to
12966         `push_frame_kboard' with `push_kboard'.
12967         (get_glyph_string_clip_rects): Add extra parentheses and
12968         braces to prevent compiler warnings.
12969         (calc_pixel_width_or_height): Add xassert to check that the
12970         frame is alive.  Don't call `lookup_image' on a termcap frame.
12971         (message2_nolog, message3_nolog, redisplay_internal)
12972         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
12973         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
12974         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
12975         (Fx_display_pixel_width, Fx_display_pixel_height)
12976         (Fx_display_planes, Fx_display_color_cells)
12977         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
12978         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
12979         (Fx_display_backing_store, Fx_display_visual_class)
12980         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
12981         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
12983         * xfns.c (x_set_foreground_color x_set_background_color)
12984         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
12985         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
12986         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
12987         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
12988         terminal that is being deleted.
12989         (Fx_create_frame): Use `store_frame_param' to set `window-system'
12990         frame parameter, and make sure it overrides any user-supplied setting.
12991         (Fx_close_connection, Fx_synchronize): Unify argument names with
12992         the rest of the DEFUNs.
12994         * dispnew.c (Fsend_string_to_terminal): Update call to
12995         `get_tty_terminal'.
12996         (Fredraw_frame, Fsend_string_to_terminal)
12997         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
12998         FRAME_TERMCAP_P and FRAME_TTY.
12999         (window_change_signal): Don't believe width/height values that are
13000         impossibly small.
13001         (Vinitial_window_system): Rename from Vwindow_system.
13002         (termscript, Wcm, rif): Delete.
13004         * termhooks.h (struct terminal): New struct containing the
13005         previously global text display hooks and new members NAME,
13006         DELETED and PARAM_ALIST.
13007         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
13008         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
13009         (FRAME_RIF): New macros.
13010         (get_terminal_param, get_device): New declarations.
13011         (termscript): Delete declaration.
13013         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
13014         (XTflash, x_free_frame_resources, x_scroll_bar_create)
13015         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
13016         FRAME_FOREGROUND_PIXEL.
13017         (x_fully_uncatch_errors): Disable definition.
13018         (x_scroll_bar_expose): Fix reference to foreground pixel.
13019         (XTread_socket): Disable loop on all X displays.
13020         (x_delete_terminal): Don't set terminal->deleted and let
13021         delete_terminal delete the frames on the terminal.
13022         (x_delete_display): Doc update to reflect changes in
13023         delete_terminal.
13024         (x_display_info) <terminal>: Move member earlier in the struct.
13025         (deleting_tty): Remove old variable.
13026         (Fsuspend_tty): Call clear_tty_hooks.
13027         (Fresume_tty, init_tty): Call set_tty_hooks.
13028         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
13029         errors on X frames.
13030         (x_catch_errors_unwind): Abort if x_error_message is NULL.
13031         (handle_one_xevent): Initialize `f' to NULL.
13032         (x_delete_terminal, x_create_terminal): New functions.
13033         (XTset_terminal_modes, XTreset_terminal_modes)
13034         (XTread_socket, x_connection_closed, x_term_init)
13035         (x_term_init, x_delete_display): Add terminal parameter.
13036         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
13037         X connections.
13039         * frame.c: Include termchar.h.
13040         (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
13041         (Qwindow_system, Qenvironment, Qterm_environment_variable)
13042         (Qdisplay_environment_variable): New vars.
13043         (Fframep): Deal with output_initial.
13044         (Fframe-live-p): Doc fix.
13045         (Fwindow-system): New function.
13046         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
13047         (make_terminal_frame): Don't create frames on a terminal that is
13048         being deleted.  Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
13049         (store_frame_param): Check for found_for_frame before calling XFRAME.
13050         (Fmake_terminal_frame): Handle NULL tty names correctly.
13051         (syms_of_frame): Enhance doc string of `default-frame-alist'.
13052         (Fdelete_frame): Remove unused variable `count'.  Don't allow other
13053         frames to refer to a deleted frame in their 'environment parameter.
13054         (Fframe_with_environment): New function.
13055         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
13056         (get_future_frame_param): New function.
13057         (Fmake_terminal_frame): Use it.
13058         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
13060         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
13061         * sysdep.c (reset_sys_modes): Update for renames.
13063         * keyboard.c (tty_read_avail_input): New function.
13064         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
13065         (syms_of_keyboard): Defsubr them.
13066         (Fset_input_meta_mode, Fset_quit_char): New functions.
13067         (Fset_input_mode): Split to above functions.
13068         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
13069         parameter.  Use it in call to `read_char'.
13070         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
13071         Set wrong_kboard_jmpbuf correctly in recursive calls.
13072         Use current_kboard to access Vkeyboard_translate_table.
13073         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
13074         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
13075         Update longjmp invocations.  Remember the original current_kboard,
13076         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
13077         changes it.  Comment out unnecessary calls to
13078         `record_single_kboard_state' and `any_kboard_state'.
13079         Update recursive calls.
13080         (wrong_kboard_jmpbuf): Remove global variable.
13081         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
13082         Handle deleted interrupted_kboards correctly; that is a legal
13083         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
13084         and read_char calls.  Abort if interrupted_kboard died in read_char.
13085         (any_kboard_state, single_kboard_state)
13086         (push_frame_kboard): Remove function.
13087         (pop_kboard): Switch out of single_kboard mode if the kboard has
13088         been deleted.  Remove unused variable.  Help debugging by not
13089         changing current_kboard unnecessarily.  Set current_kboard to the
13090         kboard of the selected frame when the stored kboard object has
13091         been deleted before pop_kboard.
13092         (temporarily_switch_to_single_kboard): Change first parameter to a
13093         frame pointer.  Throw an error when caller wants to change kboards
13094         while in single_kboard mode.  Don't push_kboard if we weren't in
13095         single kboard state.  Don't pop_kboard if we popped into any
13096         kboard state.
13097         (restore_kboard_configuration): Abort if pop_kboard changed the
13098         kboard in single_kboard mode.  Call pop_kboard only after setting
13099         up single_kboard mode.
13100         (Frecursive_edit): Switch to single_kboard mode only in nested
13101         command loops.
13102         (cmd_error, command_loop, command_loop_1, timer_check):
13103         Comment out unnecessary call to `any_kboard_state' and
13104         `record_single_kboard_state'.
13105         (delete_kboard): Exit single_kboard mode if we have just deleted
13106         that kboard.  Use FRAME_KBOARD.
13107         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
13108         `fatal_error_signal'.
13109         (record_single_kboard_state): Don't push_kboard if we weren't in
13110         single kboard state.  Don't pop_kboard if we popped into any
13111         kboard state.
13112         (push_frame_kboard): Rename to push_kboard.
13113         (kbd_buffer_get_event): Use FRAME_TERMINAL.
13114         (read_avail_input): Read input from all terminals.
13115         (mark_kboards): Also mark Vkeyboard_translate_table.
13116         (kbd_buffer_store_event_hold): Simplify condition.
13117         (read_key_sequence): Reinitialize fkey and keytran at each replay.
13118         (Vkeyboard_translate_table): Move to struct kboard.
13119         (init_kboard): Initialize Vkeyboard_translate_table.
13120         (syms_of_keyboard): Use DEFVAR_KBOARD to define
13121         Vkeyboard_translate_table.  Update doc strings.  Update docs of
13122         local-function-key-map and function-key-map.
13124         * terminal.c: New file.
13126         * term.c: Include errno.h.
13127         (Vring_bell_function, device_list, initial_device)
13128         (next_device_id, ring_bell, update_begin, update_end)
13129         (set_terminal_window, cursor_to, raw_cursor_to)
13130         (clear_to_end, clear_frame, clear_end_of_line)
13131         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
13132         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
13133         (syms_of_term): Move their initialization to terminal.c.
13134         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
13135         (Ftty_display_color_cells)
13136         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
13137         (clear_tty_hooks, set_tty_hooks)
13138         (init_tty, maybe_fatal): New functions.
13139         (Ftty_type): Return nil if terminal is not on a tty instead of
13140         throwing an error.  Doc update.
13141         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
13142         Doc update.  Initialize new subrs and variables.
13143         (delete_tty): Use terminal->deleted.
13144         (tty_set_terminal_modes): Rename from set_terminal_modes.
13145         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
13146         (set_scroll_region): Rename to `tty_set_scroll_region'.
13147         (turn_on_insert): Rename to `tty_turn_on_insert'.
13148         (turn_off_insert): Rename to `tty_turn_off_insert'.
13149         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
13150         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
13151         (toggle_highligh): Rename to `tty_toggle_highlight'.
13152         (background_highlight): Rename to `tty_background_highlight'.
13153         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
13154         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
13155         (tty_set_scroll_region, tty_background_highlight)
13156         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
13157         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
13158         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
13159         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
13160         Add static modifier.
13161         (tty_reset_terminal_modes, tty_set_terminal_window)
13162         (tty_set_scroll_region, tty_background_highlight)
13163         (tty_highlight_if_desired, tty_cursor_to)
13164         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
13165         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
13166         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
13167         renames.
13169 2007-08-28  Jan Djärv  <jan.h.d@swipnet.se>
13171         * keyboard.c: Qrtl is new.
13172         (parse_tool_bar_item): Handle :rtl keyword.
13173         (syms_of_keyboard): Intern :rtl keyword.
13175         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
13177         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
13178         so no Lisp code is executed.
13179         (file_for_image, find_rtl_image): New functions.
13180         (xg_get_image_for_pixmap): Use file_for_image.
13181         (update_frame_tool_bar): If direction is RTL, use RTL image if
13182         defined.  Use Gtk stock images if defined.
13184 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13186         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
13187         for nonexistent or zero-width glyph in composition glyph.
13189 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
13191         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
13193         * xdisp.c (Finvisible_p): New function.
13194         (syms_of_xdisp): defsubr it.
13196 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
13198         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
13199         Doc fixes.
13201 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13203         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
13205 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
13207         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
13208         whether decoding has modified buffer contents.
13210 2007-08-24  Jason Rumney  <jasonr@gnu.org>
13212         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
13213         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
13214         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
13215         (init_svg_functions) [HAVE_NTGUI]: New function.
13216         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
13217         (svg_load_image): Use them.
13218         (svg_load_image) [HAVE_NTGUI]: Implement background.
13220 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13222         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
13223         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
13224         (LIBX): Remove @RSVG_LIBS@.
13225         (LIBES): Add $(RSVG_LIBS).
13227         * image.c (svg_load_image): Blend with specified background if exists.
13228         Use IMAGE_BACKGROUND.  Add Mac OS Support.
13230         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
13231         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
13232         Remove macros.
13233         [MAC_OSX] (socket_callback): Do nothing.
13234         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
13235         ReceiveNextEvent.
13236         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
13237         socket_callback.
13238         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
13240 2007-08-22  Glenn Morris  <rgm@gnu.org>
13242         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
13244 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
13246         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
13248         * image.c: Add support for SVG images.  Some additional comments
13249         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
13250         (svg_image_p): New function to test for SVG image.
13251         (svg_load): New function to load SVG image.
13252         (svg_load_image): New function, helper for svg_load.
13253         (Qsvg): New Lisp_object.
13254         (svg_keyword_index): New enum.
13255         (svg_format): New static `image_keyword' struct.
13256         (svg_type): New static `image_type' struct.
13257         (librsvg/rsvg.h): Include it.
13259 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
13261         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
13263 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
13265         * lread.c (Qold_style_backquotes): New var.
13266         (syms_of_lread): Init and staticpro it.
13267         (load_warn_old_style_backquotes): New fun.
13268         (Fload): Use them to warn about old style backquotes.
13269         (end_of_file_error, Fload): Remove unused vars.
13271         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
13273         * lread.c (Vold_style_backquotes): New var.
13274         (syms_of_lread): Init and export it to Elisp.
13275         (read1): Set it when we find an old-style (back)quote.
13277 2007-08-22  Jason Rumney  <jasonr@gnu.org>
13279         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
13281 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
13283         * puresize.h (BASE_PURESIZE): Increase to 1140000.
13285 2007-08-19  Richard Stallman  <rms@gnu.org>
13287         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
13289 2007-08-19  Andreas Schwab  <schwab@suse.de>
13291         * alloc.c (pure): Round PURESIZE up.
13293 2007-08-17  Jan Djärv  <jan.h.d@swipnet.se>
13295         * xterm.c (handle_one_xevent): Remove check that mouse click is in
13296         active frame.
13298 2007-08-16  Richard Stallman  <rms@gnu.org>
13300         * eval.c (Fcommandp): Add parens to clarify.
13302         * minibuf.c (Fall_completions): Use enum for type of table.
13304         * emacs.c (USAGE2): Improve text.
13306 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
13308         * term.c (tty_default_color_capabilities): Declare static
13309         variables in file scope, to avoid HPUX compiler problem.
13311 2007-08-13  Jan Djärv  <jan.h.d@swipnet.se>
13313         * gtkutil.c (update_frame_tool_bar): Use -1 as index
13314         to gtk_toolbar_insert.
13316 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
13318         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
13320         * insdel.c (reset_var_on_error): New fun.
13321         (signal_before_change, signal_after_change):
13322         Use it to reset (after|before)-change-functions to nil in case of error.
13323         Bind inhibit-modification-hooks to t.
13324         Don't bind (after|before)-change-functions to nil while they run.
13326 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13328         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
13329         filling pixmap with stippled background.
13331 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13333         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
13334         Don't use invisible frame as parent window for repositioning.
13336 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
13338         * print.c (new_backquote_output): Rename from old_backquote_output.
13339         (print): Inverse its logic (according to its name) so as to match the
13340         behavior of new_backquote_flag in lread.c.
13342 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13344         * gmalloc.c (posix_memalign): New function.
13346         * macterm.c (frame_highlight, frame_unhighlight): Don't call
13347         ActivateControl/DeactivateControl here.
13348         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
13349         frame-notice-user-settings is non-nil.
13350         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
13351         for kEventParamFMFontStyle.
13352         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
13353         mac_pass_command_to_system and mac_pass_control_to_system here.
13354         (XTread_socket): Call ActivateControl/DeactivateControl here.
13355         (XTread_socket) [TARGET_API_MAC_CARBON]:
13356         Check mac_pass_command_to_system and mac_pass_control_to_system here.
13357         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
13358         for window repositioning.
13360 2007-08-08  Glenn Morris  <rgm@gnu.org>
13362         * Replace `iff' in doc-strings and comments.
13364 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
13366         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
13368 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
13370         * fileio.c (Finsert_file_contents): Run format-decode and
13371         after_insert_file_functions on entire buffer when REPLACE is
13372         non-nil and inhibit modification_hooks and point_motion_hooks.
13373         For consistency, run after_insert_file_functions iff something
13374         got inserted.  Move signal_after_change and update_compositions
13375         after code running after_insert_file_functions.  Make sure that
13376         undo_list doesn't record intermediate steps of the decoding process.
13378 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13380         * emacs.c (main)
13381         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
13382         Call malloc_enable_thread on interactive startup.
13384         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
13385         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
13386         [USE_PTHREAD]: Conditionalize with it.
13387         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
13388         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
13389         New functions.
13391 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
13393         * xdisp.c (redisplay_window): When restoring original buffer
13394         position, make sure it is still valid.
13396         * image.c (png_load): Ignore png-supplied background color.
13398 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13400         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
13401         Use kCFAbsoluteTimeIntervalSince1970.
13403         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
13404         New variable.
13405         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
13406         event loop should be quit.
13407         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
13408         Quit dialog event loop if quit_dialog_event_loop is set.
13410         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
13411         (Selection): New typedef.  Use instead of ScrapRef.
13412         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
13413         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
13414         (mac_clear_selection): Rename from clear_scrap.
13415         (get_flavor_type_from_symbol): New argument SEL and subsume function of
13416         scrap_has_target_type.  All uses changed.
13417         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13418         (mac_selection_has_target_p): New functions.
13419         (mac_put_selection_value): Rename from put_scrap_string.
13420         (mac_get_selection_value): Rename from get_scrap_string.
13421         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
13422         (put_scrap_private_timestamp, scrap_has_target_type)
13423         (get_scrap_private_timestamp): Remove functions.
13424         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
13425         (x_own_selection, x_get_local_selection):
13426         Use mac_valid_selection_value_p.
13427         (x_own_selection): Don't use put_scrap_private_timestamp.
13428         Record OWNERSHIP-INFO into Vselection_alist instead.
13429         (x_get_local_selection): Don't check type if request is local.
13430         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
13431         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
13433 2007-08-04  Jan Djärv  <jan.h.d@swipnet.se>
13435         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
13436         add comment explaining why.
13438 2007-08-03  Richard Stallman  <rms@gnu.org>
13440         * fileio.c (Fvisited_file_modtime): Use make_time.
13442 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
13444         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
13445         build.
13447 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
13449         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
13451 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
13453         * puresize.h (BASE_PURESIZE): Increase to 1130000.
13455 2007-07-30  Richard Stallman  <rms@gnu.org>
13457         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
13459 2007-07-29  Jan Djärv  <jan.h.d@swipnet.se>
13461         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
13463 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
13465         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
13466         remote default-directory.
13468         * buffer.c (mode-line-format): Update doc string.
13470 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13472         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
13473         scroll bar gap.
13474         (x_scroll_bar_create): Set bar->fringe_extended_p.
13475         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
13476         on frame edge.  Check fringe background extension.  Don't clear
13477         extended fringe background area.
13479         * w32term.h (struct scroll_bar): New member fringe_extended_p.
13480         (w32_fill_area): Enclose multiple statements with do ... while (0).
13482         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
13483         Extend fringe background to scroll bar gap.
13484         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
13485         Set bar->fringe_extended_p.
13486         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13487         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
13488         background extension.  Don't clear extended fringe background area.
13490         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13491         New member fringe_extended_p.
13493 2007-07-25  Glenn Morris  <rgm@gnu.org>
13495         * Relicense all FSF files to GPLv3 or later.
13497         * COPYING: Switch to GPLv3.
13499 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
13501         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
13503         * data.c (Finteractive_form): Check for the presence of an
13504         `interactive-form' symbol property more thoroughly.
13506         * data.c (Finteractive_form): Use an `interactive-form' property if
13507         present, analogous to the function-documentation property.
13509 2007-07-24  Jason Rumney  <jasonr@gnu.org>
13511         * w32fns.c (x_real_positions): Get real position from OS instead of
13512         calculating it.
13514 2007-07-23  Jason Rumney  <jasonr@gnu.org>
13516         * filelock.c (current_lock_owner): Allow for @ sign in username.
13518 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
13520         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
13521         remote default-directory.
13523         * buffer.c (mode-line-format): Describe above case in doc string.
13525 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
13527         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
13528         Define if not defined.
13530 2007-07-18  Jason Rumney  <jasonr@gnu.org>
13532         * w32proc.c (w32_executable_type): Handle 64 bit executables.
13534 2007-07-18  Richard Stallman  <rms@gnu.org>
13536         * data.c (Fsetq_default): Doc fix.
13538         * eval.c (Fsetq): Doc fix.
13540 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
13542         * coding.c (Ffind_operation_coding_system):
13543         * eval.c (For, Fand): Doc fixes.
13544         Reported by Johan Bockgård.
13546 2007-07-18  Jan Djärv  <jan.h.d@swipnet.se>
13548         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
13550         * xterm.h: Declare x_ewmh_activate_frame.
13552         * xterm.c (x_ewmh_activate_frame): New function.
13553         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
13555 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
13557         * window.c (Fdisplay_buffer): If largest or LRU window is the
13558         only window, split it even if it is not eligible for splitting.
13559         This restores the original behavior broken by the 2007-07-15
13560         change.
13562 2007-07-17  Glenn Morris  <rgm@gnu.org>
13564         * abbrev.c (abbrev_check_chars): New function.
13565         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13566         Call abbrev_check_chars to check abbrev characters are word
13567         constituents.  Doc fix.
13569 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
13571         * process.c (Fstart_process, Fmake_network_process)
13572         (read_process_output): Fix up last changes.
13574 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
13576         * makefile.w32-in (clean): Don't delete *~.
13578 2007-07-16  Andreas Schwab  <schwab@suse.de>
13580         * window.c (Fdisplay_buffer): Use NILP.
13581         (Fset_window_scroll_bars): Likewise.
13583 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
13585         * window.c (window_min_size_2): New function.
13586         (window_min_size_1, size_window, Fdisplay_buffer)
13587         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
13588         windows without mode- or header-lines when window-min-height is
13589         too small.
13590         (size_window): Reset nodelete_p after testing it, following an
13591         earlier note by Kim F. Storm.
13592         (display_buffer): Do not set split_height_threshold to twice the
13593         value of window_min_height to avoid changing the value of a
13594         customizable variable.  Rather explicitly check whether the
13595         height of the window that shall be splitted is at least as large
13596         as split_height_threshold.
13597         (Fwindow_full_width_p): New defun.
13598         (syms_of_window): Defsubr it.
13600         * window.h: Add EXFUN for Fwindow_full_width_p.
13602 2007-07-14  Jason Rumney  <jasonr@gnu.org>
13604         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
13606 2007-07-14  Richard Stallman  <rms@gnu.org>
13608         * eval.c (maybe_call_debugger): New function.
13609         (find_handler_clause): Use maybe_call_debugger.
13610         Call it when the handler says `debug'.
13611         Eliminate DEBUGGER_VALUE_PTR.
13612         (Fsignal): Eliminate debugger_value.
13613         (Qdebug): New variable.
13614         (syms_of_eval): Initialize it.
13616 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
13618         * eval.c (Fprogn):
13619         * keyboard.c (Ftrack_mouse):
13620         * print.c (Fwith_output_to_temp_buffer):
13621         * window.c (Fsave_window_excursion): Doc fix.
13623 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
13625         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
13627 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
13629         * process.h (struct Lisp_Process): Turn slots infd, outfd,
13630         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
13631         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
13632         read_output_delay, and read_output_skip from Lisp_Objects to ints.
13633         Remove unused encoding_carryover.
13634         * process.c: Adjust all functions accordingly.
13636 2007-07-12  Richard Stallman  <rms@gnu.org>
13638         * term.c: Include unistd.h only if HAVE_UNISTD_H.
13640 2007-07-11  Jason Rumney  <jasonr@gnu.org>
13642         * makefile.w32-in (LIBS): Include OLE32.
13644         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
13645         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
13647 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
13649         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
13650         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
13651         from a Lisp_Object into a bare pointer.
13652         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13653         Adjust the code correspondingly.
13655         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
13657         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
13658         (term_show_mouse_face): Remove unused var `j'.
13659         (handle_one_term_event): Remove unused vars `i' and `j'.
13660         Don't cast return value of ttyname since it's not necessary.
13662 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
13664         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
13665         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
13667         * fns.c (map_char_table): Use an array of int for `indices' rather than
13668         an array of Lisp_Objects (which are only ever integers anyway).
13669         (Fmap_char_table): Update caller.
13670         * lisp.h: Update prototype.
13671         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
13672         * fontset.c (Ffontset_info):
13673         * casetab.c (set_case_table): Update callers.
13675         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
13677         * keymap.c (struct accessible_keymaps_data)
13678         (struct where_is_internal_data): New structures.
13679         (accessible_keymaps_1, where_is_internal_1): Use them to change
13680         interface to adhere to the one used by map_keymap.
13681         (Faccessible_keymaps, where_is_internal): Use map_keymap.
13682         (accessible_keymaps_char_table, where_is_internal_2): Remove.
13684         * keymap.h (map_keymap_function_t): More informative prototype.
13686 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
13688         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
13689         (looking_at_1): Don't change search_regs and last_thing_searched
13690         if `inhibit-changing-match-data' is non-nil.
13691         (string_match_1, search_buffer, set_search_regs): Likewise.
13692         (syms_of_search): Add Lisp level definition for
13693         `inhibit-changing-match-data' and set it to nil.
13694         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
13695         start and end of the match, instead of using values in search_regs.
13697 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
13699         * minibuf.c (Fcompleting_read): New value `confirm-only'
13700         for `require-match'.
13702 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
13704         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
13705         part of the 2007-06-27 change to syms_of_fileio.
13707 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13709         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
13710         Check WINDOWP before using XWINDOW.  Consolidate return statements.
13712 2007-06-27  Richard Stallman  <rms@gnu.org>
13714         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13716 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
13718         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
13720 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13722         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
13723         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
13724         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
13725         (_free_internal, memalign): Use them.
13726         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
13727         Initialize to PTHREAD_MUTEX_INITIALIZER.
13728         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
13729         (morecore_nolock): Rename from morecore.  All uses changed.
13730         Use only nolock versions of internal allocation functions.
13731         (_malloc_internal_nolock, _realloc_internal_nolock)
13732         (_free_internal_nolock): New functions created from
13733         _malloc_internal, _realloc_internal, and _free_internal.
13734         (_malloc_internal, _realloc_internal, _free_internal): Use them.
13735         Copy hook value to automatic variable before its use.
13736         (memalign): Copy hook value to automatic variable before its use.
13738 2007-06-26  Kenichi Handa  <handa@m17n.org>
13740         * coding.c (Ffind_operation_coding_system): Docstring improved.
13741         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
13743 2007-06-25  David Kastrup  <dak@gnu.org>
13745         * keymap.c (Fcurrent_active_maps): Add `position' argument.
13746         (Fwhere_is_internal): Adjust call to `current-active-maps' to
13747         cater for additional parameter.
13749         * keymap.h: Adjust number of parameters to `current-active-maps'.
13751         * doc.c (Fsubstitute_command_keys): Adjust call of
13752         `current-active-maps'.
13754 2007-06-25  David Kastrup  <dak@gnu.org>
13756         * callint.c (Fcall_interactively): Make the parsing of interactive
13757         specs somewhat more readable.
13759 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13761         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
13762         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
13763         if extended background has already been filled.
13765 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13767         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
13768         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
13770         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
13771         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
13772         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
13773         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
13774         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
13775         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
13776         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
13777         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
13778         Run timers during dialog popup.
13779         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
13781 2007-06-21  Jason Rumney  <jasonr@gnu.org>
13783         * image.c (convert_mono_to_color_image): Swap fore and background.
13785 2007-06-20  Jason Rumney  <jasonr@gnu.org>
13787         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
13788         (w32_free_bdf_font): Unmap memory not handle.
13790 2007-06-20  Sam Steingold  <sds@gnu.org>
13792         * gmalloc.c (__morecore): Fix the declaration to comply with the
13793         definition.
13795 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
13797         * w32term.c (w32_delete_display): Remove leftover declaration.
13798         (w32_define_cursor, w32_initialize): Make static.
13800         * w32.c (_wsa_errlist): Fix typo in error message.
13801         (init_environment): Ignore any environment variable from the
13802         registry having a null value.
13804 2007-06-20  Glenn Morris  <rgm@gnu.org>
13806         * Makefile.in (LIBGIF): Default to -lgif.
13808 2007-06-17  Jason Rumney  <jasonr@gnu.org>
13810         * w32menu.c (add_menu_item): Don't use multibyte string functions on
13811         unicode strings.
13813 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
13815         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
13816         Fix typo in docstring.
13818 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
13820         * w32menu.c (add_menu_item): Escape `&' characters in menu items
13821         and their keybindings.
13823 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
13825         * composite.c (update_compositions): Fix last fix.
13827 2007-06-14  Jason Rumney  <jasonr@gnu.org>
13829         * w32.c (get_process_times_fn): New function pointer.
13830         (globals_of_w32): Intialize it if present in kernel32.dll.
13831         (w32_get_internal_run_time): New function.
13833         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
13835 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
13837         * composite.c (update_compositions): Check the validness of
13838         compositions.
13840 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13842         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
13843         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
13845         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
13846         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
13848         * macgui.h (USE_MAC_TOOLBAR): New define.
13850         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13851         Return immediately unless popup is activated.
13853         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
13854         background to scroll bar gap.
13855         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
13856         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
13857         scroll bars on frame edge.  Check fringe background extension.
13858         Don't clear extended fringe background area.
13859         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
13860         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
13861         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
13862         [USE_MAC_TOOLBAR]: New macros.
13863         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
13864         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
13865         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
13866         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
13867         [USE_MAC_TOOLBAR]: New functions.
13868         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
13869         manually if previous repositioning has failed.
13870         (mac_handle_keyboard_event): Use precomputed event kind.
13871         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
13872         as tool bar item click.  Handle mouse movement over tool bar items.
13874         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
13875         toolbar_win_gravity.
13876         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
13877         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
13878         Add externs.
13880         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
13881         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
13883 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
13885         * image.c (search_image_cache): Remove unused variable.
13887 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
13889         * xfns.c, xmenu.c: Link to xaw3d if available.
13891 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13893         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
13894         frame_foreground and frame_background.
13896         * image.c (lookup_image): Save frame foreground and background colors.
13897         (search_image_cache): Check if saved and current frame colors match.
13899 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
13901         * regex.c (regex_compile): Remove the `regnum' counter.
13902         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
13904 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
13906         * term.c: Include intervals.h to declare Fget_text_property.
13908 2007-06-10  Jason Rumney  <jasonr@gnu.org>
13910         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
13912 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
13914         * callint.c (Fcall_interactively):
13915         * editfns.c (Fdelete_and_extract_region):
13916         * fileio.c (Fread_file_name):
13917         * fns.c (Fmapconcat):
13918         * keyboard.c (cmd_error_internal):
13919         * keymap.c (Fkey_description):
13920         * lread.c (openp):
13921         * minibuf.c (read_minibuf):
13922         * search.c (wordify):
13923         * sunfns.c (sel_read):
13924         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
13925         * xfns.c (x_default_scroll_bar_color_parameter):
13926         * xmenu.c (menu_help_callback):
13927         * xselect.c (Fx_get_atom_name):
13928         * xterm.c (x_term_init): Use empty_unibyte_string.
13930 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
13932         * alloc.c (init_strings): Initialize canonical empty strings.
13933         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
13934         canonical empty string when the requested size is 0.
13936         * emacs.c (empty_unibyte_string): Rename from empty_string.
13937         (empty_multibyte_string): New canonical empty string.
13938         (syms_of_emacs): Don't initialize empty_string.
13940         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
13941         string, if appropriate.
13942         (empty_unibyte_string, empty_multibyte_string): New externs.
13943         (empty_string): Remove extern.
13945         * lread.c (syms_of_lread): Use empty_unibyte_string.
13947 2007-06-07  Jason Rumney  <jasonr@gnu.org>
13949         * s/ms-w32.h: Don't define HAVE_TZNAME.
13951         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
13953 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13955         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
13957         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
13958         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
13960         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13961         Don't call next handler.
13962         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
13963         Remove argument.  Install handler to application.
13964         (set_frame_menubar): Don't change deep_p.
13965         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
13966         FRAME_OUTER_TO_INNER_DIFF_Y.
13967         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13968         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13969         [HAVE_DIALOGS]: New macros.
13970         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
13971         Use them.
13972         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
13974         * macselect.c [MAC_OSX] (install_service_handler): Rename from
13975         init_service_handler.  All callers changed.  Return OSStatus value.
13977         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
13978         All callers changed so as not to call SetPortWindowPort.
13979         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
13980         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
13981         mac_draw_string_common.
13982         (mac_draw_image_string_qd): Likewise.
13983         (mac_draw_string_common): Use them.  Add INLINE.
13984         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
13985         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
13986         GetGlobalMouse.
13987         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
13988         and FRAME_OUTER_TO_INNER_DIFF_Y.
13989         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
13990         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
13991         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
13992         repositioning window to mac_handle_window_event.
13993         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
13994         saving window location to mac_handle_window_event
13995         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
13996         (install_menu_target_item_handler): Remove argument in extern.
13997         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
13998         Also accept command events.
13999         (do_keystroke): New function created from XTread_socket.
14000         (init_command_handler): Remove functions.
14001         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
14002         and save window location by kEventWindowShowing and kEventWindowHiding
14003         handlers here.  Don't call next handler for window state change and
14004         focus events.
14005         (mac_handle_application_event, mac_handle_keyboard_event)
14006         [TARGET_API_MAC_CARBON]: New functions.
14007         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
14008         kEventWindowShowing and kEventWindowHiding events.  Move installation
14009         of mouse, font, text input and menu target item handlers to
14010         install_application_handler.
14011         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
14012         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14013         New function.
14014         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14015         Register it.
14016         (XTread_socket) [TARGET_API_MAC_CARBON]:
14017         Consolidate SendEventToEventTarget calls.
14018         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
14019         Move application activation handler to mac_handle_application_event.
14020         Move keyboard handler to mac_handle_keyboard_event.
14021         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
14022         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
14023         init_command_handler.  Call install_application_handler.
14025         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
14026         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
14028 2007-06-07  Glenn Morris  <rgm@gnu.org>
14030         * emacs.c (main): Use `emacs-copyright' in --version output.
14032 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
14034         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
14036 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14038         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
14040         * macgui.h: Replace WindowPtr with WindowRef.
14042         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14043         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
14044         Replace ControlHandle with ControlRef.
14045         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
14047         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14048         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
14049         Replace ControlHandle with ControlRef.
14050         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
14051         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
14053         * macterm.h (struct scroll_bar): Rename member control_handle_low
14054         and control_handle_high to control_ref_low and control_ref_high.
14055         All uses changed.
14056         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
14057         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
14058         respectively.  All uses changed.
14059         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
14060         (install_window_handler, remove_window_handler): Replace WindowPtr
14061         with WindowRef in externs.
14063 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
14065         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
14067 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
14069         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
14071         * frame.c (Fmouse_position, Fmouse_pixel_position):
14072         Condition on HAVE_GPM too.
14074         * term.c (term_mouse_highlight): Remove unused variables.
14075         (Fterm_open_connection): Set gpm_zerobased to 1.
14076         (term_mouse_movement, term_mouse_click, handle_one_term_event):
14077         Use zero based co-ordinates.
14078         (handle_one_term_event): Report a drag as mouse movement too.
14080         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
14082 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
14084         * image.c (search_image_cache): New function.  Require background
14085         color match if background color is unspecified in the image spec.
14086         (uncache_image, lookup_image): Use it.
14088 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
14090         * window.c (Fshrink_window): Reflow docstring.
14092 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
14094         * Version 22.1 released.
14096 2007-06-01  Richard Stallman  <rms@gnu.org>
14098         * xfns.c (x_encode_text): Add GCPRO.
14100 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14102         * xfns.c (x_set_name_internal): Save encoded name before
14103         x_encode_text in case string data is relocated.
14105 2007-05-31  Richard Stallman  <rms@gnu.org>
14107         * buffer.c (syms_of_buffer): Doc fix.
14109 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
14111         * sysdep.c (init_sys_modes): Add rather than replace with
14112         O_NONBLOCK.
14114         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
14115         term_mouse_moveto.
14117         * termhooks.h (term_mouse_moveto): New extern.
14119         * term.c (mouse_face_window): Rename...
14120         (Qmouse_face_window): ...to this.
14121         (term_show_mouse_face, term_clear_mouse_face)
14122         (term_mouse_highlight): Use Qmouse_face_window.
14123         (term_mouse_moveto): New function.
14124         (term_mouse_position): Make it work.
14125         (syms_of_term): Uncomment assignment to mouse_position_hook.
14126         Staticpro Qmouse_face_window.
14128 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14130         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
14131         around current_column call.
14133 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
14135         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
14136         * xdisp.c (next_element_from_buffer):
14137         * window.c (delete_window):
14138         * term.c (term_mouse_highlight):
14139         * msdos.c (getdefdir):
14140         * macterm.c (mac_create_bitmap_from_bitmap_data)
14141         (init_font_name_table):
14142         * fns.c (Fsxhash):
14143         * data.c (Fmake_local_variable):
14144         * ccl.c (ccl_driver): Likewise.
14146 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14148         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
14149         Call mac_wakeup_from_rne on window size change.
14151 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
14153         * image.c (uncache_image): Fix typo.
14155 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
14157         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
14159 2007-05-22  Richard Stallman  <rms@gnu.org>
14161         * xterm.c (x_connection_closed): Remove NO_RETURN.
14163 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
14165         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
14167 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
14169         * image.c (uncache_image): New function.
14170         (Fimage_refresh): New function.
14172 2007-05-20  Jan Djärv  <jan.h.d@swipnet.se>
14174         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
14176 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
14178         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
14179         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
14181 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
14183         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
14184         conditional on [HAVE_GPM_H].
14186 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
14188         * syntax.c (skip_chars): Update syntax-table only after we checked that
14189         the new location is valid.
14191 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14193         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
14194         mac_get_window_bounds.
14196 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
14198         * Makefile.in (LIBGPM): Allow it to be set from configure.
14199         If set then link Emacs with it.
14201         * config.in: Regenerate.
14203         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
14204         New externs.
14206         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
14207         Include gpm.h.
14208         (handle_one_term_event, term_gpm): New externs.
14210         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
14211         and allow it to be interrupted by SIGIO.
14213         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
14214         (wait_reading_process_output): Wait on gpm_fd too.
14215         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
14216         (add_gpm_wait_descriptor_called_flag): New variable.
14217         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
14219         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
14220         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
14221         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
14222         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
14223         (make_lispy_event): Add case GPM_CLICK_EVENT.
14224         (read_avail_input): Handle mouse input.
14226         * term.c (write_glyphs_with_face): New function.
14227         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
14228         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
14229         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
14230         (mouse_face_face_id, term_gpm, pos_x, pos_y)
14231         (last_mouse_x, last_mouse_y): New variables.
14232         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
14233         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
14234         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
14235         (Fterm_close_connection): New functions.
14236         (term_init): Initialise mouse_face_window.
14238 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
14240         * xdisp.c (redisplay_window): If first window line is a
14241         continuation line, recompute the new window start instead of
14242         recentering.
14244 2007-05-18  Glenn Morris  <rgm@gnu.org>
14246         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
14247         Suggested by Alfred M. Szmidt <ams@gnu.org>.
14249 2007-05-17  Glenn Morris  <rgm@gnu.org>
14251         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
14253 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14255         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
14256         dead key repeat and up events.
14258 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
14260         * image.c (pbm_load): Check image size for monochrome pbm.
14262 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
14264         * xterm.c (XTread_socket): Revert last change.
14266 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
14268         * image.c (pbm_load): Correctly check image size for greyscale pbm.
14270         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
14272 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
14274         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
14275         mixup (YAILOM).
14277 2007-05-07  Andreas Schwab  <schwab@suse.de>
14279         * keymap.c (Flookup_key): Fix typo in last change.
14281 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
14283         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
14284         mapping for unibyte strings.
14286 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14288         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
14289         (Fx_popup_dialog) [MAC_OSX]: Likewise.
14291 2007-04-29  Richard Stallman  <rms@gnu.org>
14293         * insdel.c (replace_range): For undo, record insertion first.
14295 2007-04-29  Andreas Schwab  <schwab@suse.de>
14297         * lisp.h (VECSIZE): Use OFFSETOF.
14299 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14301         * xdisp.c (try_window_reusing_current_matrix): Fix number of
14302         disabled lines.
14304 2007-04-28  Richard Stallman  <rms@gnu.org>
14306         * lread.c (read_escape): In a string, \s is always space.
14308 2007-04-27  Jan Djärv  <jan.h.d@swipnet.se>
14310         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
14312         * gtkutil.c (xg_update_menubar, create_menus): Create empty
14313         submenu for menu bar items.
14315 See ChangeLog.10 for earlier changes.
14317 ;; Local Variables:
14318 ;; coding: utf-8
14319 ;; add-log-time-zone-rule: t
14320 ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
14321 ;; End:
14323     Copyright (C) 2007, 2008  Free Software Foundation, Inc.
14325   This file is part of GNU Emacs.
14327   GNU Emacs is free software: you can redistribute it and/or modify
14328   it under the terms of the GNU General Public License as published by
14329   the Free Software Foundation, either version 3 of the License, or
14330   (at your option) any later version.
14332   GNU Emacs is distributed in the hope that it will be useful,
14333   but WITHOUT ANY WARRANTY; without even the implied warranty of
14334   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14335   GNU General Public License for more details.
14337   You should have received a copy of the GNU General Public License
14338   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
14340 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40