From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Schaefer Newsgroups: gmane.emacs.devel Subject: Should drag and drop adhere to `mouse-yank-at-point'? Date: Sat, 17 Jun 2006 01:55:42 +0200 Message-ID: <87fyi4y7sx.fsf@forcix.kollektiv-hamburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150512323 30759 80.91.229.2 (17 Jun 2006 02:45:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2006 02:45:23 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 17 04:45:21 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FrQoJ-0007x6-BX for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2006 04:45:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrQoI-0005c0-TV for ged-emacs-devel@m.gmane.org; Fri, 16 Jun 2006 22:45:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FrQo7-0005aC-Bz for emacs-devel@gnu.org; Fri, 16 Jun 2006 22:45:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FrQo5-0005XR-Do for emacs-devel@gnu.org; Fri, 16 Jun 2006 22:45:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrQo5-0005XG-Ae for emacs-devel@gnu.org; Fri, 16 Jun 2006 22:45:05 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FrQxp-0002df-Tv for emacs-devel@gnu.org; Fri, 16 Jun 2006 22:55:10 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FrQo1-0007v3-RH for emacs-devel@gnu.org; Sat, 17 Jun 2006 04:45:01 +0200 Original-Received: from c173176.adsl.hansenet.de ([213.39.173.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jun 2006 04:45:01 +0200 Original-Received: from forcer by c173176.adsl.hansenet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jun 2006 04:45:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c173176.adsl.hansenet.de User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55948 Archived-At: Hi there! Currently, dragging a piece of text into Emacs will insert the text where the drag button was released, even when `mouse-yank-at-point' is non-nil. Is this intended behavior? If so, could a new customize option for this be added? If not, the fix is trivial: *** lisp/x-dnd.el.orig Sat Jun 17 01:51:29 2006 --- lisp/x-dnd.el Sat Jun 17 01:52:24 2006 *************** *** 319,325 **** ;; If dropping in an ordinary window which we could use, ;; let dnd-open-file-other-window specify what to do. (progn ! (goto-char (posn-point (event-start event))) (funcall handler window action data)) ;; If we can't display the file here, ;; make a new window for it. --- 319,326 ---- ;; If dropping in an ordinary window which we could use, ;; let dnd-open-file-other-window specify what to do. (progn ! (when (not mouse-yank-at-point) ! (goto-char (posn-point (event-start event)))) (funcall handler window action data)) ;; If we can't display the file here, ;; make a new window for it. Regards, -- Jorgen -- ((email . "forcer@forcix.cx") (www . "http://www.forcix.cx/") (gpg . "1024D/028AF63C") (irc . "nick forcer on IRCnet"))