[ESS] How to assign function key

Patrick Connolly p_conno||y @end|ng |rom @||ng@hot@co@nz
Sat Feb 6 04:11:35 CET 2016


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.


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

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    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