unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Should drag and drop adhere to `mouse-yank-at-point'?
@ 2006-06-16 23:55 Jorgen Schaefer
  2006-08-21 14:37 ` Kim F. Storm
  0 siblings, 1 reply; 7+ messages in thread
From: Jorgen Schaefer @ 2006-06-16 23:55 UTC (permalink / raw)


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"))

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Should drag and drop adhere to `mouse-yank-at-point'?
  2006-06-16 23:55 Should drag and drop adhere to `mouse-yank-at-point'? Jorgen Schaefer
@ 2006-08-21 14:37 ` Kim F. Storm
  2006-08-21 16:21   ` Chong Yidong
  2006-08-21 17:42   ` Jan Djärv
  0 siblings, 2 replies; 7+ messages in thread
From: Kim F. Storm @ 2006-08-21 14:37 UTC (permalink / raw)
  Cc: emacs-devel


Did anyone consider this?


Jorgen Schaefer <forcer@forcix.cx> 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 <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Should drag and drop adhere to `mouse-yank-at-point'?
  2006-08-21 14:37 ` Kim F. Storm
@ 2006-08-21 16:21   ` Chong Yidong
  2006-08-21 17:42   ` Jan Djärv
  1 sibling, 0 replies; 7+ messages in thread
From: Chong Yidong @ 2006-08-21 16:21 UTC (permalink / raw)
  Cc: emacs-devel, Jorgen Schaefer

storm@cua.dk (Kim F. Storm) writes:

> Did anyone consider this?

Makes sense to me.

> Jorgen Schaefer <forcer@forcix.cx> 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 <storm@cua.dk> http://www.cua.dk
>
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Should drag and drop adhere to `mouse-yank-at-point'?
  2006-08-21 14:37 ` Kim F. Storm
  2006-08-21 16:21   ` Chong Yidong
@ 2006-08-21 17:42   ` Jan Djärv
  2006-08-21 22:16     ` Kim F. Storm
  1 sibling, 1 reply; 7+ messages in thread
From: Jan Djärv @ 2006-08-21 17:42 UTC (permalink / raw)
  Cc: emacs-devel, Jorgen Schaefer



Kim F. Storm skrev:
> Did anyone consider this?
> 
> 

I guess it is OK.  A bit unusual that dropped things don't end up at the 
cursor position, but then again, if you set mouse-yank-at-point you probably 
know what you are doing.  Shall I check it in, or will you?

	Jan D.

> Jorgen Schaefer <forcer@forcix.cx> 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"))
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Should drag and drop adhere to `mouse-yank-at-point'?
  2006-08-21 17:42   ` Jan Djärv
@ 2006-08-21 22:16     ` Kim F. Storm
  2006-08-22  6:15       ` Jan Djärv
  0 siblings, 1 reply; 7+ messages in thread
From: Kim F. Storm @ 2006-08-21 22:16 UTC (permalink / raw)
  Cc: Jorgen Schaefer, emacs-devel

Jan Djärv <jan.h.d@swipnet.se> writes:

> I guess it is OK.  A bit unusual that dropped things don't end up at
> the cursor position, but then again, if you set mouse-yank-at-point
> you probably know what you are doing.  Shall I check it in, or will
> you?

Please do.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Should drag and drop adhere to `mouse-yank-at-point'?
  2006-08-21 22:16     ` Kim F. Storm
@ 2006-08-22  6:15       ` Jan Djärv
  2006-08-22  6:51         ` Jorgen Schaefer
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Djärv @ 2006-08-22  6:15 UTC (permalink / raw)
  Cc: emacs-devel, Jorgen Schaefer



Kim F. Storm skrev:
> Jan Djärv <jan.h.d@swipnet.se> writes:
> 
>> I guess it is OK.  A bit unusual that dropped things don't end up at
>> the cursor position, but then again, if you set mouse-yank-at-point
>> you probably know what you are doing.  Shall I check it in, or will
>> you?
> 
> Please do.
> 

Done.

	Jan D.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Should drag and drop adhere to `mouse-yank-at-point'?
  2006-08-22  6:15       ` Jan Djärv
@ 2006-08-22  6:51         ` Jorgen Schaefer
  0 siblings, 0 replies; 7+ messages in thread
From: Jorgen Schaefer @ 2006-08-22  6:51 UTC (permalink / raw)
  Cc: emacs-devel, Kim F. Storm

Jan Djärv <jan.h.d@swipnet.se> writes:

> Kim F. Storm skrev:
>> Jan Djärv <jan.h.d@swipnet.se> writes:
>>
>>> I guess it is OK.  A bit unusual that dropped things don't end up at
>>> the cursor position, but then again, if you set mouse-yank-at-point
>>> you probably know what you are doing.  Shall I check it in, or will
>>> you?
>>
>> Please do.
>
> Done.

Thanks a lot :-)

Regards,
        -- Jorgen (original bug submitter)

-- 
((email . "forcer@forcix.cx") (www . "http://www.forcix.cx/")
 (gpg   . "1024D/028AF63C")   (irc . "nick forcer on IRCnet"))

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-08-22  6:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-16 23:55 Should drag and drop adhere to `mouse-yank-at-point'? Jorgen Schaefer
2006-08-21 14:37 ` Kim F. Storm
2006-08-21 16:21   ` Chong Yidong
2006-08-21 17:42   ` Jan Djärv
2006-08-21 22:16     ` Kim F. Storm
2006-08-22  6:15       ` Jan Djärv
2006-08-22  6:51         ` Jorgen Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).