From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Sandip Chitale" Newsgroups: gmane.emacs.help Subject: Drag and drop editing in emacs... Date: Sun, 09 Feb 2003 16:47:06 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============28875709753415002==" X-Trace: main.gmane.org 1044809400 19453 80.91.224.249 (9 Feb 2003 16:50:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Feb 2003 16:50:00 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hueR-000534-00 for ; Sun, 09 Feb 2003 17:49:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18huf7-0004W8-02 for gnu-help-gnu-emacs@m.gmane.org; Sun, 09 Feb 2003 11:50:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc02.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 66 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-NNTP-Posting-Host: 12.235.67.53 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: sccrnsc02 1044809226 12.235.67.53 (Sun, 09 Feb 2003 16:47:06 GMT) Original-NNTP-Posting-Date: Sun, 09 Feb 2003 16:47:06 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:109988 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6493 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6493 This is a multi-part message in MIME format. --===============28875709753415002== content-type: multipart/alternative; boundary="----=_NextPart_000_0016_01C2D017.D3023E40" This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C2D017.D3023E40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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) =20 ------=_NextPart_000_0016_01C2D017.D3023E40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Folks,
 
    GNU Emacs alllows = draggin mouse=20 to create selection.
I was wondering why is isn't there a = drag and drop=20 editing support also.
 
Could something like the following be = done=20 ?
 
 
(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)
   
------=_NextPart_000_0016_01C2D017.D3023E40-- --===============28875709753415002== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnu-emacs --===============28875709753415002==--