unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15783: 24.3; posn-at-x-y is relative to the buffer area, posn-at-point is relative to the text area.
@ 2013-11-01 14:49 椎野 裕樹
  2013-11-01 16:32 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: 椎野 裕樹 @ 2013-11-01 14:49 UTC (permalink / raw)
  To: 15783

On Emacs 24 with non-nil header-line-format, y offset returned by
`posn-at-point' is relative to the text area *not including the header
line*.  However, `posn-at-x-y' takes y offset relative to the buffer
area *including the header line*.

Is this by design?

When I get the position by `posn-at-point', and then convert the
position to the point by `posn-at-x-y', the resulting point does not
match the point given to `posn-at-point'.

This seems to me a serious inconsistency.

On Emacs 22 and 23, both functions are relative to the buffer area
including the header line.  It's fine.

Cheers,
Yuki Shiino





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

end of thread, other threads:[~2021-10-23  7:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 14:49 bug#15783: 24.3; posn-at-x-y is relative to the buffer area, posn-at-point is relative to the text area 椎野 裕樹
2013-11-01 16:32 ` Eli Zaretskii
2017-11-17  7:46   ` Alex
2017-11-17  9:32     ` Eli Zaretskii
2017-11-18  6:35       ` Alex
2017-11-18  8:40         ` Eli Zaretskii
2021-10-22 23:27           ` Stefan Kangas
2021-10-23  6:49             ` Eli Zaretskii
2021-10-23  7:47               ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).