aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
diff options
context:
space:
mode:
authorEivind Fonn <evfonn@gmail.com>2019-12-03 11:10:24 +0100
committerEivind Fonn <evfonn@gmail.com>2019-12-03 11:10:24 +0100
commita277b7933c8afd091d777c86027b27bb8a6f3788 (patch)
treef892321b5243114cb6dfa25c4374fac4dfdef1d5 /evil-common.el
parent9810fe3b7093b2987825aa9e12b393284dab00cc (diff)
evil-posn-x-y: Fix docstring
Diffstat (limited to 'evil-common.el')
-rw-r--r--evil-common.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/evil-common.el b/evil-common.el
index 90831c7..d18b137 100644
--- a/evil-common.el
+++ b/evil-common.el
@@ -879,14 +879,15 @@ If there is no header line, return nil."
(defun evil-posn-x-y (position)
"Return the x and y coordinates in POSITION.
-
This function returns y offset from the top of the buffer area including
the header line.
-on Emacs 24 and later versions, y offset returned by `posn-at-point' is
-relative to the text area excluding the header line, while y offset taken
-by `posn-at-x-y' is relative to the buffer area including the header line.
-This asymmetry is by design according to GNU Emacs team.
-This function fixes the asymmetry between them.
+
+On Emacs 24 and later versions, the y-offset returned by
+`posn-at-point' is relative to the text area excluding the header
+line, while y offset taken by `posn-at-x-y' is relative to the buffer
+area including the header line. This asymmetry is by design according
+to GNU Emacs team. This function fixes the asymmetry between them.
+
Learned from mozc.el."
(let ((xy (posn-x-y position)))
(when header-line-format