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

Diff of /emacs/src/window.c

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

revision 1.474 by rms, Sun Jul 25 17:35:49 2004 UTC revision 1.475 by rms, Sun Jul 25 17:43:57 2004 UTC
# Line 579  display margins, fringes, header line, a Line 579  display margins, fringes, header line, a
579     if it is on the window's modeline, return ON_MODE_LINE;     if it is on the window's modeline, return ON_MODE_LINE;
580     if it is on the border between the window and its right sibling,     if it is on the border between the window and its right sibling,
581        return ON_VERTICAL_BORDER.        return ON_VERTICAL_BORDER.
582       if it is on a scroll bar,
583          return ON_SCROLL_BAR.
584     if it is on the window's top line, return ON_HEADER_LINE;     if it is on the window's top line, return ON_HEADER_LINE;
585     if it is in left or right fringe of the window,     if it is in left or right fringe of the window,
586        return ON_LEFT_FRINGE or ON_RIGHT_FRINGE, and convert *X and *Y        return ON_LEFT_FRINGE or ON_RIGHT_FRINGE, and convert *X and *Y
# Line 673  coordinates_in_window (w, x, y) Line 675  coordinates_in_window (w, x, y)
675    
676    /* Outside any interesting column?  */    /* Outside any interesting column?  */
677    if (*x < left_x || *x > right_x)    if (*x < left_x || *x > right_x)
678      return ON_VERTICAL_BORDER;      return ON_SCROLL_BAR;
679    
680    lmargin_width = window_box_width (w, LEFT_MARGIN_AREA);    lmargin_width = window_box_width (w, LEFT_MARGIN_AREA);
681    rmargin_width = window_box_width (w, RIGHT_MARGIN_AREA);    rmargin_width = window_box_width (w, RIGHT_MARGIN_AREA);
# Line 818  If they are in the windows's left or rig Line 820  If they are in the windows's left or rig
820      case ON_RIGHT_MARGIN:      case ON_RIGHT_MARGIN:
821        return Qright_margin;        return Qright_margin;
822    
823        case ON_SCROLL_BAR:
824          /* Historically we are supposed to return nil in this case.  */
825          return Qnil;
826    
827      default:      default:
828        abort ();        abort ();
829      }      }

Legend:
Removed from v.1.474  
changed lines
  Added in v.1.475

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