User manual

Chapter 12: Overview of ESS features for the S family 67
C-c C-d my.cool.function
## Edit the function as appropriate, and dump back in to the
## process buffer
C-c C-b
## Return to the S-PLUS process buffer
C-c C-y
## Continue working.
## When you need help, use
C-c C-v rchisq
## instead of entering: help("rchisq")
12.6 Customization Examples and Solutions to Problems
1. Suppose that you are primarily an SPLUS 3.4 user, occasionally using S version 4, and
sick and tired of the buffer-name *S+3* we’ve stuck you with. Simply edit the "ess-dialect"
alist entry in the ess-sp3-d.el and ess-s4-d.el files to be "S" instead of "S4" and "S+3". This
will ensure that all the inferior process buffer names are "*S*".
2. Suppose that you WANT to have the first buffer name indexed by ":1", in the same
manner as your S-PLUS processes 2,3,4, and 5 (for you heavy simulation people). Then
add after your (require ’ess-site) or (load "ess-site") command in your .emacs file, the line:
(setq ess-plain-first-buffername nil)
3. Fontlocking sometimes fails to behave nicely upon errors. When Splus dumps, a
mis-matched " (double-quote) can result in the wrong font-lock face being used for the
remainder of the buffer.
Solution: add a " at the end of the "Dumped..." statement, to revert the font-lock face
back to normal.
4. When you change directory within a *R* or *S* session using the setwd() command,
emacs does not recognise that you have changed the current directory.
Solution: Use M-x ess-change-directory. This will prompt you for the directory to
change to. It will then change directory within the *S* buffer, and also update the emacs
variable default-directory. Alternatively, if you have already executed setwd(), press
M-RET within the *S* buffer so that Emacs can update default-directory.