[ESS] ess-mode 5.3.11; In Emacs R is starting up unwantedly in some cases

Martin Maechler maechler at stat.math.ethz.ch
Wed Sep 15 11:39:13 CEST 2010


>>>>> Frede Aakmann Tøgersen <frtog at vestas.com>
>>>>>     on Wed, 15 Sep 2010 10:29:19 +0200 writes:

    > Hi
    > In the thread started by Gerald (https://stat.ethz.ch/pipermail/ess-help/2010-September/006356.html) it is mentioned that R starts unwantedly from time to time when browsing an .R file. I have seen the same behaviour.

    > I have tried the following to provoke an unwanted start of R on two different combination of versions of Emacs, ESS and OS (see below for report from ess-submit-bug-report for the two combinations).

    > 1. Create a buffer test.R in Emacs with, say,

    > library(lattice)

    > f <- function(x,y) x + y

    > 2. Moving around in the buffer doesn't do anything.

    > 3. Start an R with M-x R

    > 4. Closing the R process with C-c C-q, cursor jumps to the inferior ESS
    > buffer where we're asked whether to save or not.

If you are like me and *never* save the full session
-- but just use  save(....) and load(..) purposely in some cases --
Then, I strongly recommend to avoid that question
and add this line to the (often long) list of customized
variables in your ~/.emacs , i.e.,
There, inside the  "...." part of
---------------------------------------------
(custom-set-variables
   ....
   ....
   )
---------------------------------------------
I have the important line

 '(inferior-R-args "--no-restore-history --no-save ")

Alternatively, you can
 
 (setq inferior-R-args "--no-restore-history --no-save ")

somewhere in your ~/.emacs  or default.el or other such emacs
customization files.

    > 5. Answer no, and move cursor to test.R with C-x C-o. Immidiately an R
    > process starts.

    > 6. Close again with C-c C-q.

    > 7. Kill the inferior ESS buffer, and move cursor to test.R. Now I'm
    > being asked whether to start R in the echo area.

    > 8. Use C-g to interrupt. Going to the test.R buffer with cursor doesn't
    > provoke R to start, and I can go on editing.

Thank you very much,
that looks clear.


    > Yours sincerely / Med venlig hilsen


    > Frede Aakmann Tøgersen
    > Statistician, M.Sc., Ph.D.
    > Modeling, Statistics and Risk Analysis

    > Vestas Technology R&D
    > T +45 9730 5135
    > M +45 2547 6050
    > frtog at vestas.com<mailto:frtog at vestas.com>
    > http://www.vestas.com<http://www.vestas.com:>

    > Company reg. name: Vestas Wind Systems A/S
    > This e-mail is subject to our e-mail disclaimer statement.
    > Please refer to www.vestas.com/legal/notice<http://www.vestas.com/legal/notice>
    > If you have received this e-mail in error please contact the sender.



    > This bug report will be sent to the ESS bugs email list
    > Press C-c C-c when you are ready to send your message.
    ..............

(very long, I think too long, but hopefully still useful

 Further:
 Ideally it would be great if you didn't use HTMLified E-mails 
 for such things....
 But I know, this is an old fashioned view on e-mail by someone
 who wrote e-mail for a quite a while before HTML even existed
 ...)

Thanks again, Frede, for your very clear bug report!

I won't have time to look at (the problem and a fix to that)
"real soon now" though, and hope that others can...

Martin



More information about the ESS-help mailing list