inf-clojure icon indicating copy to clipboard operation
inf-clojure copied to clipboard

Prompt ghosts: it duplicates and moves!

Open arichiardi opened this issue 8 years ago • 6 comments

Expected behavior

I expect the prompt not to appear at all when it displays a result

Actual behavior

2017-03-03-161431_585x142_scrot

Steps to reproduce the problem

I don't have a consistent way yet, working on it

Environment & Version information

-

inf-clojure version information

latest master

Lein/Boot version

Lumo repl

Emacs version

24.5.1

Operating system

Ubuntu

Can and will debug sooner or later, not blocking for now, which is good :wink:

arichiardi avatar Mar 04 '17 00:03 arichiardi

That's not really a bug, but is an annoyance for sure. You pasted the code, so the subprompts for the 2 extra lines of code appear with the result.

At some point I thought we added some scrubbing code for those, but I might have only thought of adding it. Probably it'd be easiest to simply kill the subprompts completely. I think there was some config for this, but I don't remember it.

bbatsov avatar Mar 04 '17 07:03 bbatsov

See also https://github.com/clojure-emacs/inf-clojure/commit/ff8dcd99020f0c6dd36a37a3088664f6dfb45fbc

bbatsov avatar Mar 04 '17 07:03 bbatsov

I saw that comint has an accumulate feature, can it be useful for solving this? It is not really a priority for now anyways.

arichiardi avatar Mar 07 '17 04:03 arichiardi

I saw that comint has an accumulate feature, can it be useful for solving this?

No idea what you mean by this.

bbatsov avatar Mar 07 '17 06:03 bbatsov

I was talking about this. I will try it.

arichiardi avatar Mar 07 '17 15:03 arichiardi

Looks promising. I'm far from a comint-master, so I feel I'm learning here as much as you are. 😀

bbatsov avatar Mar 07 '17 17:03 bbatsov