Skip to content

REPL prompt is stored as current input when navigating input history #35

Closed
@oyvindstegard

Description

@oyvindstegard

This applies at least to Emacs 25, I do not know about earlier versions.
0. Start clean Emacs instance with emacs -Q, load up required libs, inf-clojure, clojure-mode...

  1. Start REPL with M-x inf-clojure
  2. Input something and evaluate with RET
  3. Describe variable comint-stored-incomplete-input, which should have the value nil, all OK so far.
  4. Without inputting anything new, navigate to previous history item with M-p
  5. Describe variable comint-stored-incomplete-input again, and now it contains the actual prompt with fontification and all:
    #("user=> " 0 7 ....)
  6. Try going back to current input with M-n, and the prompt gets inserted as actual "restored incomplete input", which is clearly wrong. So you end up with "user=> user=> ". This causes even bigger problems when using the default read-only-prompt setting (navigating history stops working properly).

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