[ESS] What happened to ess-transcript-clean-region ?

Martin Maechler maechler at stat.math.ethz.ch
Sat Aug 7 10:56:37 CEST 2010


>>>>> "VS" == Vitaly S <spinuvit.list at gmail.com>
>>>>>     on Fri, 06 Aug 2010 14:41:04 +0200 writes:

    VS> "RICHARD M. HEIBERGER" <rmh at temple.edu> writes:
    >> It is there in the usual place.  It only works for buffers
    >> in ess-transcript mode (usually .rt or .st buffers).

    VS> Thanks Richard,

    VS> I was confused by the following statement form 4.4.4 of ESS documentation:

      > "Finally, if you intend to produce S source code (suitable for using with
      > source() or inclusion in an S function) from a transcript, then the command M-x
      > ess-transcript-clean-region may be of use. This command works in any Emacs
      > buffer, and removes all prompts and command output from an ESS transcript within
      > the current region, leaving only the commands."


    VS> As far I could understand the above statement is not true.

you are right.
I assume it was once true, ...

    VS> First, the command is not available unless the
    VS> ess-trns.el is loaded. But, even after it has been
    VS> loaded the command works only in transcript buffers (if
    VS> executed in other buffers, emacs hangs and I have to C-g it).

Hmm, when I try it in an  *R* buffer, after having loaded "ess-trns",
it works nicely for me.

Given that, I think it would make sense to enable it in such
buffers, i.e., "inferior-ess-mode",
so the doc mentioned above would become a little bit "more true" :-)

What exactly did you do to get emacs to hang there ?
What's your major-mode there (C-h v major-mode)?

Thanks for your feedback,
Martin Maechler, ETH Zurich



More information about the ESS-help mailing list