]> code.delx.au - gnu-emacs/commitdiff
Fix documentation mentioned in bug #17768.
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Jun 2014 16:37:15 +0000 (19:37 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 Jun 2014 16:37:15 +0000 (19:37 +0300)
 lisp/subr.el (posn-col-row): Doc fix.

 doc/lispref/commands.texi (Accessing Mouse): Improve the wording of the
 posn-col-row documentation.

doc/lispref/ChangeLog
doc/lispref/commands.texi
lisp/ChangeLog
lisp/subr.el

index 2b00d9743b77efa4a6a65bb634d3739a795e2f25..c20a20409a236b9d7711cd33719e751b4f0ad224 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * commands.texi (Accessing Mouse): Improve the wording of the
+       posn-col-row documentation.  (Bug#17768)
+
 2014-06-08  Glenn Morris  <rgm@gnu.org>
 
        * os.texi (Startup Summary): Small fix for initial-buffer-choice.
index 38a6970e6f420e0f967cb5587f71bdbd3f66e8ab..c478b7847d25244bc9ce99dd05e6ee66b2399b2b 100644 (file)
@@ -2049,23 +2049,24 @@ POSITION is assumed to lie in a window text area."
 @defun posn-col-row position
 This function returns a cons cell @code{(@var{col} .  @var{row})},
 containing the estimated column and row corresponding to buffer
-position @var{position}.  The return value is given in units of the
-frame's default character width and height, as computed from the
-@var{x} and @var{y} values corresponding to @var{position}.  (So, if
-the actual characters have non-default sizes, the actual row and
-column may differ from these computed values.)
+position in @var{position}.  The return value is given in units of the
+frame's default character width and default line height (including
+spacing), as computed from the @var{x} and @var{y} values
+corresponding to @var{position}.  (So, if the actual characters have
+non-default sizes, the actual row and column may differ from these
+computed values.)
 
 Note that @var{row} is counted from the top of the text area.  If the
-window possesses a header line (@pxref{Header Lines}), it is
-@emph{not} counted as the first line.
+window given by @var{position} possesses a header line (@pxref{Header
+Lines}), it is @emph{not} included in the @var{row} count.
 @end defun
 
 @defun posn-actual-col-row position
 Return the actual row and column in @var{position}, as a cons cell
 @code{(@var{col} . @var{row})}.  The values are the actual row and
-column numbers in the window.  @xref{Click Events}, for details.  It
-returns @code{nil} if @var{position} does not include actual positions
-values.
+column numbers in the window given by @var{position}.  @xref{Click
+Events}, for details.  The function returns @code{nil} if
+@var{position} does not include actual position values.
 @end defun
 
 @defun posn-string position
index b489b5a50d6423f25e7c035decf8f249a42de4b1..b4c51f7bb2383bda489def451aa538e83e2912f0 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * subr.el (posn-col-row): Doc fix.  (Bug#17768)
+
 2014-06-14  Juri Linkov  <juri@jurta.org>
 
        * bindings.el: Put `ascii-character' property on keypad keys
index c8dcfc8df97e330e299db7ecffc3523725329e05..700c072a81bbeadf1dd1d0c41c1690aba45eae26 100644 (file)
@@ -1117,7 +1117,7 @@ pixels.  POSITION should be a list of the form returned by
   "Return the nominal column and row in POSITION, measured in characters.
 The column and row values are approximations calculated from the x
 and y coordinates in POSITION and the frame's default character width
-and height.
+and default line height, including spacing.
 For a scroll-bar event, the result column is 0, and the row
 corresponds to the vertical position of the click in the scroll bar.
 POSITION should be a list of the form returned by the `event-start'