changeset 72485:030d7ce12631

* x-dnd.el (x-dnd-drop-data): Don't call goto-char if mouse-yank-at-point is non-nil.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 22 Aug 2006 06:14:45 +0000
parents f9400e50a0e5
children c5d047643872
files lisp/ChangeLog lisp/x-dnd.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Aug 22 01:35:45 2006 +0000
+++ b/lisp/ChangeLog	Tue Aug 22 06:14:45 2006 +0000
@@ -1,3 +1,8 @@
+2006-08-22 Jorgen Schaefer <forcer@forcix.cx> (tiny change)
+
+	* x-dnd.el (x-dnd-drop-data): Don't call goto-char if
+	mouse-yank-at-point is non-nil.
+
 2006-08-22  Nick Roberts  <nickrob@snap.net.nz>
 
 	* progmodes/gdb-ui.el (gdb-frame-memory-buffer): Make frame
--- a/lisp/x-dnd.el	Tue Aug 22 01:35:45 2006 +0000
+++ b/lisp/x-dnd.el	Tue Aug 22 06:14:45 2006 +0000
@@ -325,7 +325,8 @@
 	  ;; 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.