diff options
| author | Richard M. Stallman | 1998-05-01 04:24:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-01 04:24:43 +0000 |
| commit | 33b307f8fc554c845ff3276353e7522b9d688793 (patch) | |
| tree | 4e1f2895599aebafeb2ffe062b0501d7c041abbe | |
| parent | 341043629f39cf649f4a88b0d0de8c9d753bc0ae (diff) | |
| download | emacs-33b307f8fc554c845ff3276353e7522b9d688793.tar.gz emacs-33b307f8fc554c845ff3276353e7522b9d688793.zip | |
(w32-drag-n-drop-debug, w32-drag-n-drop)
(w32-drag-n-drop-other-frame): New functions.
Bind them to the drag-n-drop events.
| -rw-r--r-- | lisp/term/w32-win.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 9867b964855..5ddb14e5384 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -144,6 +144,29 @@ | |||
| 144 | (global-set-key [mouse-wheel] 'mouse-wheel-scroll-line) | 144 | (global-set-key [mouse-wheel] 'mouse-wheel-scroll-line) |
| 145 | (global-set-key [C-mouse-wheel] 'mouse-wheel-scroll-screen) | 145 | (global-set-key [C-mouse-wheel] 'mouse-wheel-scroll-screen) |
| 146 | 146 | ||
| 147 | (defun w32-drag-n-drop-debug (event) | ||
| 148 | "Print the drag-n-drop event in a readable form." | ||
| 149 | (interactive "e") | ||
| 150 | (princ event)) | ||
| 151 | |||
| 152 | (defun w32-drag-n-drop (event) | ||
| 153 | "Edit the files listed in the drag-n-drop event. | ||
| 154 | Switch to a buffer editing the last file dropped." | ||
| 155 | (interactive "e") | ||
| 156 | (mapcar 'find-file (car (cdr (cdr event)))) | ||
| 157 | (raise-frame)) | ||
| 158 | |||
| 159 | (defun w32-drag-n-drop-other-frame (event) | ||
| 160 | "Edit the files listed in the drag-n-drop event, in other frames. | ||
| 161 | May create new frames, or reuse existing ones. The frame editing | ||
| 162 | the last file dropped is selected." | ||
| 163 | (interactive "e") | ||
| 164 | (mapcar 'find-file-other-frame (car (cdr (cdr event))))) | ||
| 165 | |||
| 166 | ;; Bind the drag-n-drop event. | ||
| 167 | (global-set-key [drag-n-drop] 'w32-drag-n-drop) | ||
| 168 | (global-set-key [C-drag-n-drop] 'w32-drag-n-drop-other-frame) | ||
| 169 | |||
| 147 | (defvar x-invocation-args) | 170 | (defvar x-invocation-args) |
| 148 | 171 | ||
| 149 | (defvar x-command-line-resources nil) | 172 | (defvar x-command-line-resources nil) |