+2014-03-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ Fix regression introduced by patch for Bug#10500.
+ * xterm.c (x_draw_image_relief): Respect Vtool_bar_button_margin.
+ * w32term.c (x_draw_image_relief): Likewise.
+
+2014-03-21 Martin Rudalics <rudalics@gmx.at>
+
+ * w32fns.c (w32_wnd_proc): For WM_WINDOWPOSCHANGING don't
+ constrain frame size in SW_SHOWMAXIMIZED case so we can truly
+ maximize a frame for odd default fonts.
+
+2014-03-20 Paul Eggert <eggert@cs.ucla.edu>
+
+ * doc.c (store_function_docstring): Fix pointer signedness mismatch.
+
+2014-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * doc.c (store_function_docstring): Warn when we don't know where to
+ put a docstring.
+ (Fsubstitute_command_keys): Don't advertise the fact that
+ text-properties are dropped, since we think it's a bug that we'll fix
+ in 24.5.
+
+ * frame.h (SET_FRAME_VISIBLE): Keep frame_garbaged up to date.
+ * xterm.c (handle_one_xevent) <MapNotify>: Don't garbage the frame.
+ * frame.c (frame_garbaged): Make "docstring" more precise.
+
+2014-03-20 Glenn Morris <rgm@gnu.org>
+
+ * charset.c (init_charset): When we cannot find the charsets directory,
+ mention if EMACSDATA is set.
+
+2014-03-19 Paul Eggert <eggert@cs.ucla.edu>
+
+ * fns.c (Frandom): Fix rare bug where the result isn't random.
+
+ Fix porting inconsistency about rounding to even.
+ * floatfns.c (emacs_rint) [!HAVE_RINT]: Round to even.
+ This way, the unusual !HAVE_RINT case acts like the usual
+ HAVE_RINT case, and we can fix the documentation accordingly.
+
+2014-03-19 Eli Zaretskii <eliz@gnu.org>
+
+ * w32fns.c (reset_modifiers): Zero out keystate[] before using it.
+ (w32_wnd_proc): Initialize the dwHoverTime member of
+ TRACKMOUSEEVENT structure.
+
+2014-03-17 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * gnutls.c (Fgnutls_boot): Fix case of :verify-error = t.
+
+2014-03-16 Eli Zaretskii <eliz@gnu.org>
+
+ * search.c (find_newline): Speed up the function when using the
+ newline cache, by halving the number of calls to
+ region_cache_forward and region_cache_backward. (Bug#16830)
+
+2014-03-15 Juanma Barranquero <lekktu@gmail.com>
+
+ * buffer.c (Fset_buffer): Document return value (bug#17015).
+
+2014-03-14 Martin Rudalics <rudalics@gmx.at>
+
+ * w32term.c (x_set_window_size): When frame-resize-pixelwise is
+ nil, always resize character wise to avoid potential loss of the
+ mode line (Bug#16923 related).
+
+2014-03-12 Martin Rudalics <rudalics@gmx.at>
+
+ * frame.c (x_set_frame_parameters): Always calculate new sizes
+ pixelwise to avoid potential loss when rounding.
+
+2014-03-11 Dmitry Antipov <dmantipov@yandex.ru>
+
+ * xfns.c (x_set_mouse_color): Recolor vertical_drag_cursor.
+ * xterm.c (x_free_frame_resources): Free all allocated cursors.
+
+2014-03-10 Eli Zaretskii <eliz@gnu.org>
+
+ * w32.c (fstatat): Don't add an extra slash if the argument ends
+ with a slash: this fails the subsequent call to stat_worker on
+ Windows 9X. Reported by oslsachem <oslsachem@gmail.com>.
+
+2014-03-09 Martin Rudalics <rudalics@gmx.at>
+
+ * xdisp.c (Fwindow_text_pixel_size): Adjust doc-string.
+
+2014-03-08 Jan Djärv <jan.h.d@swipnet.se>
+
+ * nsterm.h (MAC_OS_X_VERSION_10_9): Add.
+
+ * nsterm.m (constrainFrameRect:toScreen:): Constrain normally
+ when frame is only on one screen (Bug#14713).
+
+2014-03-08 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (move_it_in_display_line_to): If word-wrap is ON, and
+ there's a valid wrap point in the display line, the last glyph
+ cannot "just barely fit" on this row, because display_line doesn't
+ let it. Instead, proceed as if the last glyph didn't fit, so that
+ we eventually back up the iterator to the wrap point. This avoids
+ delusional behavior of move_it_to, whereby it proceeds to the next
+ display line, but sets current_x to zero for all the glyphs that
+ without word-wrap would fit on the previous display line.
+ One result was that visual-order cursor movement behaved erratically
+ under word-wrap.
+ (Fmove_point_visually): Add code to find the x coordinate of the
+ last character before wrap point, under word-wrap on a TTY.
+
+2014-03-07 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (Fmove_point_visually): When under word-wrap, accept
+ also return value of MOVE_POS_MATCH_OR_ZV from
+ move_it_in_display_line_to, when moving from beginning of line to
+ point's position. (Bug#16961)
+
+2014-03-07 Martin Rudalics <rudalics@gmx.at>
+
+ * buffer.c (Vbuffer_list_update_hook): Doc-string fix.
+ * window.c (Fselect_window): Explain NORECORD and
+ `buffer-list-update-hook' in doc-string.
+
+2014-03-06 Martin Rudalics <rudalics@gmx.at>
+
+ * window.c (Fother_window_for_scrolling): Check that
+ Vother_window_scroll_buffer is a buffer.
+
+2014-03-06 Dmitry Antipov <dmantipov@yandex.ru>
+
+ * xterm.c (xim_initialize): Always pass a copy of resource name
+ to XRegisterIMInstantiateCallback and eassert whether return
+ value is True. Passing copy is important because Xlib doesn't
+ make its own copy and resource name argument usually points to
+ SSDATA (Vx_resource_name), which may be changed from Lisp.
+ (xim_close_display): For XUnregisterIMInstantiateCallback,
+ always eassert return value and pass exactly the same values
+ as were used for XRegisterIMInstantiateCallback.
+ Otherwise XUnregisterIMInstantiateCallback will always fail. See Xlib
+ sources to check why if you are interested.
+
+2014-03-05 Martin Rudalics <rudalics@gmx.at>
+
+ * dispnew.c (change_frame_size_1): Add new_lines instead of
+ new_height, the latter may be still zero if passed as such.
+ * window.c (Fwindow_pixel_height): Mention bottom divider in
+ doc-string.
+
+2014-03-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ Fix "resource temporarily unavailable" with xgselect
+ (Bug#16925).
+ * xgselect.c: Include <stdbool.h>.
+ (xg_select) [!USE_GTK]: Don't lose track of errno.
+
+ Fix minor --enable-gcc-warnings issues.
+ * widget.c (update_various_frame_slots, EmacsFrameResize):
+ Avoid unused locals. Prefer 'if' to '#if' when either will do.
+
+2014-03-04 Ken Brown <kbrown@cornell.edu>
+
+ * gmalloc.c (aligned_alloc): Clarify the code by making `adj'
+ represent the actual adjustment needed for alignment.
+
+2014-03-04 Eli Zaretskii <eliz@gnu.org>
+
+ * gmalloc.c (aligned_alloc): Don't allocate more memory than
+ needed, and don't reallocate if the initial allocation already
+ fits the bill. Suggested by Ken Brown <kbrown@cornell.edu>.
+
+2014-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * xterm.c (x_draw_stretch_glyph_string): Reset clipping.
+ (Bug#16932)
+
+2014-03-04 Michal Nazarewicz <mina86@mina86.com>
+
+ * cmds.c (delete-char): Update docstring pointing out that the
+ function ignores `delete-active-region' and `overwrite-mode'.
+
2014-03-03 Eli Zaretskii <eliz@gnu.org>
+ * font.c (Fframe_font_cache): Fix last change. (Bug#16930)
+
* gmalloc.c (aligned_alloc): Fix adjustment of size of the
allocated buffer due to alignment.
(freehook): If the block to be freed was allocated by
2014-02-06 Eli Zaretskii <eliz@gnu.org>
- * w32.c (pMultiByteToWideChar, pWideCharToMultiByte): New
- variables: pointers through which to call the respective APIs.
+ * w32.c (pMultiByteToWideChar, pWideCharToMultiByte):
+ New variables: pointers through which to call the respective APIs.
(filename_to_utf16, filename_from_utf16, filename_to_ansi)
- (filename_from_ansi, sys_link, check_windows_init_file): Call
- MultiByteToWideChar and WideCharToMultiByte through pointers.
+ (filename_from_ansi, sys_link, check_windows_init_file):
+ Call MultiByteToWideChar and WideCharToMultiByte through pointers.
This is required on Windows 9X, where we dynamically load
UNICOWS.DLL which has their non-stub implementations.
(maybe_load_unicows_dll): Assign addresses to these 2 function
MultiByteToWideChar and WideCharToMultiByte through function
pointers.
- * w32.h (pMultiByteToWideChar, pWideCharToMultiByte): New
- declarations.
+ * w32.h (pMultiByteToWideChar, pWideCharToMultiByte):
+ New declarations.
2014-02-06 Jan Djärv <jan.h.d@swipnet.se>
* w32menu.c (w32_popup_dialog): Don't condition the whole function
on HAVE_DIALOGS. If the dialog is "simple", pop up a message box
to show it; otherwise return 'unsupported--w32-dialog' to signal
- to the caller that emulation with menus is necessary. This
- resurrects code inadvertently deleted by the 2013-10-08 commit.
+ to the caller that emulation with menus is necessary.
+ This resurrects code inadvertently deleted by the 2013-10-08 commit.
(Bug#16636)
(syms_of_w32menu): DEFSYM Qunsupported__w32_dialog.
from 2013-03-29.
(move_it_to): Re-remove reference to last_max_ascent.
(Fwindow_text_pixel_size): Add iterator's max_ascent and
- max_descent here instead of calling line_bottom_y. Fix
- doc-string.
+ max_descent here instead of calling line_bottom_y.
+ Fix doc-string.
2014-01-28 Dmitry Antipov <dmantipov@yandex.ru>
2014-01-24 Dmitry Antipov <dmantipov@yandex.ru>
- * xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction): Avoid
- undefined behavior by initializing display property bit of a
+ * xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction):
+ Avoid undefined behavior by initializing display property bit of a
string processed by the bidirectional iterator. For details, see
<http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01920.html>.
2014-01-13 Daniel Colascione <dancol@dancol.org>
- * textprop.c (Fremove_list_of_text_properties): Correctly
- handle reaching the end of the interval tree. (Bug#15344)
+ * textprop.c (Fremove_list_of_text_properties):
+ Correctly handle reaching the end of the interval tree. (Bug#15344)
2014-01-13 Martin Rudalics <rudalics@gmx.at>
* macfont.m: Include termchar.h.
(CG_SET_FILL_COLOR_WITH_FACE_FOREGROUND)
(CG_SET_FILL_COLOR_WITH_FACE_BACKGROUND)
- (CG_SET_STROKE_COLOR_WITH_FACE_FOREGROUND): Modified from
+ (CG_SET_STROKE_COLOR_WITH_FACE_FOREGROUND): Modify from
*_WITH_GC_* to take face and f as parameters.
(macfont_draw): Check for DRAW_MOUSE_FACE and set face accordingly.
Use *_WITH_FACE_*, and pass face as parameter (Bug#16425).
2014-01-10 Martin Rudalics <rudalics@gmx.at>
Fix handling of internal borders (Bug#16348).
- * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Remove
- internal border width from pixel width of windows.
+ * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
+ Remove internal border width from pixel width of windows.
(change_frame_size_1): Don't return early when frame's pixel
size changes - we still have to record the new sizes in the
frame structure.
* window.c (check_frame_size): Include internal_border_width in
check.
* xdisp.c (Ftool_bar_height): Fix doc-string typo.
- * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): In
- non-toolkit/non-GTK version clear internal border.
+ * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines):
+ In non-toolkit/non-GTK version clear internal border.
* xterm.c (x_clear_under_internal_border): New function for
non-toolkit/non-GTK version.
(x_after_update_window_line): In non-toolkit/non-GTK version
don't do that.
- (handle_one_xevent, x_set_window_size): Call
- x_clear_under_internal_border in non-toolkit/non-GTK version.
+ (handle_one_xevent, x_set_window_size):
+ Call x_clear_under_internal_border in non-toolkit/non-GTK version.
* xterm.h (x_clear_under_internal_border): Extern it.
2014-01-07 Paul Eggert <eggert@cs.ucla.edu>
2014-01-02 Martin Rudalics <rudalics@gmx.at>
Further adjust frame/window scrollbar width calculations.
- * window.c (apply_window_adjustment): Set
- windows_or_buffers_changed.
+ * window.c (apply_window_adjustment):
+ Set windows_or_buffers_changed.
(Fwindow_scroll_bars): Return actual scrollbar width.
* xfns.c (x_set_scroll_bar_default_width): Rename wid to unit.
For non-toolkit builds again use 14 as minimum width and set
(globals_of_w32): Initialize them to zero.
(set_named_security_info): Set them to non-zero if the
corresponding API is available.
- (SetNamedSecurityInfoW_Proc, SetNamedSecurityInfoA_Proc): New
- function typedefs.
+ (SetNamedSecurityInfoW_Proc, SetNamedSecurityInfoA_Proc):
+ New function typedefs.
2013-12-31 Martin Rudalics <rudalics@gmx.at>
ANSI and Unicode APIs. Use the latter if w32_unicode_filenames is
non-zero, else the former.
(codepage_for_filenames, filename_to_utf16, )
- (filename_from_utf16, filename_to_ansi, filename_from_ansi): New
- functions.
+ (filename_from_utf16, filename_to_ansi, filename_from_ansi):
+ New functions.
(init_user_info): Allow $HOME and $SHELL to include non-ANSI
characters.
(normalize_filename): Lose the DBCS code, now works on UTF-8.
* xterm.c (x_make_frame_visible): Restore hack which is needed when
input polling is used. This is still meaningful for Cygwin, see
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00351.html.
- * keyboard.c (poll_for_input_1, input_polling_used): Define
- unconditionally.
+ * keyboard.c (poll_for_input_1, input_polling_used):
+ Define unconditionally.
* dispextern.h (FACE_SUITABLE_FOR_CHAR_P): Remove unused macro.
(FACE_FOR_CHAR): Simplify because face_for_char does the same.
* fontset.c (face_suitable_for_char_p) [0]: Remove unused function.