(near-window-placement window-getter #&key (offset '(0 0)) (proportional-offset '(-0.5 -0.5)) (relative-to 'center) (auto-focus #f))
Return a procedure that places a window near the window returned by WINDOW-GETTER. If RELATIVE-TO is specified, it gives a symbolic location in the existing window returned by WINDOW-GETTER to use as the control point for the window placement. RELATIVE-TO may be any of northwest north northeast west center east southwest south southeast. If OFFSET is specified, it is interpreted as a list of x and y offsets to add to the control point. If PROPORTIONAL-OFFSET is specified, it is interpreted as a list of numbers to multiply by the being-placed window's width and height, and is treated as an extra offset added to the control point. The defaults are (0 0) for OFFSET and (-0.5 -0.5) for PROPORTIONAL-OFFSET, with the result that by default the window is centered at the control point of the existing window.