[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find when a word is within the current window

From: Helmut Eller
Subject: Re: find when a word is within the current window
Date: Wed, 23 Jan 2013 11:24:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

On Wed, Jan 23 2013, Luca Ferrari wrote:

> Hi all,
> I'm implementing a jump-to-label function that would split the current
> window and scroll up/down within the same buffer to the point where a
> label is defined. And it works! However, I'd like to have the split to
> happen only when the label I'm searching for is not visible within the
> current window (i.e., it makes sense to jump to it). How can I find if
> a word is currently visible within the current window? I suspect,
> since I already know at which line the label is, one way is to check
> with window window boundaries against the label line number, but there
> could be a smarter way.

pos-visible-in-window-p seems appropriate.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]