[ESS] ESS copies anything I highlight with the curser, and I don't want it to
smckinney at bccrc.ca
Fri Nov 12 23:50:23 CET 2010
I don't think this is an ESS issue. Emacs puts anything you
highlight into the clipboard (unlike other applications that
expect you to subsequently hit Control-c or select "Copy"
from some menu).
To accomplish what you want, the Emacs'ey way to do it is
with Query replace, invoke it with M-% or Escape-%
in the lower mini-buffer. Type in landunit and hit Enter.
Then Emacs pops "with:" into the minibuffer. Type in
elevation and hit enter. Emacs will pause at each instance
of landunit, waiting for you to instruct what to do.
Hit "y" to replace an instance, "n" to skip one, "." to
replace and go no further, "!" to replace all instances below
and so on. Check out the help for Query replace for the other
options - it is much more useful than search and replace
dialogs in most other applications.
Molecular Oncology and Breast Cancer Program
British Columbia Cancer Research Centre
> -----Original Message-----
> From: ess-help-bounces at stat.math.ethz.ch [mailto:ess-help-bounces at stat.math.ethz.ch] On Behalf Of
> Chris Howden
> Sent: November-11-10 10:40 PM
> To: ess-help at stat.math.ethz.ch
> Subject: [ESS] ESS copies anything I highlight with the curser, and I don't want it to
> Hi everyone,
> ESS seems to copy anything I highlight. This is quite annoying if I want
> to replace using paste the same thing a few times.
> EG In the code below I want to replace the variable "landunit" with
> "elevation". So I type in 'elevation' once and then try to copy and paste
> it into each incidence of 'landunit'...it works once, but then it doesn't
> anymore. It seems that once I highlight "landunit" to replace it with
> 'elevation' it replaces 'elevation' with 'landunit' on my clipboard!!!!!
> Does anyone have a suggestion on what I can do to fix this? I've tried
> looking on the web but couldn't find anything.
> plot(density(clean$landunit, na.rm=TRUE))
> Chris Howden
> Founding Partner
> Tricky Solutions
> Tricky Solutions 4 Tricky Problems
> Evidence Based Strategic Development, IP development, Data Analysis,
> Modelling, and Training
> (mobile) 0410 689 945
> (fax / office) (+618) 8952 7878
> chris at trickysolutions.com.au
> ESS-help at stat.math.ethz.ch mailing list
More information about the ESS-help