Mercurial > emacs
comparison lisp/term/w32-win.el @ 55288:e304cb532417
(w32-drag-n-drop): Use x-dnd.el functions.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sat, 01 May 2004 13:30:31 +0000 |
parents | 695cf19ef79e |
children | 5410afb1fc03 |
comparison
equal
deleted
inserted
replaced
55287:c512a810b9da | 55288:e304cb532417 |
---|---|
74 (require 'mouse) | 74 (require 'mouse) |
75 (require 'scroll-bar) | 75 (require 'scroll-bar) |
76 (require 'faces) | 76 (require 'faces) |
77 (require 'select) | 77 (require 'select) |
78 (require 'menu-bar) | 78 (require 'menu-bar) |
79 (require 'x-dnd) | |
79 ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles | 80 ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles |
80 (if (fboundp 'new-fontset) | 81 (if (fboundp 'new-fontset) |
81 (require 'fontset)) | 82 (require 'fontset)) |
82 | 83 |
83 ;; The following definition is used for debugging scroll bar events. | 84 ;; The following definition is used for debugging scroll bar events. |
103 (coords (posn-x-y (event-start event))) | 104 (coords (posn-x-y (event-start event))) |
104 (x (car coords)) | 105 (x (car coords)) |
105 (y (cdr coords))) | 106 (y (cdr coords))) |
106 (if (and (> x 0) (> y 0)) | 107 (if (and (> x 0) (> y 0)) |
107 (set-frame-selected-window nil window)) | 108 (set-frame-selected-window nil window)) |
108 (mapcar 'find-file (car (cdr (cdr event))))) | 109 (mapcar (lambda (file-name) |
110 (x-dnd-handle-one-url window 'private | |
111 (concat "file:" file-name))) | |
112 (car (cdr (cdr event))))) | |
109 (raise-frame))) | 113 (raise-frame))) |
110 | 114 |
111 (defun w32-drag-n-drop-other-frame (event) | 115 (defun w32-drag-n-drop-other-frame (event) |
112 "Edit the files listed in the drag-n-drop EVENT, in other frames. | 116 "Edit the files listed in the drag-n-drop EVENT, in other frames. |
113 May create new frames, or reuse existing ones. The frame editing | 117 May create new frames, or reuse existing ones. The frame editing |