Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 57 lines (39 sloc) 1.552 kb

Build Status

Overview

Find the last visible point in an Emacs window.

Quickstart

(require 'window-end-visible)

;; open a buffer larger than the window

;; may return nil
(pos-visible-in-window-p (window-end))

;; always returns t
(pos-visible-in-window-p (window-end-visible))

Explanation

Window-end-visible.el has no user-level interface, and is only useful when programming Emacs Lisp.

This library provides the function window-end-visible, which works around a limitation of window-end, at a speed penalty.

The issue this function solves is that the following is not true as might be expected:

(pos-visible-in-window-p (window-end))

window-end-visible returns the "true" window end: the last visible position in the window, verified by testing with pos-visible-in-window-p.

The speed penalty of window-end-visible over window-end varies depending on your configuration. For example, tabbar.el makes calling pos-visible-in-window-p quite expensive.

Compatibility and Requirements

GNU Emacs version 24.4-devel     : yes, at the time of writing
GNU Emacs version 24.3           : yes
GNU Emacs version 23.3           : yes
GNU Emacs version 22.2           : yes, with some limitations
GNU Emacs version 21.x and lower : unknown

No external dependencies

Something went wrong with that request. Please try again.