From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Drag and drop patch for X, please review. Date: 19 Jan 2004 13:24:22 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200401171729.i0HHT1wq016912@stubby.bodenonline.com> <20040118004009.GA24635@fencepost> <2C5AAB61-49F7-11D8-A763-00039363E640@swipnet.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074536857 17807 80.91.224.253 (19 Jan 2004 18:27:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2004 18:27:37 +0000 (UTC) Cc: emacs-devel@gnu.org, Miles Bader Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jan 19 19:27:34 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aie7a-0000B5-00 for ; Mon, 19 Jan 2004 19:27:34 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aie7Z-0005Tx-00 for ; Mon, 19 Jan 2004 19:27:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aie79-0001ra-MC for emacs-devel@quimby.gnus.org; Mon, 19 Jan 2004 13:27:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aie74-0001of-BV for emacs-devel@gnu.org; Mon, 19 Jan 2004 13:27:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Aie4l-00019l-BN for emacs-devel@gnu.org; Mon, 19 Jan 2004 13:25:10 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aie4X-00012N-Ci; Mon, 19 Jan 2004 13:24:25 -0500 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id D0C5120FE6; Mon, 19 Jan 2004 13:24:22 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 9BCEE8C6F3; Mon, 19 Jan 2004 13:24:22 -0500 (EST) Original-To: "Jan D." In-Reply-To: <2C5AAB61-49F7-11D8-A763-00039363E640@swipnet.se> Original-Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19275 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19275 > frame, it is hard to select the one the user intended. Also, if the > buffer is read only, we don't want to accept a drop there. So currently I'd argue that we want to accept the drop (and then signal an error). Just like C-y is accepted (i.e. the yank function is invoked) but then signals an error. Now that I think about it, rather than an alist, we might just want to make the drop into an event that we look up in the keymaps. If the drop is in the tool-bar or the menu-bar, the event generated should be different so that we can bind it to a different command (just like [mouse-1] turns into [mode-line mouse-1] when clicking on the mode-line). Stefan