GNU bug report logs -
#10050
24.0.90; image files display image data only after drag and drop
Previous Next
Reported by: Adam Winiecki <adam.winiecki <at> gmail.com>
Date: Mon, 14 Nov 2011 22:34:01 UTC
Severity: normal
Merged with 5855
Found in version 24.0.90
Done: Jan Djärv <jan.h.d <at> swipnet.se>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 10050 <at> debbugs.gnu.org (full text, mbox):
Jan Djärv wrote:
> The big problem is that dragging a file to Emacs on NS inserts the
> contents of that file to the current buffer instead of opening it as
> people normally expect, and indeed is what all other Emacs versions
> does. It is like that in Emacs 23 also, so this is not a regression.
> But as we are in a feature freeze this will have to wait, even if the
> behaviour is stupid. If Emacs would open dragged files in a new
> buffer, images would be shown as images.
Is it just a question of doing what it says in the manual, or is more
needed?
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)
Maybe that change is sensible and safe enough for 24.1.
(I can't even test it so I wouldn't know.)
This bug report was last modified 13 years and 93 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.