[ESS] How to assign function key

Martin Maechler m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Mon Feb 8 11:06:01 CET 2016

>>>>> Patrick Connolly <p_connolly using slingshot.co.nz>
>>>>>     on Sat, 6 Feb 2016 16:11:35 +1300 writes:

    > On Fri, 05-Feb-2016 at 08:46PM +0100, Martin Maechler
    > wrote: [...]

    > |> But I did not understand why you maintain two separate
    > elisp functions |> ("comint-kill-output" and "ess-....")
    > |> when instead you could use the one that already comes
    > with comint, |> i.e. with emacs, |> namely
    > comint-delete-output ... the one I found via looking up
    > the |> key binding of C-c C-o

    > Really?  This is what the Fine Manual[1] says:

    >   4.2.1 Manipulating the output from the last command

    >   [...]

    >   Finally, if you want to discard the last command output
    > altogether, use C-c C-o (comint-kill-output), which
    > deletes everything from the ^^^^ last command to the
    > current prompt. Use this command judiciously to keep your
    > transcript to a more manageable size.

    > I was making two attempts at achieving what C-c C-o does
    > without knowing whether I had to specify 'ess' in the
    > name.

    > But thanks for that suggestion.  I doubt I'd ever have
    > thought of trying 'delete' instead of 'kill'.  Indeed, it
    > works as required if I define this way:

    > (global-set-key [f7] 'comint-delete-output)

    > End of that problem.  Thanks millions.

You are welcome!   Glad I could help.

    > 1. Fine Manual
    > (http://ess.r-project.org/Manual/ess.html#Manual);

The above  is now fixed in the development version of the manual
('comint' has changed from when that was written).


More information about the ESS-help mailing list