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 |
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); |
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 |
} |
} |