]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32-drag-n-drop): Select file in window where
authorAndrew Innes <andrewi@gnu.org>
Sun, 2 May 1999 09:52:17 +0000 (09:52 +0000)
committerAndrew Innes <andrewi@gnu.org>
Sun, 2 May 1999 09:52:17 +0000 (09:52 +0000)
it is dropped, rather than current window.

lisp/term/w32-win.el

index 7c4e1c2089ab5acbbc72a65d598beb02f489d0b0..5f1f6d4ab091184dbd16adc8742e08259ac94d20 100644 (file)
   "Edit the files listed in the drag-n-drop event.
 Switch to a buffer editing the last file dropped."
   (interactive "e")
-  (mapcar 'find-file (car (cdr (cdr event))))
+  (save-excursion
+    (set-frame-selected-window nil (posn-window (event-start event)))
+    (mapcar 'find-file (car (cdr (cdr event)))))
   (raise-frame))
 
 (defun w32-drag-n-drop-other-frame (event)