unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Mouse drag-and-drop on Windows
@ 2022-04-25 12:26 Arash Esbati
  2022-04-25 12:48 ` Eli Zaretskii
  2022-04-25 12:49 ` Po Lu
  0 siblings, 2 replies; 7+ messages in thread
From: Arash Esbati @ 2022-04-25 12:26 UTC (permalink / raw)
  To: emacs-devel

Hi all,

Emacs 29 has a new option `mouse-drag-and-drop-region-cross-program'
which allows dragging text in the region from Emacs to another program
if non-nil.  Is this supposed to work on Windows as well?  NEWS says
nothing about this being available only on certain platforms.  I can't
grab the text in region with the mouse pointer.  Am I missing something?

This is Emacs 91175a1fae on Win10.

Best, Arash



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

* Re: Mouse drag-and-drop on Windows
  2022-04-25 12:26 Mouse drag-and-drop on Windows Arash Esbati
@ 2022-04-25 12:48 ` Eli Zaretskii
  2022-04-25 12:57   ` Arash Esbati
  2022-04-25 12:49 ` Po Lu
  1 sibling, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-04-25 12:48 UTC (permalink / raw)
  To: Arash Esbati; +Cc: emacs-devel

> From: Arash Esbati <arash@gnu.org>
> Date: Mon, 25 Apr 2022 14:26:36 +0200
> 
> Emacs 29 has a new option `mouse-drag-and-drop-region-cross-program'
> which allows dragging text in the region from Emacs to another program
> if non-nil.  Is this supposed to work on Windows as well?  NEWS says
> nothing about this being available only on certain platforms.  I can't
> grab the text in region with the mouse pointer.  Am I missing something?

Emacs on MS-Windows supports only drag-and-drop FROM other
applications TO Emacs.



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

* Re: Mouse drag-and-drop on Windows
  2022-04-25 12:26 Mouse drag-and-drop on Windows Arash Esbati
  2022-04-25 12:48 ` Eli Zaretskii
@ 2022-04-25 12:49 ` Po Lu
  2022-04-25 12:59   ` Arash Esbati
  1 sibling, 1 reply; 7+ messages in thread
From: Po Lu @ 2022-04-25 12:49 UTC (permalink / raw)
  To: Arash Esbati; +Cc: emacs-devel

Arash Esbati <arash@gnu.org> writes:

> Hi all,
>
> Emacs 29 has a new option `mouse-drag-and-drop-region-cross-program'
> which allows dragging text in the region from Emacs to another program
> if non-nil.  Is this supposed to work on Windows as well?  NEWS says
> nothing about this being available only on certain platforms.  I can't
> grab the text in region with the mouse pointer.  Am I missing something?

It isn't yet implemented on MS Windows (though I hope it will
eventually.)

Such an implementation will require implementing the `drag-source' value
of `track-mouse', and the function `x-begin-drag'.  Its documentation
should be enough to get started.



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

* Re: Mouse drag-and-drop on Windows
  2022-04-25 12:48 ` Eli Zaretskii
@ 2022-04-25 12:57   ` Arash Esbati
  2022-04-25 13:24     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Arash Esbati @ 2022-04-25 12:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Emacs on MS-Windows supports only drag-and-drop FROM other
> applications TO Emacs.

Thanks for your response.  Is there any variable to set to make this
work?

I pasted this snippet into Word,

  ** New user option 'mouse-drag-and-drop-region-cross-program'.
  If non-nil, this option allows dragging text in the region from Emacs to another program.

marked it, and tried to d-n-d it into *scratch* buffer and see a `nay'
symbol.

Best, Arash



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

* Re: Mouse drag-and-drop on Windows
  2022-04-25 12:49 ` Po Lu
@ 2022-04-25 12:59   ` Arash Esbati
  0 siblings, 0 replies; 7+ messages in thread
From: Arash Esbati @ 2022-04-25 12:59 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

Po Lu <luangruo@yahoo.com> writes:

> It isn't yet implemented on MS Windows (though I hope it will
> eventually.)

Thanks for your response, looking forward to it.

Best, Arash



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

* Re: Mouse drag-and-drop on Windows
  2022-04-25 12:57   ` Arash Esbati
@ 2022-04-25 13:24     ` Eli Zaretskii
  2022-04-25 17:32       ` Arash Esbati
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-04-25 13:24 UTC (permalink / raw)
  To: Arash Esbati; +Cc: emacs-devel

> From: Arash Esbati <arash@gnu.org>
> Cc: emacs-devel@gnu.org
> Date: Mon, 25 Apr 2022 14:57:57 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Emacs on MS-Windows supports only drag-and-drop FROM other
> > applications TO Emacs.
> 
> Thanks for your response.  Is there any variable to set to make this
> work?
> 
> I pasted this snippet into Word,
> 
>   ** New user option 'mouse-drag-and-drop-region-cross-program'.
>   If non-nil, this option allows dragging text in the region from Emacs to another program.
> 
> marked it, and tried to d-n-d it into *scratch* buffer and see a `nay'
> symbol.

We only support dragging file names into Emacs (which should cause
Emacs to visit that file).  Sorry I didn't mention that before.



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

* Re: Mouse drag-and-drop on Windows
  2022-04-25 13:24     ` Eli Zaretskii
@ 2022-04-25 17:32       ` Arash Esbati
  0 siblings, 0 replies; 7+ messages in thread
From: Arash Esbati @ 2022-04-25 17:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> We only support dragging file names into Emacs (which should cause
> Emacs to visit that file).  Sorry I didn't mention that before.

Thanks for the clarification.

Best, Arash



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

end of thread, other threads:[~2022-04-25 17:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-25 12:26 Mouse drag-and-drop on Windows Arash Esbati
2022-04-25 12:48 ` Eli Zaretskii
2022-04-25 12:57   ` Arash Esbati
2022-04-25 13:24     ` Eli Zaretskii
2022-04-25 17:32       ` Arash Esbati
2022-04-25 12:49 ` Po Lu
2022-04-25 12:59   ` Arash Esbati

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