DONE shell-command-on-region calls

  • State "DONE" from "TODO" 2010-03-07 Sun 17:22
  • State "TODO" from "PROPOSED" 2010-02-25 Thu 16:14
    • State "PROPOSED" from "" 2010-02-20 Sat 22:24

Org-babel now uses its own function `org-babel-shell-command-on-region' in which the various shell-command-on-region bugs can be fixed.

original notes

Can we double check this at some point:

(shell-command-on-region (point-min) (point-max) "R –slave –no-save" 'replace)

Note that replace is 5th argument, not 4th:

(shell-command-on-region start end command &optional output-buffer replace error-buffer display-error-buffer)

Yes, people agree that this is a bug in emacs. A bug report has been filed. So those calls should be something like

(shell-command-on-region (point-min) (point-max) "R –slave –no-save" 'current-buffer 'replace)