Article View: gnu.epoch.misc
Article #1352Apparent doubling of selected text that is then pasted
From: Marc Andreessen
Date: Thu, 11 Jun 1992 03:36
Date: Thu, 11 Jun 1992 03:36
46 lines
2243 bytes
2243 bytes
> I have recently obtained epoch 4.0p1 and installed it on an
>SGI 4D/310 running IRIX4.0.1. I am having a problem with using
>"high-lighting" to select text for subsequent killing and yanking.
>When I set the region using the "normal" keyboard methods, kill
>the region and then yank it, it works fine. However, when I use
>the mouse to mark the region yanking gives me twice the the
>selected text.
I have the same problem on my Sun IPC, SunOS 4.1.1.
??
(This one went 'round a couple of months ago, but wasn't resolved
then.)
The answer is that mouse::copy-zone in epoch-lisp/mouse.el does a
copy-region-as-kill after a text region is selected to put the text on
the kill ring. Unfortunately, if the next command is a kill, Epoch
appends the text from the (real) kill to the previous kill, so you get
two copies of your text ready to be yanked.
There are two things you can do:
(1) In mouse.el you can add:
(setq this-command nil)
after the call to copy-region-as-kill; this will keep Epoch from
thinking you're doing two kills in a row and will thus fix the
problem.
(2) Wait for the next release, where this will be a user option.
Anyone have strong feelings as to which type of behavior should be the
default in the future? (It seems to me that the current behavior is
plain undesirable; anyone feel differently?)
Thanks,
Marc
--
Marc Andreessen
Epoch Development Team
University of Illinois at Urbana-Champaign
marca@ncsa.uiuc.edu
Technical Details
Message-ID:
<9206111736.AA20113@wintermute.ncsa.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!wintermute.ncsa.uiuc.edu!marcaReferences:
<1992Jun11.130606.5861@newshost.lanl.gov>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,ae33be85e8103612 X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1992-06-11 05:03:44 PST Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!wintermute.ncsa.uiuc.edu!marca From: marca@wintermute.ncsa.uiuc.edu (Marc Andreessen) Subject: Apparent doubling of selected text that is then pasted Message-ID: <9206111736.AA20113@wintermute.ncsa.uiuc.edu> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet References: <1992Jun11.130606.5861@newshost.lanl.gov> Distribution: gnu Date: Thu, 11 Jun 1992 03:36:44 GMT Lines: 47