]> git.eshelyaron.com Git - emacs.git/commitdiff
Clarify documentation of 'mouse-on-link-p'
authorEli Zaretskii <eliz@gnu.org>
Thu, 7 Jul 2016 16:15:03 +0000 (19:15 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 7 Jul 2016 16:15:03 +0000 (19:15 +0300)
* lisp/mouse.el (mouse-on-link-p): Clarify the form of the POS
argument.  (Bug#23899)

lisp/mouse.el

index 64ee796a681f5c04d178acab08835c569ff75ab6..27f2acbc76a896e1ee1a9c49edb24f8fbdbd74f0 100644 (file)
@@ -718,8 +718,9 @@ its value is returned."
 
 (defun mouse-on-link-p (pos)
   "Return non-nil if POS is on a link in the current buffer.
-POS must be a buffer position in the current buffer or a mouse
-event location in the selected window (see `event-start').
+POS must specify a buffer position in the current buffer, as a list
+of the form returned by the `event-start' and `event-end' functions,
+or a mouse event location in the selected window (see `event-start').
 However, if `mouse-1-click-in-non-selected-windows' is non-nil,
 POS may be a mouse event location in any window.