[ESS-bugs] ess-eval-buffer-from-start suggestion
Roland Rau
roland.rau at gmail.com
Fri Nov 19 17:20:40 CET 2010
[ MM: I'm trying to repost this to ESS-bugs at ...
to which it seems Roland wanted to send it ... ]
------- start of forwarded message -------
From: Roland Rau <roland.rau at gmail.com>
To: ess-bugs-owner at stat.math.ethz.ch
Subject: Re: Request to mailing list ESS-bugs rejected
Date: Thu, 18 Nov 2010 21:06:36 +0100
On 11/18/2010 08:39 AM, ess-bugs-owner at stat.math.ethz.ch wrote:
>
> "It's private to R-core, would you want to actively contribute?"
>
I am not sure whether I am able to actively contribute (either to R-core
or to ESS) on a permanent basis.
The purpose of my request was that I wanted suggest a small addition to
ESS.
For debugging purposes I often want to run my R code from the beginning
of the buffer until the current position. That is why I added a small
function, based on the function ess-eval-buffer (starting on line 1159
in file ess-inf.el, ess-version 5.12).
I modified it a bit that it does not evaluate from (point-min) to
(point-max) but only to (point) -- see below.
(defun ess-eval-buffer-from-start-til-here (vis)
(interactive "P")
(ess-eval-region (point-min) (point) vis "Eval buffer from start til
here"))
I'd be happy if you think it is worthwhile to include it in ESS.
Furthermore, I added some keybindings.
I put into my .emacs file:
(global-set-key (kbd "C-c C-<up>") 'ess-eval-buffer-from-start-til-here)
I guess, however, that it is better not to set any keys globally as a
general solution. That is why I would suggest to add
(define-key ess-mode-map (kbd "C-c C-<up>")
'ess-eval-buffer-from-start-til-here)
to the keybinding definitions in ess-mode.el
Thank you very much,
Roland
------- end of forwarded message -------
More information about the ESS-bugs
mailing list