1. 10 Jun, 2014 2 commits
  2. 08 Jun, 2014 1 commit
    • Paul Eggert's avatar
      If a C name must be extern on some platforms, make it extern on all. · ff2d0e83
      Paul Eggert authored
      * dispextern.h (set_vertical_scroll_bar, erase_phys_cursor)
      * font.h (ftxfont_driver) [HAVE_XFT]:
      * keyboard.h (menu_items_inuse, ignore_mouse_drag_p, make_ctrl_char):
      * lisp.h (get_frame_param):
      * menu.h (tty_menu_show):
      * process.h (conv_sockaddr_to_lisp, catch_child_signal):
      * termhooks.h (encode_terminal_code):
      * xterm.h (x_menu_wait_for_event):
      Always declare.
      * frame.c (get_frame_param):
      * fringe.c (max_used_fringe_bitmap):
      * ftxfont.c (ftxfont_driver):
      * keyboard.c (ignore_mouse_drag_p, make_ctrl_char):
      * menu.c (menu_items_inuse):
      * process.c (conv_sockaddr_to_lisp, catch_child_signal):
      * term.c (encode_terminal_code, tty_menu_show):
      * xdisp.c (set_vertical_scroll_bar, erase_phys_cursor):
      * xfaces.c (load_color):
      * xmenu.c (x_menu_wait_for_event):
      Now always extern.
  3. 30 May, 2014 1 commit
    • Dmitry Antipov's avatar
      Debugging facility to check whether 'const char *' points to · 8d3103b1
      Dmitry Antipov authored
      relocatable data of non-pure Lisp string.
      * alloc.c (maybe_lisp_pointer): New function, refactored out of ...
      (mark_maybe_pointer): ... adjusted user.
      (relocatable_string_data_p): New function.
      * lisp.h (relocatable_string_data_p): Add prototype.
      * xdisp.c (message_with_string): If ENABLE_CHECKING, make sure
      the pointer to relocatable Lisp data is not used.
  4. 25 May, 2014 1 commit
  5. 24 May, 2014 3 commits
  6. 21 May, 2014 1 commit
  7. 12 May, 2014 1 commit
  8. 24 Apr, 2014 1 commit
  9. 18 Apr, 2014 1 commit
  10. 17 Apr, 2014 1 commit
  11. 12 Apr, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix bug #17244 with line-move-visual when display string covers a lot of text. · 180c8ce0
      Eli Zaretskii authored
       src/xdisp.c (move_it_by_lines): If a large portion of buffer text is
       covered by a display string that ends in a newline, and that cases
       going back by DVPOS lines to hit the search limit, lift the limit
       and go back until DVPOS is reached.
       src/indent.c (Fvertical_motion): Handle correctly the case when the
       display string is preceded by an empty line.
  12. 05 Apr, 2014 1 commit
    • Paul Eggert's avatar
      Prefer 'ARRAYELTS (x)' to 'sizeof x / sizeof *x'. · faa52174
      Paul Eggert authored
      * alloc.c (memory_full):
      * charset.c (syms_of_charset):
      * doc.c (Fsnarf_documentation):
      * emacs.c (main):
      * font.c (BUILD_STYLE_TABLE):
      * keyboard.c (make_lispy_event):
      * profiler.c (setup_cpu_timer):
      * xgselect.c (xg_select):
      * xterm.c (record_event, STORE_KEYSYM_FOR_DEBUG):
      Use ARRAYELTS.
      * font.c (FONT_PROPERTY_TABLE_SIZE): Remove.
      Replace the only use with ARRAYELTS (font_property_table).
      * xfaces.c (DIM): Remove.  All uses replaced by ARRAYELTS.
  13. 23 Mar, 2014 1 commit
  14. 20 Mar, 2014 1 commit
  15. 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.texi (Primitive Indent):
      * strings.texi (String Basics):
      * sequences.texi (Sequence Functions): Update references
      * 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.
  16. 08 Mar, 2014 2 commits
    • Eli Zaretskii's avatar
      src/xdisp.c (Fmove_point_visually): Fix previous change. · 281ae180
      Eli Zaretskii authored
      Fixes: debbugs:16961
    • 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.
  17. 07 Mar, 2014 1 commit
  18. 28 Feb, 2014 1 commit
  19. 27 Feb, 2014 2 commits
    • Martin Rudalics's avatar
      More fixes for mouse glyph calculations (Bug#16647). · 653b6ea3
      Martin Rudalics authored
      More fixes for mouse glyph calculations (Bug#16647).
      * window.c (coordinates_in_window): In intersection of
      horizontal and vertical window dividers prefer the horizontal
      one.  Add some extra parens to last fix.
      (window_relative_x_coord): Return x-coordinate for header and
      mode line too.
      * xdisp.c (remember_mouse_glyph): In text area don't extend
      glyph into mode line to show the vertical drag cursor there
      immediately.  Subdivide mouse glyphs in right fringes to show a
      horizontal drag cursor as soon as we enter the "grabbable width"
      portion.  Handle vertical border case separately.  Do not
      subdivide window divider areas.
      (note_mouse_highlight): On bottom divider of bottommost windows
      show vertical drag cursor only when the minibuffer window can be
    • Eli Zaretskii's avatar
      Fix bug #16870 with 'box' face in display strings. · 11de63ed
      Eli Zaretskii authored
       src/xdisp.c (pop_it): Restore the it->face_box_p flag which could be
       reset by the face of the object just displayed.  See also bug#76.
       (get_next_display_element): If the string came from a display
       property, examine the box face attribute at it->position, not at
       it->current.pos, since the latter was not updated yet.
       (handle_face_prop): Improve commentary.
  20. 26 Feb, 2014 1 commit
    • Martin Rudalics's avatar
      Fixes around Bug#16647. · aea124c4
      Martin Rudalics authored
      * xdisp.c (remember_mouse_glyph): Handle ON_RIGHT_DIVIDER and
      ON_BOTTOM_DIVIDER cases.
      * window.c (coordinates_in_window): Return ON_VERTICAL_BORDER
      only if the window has no right divider.
      (Fcoordinates_in_window_p): Fix doc-string.
  21. 21 Feb, 2014 1 commit
  22. 20 Feb, 2014 3 commits
  23. 19 Feb, 2014 1 commit
  24. 08 Feb, 2014 1 commit
  25. 07 Feb, 2014 1 commit
  26. 05 Feb, 2014 3 commits
  27. 04 Feb, 2014 1 commit
    • Martin Rudalics's avatar
      Improve window dividers code. · 764ec9e5
      Martin Rudalics authored
      * faces.el (window-divider): New default value.  Rewrite
      (window-divider-first-pixel, window-divider-last-pixel): New
      * dispextern.h (face_id): Add WINDOW_DIVIDER_FIRST_PIXEL_FACE_ID
      * w32term.c (w32_draw_window_divider): Handle first and last
      pixels specially.
      * w32term.h (w32_fill_area_abs): New function.
      * xdisp.c (x_draw_right_divider): Don't draw over bottom
      * xfaces.c (realize_basic_faces): Handle new face ids.
      * xfns.c (Fx_create_frame): Call x_default_parameter for right
      and bottom divider width.
      * xterm.c (x_draw_window_divider): Handle first and last pixels
  28. 28 Jan, 2014 1 commit
    • Martin Rudalics's avatar
      Fix Fwindow_text_pixel_size and fit-frame-to-buffer. · 1dcb169c
      Martin Rudalics authored
      * xdisp.c (last_max_ascent): Re-remove after erroneously
      reintroducing it on 2013-11-30 and abolishing Dmitry's removal
      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
      * window.el (fit-frame-to-buffer): Fix calculations for margins and
      height constraints.
  29. 25 Jan, 2014 1 commit
  30. 24 Jan, 2014 1 commit
  31. 13 Jan, 2014 1 commit