[ESS] regression wtr org-mode
Vitalie Spinu
spinuvit at gmail.com
Sat Jan 21 13:36:06 CET 2012
Andreas Leha <andreas.leha at med.uni-goettingen.de> writes:
>
> Hi all,
>
> this behaviour was indeed due to my local setup. Should have checked with -q
> before
> posting. Sorry for the noise.
>
> Just for the record. The guilty part in my setup was this snippet. I
> have not tested if it is needed any more, but disabling this make org
> work again.
>
> #+begin_src emacs-lisp
> ;; make ess add a newline after the evaluation when visibly is set to nil
> (defun inferior-ess-output-filter (proc string)
> (let ((pbuf (process-buffer proc))
> (pmark (process-mark proc))
> (prompt-regexp "^>\\( [>+]\\)*\\( \\)$")
> (prompt-replace-regexp "^>\\( [>+]\\)*\\( \\)[^>+\n]"))
> (setq string (replace-regexp-in-string prompt-replace-regexp " \n" string
> nil nil 2))
> (with-current-buffer pbuf
> (goto-char pmark)
> (beginning-of-line)
> (when (looking-at prompt-regexp)
> (goto-char pmark)
> (insert "\n")
> (set-marker pmark (point)))
> ))
> (comint-output-filter proc (inferior-ess-strip-ctrl-g string)))
> #+end_src
Cannot see what is wrong, but this prompt trick is part of ess-tracebug
which is now in SVN, do:
(add-hook 'ess-post-run-hook 'ess-tracebug)
to activate.
Vitalie.
More information about the ESS-help
mailing list