Alan Third writes: > IIRC (and I could definitely be wrong here) a simple find/replace > breaks the ability to handle more than one file being dragged at a > time, which is why I left it (it used to work fine even though it was > flagged as deprecated). You're right. I also misread the FIXME, which mentions this particular problem. That part of the patch is not correct. I think we need to use the same constant names as those that are included in the ns_drag_types array, at least until we implement proper support for the new pasteboard API. This means that three constant names should be renamed in nsterm.m. I've attached a new patch that implements this idea. I've tested the following drag and drop operations work correctly after the patch is applied: - Drag a URL. - Drag arbitrary text from another application. - Drag tabular text from another application. - Drag a couple of files from the OS file manager. It correctly creates a couple of buffers in Emacs that visit those files.