default option for submitting code to the same process without any questions?
A.J. Rossini
rossini at blindglobe.net
Tue Aug 5 18:18:15 CEST 2003
Please commit. We need to release 5.2.0pre1 soon. I can imagine
running through about 4-10 quick prereleases before we shake the bugs
out for a stable version.
I _THINK_ the problem is the noweb mode is really annoying about
buffer-local variables, and I think the solution is to hack at noweb
mode to keep some known variables around.
best,
-tony
Stephen Eglen <stephen at inf.ed.ac.uk> writes:
> > Hi,
> >
> > When using R and Sweave, I normally have only one R process running.
> > Each time the cursor moves to a new chunk of code,
> > the first submission (e.g. C-c C-n) results in the question
> >
> > 'Process to load into: R'
> >
> > and I have to hit return before that first line is submitted.
> > Is there some way to avoid having to hit return
> > each time I move to a new code chunk?
> > i.e. once a process is selected
> > (R in my case as I rarely code in anything else),
> > I want ESS to resubmit to that process
> > without repeatedly asking me the same question.
> >
> > I am on R 1.7.1, ess 5.1.24, XEmacs 21.4 and XP.
> >
>
> hi John,
>
> I *think* the following defun might help you; put it in your .emacs
> after your code that loads up ESS.
>
> Tony: did you send this to me, I can't recall whether someone else
> sent this to me or not? The new code is the "(if (cdr pair)" line.
> Should I commit it to CVS?
>
> Stephen
>
>
>
> ;; Tue 26 Mar 2002. Temporary addition so that ess-local-process-name
> ;; is not reset to nil everytime I re-enter a code chunk. This is useful
> ;; when in .Rnw buffers.
> (defun ess-setq-vars-local (alist &optional buf)
> "Set language variables from ALIST, in buffer BUF, if desired."
> (if buf (set-buffer buf))
> (mapcar (lambda (pair)
> (make-local-variable (car pair))
> (if (cdr pair)
> (set (car pair) (eval (cdr pair)))))
> alist)
> (ess-write-to-dribble-buffer
> (format "(ess-setq-vars-LOCAL): language=%s, dialect=%s, buf=%s, comint..echoes=%s, comint..sender=%s\n"
> ess-language ess-dialect buf comint-process-echoes comint-input-sender)))
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/ess-help
>
--
A.J. Rossini
rossini at u.washington.edu http://www.analytics.washington.edu/
Biomedical and Health Informatics University of Washington
Biostatistics, SCHARP/HVTN Fred Hutchinson Cancer Research Center
UW : FAX=206-543-3461 | moving soon to a permanent office
FHCRC: 206-667-7025 FAX=206-667-4812 | Voicemail is pretty sketchy/use Email
CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}
More information about the ESS-help
mailing list