From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#10050: 24.0.90; image files display image data only after drag and drop Date: Wed, 22 Feb 2012 03:08:53 -0500 Message-ID: <8yvcmzmgru.fsf@fencepost.gnu.org> References: <30613E33-2AD2-427C-915B-27453F70F20F@gmail.com> <6424E76B-907E-4C5D-B959-5BA0ECA4C64D@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1329898199 20824 80.91.229.3 (22 Feb 2012 08:09:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2012 08:09:59 +0000 (UTC) Cc: 10050@debbugs.gnu.org, Adam Winiecki To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 22 09:09:58 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S07Gu-0002ZK-Fv for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2012 09:09:56 +0100 Original-Received: from localhost ([::1]:38910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S07Gt-0002BQ-7v for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2012 03:09:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S07Gk-00029b-VO for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2012 03:09:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S07Gf-0007VY-8h for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2012 03:09:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S07Gf-0007VS-5x for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2012 03:09:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S07Iv-0002yy-SH for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2012 03:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Feb 2012 08:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10050 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 10050-submit@debbugs.gnu.org id=B10050.132989827811411 (code B ref 10050); Wed, 22 Feb 2012 08:12:01 +0000 Original-Received: (at 10050) by debbugs.gnu.org; 22 Feb 2012 08:11:18 +0000 Original-Received: from localhost ([127.0.0.1]:49921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S07ID-0002xz-BR for submit@debbugs.gnu.org; Wed, 22 Feb 2012 03:11:18 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:32993 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S07IB-0002xs-69 for 10050@debbugs.gnu.org; Wed, 22 Feb 2012 03:11:16 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1S07Ft-0002Sp-M2; Wed, 22 Feb 2012 03:08:53 -0500 X-Spook: anthrax Firewalls Jyllandsposten investigation passwd X-Ran: ^*g#AHi7!T ("Jan =?UTF-8?Q?Dj=C3=A4rv?="'s message of "Sat, 10 Dec 2011 17:27:58 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57090 Archived-At: Jan Dj=C3=A4rv 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: =20 (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.)