[ESS] How to assign function key
Patrick Connolly
p_conno||y @end|ng |rom @||ng@hot@co@nz
Wed Feb 3 21:40:08 CET 2016
On Wed, 03-Feb-2016 at 11:30AM +0100, Martin Maechler wrote:
|> >>>>> Vitalie Spinu <spinuvit using gmail.com>
|> >>>>> on Wed, 3 Feb 2016 10:21:03 +0100 writes:
|>
|> >> (global-set-key [f7] 'comint-kill-output) or (define-key
|> >> ess-mode-map [f7] 'ess-comint-kill-output)
|>
|> >> They would understand why I get a message that F7 is null
|> >> or undefined.
|>
|> > Works for me. Is it F7 or f7 that caused your problem?
|>
|> also forks for me; even when running emacs as 'emacs -nw'.
|> So something must be strange in your emacs setup.
So there's nothing wrong with my syntax, just something else
incompatible? Is one method preferable to the other?
|>
|> Maybe you do this in the *scratch* buffer (using C-x C-e )
|> and send that plus possibly the relevant message(s) from the *Messages*
|> buffer.
Defining f7 as (global-set-key [f7] 'comint-kill-output) and pressing
the F7 key while in the *R* buffer, the Message buffer lists:
Symbol's function definition is void: comint-kill-output
That same message appears at the bottom of the Emacs window.
Defining f7 as (define-key ess-mode-map [f7] 'ess-comint-kill-output)
and pressing the F7 key while in the *R* buffer, the Message buffer
lists nothing though "<f7> is undefined" appears at the bottom of the
window.
I didn't follow how to use C-x C-e in the *scratch* buffer so I can't
provide that output. My bad.
Thanks for the feedback.
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Average minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Eleanor Roosevelt
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
More information about the ESS-help
mailing list