[Top][All Lists]

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

Re: doc-view.el --- View PDF/PostScript/DVI files in Emacs

From: David Kastrup
Subject: Re: doc-view.el --- View PDF/PostScript/DVI files in Emacs
Date: Mon, 27 Aug 2007 22:31:58 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> David Kastrup <address@hidden> writes:
> Hi David,
>> The documentation is somewhat hidden.  Look under (info "(elisp) Other
>> Display Specs") for the "slice" specification.
> That's really nice.  Now one can select the region to display with one
> mouse click at the top-left corner and one in the bottom left corner.
> But that doesn't work if the window is scrolled up, because the position
> in the mouse events is the position in the window (and not the position
> in the image).
> Any idea how that can be done?

posn-object-x-y is a compiled Lisp function in `subr.el'.
(posn-object-x-y POSITION)

Return the x and y coordinates relative to the object of POSITION.
POSITION should be a list of the form returned by the `event-start'
and `event-end' functions.


David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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