[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should drag and drop adhere to `mouse-yank-at-point'?
From: |
Chong Yidong |
Subject: |
Re: Should drag and drop adhere to `mouse-yank-at-point'? |
Date: |
Mon, 21 Aug 2006 12:21:56 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Kim F. Storm) writes:
> Did anyone consider this?
Makes sense to me.
> Jorgen Schaefer <address@hidden> 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 . "address@hidden") (www . "http://www.forcix.cx/")
>> (gpg . "1024D/028AF63C") (irc . "nick forcer on IRCnet"))
>
> --
> Kim F. Storm <address@hidden> http://www.cua.dk
>
>
>
> _______________________________________________
> Emacs-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-devel