-
Notifications
You must be signed in to change notification settings - Fork 164
Description
This is a problem that I've been observing for several months that I've been struggling to know how to describe in a meaningful way. The observable behavior is that sporadically I'll press enter in the inferior process R buffer or send a command to the R process through ess-eval-region-or-function-or-paragraph-and-step
or similar and I'll get a bunch of crazy output that looks something like the following.
> > Error: unexpected '>' in ">"
> Error: unexpected '[[' in "[["
> Error: unexpected '<' in "<"
> > Error: unexpected '>' in ">"
What I think is happening is that somehow the process mark (by which I mean the mark that is returned by process-mark
) is somehow getting moved to the wrong location (typically somewhere earlier in the process buffer). Then, when e.g. inferior-ess-send-input
is evaluated, the text that is sent to the R process includes a bunch of text from earlier inputs and outputs that includes stuff like > 1 + 1
and [1] 2
and hence results in strange error messages like the one above.
It's entirely possible that this behavior is a bug in comint or some other interaction with another package that I am running (I use a fairly unmodified Doom Emacs configuration). But I thought I would go ahead and share this issue to see if others have any suggestions for how I might go about trying to track down the cause of the behavior.