summaryrefslogtreecommitdiff
path: root/lisp/mouse-sel.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mouse-sel.el')
-rw-r--r--lisp/mouse-sel.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mouse-sel.el b/lisp/mouse-sel.el
index a327b589f54..a1209f827f1 100644
--- a/lisp/mouse-sel.el
+++ b/lisp/mouse-sel.el
@@ -737,7 +737,8 @@ If `mouse-yank-at-point' is non-nil, insert at point instead."
(mouse-set-point event))
(when mouse-sel-get-selection-function
(push-mark (point) 'nomsg)
- (insert (or (funcall mouse-sel-get-selection-function selection) ""))))
+ (insert-for-yank
+ (or (funcall mouse-sel-get-selection-function selection) ""))))
;;=== Handle loss of selections ===========================================