Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
304661b9
Commit
304661b9
authored
Sep 04, 2014
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix misleading doc string revealed in bug #18385.
lisp/subr.el (posn-actual-col-row): Doc fix.
parent
e97a29cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/subr.el
lisp/subr.el
+9
-4
No files found.
lisp/ChangeLog
View file @
304661b9
2014-09-04 Eli Zaretskii <eliz@gnu.org>
* subr.el (posn-actual-col-row): Doc fix. (Bug#18385)
2014-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/package.el (package-generate-description-file):
...
...
lisp/subr.el
View file @
304661b9
...
...
@@ -1149,12 +1149,17 @@ and `event-end' functions."
(
/
(
cdr
pair
)
(
+
(
frame-char-height
frame
)
spacing
))))))))
(
defun
posn-actual-col-row
(
position
)
"Return the
actual column and row in POSITION, measured in characters
.
These are the actual row number in the window and character number in that row.
"Return the
window row number in POSITION and character number in that row
.
Return nil if POSITION does not contain the actual position; in that case
`posn-col-row' can be used to get approximate values.
\
`posn-col-row' can be used to get approximate values.
POSITION should be a list of the form returned by the `event-start'
and `event-end' functions."
and `event-end' functions.
This function does not account for the width on display, like the
number of visual columns taken by a TAB or image. If you need
the coordinates of POSITION in character units, you should use
\`posn-col-row', not this function."
(
nth
6
position
))
(
defsubst
posn-timestamp
(
position
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment