Subject: Re: bug#5855: 23.1.95; OS X file drag-and-drop inserts into current buffer

From: Glenn Morris <[email-masked]>
Date: Wed, 22 Feb 2012 03:06:21 -0500

Robin Dunn wrote:

> When dragging a text file from Finder and dropping in an Emacs window
> the contents of the file are inserted into the current buffer near the
> drop point instead of making a new buffer for the file.

Sorry for the very slow reply. I happened to just now read in the Mac OS
section of the Emacs manual:

  The default behavior when a user drags files from another application
  into an Emacs frame is to insert the contents of all the dragged files
  into the current buffer.  To remap the `ns-drag-file' event to open the
  dragged files in the current frame use the following line:

     (define-key global-map [ns-drag-file] 'ns-find-file)

I don't know if it works, or if it should be the default.