ESS/SAS key bindings.

Rodney Sparapani rsparapa at mcw.edu
Fri Sep 27 03:43:07 CEST 2002


Bo:

I'll respond below.

On Thursday, September 26, 2002, at 05:28 PM, Bo Peng wrote:

> Hello,
>
> I use ESS/R for a long time but I am new to ESS/SAS. I have some
> questions:
>
> 1. I can not use
>   (setq ess-sas-local-unix-keys t)_
>  in my .emacs file tp activate sas keys. Rather strangely,
>   (ess-sas-local-unix-keys)
>  works.

Actually, that's the way I do it too.  I think it's cleaner, but I'm 
not sure if the documentation is very clear.  I call 
(ess-sas-global-keys) after requiring ess-site.

> 2. If I use -local-key, I can use F3 to run the SAS program but I can
>   not go back from the shell window to SAS window with F4. So I use
>   -global-key but then all my general F3, F4,.. are gone even when I
>   am not in SAS mode. This also means that I can not use R and SAS
>   at the same time since I define F8 for R mode.
>
>   If I have to tolerate global-key, how can I set up a hook that trigle
>   ess-sas-global-unix-keys only when I open a sas file?
>
>   Or, can I use local-key and let shell, log, output windows know F4, 
> F5
>   etc?

Hmmm.  ESS[BUGS] F-keys manage to co-exist with ess-sas-global-keys.  I 
think the following excerpt is somehow responsible.  Maybe if you put 
something like this in .emacs before requiring ess-site:

(if ess-bugs-mode-map nil
     (setq ess-bugs-mode-map (make-keymap))
     (define-key ess-bugs-mode-map (quote [f2])  'ess-revert-wisely)
     (define-key ess-bugs-mode-map (quote [f12]) 'ess-bugs-next-action)
)

> 3. Is there a way to use the same key-bindings for batch and 
> interactive
>   mode? It makes sense to me to use F3, F4 for both modes.
>
> I am using ess-5.1.24 + emacs 20.7.2 + Solaris 2.8.
>
> Many thanks in advance.
>

So F3 would submit the code, but what would F4 do?

>
> -- 
> Bo Peng
>

Rodney

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list