unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org, Jorgen Schaefer <forcer@forcix.cx>
Subject: Re: Should drag and drop adhere to `mouse-yank-at-point'?
Date: Mon, 21 Aug 2006 12:21:56 -0400	[thread overview]
Message-ID: <87d5au5aaj.fsf@stupidchicken.com> (raw)
In-Reply-To: <m3r6zap32u.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Mon, 21 Aug 2006 16:37:29 +0200")

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

  reply	other threads:[~2006-08-21 16:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d5au5aaj.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=forcer@forcix.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).