# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1146445780 0 # Node ID 11e77c23e062be3f372b37f1420bde61a6097a3d # Parent 8b21f8434b0f52fe5d396e7edf78f72007af9834 (mac-ae-open-documents, mac-drag-n-drop): Use select-frame-set-input-focus instead of raise-frame. (global-map): Bind M-drag-n-drop to mac-drag-n-drop. diff -r 8b21f8434b0f -r 11e77c23e062 lisp/term/mac-win.el --- a/lisp/term/mac-win.el Sun Apr 30 23:16:47 2006 +0000 +++ b/lisp/term/mac-win.el Mon May 01 01:09:40 2006 +0000 @@ -1480,7 +1480,7 @@ (re-search-forward (mapconcat 'regexp-quote (split-string search-text) "\\|") nil t))))) - (raise-frame)) + (select-frame-set-input-focus (selected-frame))) (defun mac-ae-text (ae) (or (cdr (mac-ae-parameter ae nil "TEXT")) @@ -2039,9 +2039,10 @@ (dolist (file-name (nth 2 event)) (dnd-handle-one-url window 'private (concat "file:" file-name)))) - (raise-frame)) + (select-frame-set-input-focus (selected-frame))) (global-set-key [drag-n-drop] 'mac-drag-n-drop) +(global-set-key [M-drag-n-drop] 'mac-drag-n-drop) ;;;; Non-toolkit Scroll bars