1. 21 Mar, 2014 3 commits
  2. 20 Mar, 2014 3 commits
  3. 19 Mar, 2014 3 commits
  4. 17 Mar, 2014 1 commit
  5. 16 Mar, 2014 2 commits
  6. 15 Mar, 2014 1 commit
  7. 14 Mar, 2014 1 commit
    • Martin Rudalics's avatar
      Document pixelwise frame resizing and fix related bug on Windows. · cfd5e825
      Martin Rudalics authored
      * 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).
      * display.texi (Temporary Displays): Say that
      with-temp-buffer-window makes its buffer current.
      * frames.texi (Size and Position): Describe new option
      `frame-resize-pixelwise'.  Rewrite descriptions of
      `set-frame-size', `set-frame-height' and `set-frame-width'.
      cfd5e825
  8. 12 Mar, 2014 1 commit
    • Martin Rudalics's avatar
      Two adjustments in window/frame resizing. · 8960529e
      Martin Rudalics authored
      * frame.c (x_set_frame_parameters): Always calculate new sizes
      pixelwise to avoid potential loss when rounding.
      * window.el (fit-frame-to-buffer): Get maximum width from
      display's width instead of height.
      8960529e
  9. 11 Mar, 2014 1 commit
  10. 10 Mar, 2014 3 commits
  11. 09 Mar, 2014 1 commit
    • Martin Rudalics's avatar
      Update docs for window dividers and `window-text-pixel-size'. · 7e940b65
      Martin Rudalics authored
      * xdisp.c (Fwindow_text_pixel_size): Adjust doc-string.
      * elisp.texi (Top): Rename section "Width" to "Size of Displayed
      Text".
      * text.texi (Primitive Indent):
      * strings.texi (String Basics):
      * sequences.texi (Sequence Functions): Update references
      accordingly.
      * display.texi (Size of Displayed Text): Rename section from
      "Width".  Add description for `window-text-pixel-size'.
      (Window Dividers): Reword description of window dividers.
      * frames.texi (Layout Parameters): Improve description of window
      divider parameters.
      * windows.texi (Window Sizes): Add descriptions of
      `window-mode-line-height' and `window-header-line-height'.
      (Coordinates and Windows): Mention window dividers.
      7e940b65
  12. 08 Mar, 2014 2 commits
    • Jan Djärv's avatar
      * nsterm.h (MAC_OS_X_VERSION_10_9): Add. · e61a31bf
      Jan Djärv authored
      * nsterm.m (constrainFrameRect:toScreen:): Constrain normally when frame
      is only on one screen.
      
      Fixes: debbugs:14713
      e61a31bf
    • Eli Zaretskii's avatar
      Fix more failures of visual-order cursor movement under word-wrap (bug#16961). · 2c65ad21
      Eli Zaretskii authored
       src/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.
      2c65ad21
  13. 07 Mar, 2014 2 commits
    • Eli Zaretskii's avatar
      Fix bug #16961 with visual-order cursor movement and word-wrap. · b646ea12
      Eli Zaretskii authored
       src/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.
      b646ea12
    • Martin Rudalics's avatar
      Update docs for select-window and buffer-list-update-hook. · 2c6053e8
      Martin Rudalics authored
      * buffer.c (Vbuffer_list_update_hook): Doc-string fix.
      * window.c (Fselect_window): Explain NORECORD and
      `buffer-list-update-hook' in doc-string.
      * buffers.texi (The Buffer List): Rename node to Buffer List.
      Describe `buffer-list-update-hook'.
      * elisp.texi (Top): "The Buffer List" renamed to "Buffer List".
      Add node for Window Dividers.
      * hooks.texi (Standard Hooks): Add reference to
      `buffer-list-update-hook'.
      * windows.texi (Selecting Windows): Update description of
      `select-window'.
      2c6053e8
  14. 06 Mar, 2014 2 commits
    • Martin Rudalics's avatar
      More window code related fixes and documentation changes. · cac0a1d6
      Martin Rudalics authored
      * window.c (Fother_window_for_scrolling): Check that
      Vother_window_scroll_buffer is a buffer.
      * window.el (fit-frame-to-buffer, fit-frame-to-buffer-margins):
      Fix doc-strings.
      (fit-frame-to-buffer): New argument ONLY.  Remove dependency on
      fit-frame-to-buffer variable.  Fix doc-string.
      (fit-window-to-buffer): Set ONLY argument in call of
      fit-frame-to-buffer.  Fix doc-string.
      * frames.texi (Size and Position): Rewrite entries for
      `fit-frame-to-buffer' and `fit-frame-to-buffer-margins'.  Add
      description for `fit-frame-to-buffer-sizes'.
      * windows.texi (Resizing Windows): Add descriptions for
      pixelwise resizing.  Add entries for `window-resize-pixelwise'
      and `fit-window-to-buffer-horizontally'.  Rewrite
      `fit-window-to-buffer' entry.
      cac0a1d6
    • Dmitry Antipov's avatar
      * xterm.c (xim_initialize): Always pass a copy of resource name · 12e852a2
      Dmitry Antipov authored
      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.
      12e852a2
  15. 05 Mar, 2014 3 commits
    • Martin Rudalics's avatar
      Various window code related fixes and documentation changes. · e1a2cb1c
      Martin Rudalics authored
      * 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.
      * window.el (window-min-height, window-min-width): Rewrite
      doc-strings.
      (window-body-size): Add PIXELWISE argument to make it consistent
      with its callees.
      * display.texi (Window Dividers): New section.
      * frames.texi (Layout Parameters): Add right-divider-width and
      bottom-divider-width.
      * windows.texi (Window Sizes): Redraw schematic and rewrite its
      description.  Rewrite descriptions of `window-total-height',
      `window-total-width', `window-total-size', `window-body-height',
      `window-body-width' and `window-size-fixed'.  Add descriptions
      for `window-pixel-height', `window-pixel-width',
      `window-min-height' and `window-min-width'.  Remove description
      of `window-size-fixed-p' moving part of it to that of
      `window-size-fixed'.
      (Resizing Windows): Mention dividers when talking about minimum
      sizes.
      e1a2cb1c
    • Paul Eggert's avatar
      Fix "resource temporarily unavailable" with xgselect. · e6e8a5eb
      Paul Eggert authored
      * xgselect.c: Include <stdbool.h>.
      (xg_select) [!USE_GTK]: Don't lose track of errno.
      
      Fixes: debbugs:16925
      e6e8a5eb
    • Paul Eggert's avatar
      Fix minor --enable-gcc-warnings issues. · d2f720ac
      Paul Eggert authored
      * widget.c (update_various_frame_slots, EmacsFrameResize):
      Avoid unused locals.  Prefer 'if' to '#if' when either will do.
      d2f720ac
  16. 04 Mar, 2014 4 commits
  17. 03 Mar, 2014 5 commits
    • Eli Zaretskii's avatar
      Fix bug #16930 with broken build --without-x. · 757c70af
      Eli Zaretskii authored
       src/font.c (Fframe_font_cache): Fix last change.
      757c70af
    • Eli Zaretskii's avatar
      Fix crashes in lisp_align_free in a build with GC_MCHECK. · bd650c24
      Eli Zaretskii authored
       src/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
       'aligned_alloc', find its real pointer before calling 'free'.
       (mabort) [emacs]: Call 'emacs_abort', not 'abort', to provide a
       backtrace.
      
      Fixes: debbugs:16901
      bd650c24
    • Dmitry Antipov's avatar
      Avoid crashes when X fonts are erroneously freed on reused X · 19dae293
      Dmitry Antipov authored
      'Display *' connection data (Bug#16069).  Note that X font
      resources still may be leaked, but currently there is no way
      to completely avoid it.
      * xterm.h (struct x_display_info): New member x_id.  Add comments.
      * xterm.c (x_display_id): New variable.
      (x_term_init): Assign identifier to each opened X connection.
      * xfont.c (struct xfont): New member x_display_id.
      (xfont_open): Initialize it with frame's display id.
      (xfont_close): Check whether font's display id matches the one
      recorded for the given display.  Adjust comment.
      * xftfont.c (struct xftfont_info):
      (xftfont_open, xftfont_close): Exactly as above with xfont stuff.
      19dae293
    • Dmitry Antipov's avatar
      * font.c (toplevel): Adjust comment about font cache layout. · 8c1c7611
      Dmitry Antipov authored
      (font_clear_cache): Fix to match real font cache layout.
      Suggested by <namespace_collision@yahoo.com> in Bug#16069.
      (Fframe_font_cache) [FONT_DEBUG]: New function.
      (syms_of_font) [FONT_DEBUG]: Defsubr it.
      8c1c7611
    • Juanma Barranquero's avatar
      */ChangeLog: Trivial fixes. · 35e951cd
      Juanma Barranquero authored
      35e951cd
  18. 01 Mar, 2014 2 commits