[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mouse-sel.el: Use insert-for-yank
From: |
Johan Bockgård |
Subject: |
mouse-sel.el: Use insert-for-yank |
Date: |
Tue, 03 Oct 2006 16:07:37 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Problem: Yanking (middle-click) in mouse-sel-mode doesn't run yank handlers.
Fix:
2006-10-03 Johan Bockgård <address@hidden>
* mouse-sel.el (mouse-insert-selection-internal): Use
insert-for-yank.
--- mouse-sel.el 15 Sep 2006 14:10:04 +0200 1.48
+++ mouse-sel.el 03 Oct 2006 15:42:28 +0200
@@ -737,7 +737,8 @@
(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 ===========================================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mouse-sel.el: Use insert-for-yank,
Johan Bockgård <=