* mouse-sel.el (mouse-sel-follow-link-p): Use event position
authorDavid Kastrup <dak@gnu.org>
Fri, 15 Sep 2006 08:53:18 +0000 (08:53 +0000)
committerDavid Kastrup <dak@gnu.org>
Fri, 15 Sep 2006 08:53:18 +0000 (08:53 +0000)
commit91a2acb229ac102ef15866174fb2d62c8e36598c
tree5d23741ece50bf6da9e72a6b51aadc74a54f7c61
parentb74e16a384ddbded12eb7e8c7250253614554641
* mouse-sel.el (mouse-sel-follow-link-p): Use event position
instead of buffer position for `mouse-on-link-p'.

* mouse.el (mouse-posn-property): New function looking up the
properties at a click position in overlays and text properties in
either buffer or strings.
(mouse-on-link-p): Use `mouse-posn-property' to streamline lookup
of both `follow-link' as well as `mouse-face' properties.
(mouse-drag-track): Check `mouse-on-link-p' on event position, not
buffer position.

* help.el (describe-key-briefly): When reading a down-event on
mode lines or scroll bar, swallow the following up event, too.
Use the new mouse sensitity of `key-binding' for lookup.
(describe-key): The same here.
lisp/ChangeLog
lisp/help.el
lisp/mouse-sel.el
lisp/mouse.el