From: Jason Rumney Date: Sat, 1 May 2004 13:31:29 +0000 (+0000) Subject: (w32-drag-n-drop): Use x-dnd.el functions. X-Git-Tag: ttn-vms-21-2-B4~6475 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e8b532f5a84e03821180f44d9c5186b7f9c0a91;p=emacs.git (w32-drag-n-drop): Use x-dnd.el functions. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4b61e5ceabb..8f80f1a6c7a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2004-05-01 Jason Rumney + + * term/w32-win.el (w32-drag-n-drop): Use x-dnd.el functions. + 2004-05-01 Kenichi Handa * international/titdic-cnv.el (miscdic-convert): Don't generate a diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index f43d8b235d1..1ffab849406 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el @@ -76,6 +76,7 @@ (require 'faces) (require 'select) (require 'menu-bar) +(require 'x-dnd) ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles (if (fboundp 'new-fontset) (require 'fontset)) @@ -105,7 +106,10 @@ Switch to a buffer editing the last file dropped." (y (cdr coords))) (if (and (> x 0) (> y 0)) (set-frame-selected-window nil window)) - (mapcar 'find-file (car (cdr (cdr event))))) + (mapcar (lambda (file-name) + (x-dnd-handle-one-url window 'private + (concat "file:" file-name))) + (car (cdr (cdr event))))) (raise-frame))) (defun w32-drag-n-drop-other-frame (event)