all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (pos-visible-in-window-p t nil t) returns wrong position/is suboptimally documented.
@ 2015-09-27 10:40 Alan Mackenzie
  2015-09-27 11:06 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Mackenzie @ 2015-09-27 10:40 UTC (permalink / raw)
  To: emacs-devel

Hello Emacs.

In emacs -Q, with a buffer in a window such that there is text in the
window's last line, I run

    M-: (pos-visible-in-window-p t nil t)

.  (Those parameters are in order POS, WINDOW, and PARTIALLY)

The return value is, e.g., (0 64), the X and Y coordinates of the
_beginning_ of the last line.  (On an X window, the result is (0 920).)

With PARTIALLY non-nil, and POS set to t, the function should return the
coordinates of "the last visible position in WINDOW", according to elisp
page "Window Start and End".

I would expect the "last visible position" to mean the _end_ of the last
line, not the beginning.

Which is correct?  The function or the documentation?

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-01  7:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-27 10:40 (pos-visible-in-window-p t nil t) returns wrong position/is suboptimally documented Alan Mackenzie
2015-09-27 11:06 ` Eli Zaretskii
2015-09-30  7:21   ` Eli Zaretskii
2015-09-30  8:56     ` Alan Mackenzie
2015-09-30  9:32       ` Eli Zaretskii
2015-09-30 10:22         ` Alan Mackenzie
2015-09-30 13:52           ` Eli Zaretskii
2015-09-30 14:05             ` Alan Mackenzie
2015-10-01  7:36           ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.