summaryrefslogtreecommitdiff
path: root/lisp/x-dnd.el
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2006-08-22 06:14:45 +0000
committerJan Djärv <jan.h.d@swipnet.se>2006-08-22 06:14:45 +0000
commit1867217a61f67cb32ea9e1808daa313b9fad21df (patch)
tree56cf5c7be00bf576da2709fc3b555f8af473fcf6 /lisp/x-dnd.el
parent8ec94c16aefbc14e239c52ca594d9a0da31f2285 (diff)
downloademacs-1867217a61f67cb32ea9e1808daa313b9fad21df.tar.gz
* x-dnd.el (x-dnd-drop-data): Don't call goto-char if
mouse-yank-at-point is non-nil.
Diffstat (limited to 'lisp/x-dnd.el')
-rw-r--r--lisp/x-dnd.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el
index 81fe9a8e868..c229b0868e4 100644
--- a/lisp/x-dnd.el
+++ b/lisp/x-dnd.el
@@ -325,7 +325,8 @@ nil if not."
;; If dropping in an ordinary window which we could use,
;; let dnd-open-file-other-window specify what to do.
(progn
- (goto-char (posn-point (event-start event)))
+ (when (not mouse-yank-at-point)
+ (goto-char (posn-point (event-start event))))
(funcall handler window action data))
;; If we can't display the file here,
;; make a new window for it.