From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Should drag and drop adhere to `mouse-yank-at-point'? Date: Mon, 21 Aug 2006 16:37:29 +0200 Message-ID: References: <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 1156171746 21460 80.91.229.2 (21 Aug 2006 14:49:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2006 14:49:06 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 21 16:48:58 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 1GFAx9-000065-5i for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2006 16:40:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFAx8-0002ca-C0 for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2006 10:40:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFAvS-0001Nz-O7 for emacs-devel@gnu.org; Mon, 21 Aug 2006 10:38:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFAvQ-0001Lk-Ug for emacs-devel@gnu.org; Mon, 21 Aug 2006 10:38:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFAvQ-0001La-R0 for emacs-devel@gnu.org; Mon, 21 Aug 2006 10:38:48 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GFB2p-0006mP-GH for emacs-devel@gnu.org; Mon, 21 Aug 2006 10:46:27 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 9861CFAC039; Mon, 21 Aug 2006 16:38:46 +0200 (CEST) Original-To: Jorgen Schaefer In-Reply-To: <87fyi4y7sx.fsf@forcix.kollektiv-hamburg.de> (Jorgen Schaefer's message of "Sat, 17 Jun 2006 01:55:42 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) 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:58638 Archived-At: Did anyone consider this? Jorgen Schaefer writes: > 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")) -- Kim F. Storm http://www.cua.dk