diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2006-08-22 06:14:45 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2006-08-22 06:14:45 +0000 |
commit | 1867217a61f67cb32ea9e1808daa313b9fad21df (patch) | |
tree | 56cf5c7be00bf576da2709fc3b555f8af473fcf6 /lisp/x-dnd.el | |
parent | 8ec94c16aefbc14e239c52ca594d9a0da31f2285 (diff) | |
download | emacs-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.el | 3 |
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. |