(WS_EX_LAYERED): Define if not already.
[bpt/emacs.git] / src / ChangeLog
index fb58312..e60579f 100644 (file)
@@ -1,3 +1,442 @@
+2008-07-07  Jason Rumney  <jasonr@gnu.org>
+
+        * w32term.c (WS_EX_LAYERED): Define if not already.
+
+2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfaces.c (set_font_frame_param): Don't try to set the font
+       parameter if it is still unspecified in the lface.
+
+2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfaces.c (Finternal_merge_in_global_face): Don't realize default
+       face if it didn't already exist.
+
+       * xdisp.c (try_window_id): Give up if word-wrapping is on.
+
+2008-07-05  Andreas Schwab  <schwab@suse.de>
+
+       * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM
+       section.
+
+2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
+       word-wrapping.
+       (IT_DISPLAYING_WHITESPACE): New macro.
+       (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
+       when word-wrapping.  Simplify word-wrapping logic.  Use correct
+       pixel positions when saving copies of the iterator.
+       (display_line): Use proper wrap point if the last character on a
+       line was preceded by whitespace.
+
+2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
+
+2008-07-04  Kenichi Handa  <handa@m17n.org>
+
+       * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
+
+       * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
+
+2008-07-02  Jason Rumney  <jasonr@gnu.org>
+
+       * xfns.c (syms_of_xfns): Only define x-select-font when both
+       HAVE_FREETYPE and USE_GTK
+
+       * xdisp.c (next_element_from_display_vector): Move assignment out
+       of if statement.
+
+2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
+
+       * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
+
+       * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
+       (syms_of_fileio): Initialize and export them.
+       (Fdelete_directory, Fdelete_file): Optionally delete via trash.
+
+       * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
+       (Fsystem_move_file_to_trash): New function.
+       (syms_of_w32fns): Export it to lisp.
+
+2008-07-01  Jason Rumney  <jasonr@gnu.org>
+
+       * w32font.c (w32font_text_extents): Don't count overhang as part
+       of width.
+
+2008-06-30  Miles Bader  <miles@gnu.org>
+
+       * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
+       Add `avoid_cursor_p' field.
+
+       * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
+       (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
+       (append_glyph, append_composite_glyph, produce_image_glyph)
+       (append_stretch_glyph): Initialize avoid_cursor_p.
+       (get_it_property): Rename from `get_line_height_property'.
+       (x_produce_glyphs): Use get_it_property.
+       (handle_line_prefix, push_display_prop): New functions.
+       (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
+       (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
+       New variables.
+       (syms_of_xdisp): Initialize them.
+
+2008-06-30  Kenichi Handa  <handa@m17n.org>
+
+       * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
+       XftDefaultSubstitute (they are called in XftFontMatch).
+       (xftfont_open): Fix args to ftfont_font_format.
+
+       * ftfont.c (fc_charset_table): New member lang.
+       (ftfont_resolve_generic_family): New arg pattern.
+       (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
+       (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
+       (ftfont_open): Fix args to ftfont_font_format.
+       (ftfont_font_format): New arg filename.
+
+2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfaces.c (Finternal_merge_in_global_face): If default face was
+       modified, realize it again.  Update the font face attribute.
+
+2008-06-29  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.c (x_set_frame_alpha): Fix logic.
+
+2008-06-29  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (Finternal_char_font): Return font-object instead of
+       font-name.
+
+       * composite.c (get_composition_id): Fix the width calculation for TAB.
+
+2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * indent.c (Fvertical_motion): Properly handle float column arg.
+
+2008-06-28  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
+       (pfnSetLayeredWindowAttributes): New function pointer.
+       (w32_initialize): Initialize it when supported.
+       (x_set_frame_alpha): New function.
+
+       * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
+       (w32_frame_parm_handlers): Set alpha handler.
+
+       * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
+
+2008-06-27  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
+       (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
+       (w32_to_x_charset, x_to_w32_charset)
+       (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
+       (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
+       (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
+       (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
+       (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
+       (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
+       (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
+       (Qw32_charset_unicode): Remove.
+       (syms_of_w32fns): Update for above changes.
+
+       * w32font.c (w32_to_x_charset, x_to_w32_charset)
+       (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
+       (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
+       (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
+       (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
+       (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
+       (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
+       (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
+       (syms_of_w32font): Update for above changes.
+
+2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * s/usg5-4.h: Fix previous change: keep the correct branch of a
+       removed #if.
+       (USG_SHARED_LIBRARIES): Remove duplicate definition.
+
+2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
+           Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in (LOCAL_FLAGS):
+       Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
+
+       * sysdep.c (_spawnlp, _getpid):
+       Declare with explicit _cdecl instead of _CRTAPI1.
+
+       * editfns.c (Fget_internal_run_time):
+       Check for WINDOWSNT with #ifdef, not #if.
+
+2008-06-26  Jason Rumney  <jasonr@gnu.org>
+
+       * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
+
+       * w32term.c (x_draw_glyph_string_foreground)
+       (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
+       Use FONT_HANDLE macro.
+       (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
+
+       * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
+       (uniscribe_encode_char): Use FONT_HANDLE macro.
+
+       * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
+       (w32font_text_extents): Use precast w32_font.
+       (w32font_close): Free cached metrics.
+       (w32font_open_internal): Allocate space for name on stack.
+
+2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (extend_face_to_end_of_line): Fix last change.
+
+2008-06-26  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
+       (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
+
+2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
+
+       * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
+
+2008-06-26  Jason Rumney  <jasonr@gnu.org>
+
+       * w32bdf.c, w32bdf.h: Remove obsolete files.
+
+       * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
+
+       * w32gui.h: Don't include w32bdf.h.
+       (XCharStruct, enum w32_char_font_type, W32FontStruct):
+       Remove obsolete font support.
+
+       * w32font.h (struct w32font_info): Remove compat_w32_font.
+       Add hfont member.
+       (FONT_COMPAT): Remove obsolete macro.
+
+       * w32font.c (w32font_close): Remove compat code. Delete hfont member.
+       (w32font_encode_char, w32font_text_extents): Use new hfont member.
+       (w32font_open_internal): Remove compat code. Set new hfont member.
+       (Fx_select_font): Use new hfont member.
+
+       * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
+       (uniscribe_encode_char): Use new hfont member.
+
+       * w32term.c (x_draw_glyph_string_foreground)
+       (x_draw_composite_glyph_string_foreground): Use new hfont member.
+       (x_draw_glyph_string): Use metrics in w32font_info.
+
+2008-06-26  Kenichi Handa  <handa@m17n.org>
+
+       * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
+
+2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * unexnext.c:
+       * m/ews4800.h:
+       * m/hp9000s300.h:
+       * m/ibm370aix.h:
+       * m/mips-siemens.h:
+       * m/ncr386.h:
+       * m/next.h:
+       * m/pmax.h:
+       * m/powerpcle.h:
+       * m/tandem-s2.h:
+       * s/386bsd.h:
+       * s/bsd386.h:
+       * s/bsd4-1.h:
+       * s/bsd4-2.h:
+       * s/bsdos2-1.h:
+       * s/bsdos2.h:
+       * s/bsdos3.h:
+       * s/bsdos4.h:
+       * s/nextstep.h:
+       * s/ultrix4-3.h:
+       * s/usg5-0.h:
+       * s/usg5-2-2.h:
+       * s/usg5-2.h:
+       * s/usg5-4-3.h:
+       * s/ux4800.h:
+       * s/uxpds.h:
+       * s/uxpv.h: Remove support for obsolete systems.
+       * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
+       Remove, insert contents in s/hpux-10.20.h
+       * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
+       Remove, insert contents in s/aix-4.2.h
+       * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
+       * s/bsd4-3.h: Rename to ..
+       * s/bsd-common.h: ... this.
+       * src/data.c:
+       * src/doc.c:
+       * src/ecrt0.c:
+       * src/emacs.c:
+       * src/fileio.c:
+       * src/floatfns.c:
+       * src/keyboard.c:
+       * src/mem-limits.h:
+       * src/print.c:
+       * src/process.c:
+       * src/sysdep.c:
+       * src/syssignal.h:
+       * src/systty.h:
+       * src/syswait.h:
+       * src/term.c:
+       * src/unexec.c:
+       * src/unexelf.c:
+       * src/unexhp9k800.c:
+       * src/m/hp800.h:
+       * src/m/ibmrs6000.h:
+       * src/m/mips.h:
+       * src/m/vax.h:
+       * src/s/darwin.h:
+       * src/s/freebsd.h:
+       * src/s/gnu.h:
+       * src/s/ms-w32.h:
+       * src/s/msdos.h:
+       * src/s/netbsd.h:
+       * src/s/template.h: Remove references to obsolete variables.
+
+       * Makefile.in: Add dependencies for all unexec files.
+       (admindir): Remove unused variable.
+       (UNEXEC_SRC): Remove references.
+
+2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfns.c (x_default_font_parameter): If Xft is available, first
+       try Monospace-12 for the default font.
+
+2008-06-25  Jason Rumney  <jasonr@gnu.org>
+
+       * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
+
+2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
+
+       * buffer.c (syms_of_buffer): Remove default-word-wrap.
+
+2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
+
+       * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
+       <scroll-conservatively>: Fix typo in docstring.
+
+       * xselect.c (Fx_send_client_event): Doc fix.
+
+2008-06-25  Kenichi Handa  <handa@m17n.org>
+
+       * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
+
+       * font.c (font_parse_fcname): Remove unused variables.
+       (font_sort_entites): Delete the arg SPEC.  Caller changed.
+       Fix for the case of ! best_only.
+       (font_delete_unmatched): Check DPI and AVGWIDTH too.
+
+       * lisp.h (Fstring_to_unibyte): EXFUN it.
+
+       * character.h (str_to_unibyte): Extern it.
+
+       * character.c (str_to_unibyte): New function.
+
+       * fns.c (Fstring_to_unibyte): New function.
+       (syms_of_fns): Defsubr it.
+
+2008-06-24  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (font_score): Even if the PIXEL_SIZE is the same, check
+       DPI too.
+       (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
+
+2008-06-24  Andreas Schwab  <schwab@suse.de>
+
+       * Makefile.in (${lispsource}loaddefs.el): Rename from
+       ../lisp/loaddefs.el.
+       (bootstrap-clean): Do what distclean does but don't remove
+       Makefile.
+       (distclean): Depend on bootstrap-clean and remove Makefile.
+
+2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
+
+       * buffer.h (struct buffer): New member word_wrap.
+
+       * buffer.c (syms_of_buffer): New variables default-word-wrap and
+       word-wrap.
+       (init_buffer_once): Initialize them.
+
+       * dispextern.h (struct it): Replace bool truncate_lines_p with a
+       line_wrap enum possessing three possible values.
+
+       * termopts.h: Replace truncate_partial_width_windows with
+       Vtruncate_partial_width_windows.
+
+       * dispnew.c (direct_output_for_insert): Avoid direct output when
+       inserting a space with word wrap on.
+
+       * indent.c (compute_motion): Obey integer values of
+       truncate-partial-width-windows.
+
+       * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
+       replacing truncate_partial_width_windows.
+       (init_iterator): If Vtruncate_partial_width_windows is an integer,
+       truncate only if the window width is below that integer.
+       (start_display. resize_mini_window, produce_stretch_glyph)
+       (display_string, move_it_in_display_line_to): Use line_wrap.
+       (back_to_previous_visible_line_start, reseat_1): Reset
+       string_from_display_prop_p.
+       (display_line): Extend default face to end of line when wrapping.
+
+2008-06-24  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (display_line, move_it_in_display_line_to): Add ability
+       to wrap continued lines at word boundaries.
+
+2008-06-24  Jason Rumney  <jasonr@gnu.org>
+
+       * font.c (Ffont_face_attributes): Multiply pixel size before point
+       conversion to avoid multiplying rounding error.
+
+2008-06-23  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.c (x_draw_glyph_string_background)
+       (x_draw_glyph_string): Remove old bdf font code.
+
+       * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
+
+2008-06-22  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (font_find_for_lface): Try the adstyle specified in
+       the property of LFACE_FONT of LFACE (if any).
+
+2008-06-21  Seiji Zenitani  <zenitani@mac.com>
+           Ryo Yoshitake  <ryo@shiftmode.net>
+
+       * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
+
+2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
+       Use $(BOOTSTRAPEMACS) rather than witness-emacs.
+       (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
+       (witness-emacs): Remove.
+       (lisp, shortlisp): Move loaddefs.el earlier.
+       (mostlyclean): Forget about witness-emacs.
+
+2008-06-22  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
+       (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
+
+2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * Makefile.in (PRECOMP): Remove.
+       (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
+       (witness-emacs): Run `compile-first'.
+       (.el.elc): Use the new compile-onefile target.
+
+2008-06-21  Kenichi Handa  <handa@m17n.org>
+
+       * xftfont.c (xftfont_open): Handle QCembolden only when
+       FC_EMBOLDEN is defined.
+
 2008-06-21  Andreas Schwab  <schwab@suse.de>
 
        * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
 
 2008-06-18  Andreas Schwab  <schwab@suse.de>
 
-       * font.c (Ffont_face_attributes): Only define if
-       HAVE_WINDOW_SYSTEM.
+       * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
        (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
 
 2008-06-18  Jason Rumney  <jasonr@gnu.org>
 
 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
 
-       * fontset.c (fontset_pattern_regexp): Escape some reg-expr
-       characters.
+       * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
 
 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
 
        (w32font_driver): Adjusted for the change of struct font_driver.
 
        * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
-       conditionals.  Don't check enable_font_backend. Surround non-used
+       conditionals.  Don't check enable_font_backend.  Surround non-used
        code by "#ifdef OLD_FONT" and "endif".
        (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
        (FONT_AVG_WIDTH): Adjusted for the change of struct font.
 
 2008-02-01  Dave Love  <fx@gnu.org>
 
-       * xterm.c (XTread_socket): Fix changes for defined keysyms.  Add
-       XK_ISO... case.
+       * xterm.c (XTread_socket): Fix changes for defined keysyms.
+       Add XK_ISO... case.
        (xaw_scroll_callback): Revert last change.
 
 2008-02-01  Kenichi Handa  <handa@m17n.org>
@@ -12552,6 +12989,7 @@ See ChangeLog.10 for earlier changes.
 ;; Local Variables:
 ;; coding: utf-8
 ;; add-log-time-zone-rule: t
+;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
 ;; End:
 
     Copyright (C) 2007, 2008  Free Software Foundation, Inc.