From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Should drag and drop adhere to `mouse-yank-at-point'? Date: Mon, 21 Aug 2006 12:21:56 -0400 Message-ID: <87d5au5aaj.fsf@stupidchicken.com> 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 1156177292 11740 80.91.229.2 (21 Aug 2006 16:21:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2006 16:21:32 +0000 (UTC) Cc: emacs-devel@gnu.org, Jorgen Schaefer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 21 18:21:27 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 1GFCWM-0002aS-RK for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2006 18:21:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFCWL-0004hK-Vq for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2006 12:21:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFCW9-0004h6-LL for emacs-devel@gnu.org; Mon, 21 Aug 2006 12:20:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFCW6-0004fx-19 for emacs-devel@gnu.org; Mon, 21 Aug 2006 12:20:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFCW5-0004fu-Nf for emacs-devel@gnu.org; Mon, 21 Aug 2006 12:20:45 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GFCdV-0000v2-J5 for emacs-devel@gnu.org; Mon, 21 Aug 2006 12:28:25 -0400 Original-Received: by cyd (Postfix, from userid 1000) id D0DB34EB5C; Mon, 21 Aug 2006 12:21:56 -0400 (EDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Mon, 21 Aug 2006 16:37:29 +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:58649 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Did anyone consider this? Makes sense to me. > 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 > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel