How can I get the value of left top and right bottom point value of current working window(the window currently focusing on)?

1 Answer 1


This is described in chapter The Window Start and End Positions of the elisp manual. Specifically:

-- Function: window-start &optional window This function returns the display-start position of window WINDOW. If WINDOW is ‘nil’, the selected window is used.

-- Function: window-end &optional window update This function returns the position where display of its buffer ends in WINDOW. The default for WINDOW is the selected window.

Be sure to read the whole manual section for details.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.