[ESS] A function (ess-eval-paragraph)

Dan Bolser dmb at mrc-dunn.cam.ac.uk
Fri Mar 17 11:20:55 CET 2006


I thought I would post this code in the case that anyone finds it 
useful, or can offer some improvements. I use sql-mode all the time, so 
I find this function 'missing' from ess...


(defun ess-eval-paragraph ()
   (interactive)
   (mark-paragraph)
   (call-interactively  'ess-eval-region)
   ;;(with-current-buffer "*R*" (end-of-buffer))
   ;;(save-excursion (ess-switch-to-end-of-ESS))
   (end-of-buffer-other-window 0)
   (forward-paragraph)
   )

(global-set-key (kbd "C-c C-c") 'ess-eval-paragraph)


The "(end-of-buffer-other-window 0)" line is not great, but the only 
thing I could make work (see commented out sections). Not sure how 'C-c 
C-n' handles this same issue.




More information about the ESS-help mailing list