* font.h (valid_font_driver) [!ENABLE_CHECKING]: Define a dummy.
[bpt/emacs.git] / src / ChangeLog
index a967276..f71e4dc 100644 (file)
@@ -1,7 +1,233 @@
+2013-12-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * font.h (valid_font_driver) [!ENABLE_CHECKING]: Define a dummy.
+       This prevents a compilation error on C compilers that do not
+       default functions to return 'int' if not declared.  Also, add
+       INLINE_HEADER_BEGIN and INLINE_HEADER_END to this include file,
+       since it now uses inline functions.
+
+2013-12-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (extend_face_to_end_of_line): Don't fill background of
+       display margins on mode line, header line, and in the frame's
+       tool-bar window.  (Bug#16165)
+
+2013-12-16  Andreas Schwab  <schwab@suse.de>
+
+       * gnutls.c (Fgnutls_boot): Properly check Flistp return value.
+
+2013-12-16  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * gnutls.c (Fgnutls_boot): Use `Flistp' instead of
+       `CHECK_LIST_CONS`.
+
+2013-12-16  Martin Rudalics  <rudalics@gmx.at>
+
+       * w32term.c (w32_enable_frame_resize_hack): Default to 1.
+
+2013-12-16  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * font.c (valid_font_driver) [ENABLE_CHECKING]: New function
+       intended to find bogus pointers in font objects (Bug#16140).
+       * font.h (valid_font_driver) [ENABLE_CHECKING]: Add prototype.
+       * alloc.c (cleanup_vector): Use valid_font_driver in eassert.
+       (compact_font_cache_entry, compact_font_caches) [!HAVE_NTGUI]:
+       Disable for MS-Windows due to Bug#15876; apparently this
+       requires more or less substantial changes in fontset code.
+       * xfont.c (xfont_close):
+       * xftfont.c (xftfont_close): Call x_display_info_for_display
+       to check whether 'Display *' is valid (Bug#16093 and probably
+       Bug#16069).
+
+2013-12-15  Eli Zaretskii  <eliz@gnu.org>
+
+       * fileio.c (Fexpand_file_name) [WINDOWSNT]: Fix conditionals.
+       Reported by Juanma Barranquero <lekktu@gmail.com>.
+
+       * process.c (Fprocess_send_eof): Don't crash if someone tries to
+       open a pty on MS-Windows.  (Bug#16152)
+
+       * emacs.c (decode_env_path): Fix bogus comparison against
+       emacs_dir.  Reported by Juanma Barranquero <lekktu@gmail.com>.
+
+2013-12-15  Juanma Barranquero  <lekktu@gmail.com>
+
+       * w32fns.c (Fw32_shell_execute): Remove unused local variable.
+       (Fx_file_dialog): Add parentheses around && to silence warning.
+
+       * w32term.c (construct_drag_n_drop): Remove unused local variable.
+
+2013-12-15  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (extend_face_to_end_of_line): Extend background of
+       non-default face in margin areas as well.  (Bug#16151)
+       (display_line): Call extend_face_to_end_of_line for continued
+       lines as well, if the display margins have non-zero width.
+       (set_glyph_string_background_width): When needed, set the
+       extends_to_end_of_line_p flag on glyph strings to be drawn in
+       margin areas, not only in the text area.
+
+       * frame.h (FRAME_MOUSE_UPDATE): Fix a typo that caused infloop at
+       startup.
+
+2013-12-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * gnutls.c (Fgnutls_boot): Fix typo; "!" applied to a Lisp_Object.
+       Don't worry about verify_error being t, since it has to be a list.
+
+2013-12-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Use bool for boolean, focusing on headers.
+       * atimer.h, lisp.h, syssignal.h, syswait.h, unexelf.c:
+       No need to include <stdbool.h>, since conf_post.h does it now.
+       * buffer.h (BUF_COMPUTE_UNCHANGED, DECODE_POSITION)
+       (BUFFER_CHECK_INDIRECTION, GET_OVERLAYS_AT, PER_BUFFER_VALUE_P)
+       (SET_PER_BUFFER_VALUE_P):
+       * ccl.c, ccl.h (setup_ccl_program):
+       * ccl.h (CHECK_CCL_PROGRAM):
+       * character.h (MAKE_CHAR_UNIBYTE, CHECK_CHARACTER_CAR)
+       (CHECK_CHARACTER_CDR, CHAR_STRING_ADVANCE, NEXT_CHAR_BOUNDARY)
+       (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE)
+       (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
+       (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, FETCH_CHAR_ADVANCE)
+       (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, INC_BOTH)
+       (DEC_BOTH, BUF_INC_POS, BUF_DEC_POS):
+       * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
+       (CHECK_CHARSET_GET_ATTR, CHECK_CHARSET_GET_CHARSET)
+       (CHARSET_FAST_MAP_SET):
+       * coding.c (decode_coding_ccl, encode_coding_ccl):
+       * coding.h (CHECK_CODING_SYSTEM, CHECK_CODING_SYSTEM_GET_SPEC)
+       (CHECK_CODING_SYSTEM_GET_ID, SJIS_TO_JIS, SJIS_TO_JIS2)
+       (JIS_TO_SJIS, JIS_TO_SJIS2, ENCODE_FILE, DECODE_FILE)
+       (ENCODE_SYSTEM, DECODE_SYSTEM, ENCODE_UTF_8)
+       (decode_coding_c_string):
+       * composite.h (COMPOSITION_DECODE_REFS, COMPOSITION_DECODE_RULE):
+       * conf_post.h (has_attribute):
+       * dispextern.h (trace_redisplay_p):
+       (INC_TEXT_POS, DEC_TEXT_POS, SET_GLYPH_FROM_GLYPH_CODE)
+       (SET_CHAR_GLYPH, SET_CHAR_GLYPH_FROM_GLYPH)
+       (SET_GLYPH_FROM_CHAR_GLYPH):
+       (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P)
+       (FACE_SUITABLE_FOR_ASCII_CHAR_P, FACE_SUITABLE_FOR_CHAR_P)
+       (PRODUCE_GLYPHS, reset_mouse_highlight, in_display_vector_p)
+       (cursor_in_mouse_face_p):
+       * dispnew.c (adjust_glyph_matrix, clear_glyph_matrix_rows)
+       (blank_row, prepare_desired_row)
+       (build_frame_matrix_from_leaf_window, make_current)
+       (mirror_make_current, mirrored_line_dance, mirror_line_dance)
+       (update_window, scrolling_window, update_frame_line):
+       * disptab.h (GLYPH_FOLLOW_ALIASES):
+       * editfns.c (Fformat):
+       * font.h (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC)
+       (FONT_WIDTH_SYMBOLIC, FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE)
+       (FONT_WIDTH_FOR_FACE, FONT_WEIGHT_NAME_NUMERIC)
+       (FONT_SLANT_NAME_NUMERIC, FONT_WIDTH_NAME_NUMERIC)
+       (FONT_SET_STYLE, CHECK_FONT, CHECK_FONT_SPEC, CHECK_FONT_ENTITY)
+       (CHECK_FONT_OBJECT, CHECK_FONT_GET_OBJECT, FONT_ADD_LOG)
+       (FONT_DEFERRED_LOG):
+       * frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_WINDOW_P):
+       (FRAME_EXTERNAL_TOOL_BAR, FRAME_EXTERNAL_MENU_BAR, FOR_EACH_FRAME)
+       (FRAME_MOUSE_UPDATE):
+       * fringe.c (Fdefine_fringe_bitmap):
+       * image.c (x_create_bitmap_from_data, x_create_bitmap_mask)
+       (x_create_bitmap_from_xpm_data, xpm_load_image):
+       * intervals.h (INTERVAL_HAS_PARENT, INTERVAL_PARENT)
+       (set_interval_parent, RESET_INTERVAL, COPY_INTERVAL_CACHE)
+       (MERGE_INTERVAL_CACHE):
+       * keymap.h (KEYMAPP):
+       * lisp.h (eassert, USE_LSB_TAG, CHECK_LISP_OBJECT_TYPE)
+       (STRING_SET_UNIBYTE, STRING_SET_MULTIBYTE, DEFSYM, PSEUDOVECTORP)
+       (CHECK_RANGED_INTEGER, CHECK_TYPE_RANGED_INTEGER)
+       (CHECK_NUMBER_COERCE_MARKER, CHECK_NUMBER_OR_FLOAT_COERCE_MARKER)
+       (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
+       (DEFVAR_BUFFER_DEFAULTS, DEFVAR_KBOARD, QUIT)
+       (RETURN_UNGCPRO, USE_SAFE_ALLOCA, SAFE_NALLOCA, SAFE_FREE)
+       (SAFE_ALLOCA_LISP, FOR_EACH_ALIST_VALUE, functionp):
+       * syntax.h (SYNTAX_ENTRY, SYNTAX_WITH_FLAGS, SYNTAX)
+       (UPDATE_SYNTAX_TABLE_FORWARD, UPDATE_SYNTAX_TABLE_BACKWARD)
+       (SETUP_BUFFER_SYNTAX_TABLE):
+       * systime.h (timespec_valid_p):
+       * term.c (save_and_enable_current_matrix):
+       * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P):
+       * xdisp.c (in_display_vector_p, display_tool_bar_line)
+       (redisplay_internal, try_window_reusing_current_matrix)
+       (sync_frame_with_window_matrix_rows, try_window_id)
+       (display_menu_bar, display_tty_menu_item, display_mode_line)
+       (coords_in_mouse_face_p, cursor_in_mouse_face_p):
+       * xdisp.c (trace_redisplay_p) [GLYPH_DEBUG]:
+       * xmenu.c (xmenu_show):
+       * xterm.c (use_xim, x_term_init):
+       * xterm.h (XSync, GTK_CHECK_VERSION, use_xim, SET_SCROLL_BAR_X_WIDGET)
+       (struct x_bitmap_record):
+       Use bool for booleans.
+       * ccl.c (struct buffer_text):
+       * ccl.h (struct ccl_program):
+       * charset.h (struct charset):
+       * cm.h (struct cm):
+       * coding.h (struct iso_2022_spec, struct coding_system):
+       * dispextern.h (struct glyph, struct glyph_matrix, struct glyph_row)
+       (struct glyph_string, struct face, struct face_cache)
+       (struct bidi_string_data, struct bidi_it)
+       (struct draw_fringe_bitmap_params, struct it, Mouse_HLInfo)
+       (struct image):
+       * editfns.c (Fformat):
+       * frame.h (struct frame):
+       * fringe.c (struct fringe_bitmap):
+       * intervals.h (struct interval):
+       * keyboard.h (struct kboard):
+       * lisp.h (struct Lisp_Symbol, struct Lisp_Misc_Any, struct Lisp_Marker)
+       (struct Lisp_Overlay, struct Lisp_Save_Value, struct Lisp_Free)
+       (struct Lisp_Buffer_Local_Value, union specbinding):
+       * macfont.m (struct macfont_info):
+       * process.h (struct Lisp_Process):
+       * termchar.h (struct tty_display_info):
+       * window.h (struct window):
+       * xterm.h (struct x_output):
+       Use bool_bf for boolean bit-fields.
+       * ccl.c (setup_ccl_program): Now returns bool instead of -1 or 0.
+       All callers changed.
+       * ccl.h (struct ccl_program): Remove unused members private_state,
+       src_multibyte, dst_multibyte, cr_consumed, suppress_error,
+       eight_bit_control.
+       (struct ccl_spec): Remove unused members cr_carryover,
+       eight_bit_carryover.
+       * conf_post.h: Include <stdbool.h>.
+       (bool_bf): New type.
+       * dispextern.h (TRACE, PREPARE_FACE_FOR_DISPLAY):
+       * interval.h (RESET_INTERVAL, COPY_INTERVAL_CACHE, MERGE_INTERVAL_CACHE)
+       Surround statement macro with proper 'do { ... } while (false)' brackets.
+       * dispextern.h (IF_DEBUG): Properly parenthesize and convert to void.
+       Args must now be expressions; all callers changed.
+       (SET_MATRIX_ROW_ENABLED_P): Assume 2nd arg is bool.
+       (PRODUCE_GLYPHS): Simplify use of boolean.
+       * fileio.c (Fcopy_file):
+       If I is an integer, prefer 'if (I != 0)' to 'if (I)'.
+       * lisp.h (UNGCPRO): Return void, not int.
+       (FOR_EACH_TAIL): Use void expression, not int expression.
+       * region-cache.c: Reindent.
+       * region-cache.h: Copy comments from region-cache.c, to fix
+       incorrect remarks about booleans.
+
 2013-12-14  Eli Zaretskii  <eliz@gnu.org>
 
-       * alloc.c (cleanup_vector): Don't call the font driver's 'close'
-       method if the 'driver' pointer is NULL.
+       * xdisp.c (Fmove_point_visually): Expect overshoot in move_it_to
+       when character at point is displayed from a display vector.
+       (Bug#16148)
+
+2013-12-14  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * gnutls.c: Replace `:verify_hostname_error' with `:verify_error',
+       now a list of certificate validation checks that will abort a
+       connection with an error.
+       (Fgnutls_boot): Document it and use it.
+
+2013-12-14  Martin Rudalics  <rudalics@gmx.at>
+
+       * w32term.c (w32_enable_frame_resize_hack): New variable.
+       (x_set_window_size): Use it to hack frame resizing on Windows
+       (Bug#16028).
+
+2013-12-14  Eli Zaretskii  <eliz@gnu.org>
 
        * fileio.c (Fcopy_file) [WINDOWSNT]: Move most of the
        Windows-specific code to w32.c.  Change error message text to