Next: Window Start and End, Previous: Quitting Windows, Up: Windows
Each window has its own value of point (see Point), independent of the value of point in other windows displaying the same buffer. This makes it useful to have multiple windows showing one buffer.
As far as the user is concerned, point is where the cursor is, and when the user switches to another buffer, the cursor jumps to the position of point in that buffer.
This function returns the current position of point in window. For a nonselected window, this is the value point would have (in that window's buffer) if that window were selected. The default for window is the selected window.
When window is the selected window, the value returned is the value of point in that window's buffer. Strictly speaking, it would be more correct to return the “top-level” value of point, outside of any
save-excursion
forms. But that value is hard to find.
This function positions point in window at position position in window's buffer. It returns position.
If window is selected, this simply does
goto-char
in window's buffer.
This variable specifies the marker insertion type (see Marker Insertion Types) of
window-point
. The default isnil
, sowindow-point
will stay behind text inserted there.