# HG changeset patch # User Kim F. Storm # Date 1105704933 0 # Node ID b736797a552a1af77ec81962329847d57594eae1 # Parent eeb8c7b63e5b1c91206538de931f44807cff282a (Accessing Events): Add WHOLE arg to posn-at-x-y. diff -r eeb8c7b63e5b -r b736797a552a lispref/commands.texi --- a/lispref/commands.texi Fri Jan 14 12:15:17 2005 +0000 +++ b/lispref/commands.texi Fri Jan 14 12:15:33 2005 +0000 @@ -1843,12 +1843,15 @@ @var{window}. @end defun -@defun posn-at-x-y x y &optional frame-or-window +@defun posn-at-x-y x y &optional frame-or-window whole This function returns position information corresponding to pixel coordinates @var{x} and @var{y} in a specified frame or window, @var{frame-or-window}, which defaults to the selected window. The coordinates @var{x} and @var{y} are relative to the frame or window used. +If @var{whole} is @code{nil}, the coordinates are relative +to the window text area, otherwise they are relative to +the entire window area including scroll bars, margins and fringes. @end defun These functions are useful for decoding scroll bar events.