[ESS] Suggestion: ess-eval-chunk-and-step

Warnes, Gregory gregory.warnes at novartis.com
Thu Oct 11 02:14:24 CEST 2012


This seems to work:


(defun ess-eval-chunk-and-step ()
  "Tangle the current chunk and send it to the inferior ESS process and
step to the next chunk"
  (interactive)
  ;; ess-eval-chunk forgets the current buffer, so store and restore it
  (let ((cbuf (current-buffer) ))
    (command-execute 'ess-eval-chunk)
    (set-buffer cbuf)
    )
  
  (command-execute 'noweb-next-code-chunk)
  )

(define-key ess-mode-map (kbd "<f5>") 'ess-eval-chunk)
(define-key ess-mode-map (kbd "S-<f5>") 'ess-eval-chunk-and-step)


-Greg

-- 
Gregory Warnes, Ph.D.
Sr. Expert Modeler
Modeling and Simulation
CA Phone: +1 617 871-8498
gregory.warnes at novartis.com



More information about the ESS-help mailing list