Recall a comand in history in ESS-5.1.11 and NTEmacs20.4.
Paul Y. Peng
ypeng at math.mun.ca
Wed Jul 12 16:23:52 CEST 2000
Rich Heiberger wrote:
>
> please let us know which commands you need to bind to function keys.
> we think we already supplied the commands on the keys, usually on the
> C-c something-else keys. See C-h m from within myfile.s and from the *S+4*
> buffer.
I found that C-c M-r is very useful when S-PLUS is invoked with
M-x sqpe+4, which is the way I use S-PLUS most of time on my PC.
It should be bound to a function key. Another command is
ess-execute-attach. It is listed in iESS menu without a binding key.
Following the suggestion from Charles (attached below), I bind these
commands as follows:
(add-hook
'inferior-ess-mode-hook
'(lambda()
(define-key inferior-ess-mode-map [f3]
'comint-previous-matching-input-from-input)
(define-key inferior-ess-mode-map [f4] 'ess-execute-attach)
(define-key inferior-ess-mode-map [f11] 'comint-kill-output)
(define-key inferior-ess-mode-map [f12] 'comint-kill-input)
)
)
For other commands, such as ess-execute-search, ess-execute-objects,
comint-dynamic-complete and so on, there are a couple of seconds
delay in getting results after execution (this seems to be pertinent
to NTEmacs on PC only. I did not notice this in a linux box with
S-PLUS 5.1. My PC is PII300 with 128MB. Maybe it is too slow now?),
so I never use them.
Many thanks to Rich for pointing out how to automatically highlight
the selected text with C-SPC and M-w. It is now just fantastic!
His website http://sbm.temple.edu/~rmh/ is very useful.
Paul.
"Charles C. Berry" wrote:
>
> On my Solaris box,
>
> C-c ESC r comint-previous-matching-input-from-input
>
> does what I think you want.
>
> Now, if the keystrokes are defined in a way that you don't like, you have
> the option of changing them in your .emacs file.
>
> In mine, I use:
> -----------------------------
>
> (add-hook
> 'inferior-ess-mode-hook
> '(lambda()
> ;;;;THE FOLLOWING KEYS WERE ADDED BY CCB
> (define-key inferior-ess-mode-map [f3] 'ess-execute-search)
> (define-key inferior-ess-mode-map [f4] 'ess-execute-objects)
> (define-key inferior-ess-mode-map [f5] 'ess-execute-attach)
> (define-key inferior-ess-mode-map [f6] 'ess-execute)
> (define-key inferior-ess-mode-map [key-65296]
> 'comint-kill-input)
> (define-key inferior-ess-mode-map [key-65297]
> 'ess-undu-ctrl-a)
> (define-key inferior-ess-mode-map "\C-a" 'comint-bol)))
>
> ---------------------
>
> to bind a number of ESS commands to the function keys on my UltraSPARC
> keyboard.
>
> The [key-65296] is what I got when I issued:
>
> C-h k <f9>
>
> on an older verison of emacs and ESS, but it still works now. (For some
> keys, you won't know how to specify them to emacs unless you do the C-h k
> <whatever.key>
>
> Anyway, now that I have dug this up, I think I will bind
>
> comint-previous-matching-input-from-input
>
> to F11 to save me from having to remember it and type all of the
> troublesome characters.
[snipped]
>
> Charles C. Berry (858) 534-2098
> Dept of Family/Preventive Medicine
> E mailto:cberry at tajo.ucsd.edu UC San Diego
> http://hacuna.ucsd.edu/members/ccb.html La Jolla, San Diego 92093-0645
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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