(try_alternative_families): First try the FAMILY.
[bpt/emacs.git] / src / ChangeLog
index 6facf42..280b828 100644 (file)
@@ -1,3 +1,191 @@
+2001-05-14  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * xfaces.c (try_alternative_families): First try the FAMILY.
+       And if nothing is found in the end, try again with scalable fonts.
+       (try_font_list): Let try_alternative_families do a bit more of
+       the work.  Only use FAMILY if it is not nil.
+       (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
+
+2001-05-14  Gerd Moellmann  <gerd@gnu.org>
+
+       * xterm.c (x_draw_glyphs): Fix compuation of rightmost x for
+       full-width rows.
+
+       * xfaces.c (split_font_name): Make sure to leave the loop
+       with the right value of `i'.
+
+       * xfaces.c (split_font_name): Handle matrix transformations
+       in the pixel and point size fields of XLFD font names.
+       (xlfd_point_size): Likewise.
+
+2001-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
+       (x_to_w32_font): Add prototype.
+
+       * regex.c (malloc, realloc, free) [emacs]: Undefine before
+       redefining, to avoid compiler warnings.
+
+       * w32proc.c: Include syssignal.h, to avoid compiler warnings.
+
+       * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
+       (w32_get_bdf_glyph): Cast between unsigned char and char when
+       passing arguments to subroutines, to shut up compiler warnings.
+       (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
+       GET_HEX_VAL.
+
+       * xfaces.c: Include keyboard.h before frame.h, not after it.
+
+       * widget.c: Include keyboard.h before frame.h.
+
+       * w32term.h (struct image, struct face): Forward declaration, to
+       avoid compiler warnings.
+
+2001-05-11  Gerd Moellmann  <gerd@gnu.org>
+
+       * keyboard.c (read_key_sequence): Don't modify events when
+       generating fake prefix keys (mode-line, scroll-bar, ...) since
+       this prevents proper processing of such events when pushed back
+       into unread-command-events.
+
+       * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
+       actually redrawn.  Make the function static.
+       (note_mouse_highlight): Fix a case where the mouse cursor
+       was changed back to the text cursor.
+
+       * xterm.h (clear_mouse_face): Remove prototype.
+
+       * xdisp.c (try_window_id): Fix the fix and set the right
+       window_end_vpos.
+
+       * xdisp.c (try_window_id): Fix computation of window end in the
+       case that lines were deleted at the end of the window.  Add some
+       more debug_method_adds.
+
+       * xfaces.c (try_alternative_families): New function.
+       (try_font_list): Use it.  If ATTRS specifies a family, check
+       fonts from that family first.
+       (choose_face_font): Remove code setting the family part of
+       the pattern to nil.
+
+2001-05-10  Gerd Moellmann  <gerd@gnu.org>
+
+       * xdisp.c (try_window_id): Fix case of all changes before
+       the window start.
+
+       * xdisp.c (try_window_id): Add some xasserts.
+
+2001-05-09  Gerd Moellmann  <gerd@gnu.org>
+
+       * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
+
+2001-05-09  Dave Love  <fx@gnu.org>
+
+       * xdisp.c (GIVE_UP): Fix for K&R C.
+
+2001-05-09  Gerd Moellmann  <gerd@gnu.org>
+
+       * print.c (syms_of_print) <print-length, print-level>: Doc fix.
+
+       * xterm.c (note_mouse_highlight): Don't change the mouse cursor
+       back to the text cursor shape without need.
+
+2001-05-07  Gerd Moellmann  <gerd@gnu.org>
+
+       * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
+
+       * dispextern.h (inverse_video): Declare extern.
+
+       * keyboard.c (delete_kboard): Handle the case that selected_frame
+       has been deleted in the course of x_connection_closed.
+
+2001-05-03  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
+       Fix the change from 2001-04-30.
+
+2001-05-03  Gerd Moellmann  <gerd@gnu.org>
+
+       * xfns.c (file_dialog_unmap_cb): New function.
+       (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
+       where a dialog is closed via the window manager.
+
+       * xdisp.c (try_window_id): Cases of changes all in front of
+       the window start or all below the window end mostly rewritten.
+       (redisplay_window): Move the tests if try_window_id is
+       applicable to try_window_id.
+       (GIVE_UP): New macro.
+
+2001-05-02  Gerd Moellmann  <gerd@gnu.org>
+
+       * xterm.c (expose_window): Return int.  If W is the window
+       currently being updated, mark the frame garbaged.
+       Fix computation of rows intersecting the exposed rectangle.
+       (expose_window_tree): Stop when expose_window returns 0.
+
+       * xterm.c (x_draw_stretch_glyph_string): Don't draw background
+       again if it has already been drawn.
+
+2001-05-01  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * syntax.c (update_syntax_table): Check that oldi has the same
+       properties as old_prop before deciding not to invalidate.
+
+2001-04-30  Gerd Moellmann  <gerd@gnu.org>
+
+       * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
+       read-only text that is so because of text properties.
+
+       * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
+       (XTread_socket) <Expose> [USE_LUCID]: Handle events for
+       windows that are components of a Lucid menu bar.
+
+2001-04-27  Gerd Moellmann  <gerd@gnu.org>
+
+       * term.c (turn_on_face): Fix reverse video handling on terminals
+       that don't support colors.
+
+2001-04-26  Gerd Moellmann  <gerd@gnu.org>
+
+       * editfns.c (save_excursion_restore): Don't use XBUFFER on
+       a non-buffer.
+
+2001-04-25  Gerd Moellmann  <gerd@gnu.org>
+
+       * term.c (toggle_highlight): New function.
+       (turn_on_face): Change handling of reverse video.
+
+       * process.c (wait_reading_process_input):
+       Call record_asynch_buffer_change only if a timer really changed buffers.
+
+       * buffer.c (mouse_face_overlay_overlaps): Fix the computation
+       of the number of overlays to check.
+
+       * keyboard.c (command_loop_1): Redo change of 2001-03-12.
+
+       * xdisp.c (try_window_id): Fix a case where window_end_pos
+       and window_end_bytepos were not adjusted.
+
+2001-04-23  Gerd Moellmann  <gerd@gnu.org>
+
+       * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
+       zero instead of -1.
+
+2001-04-21  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * process.c (wait_reading_process_input) [!subprocesses]:
+       Don't reference waiting_for_user_input_p, it's not defined in the
+       branch without async subprocesses support.
+
+2001-04-19  Gerd Moellmann  <gerd@gnu.org>
+
+       * keyboard.c (delete_kboard): Prevent a dangling reference
+       from current_kboard to KB, which is freed.
+
+       * process.c (wait_reading_process_input):
+       Call record_asynch_buffer_change after running timers, to make
+       read_key_sequence aware of buffer changes from under it.
+
 2001-04-18  Gerd Moellmann  <gerd@gnu.org>
 
        * xfaces.c (Qscalable_fonts_allowed): New variable.
        (x_face_list_fonts): Special handling for realizing_basic_faces_p
        removed.
        (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
-       (syms_of_xfaces): Initialize Qscalable_fonts_allowed.  Change
-       default for scalable-fonts-allowed to t.
+       (syms_of_xfaces): Initialize Qscalable_fonts_allowed.  Change default
+       for scalable-fonts-allowed to t.
 
        * fileio.c (Finsert_file_contents): If the file size returned from
        stat is zero, set END to READ_BUF_SIZE.  This makes sure we can
-       read from files on a procfs whose contents are generated
-       dynamically.
+       read from files on a procfs whose contents are generated dynamically.
 
 2001-04-18  Eli Zaretskii  <eliz@is.elta.co.il>
 
        instead of using it.last_visible_y for the height of the window.
 
        * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
+       From Dan Holmsand <dan@eyebee.com>.
 
        * w32.c (sys_open): Try to open file without _O_CREAT first, to be
-       able to write to hidden and system files.  Make file handles
-       non-inheritable.
+       able to write to hidden and system files.  From Dan Holmsand
+       <dan@eyebee.com>.
 
-       * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile.
+       * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile.  From Dan
+       Holmsand <dan@eyebee.com>.
 
 2001-04-09  Gerd Moellmann  <gerd@gnu.org>