all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Drag and drop editing in emacs...
@ 2003-02-09 16:47 Sandip Chitale
  2003-02-09 21:49 ` Christopher J. White
  0 siblings, 1 reply; 2+ messages in thread
From: Sandip Chitale @ 2003-02-09 16:47 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 519 bytes --]

Folks,

    GNU Emacs alllows draggin mouse to create selection.
I was wondering why is isn't there a drag and drop editing support also.

Could something like the following be done ?


(defun drag-cut-copy-paste (start-event)
"Drag and drop editing."
  (interactive "e")  (if mark-active
    (progn
; track mouse and inert cut/copied text at the mouse up location
    )
        (progn          (mouse-drag-region start-event)      )    )  )
(global-set-key [(down-mouse-1)] drag-cut-copy-paste)
   


[-- Attachment #1.2: Type: text/html, Size: 1422 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: Drag and drop editing in emacs...
  2003-02-09 16:47 Drag and drop editing in emacs Sandip Chitale
@ 2003-02-09 21:49 ` Christopher J. White
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher J. White @ 2003-02-09 21:49 UTC (permalink / raw)


>>>>> "sandip" == Sandip Chitale <sandipchitale@attbi.com> writes:

sandip> GNU Emacs alllows draggin mouse to create selection.  I was
sandip> wondering why is isn't there a drag and drop editing support
sandip> also.

Might exist, but if not, probably because you can do:
  Mouse-1 start region
  Double Mouse-3 end region, and kill
  Mouse-2 insert kill

sandip> Could something like the following be done ?

sandip> (defun drag-cut-copy-paste (start-event)
sandip> "Drag and drop editing."

I can't see why something like this wouldn't work...

...cj

-- 
------------------------------------------------------------------------------
 Christopher J. White                                    chris@grierwhite.com
------------------------------------------------------------------------------ 

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

end of thread, other threads:[~2003-02-09 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-09 16:47 Drag and drop editing in emacs Sandip Chitale
2003-02-09 21:49 ` Christopher J. White

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.