Article View: gnu.epoch.misc
Article #1580undo and mouse operations in 4.0beta
From: Konstantin Laufer
Date: Wed, 04 Mar 1992 22:15
Date: Wed, 04 Mar 1992 22:15
23 lines
1388 bytes
1388 bytes
I get the impression that undo still behaves very strangely in
connection with mouse operations. Naturally, I would like ctrl-middle
to work the same way as in emacs, i.e. cut the region from cursor to
mouse pointer. I defined:
(defun mouse::cut-region (arg)
(select-screen (nth 3 arg))
(select-window (nth 2 arg))
(extend-mouse-drag arg)
(kill-region))
(global-set-mouse mouse-middle mouse-control 'mouse::cut-region)
If I use this function consecutively in two different places in my
buffer and then press undo, both operations are undone. The behavior
gets more complicated when I use it in more places.
Thank you,
--
-Konstantin L"aufer [laufer@cs.nyu.edu]
"Kein Atommuell auf den Mars, denn Mars bringt verbrauchte
Energie sofort zurueck" -- Herrentoilette, Uni Konstanz
Technical Details
Message-ID:
<9203042215.AA05896@GOLDBERG.CS.NYU.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!hsdndev!cmcl2!CS.NYU.EDU!lauferShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,159bc11db2207953,start X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1992-03-04 22:57:49 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!hsdndev!cmcl2!CS.NYU.EDU!laufer From: laufer@CS.NYU.EDU (Konstantin Laufer) Newsgroups: gnu.epoch.misc Subject: undo and mouse operations in 4.0beta Message-ID: <9203042215.AA05896@GOLDBERG.CS.NYU.EDU> Date: 4 Mar 92 22:15:50 GMT Sender: laufer@GOLDBERG.CS.NYU.EDU Reply-To: laufer@cs.nyu.edu Organization: New York University Lines: 23