I experience strange behaviour when using
python-mode. When sending characters to the shell using
C-c C-e, the first string works well. After that, the characters start repeating, in a manner that is best understood by looking at the screenshot below. Now what is also strange is that this behaviour is also present in the minibar.
If I start emacs with
emacs -q this doesn't happen. I'm looking to find what mode or setting is causing this, but I'm not knowledgeable enough to guess where to look.
The minor modes that are switched on are these:
Async-Bytecomp-Package Auto-Composition Auto-Compression Auto-Encryption Blink-Cursor Company-Quickhelp Company-Quickhelp-Local Counsel Counsel-Projectile Delete-Selection Display-Line-Numbers Doom-Modeline Eldoc Electric-Indent File-Name-Shadow Font-Lock Global-Eldoc Global-Font-Lock Global-Git-Commit Global-Magit-File Ido-Everywhere Ivy Line-Number Magit-Auto-Revert Mouse-Wheel Org-Roam Override-Global Projectile Pyvenv Pyvenv-Tracking Recentf Shell-Dirtrack Tooltip Transient-Mark Which-Key Window-Numbering
The relevant configuration I guess in my
(use-package python-mode :ensure t :custom (python-shell-interpreter "ipython3")
If I use
python for interpreter, this doesn't happen, which leads me to believe there is something wrong with the regexes used for determining the prompt. However, why does the minibar show this as well? Perhaps something else with the code that drives the inferior mode?
I would be grateful and will accept some pointers from someone that understands a bit better how this works, a plausible cause and explanation for this behaviour.