1. 30 Mar, 2014 1 commit
  2. 28 Mar, 2014 2 commits
  3. 27 Mar, 2014 1 commit
  4. 26 Mar, 2014 3 commits
  5. 25 Mar, 2014 1 commit
    • Barry O'Reilly's avatar
      Undo in region after markers in undo history relocated · 37ea8275
      Barry O'Reilly authored
      * simple.el (primitive-undo): Only process marker adjustments
      validated against their corresponding (TEXT . POS).  Issue warning
      for lone marker adjustments in undo history.  (Bug#16818)
      (undo-make-selective-list): Add marker adjustments to selective
      undo list based on whether their corresponding (TEXT . POS) is in
      the region.  Remove variable adjusted-markers, which was unused
      and only non nil during undo-make-selective-list.
      (undo-elt-in-region): Return nil when passed a marker adjustment
      and explain in function doc.
      
      Have (MARKER . ADJUSTMENT) undo records always be immediately
      after their corresponding (TEXT . POS) record in undo list.
      (Bug#16818)
      * lisp.h (record-delete): New arg record_markers.
      (record_marker_adjustment): No longer needed outside undo.c.
      * insdel.c (adjust_markers_for_delete): Move calculation of marker
      adjustments to undo.c's record_marker_adjustments.  Note that
      fileio.c's decide_coding_unwind is another caller to
      adjust_markers_for_delete.  Because it has undo list bound to t,
      it does not rely on adjust_markers_for_delete to record marker
      adjustments.
      (del_range_2): Swap call to record_delete and
      adjust_markers_for_delete so as undo marker adjustments are
      recorded before current deletion's adjustments, as before.
      (adjust_after_replace):
      (replace_range): Pass value for new record_markers arg to
      delete_record.
      * undo.c (record_marker_adjustment): Renamed to
      record_marker_adjustments and made static.
      (record_delete): Check record_markers arg and call
      record_marker_adjustments.
      (record_change): Pass value for new record_markers arg to
      delete_record.
      (record_point): at_boundary calculation no longer needs to account
      for marker adjustments.
      
      * undo-tests.el (undo-test-marker-adjustment-nominal):
      (undo-test-region-t-marker): New tests of marker adjustments.
      (undo-test-marker-adjustment-moved):
      (undo-test-region-mark-adjustment): New tests to demonstrate
      bug#16818, which fail without the fix.
      
      * markers.texi (Moving Marker Positions): The 2014-03-02 doc
      change mentioning undo's inability to handle relocated markers no
      longer applies.  See bug#16818.
      * text.texi (Undo): Expand documentation of (TEXT . POS) and
      (MARKER . ADJUSTMENT) undo elements.
      37ea8275
  6. 24 Mar, 2014 1 commit
  7. 23 Mar, 2014 6 commits
  8. 21 Mar, 2014 3 commits
  9. 20 Mar, 2014 3 commits
  10. 19 Mar, 2014 3 commits
  11. 17 Mar, 2014 1 commit
  12. 16 Mar, 2014 2 commits
  13. 15 Mar, 2014 1 commit
  14. 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
  15. 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
  16. 11 Mar, 2014 2 commits
  17. 10 Mar, 2014 4 commits
  18. 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
  19. 08 Mar, 2014 3 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
      src/xdisp.c (Fmove_point_visually): Fix previous change. · 281ae180
      Eli Zaretskii authored
      Fixes: debbugs:16961
      281ae180
    • 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