Skip to content

cider-switch-to-repl-buffer should switch to relevant (not most recent) buffer #2084

@mwfogleman

Description

@mwfogleman

A few people (@magnars @dpsutton jumar?) were talking on Clojurians yesterday about an issue that I've noticed. I don't have all the details, but I borrowed from their descriptions, but will try to help report.

The documentation says "To switch to the relevant REPL buffer based on the Clojure namespace in the current Clojure buffer, use: C-c C-z." From cljs-mode, it should switch to the project's cljs-repl; from clojure-mode it should switch to the project's clj-repl.

Instead, it switches to the most recent REPL.

@dpsutton says it is related to: 746e4d6

To reproduce the problem:

  • Create a project with CLJ and CLJS.
  • Navigate to a file in that project, and run cider-jack-in-clojurescript.
  • Switch to the CLJ REPL buffer.
  • Navigate to a CLJS file buffer.
  • Hit C-c C-z (cider-switch-to-repl-buffer). It will switch to the CLJ REPL buffer, not the CLJS REPL buffer.

Leiningen 2.7.1

Emacs: 25.2.1

Arch/Antergos Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions