GNU bug report logs - #43470
27.1; Drag and Drop not working properly in 27.1 on OSX

Previous Next

Package: emacs;

Reported by: "Paul Magwene, Ph.D." <paul.magwene <at> duke.edu>

Date: Thu, 17 Sep 2020 16:43:02 UTC

Severity: normal

Found in version 27.1

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Martín <mardani29 <at> yahoo.es>
To: "Paul Magwene, Ph.D." <paul.magwene <at> duke.edu>
Cc: Alan Third <alan <at> idiocy.org>, 43470 <at> debbugs.gnu.org, "43470-done <at> debbugs.gnu.org" <43470-done <at> debbugs.gnu.org>
Subject: bug#43470: 27.1; Drag and Drop not working properly in 27.1 on OSX
Date: Sat, 19 Sep 2020 14:45:19 +0200
[Message part 1 (text/plain, inline)]
"Paul Magwene, Ph.D." <paul.magwene <at> duke.edu> writes:
>
> My testing suggests that there's still source application specific behavior.
>
> * Simple drag of images works when Safari or Chrome is the web browser.
>
> * No combination of Option, Command, or Control seems to work in Firefox; the drag behavior always produces a URL.
>
> So I guess the patch partially fixes the regression.  Given the state
> of the OS X api I'm not sure what the best way forward is. I'd try and
> jump in to contribute but I unfortunately have zero experience working
> with Objective C or programming against Apple's APIs
>
> Best,
> Paul

OK, I've created a patch on top of emacs-27. I've tested it by dragging
and dropping files, text, URLs, images, from Safari and Firefox, and I
get the same default behavior as in Emacs 26.3. Note that you should
still be able to override the default behavior by pressing Option,
Command, etc. while dragging the content.

Could you test it and see if it completely fixes the drag and drop
behavior on macOS?

Thanks.

[0001-Give-ns-drag-operation-copy-preference-when-handling.patch (text/x-patch, attachment)]

This bug report was last modified 4 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.