unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Glenn Morris <rgm@gnu.org>
Cc: "10050@debbugs.gnu.org" <10050@debbugs.gnu.org>,
	Adam Winiecki <adam.winiecki@gmail.com>
Subject: bug#10050: 24.0.90; image files display image data only after drag and drop
Date: Wed, 22 Feb 2012 12:05:57 +0100	[thread overview]
Message-ID: <5EA6F0D1-0425-44ED-9FE3-E7FB09F7BFA4@swipnet.se> (raw)
In-Reply-To: <8yvcmzmgru.fsf@fencepost.gnu.org>

Hello.


22 feb 2012 kl. 09:08 skrev Glenn Morris <rgm@gnu.org>:

> 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?
> 

No, that and changing the manual. 
The bindning to change is in ns-win.el


>    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.)

If you want I can do it. I have been  running with that change in my local copy for about a year now.

    Jan D. 




  reply	other threads:[~2012-02-22 11:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-14 19:37 bug#10050: 24.0.90; image files display image data only after drag and drop Adam Winiecki
2011-12-10 16:27 ` Jan Djärv
2012-02-22  8:08   ` Glenn Morris
2012-02-22 11:05     ` Jan Djärv [this message]
2012-02-22 17:23       ` Glenn Morris
2012-02-25  3:59       ` Chong Yidong
2012-02-25 10:06         ` Jan Djärv
2012-02-26  9:17           ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5EA6F0D1-0425-44ED-9FE3-E7FB09F7BFA4@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=10050@debbugs.gnu.org \
    --cc=adam.winiecki@gmail.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).