aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorChong Yidong2011-11-24 00:09:08 +0800
committerChong Yidong2011-11-24 00:09:08 +0800
commit90ec88df9f36d19547d287526f71cc27d76ccabb (patch)
tree33bc0db6d8f87ec05cfcf354c69b77a505cad6bd /src/window.c
parent17fe5af5b37dc0ae74ada8cf9d972178eb29b01b (diff)
downloademacs-90ec88df9f36d19547d287526f71cc27d76ccabb.tar.gz
emacs-90ec88df9f36d19547d287526f71cc27d76ccabb.zip
* src/window.c (Fcoordinates_in_window_p): Accept only live windows.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index dd354b0ceea..bb2478d78fd 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1052,6 +1052,7 @@ window_relative_x_coord (struct window *w, enum window_part part, int x)
1052DEFUN ("coordinates-in-window-p", Fcoordinates_in_window_p, 1052DEFUN ("coordinates-in-window-p", Fcoordinates_in_window_p,
1053 Scoordinates_in_window_p, 2, 2, 0, 1053 Scoordinates_in_window_p, 2, 2, 0,
1054 doc: /* Return non-nil if COORDINATES are in WINDOW. 1054 doc: /* Return non-nil if COORDINATES are in WINDOW.
1055WINDOW must be a live window.
1055COORDINATES is a cons of the form (X . Y), X and Y being distances 1056COORDINATES is a cons of the form (X . Y), X and Y being distances
1056measured in characters from the upper-left corner of the frame. 1057measured in characters from the upper-left corner of the frame.
1057\(0 . 0) denotes the character in the upper left corner of the 1058\(0 . 0) denotes the character in the upper left corner of the
@@ -1073,7 +1074,7 @@ If they are in the windows's left or right marginal areas, `left-margin'\n\
1073 int x, y; 1074 int x, y;
1074 Lisp_Object lx, ly; 1075 Lisp_Object lx, ly;
1075 1076
1076 CHECK_WINDOW (window); 1077 CHECK_LIVE_WINDOW (window);
1077 w = XWINDOW (window); 1078 w = XWINDOW (window);
1078 f = XFRAME (w->frame); 1079 f = XFRAME (w->frame);
1079 CHECK_CONS (coordinates); 1080 CHECK_CONS (coordinates);