[ESS] A smart ESS function for replacing "=" used for assignment by "<-"

Seb spluque at gmail.com
Sat Nov 12 00:59:31 CET 2011

On Fri, 11 Nov 2011 17:07:23 -0600,
Douglas Bates <bates at stat.wisc.edu> wrote:

> I am editing code from another person who uses "=" as the assignment
> operator.  For the sake of my sanity I want to change those uses of
> "=" to "<-" but, of course, only those uses of "=".  I can use
> query-replace but I seem to remember a smart ESS function that would
> replace those instances of "=" but not other instances.  I can't find
> such a function in the documentation.  Am I hallucinating or is there
> such a function?

Absolutely, that's `ess-fix-EQ-assign', and there are a couple other
`ess-fix-*', which can be performed together with `ess-MM-fix-src'.
Thanks to Martin Maechler for these sanity savers!!


More information about the ESS-help mailing list