/[emacs]/emacs/src/keyboard.c
ViewVC logotype

Diff of /emacs/src/keyboard.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.840 by kfstorm, Mon Oct 10 22:50:21 2005 UTC revision 1.841 by kfstorm, Tue Oct 11 15:07:28 2005 UTC
# Line 5090  make_lispy_position (f, x, y, time) Line 5090  make_lispy_position (f, x, y, time)
5090                                           &object, &dx, &dy, &width, &height);                                           &object, &dx, &dy, &width, &height);
5091            if (STRINGP (string))            if (STRINGP (string))
5092              string_info = Fcons (string, make_number (charpos));              string_info = Fcons (string, make_number (charpos));
5093              if (part == ON_LEFT_MARGIN)
5094                wx = 0;
5095              else
5096                wx = window_box_right_offset (w, TEXT_AREA) - 1;
5097          }          }
5098        else if (part == ON_LEFT_FRINGE || part == ON_RIGHT_FRINGE)        else if (part == ON_LEFT_FRINGE)
5099          {          {
5100            posn = (part == ON_LEFT_FRINGE) ? Qleft_fringe : Qright_fringe;            posn = Qleft_fringe;
5101            rx = 0;            rx = 0;
5102            dx = wx;            dx = wx;
5103            wx = (part == ON_LEFT_FRINGE) ? 0 : window_box_width (w, TEXT_AREA);            wx = (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w)
5104            if (part == ON_RIGHT_FRINGE)                  ? 0
5105              dx -= (window_box_width (w, LEFT_MARGIN_AREA)                  : window_box_width (w, LEFT_MARGIN_AREA));
5106                     + window_box_width (w, TEXT_AREA)            dx -= wx;
5107                     + (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w)          }
5108                        ? window_box_width (w, RIGHT_MARGIN_AREA)        else if (part == ON_RIGHT_FRINGE)
5109                        : 0));          {
5110            else if (!WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w))            posn = Qright_fringe;
5111              dx -= window_box_width (w, LEFT_MARGIN_AREA);            rx = 0;
5112              dx = wx;
5113              wx = (window_box_width (w, LEFT_MARGIN_AREA)
5114                    + window_box_width (w, TEXT_AREA)
5115                    + (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w)
5116                       ? window_box_width (w, RIGHT_MARGIN_AREA)
5117                       : 0));
5118              dx -= wx;
5119            }
5120          else
5121            {
5122              /* Note: We have no special posn for part == ON_SCROLL_BAR.  */
5123              wx = max (WINDOW_LEFT_MARGIN_WIDTH (w), wx);
5124          }          }
5125    
5126        if (textpos < 0)        if (textpos < 0)
# Line 5113  make_lispy_position (f, x, y, time) Line 5129  make_lispy_position (f, x, y, time)
5129            struct display_pos p;            struct display_pos p;
5130            int dx2, dy2;            int dx2, dy2;
5131            int width2, height2;            int width2, height2;
           wx = max (WINDOW_LEFT_MARGIN_WIDTH (w), wx);  
5132            string2 = buffer_posn_from_coords (w, &wx, &wy, &p,            string2 = buffer_posn_from_coords (w, &wx, &wy, &p,
5133                                               &object2, &dx2, &dy2,                                               &object2, &dx2, &dy2,
5134                                               &width2, &height2);                                               &width2, &height2);

Legend:
Removed from v.1.840  
changed lines
  Added in v.1.841

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26