[ESS] Assign f12 to "ess-sas-submit-region"

Main, Regan rmain at rand.org
Mon Mar 21 19:09:33 CET 2011

Aha!  Awesome.  With that info, I was able to bind ess-eval-region to
F8.  Oddly, if I try binding to F12, it doesn't work.  I added a
global-unset-key and a global-set-key to test each function key.  When,
I fill with F8, it works.  With F12, it doesn't.  F8 will suffice, but I
have PC sas setup to submit with F12, so it would be great to be able to
switch to F12 for iESS too.  Do you happen to know if there is something
specific that I have to set/unset in order to make F12 work?  I did
search my .emcas just to double check I haven't assigned it to anything
else, and I haven't.

Thank you!

;;RLM: Bind f8 to ess-eval-region to interactively submit blocks of
code. (global-unset-key [f8])
(global-set-key [f8] 'ess-eval-region)

-----Original Message-----
From: Rodney Sparapani [mailto:rsparapa at mcw.edu] 
Sent: Monday, March 21, 2011 1:51 PM
To: Main, Regan
Cc: ess-help at stat.math.ethz.ch
Subject: Re: [ESS] Assign f12 to "ess-sas-submit-region"

On 03/21/11 12:16 PM, Main, Regan wrote:
> Thank you for your quick response, Rodney.  I did check out the
> keys for batch processing section and concluded that it wasn't working
> either because it is specific to batch processing and/or because I was
> not adding the lines of code to the correct places.
> I tried uncommenting line 4 in the batch processing instructions.
> I would hit F3, it would batch submit the file.  I tried adding the
> instructions first in the ess-site.el file (which crashed it) and then
> intead to my .emacs file.  I also tried with and without adding the
> global-unset/set-key commands in my .emacs, but so far, I haven't
> managed to change or make an additional keybinding to interactively
> submit (C-c C-r) chunks of code.
> Can you recommend anything else to try?
> Thank you,
> -Regan

Hi Regan:

If you want interactive region submission, then that is a completely
different function.  You would need to bind ess-eval-region to F12.

Rodney Sparapani       Center for Patient Care and Outcomes Research
Sr. Biostatistician               http://www.mcw.edu/pcor
4 wheels good, 2 wheels better!   Medical College of Wisconsin (MCW)
WWLD?:  What Would Lombardi Do?   Milwaukee, WI, USA


This email message is for the sole use of the intended r...{{dropped:6}}

More information about the ESS-help mailing list