summaryrefslogtreecommitdiff
path: root/lisp/mouse-sel.el
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2006-09-15 08:53:18 +0000
committerDavid Kastrup <dak@gnu.org>2006-09-15 08:53:18 +0000
commit69f812d226306023c3ad61dac7f03ef420cca6ef (patch)
tree77cefc59fa30be0ed97fef4106566cd62421bb5c /lisp/mouse-sel.el
parent2e44802a055dede18ad1ff4fc5f4ad807e764b56 (diff)
downloademacs-69f812d226306023c3ad61dac7f03ef420cca6ef.tar.gz
* 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.
Diffstat (limited to 'lisp/mouse-sel.el')
-rw-r--r--lisp/mouse-sel.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mouse-sel.el b/lisp/mouse-sel.el
index a64dabaec81..a327b589f54 100644
--- a/lisp/mouse-sel.el
+++ b/lisp/mouse-sel.el
@@ -702,7 +702,7 @@ Sel mode does not support using a `double' value to follow links
using double-clicks."
(and initial final mouse-1-click-follows-link
(eq (car initial) 'down-mouse-1)
- (mouse-on-link-p (posn-point (event-start initial)))
+ (mouse-on-link-p (event-start initial))
(= (posn-point (event-start initial))
(posn-point (event-end final)))
(= (event-click-count initial) 1)