[ESS] Fwd: temporary files

Charles C. Berry cberry at tajo.ucsd.edu
Thu Dec 21 19:03:04 CET 2006


If what you want is a scratchpad for editting code you can do this:

M-x set-variable RET default-major-mode RET ess-mode RET
C-x b scratch.R RET

this will give you a buffer in ess-mode. you can copy a file into this 
buffer via

M-x insert-file RET myfile.R RET

when you exit scratch.R will disappear without saving anything to a file.

If this is something you want to do often you could add a little 
something for inferior-ess-mode-hook in your .emacs to open a 'scratch.R' 
buffer in ess-mode.


On Thu, 21 Dec 2006, Richard M. Heiberger wrote:

> It is not possible to suppress the automatic saving of a working file
> in a safe manner.  Attempting to do so takes the risk of losing work
> when you are editing a file that you do plan to save later, and didn't
> get to, because for example, the machine crashed.
> When you quit the file C-x k or the emacs session C-x C-c, you will be prompted
> to save any unsaved files.  At that time, tell emacs not to save the file.
> This method is safe.
> Rich
> ---- Original message ----
>> Date: Thu, 21 Dec 2006 17:03:06 +0100
>> From: Judith Schiller <judith.schiller at soundinvest.net>
>> Subject: [ESS] temporary files
>> To: ess-help at stat.math.ethz.ch
>> hi,
>> when i load a file with C-x C-f and make some changes without saving it
>> (without C-x C-s), ESS saves a temporary file with the changes on my
>> disk. how can i tell ESS, not to save the changes in a file?
>> thanks, judith
>> ______________________________________________
>> ESS-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

Charles C. Berry                        (858) 534-2098
                                          Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	         UC San Diego
http://biostat.ucsd.edu/~cberry/         La Jolla, San Diego 92093-0717

More information about the ESS-help mailing list