Skip to content

Evaluating code from ESS-R buffer causes inferior buffer to add an extra prompt symbol #1322

@kaibagley

Description

@kaibagley

Hey,

Minor issue, but as the title says sending code from an R buffer to the inferior ESS buffer results in two prompt symbols:

> > arg2 <- c(ntrt, b)

Relevant init.el:

(use-package ess
  :custom
  (ess-indent-with-fancy-comments nil)
  (ess-nuke-trailing-whitespace-p t)
  (ess-toggle-underscore nil)
  (ess-toggle-S-assign nil)
  (ess-disable-underscore-assign t)
  (ess-eval-visibly 'nowait)
  :config
  (add-hook 'inferior-ess-mode-hook
            #'(lambda ()
                (add-to-list 'mode-line-process '(:eval (nth ess--busy-count ess-busy-strings)))))
  (defun kb-run-air-on-r-save ()
    "Format .R files with Air on save."
    (when (string-match-p "\\.[rR]$" (or buffer-file-name ""))
      (shell-command (concat "air format \"" buffer-file-name "\""))
      (revert-buffer nil t t)))
  (add-hook 'after-save-hook 'kb-run-air-on-r-save))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions