Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

would be nice if C-c C-z in REPL would switch back to source buffer #168

Open
vigilancetech-com opened this issue Nov 7, 2019 · 4 comments
Labels
enhancement good first issue Friendly for first time contributors

Comments

@vigilancetech-com
Copy link

Expected behavior

C-c C-z switches back

Actual behavior

displays C-c C-z

Steps to reproduce the problem

  1. bring up a clojurescript source file
  2. inf-clojure-connect
  3. put whatever you have in to connect (e.g. localhost RETURN 5555 RETURN)
  4. hit C-c C-z (cursor switches to REPL buffer)
  5. hit C-c C-z again (cursor stays where it is but prints out C-c C-z)

Environment & Version information

inf-clojure version information

2.2.0-snapshot

Lein/Boot version

using lumo 1.10.1

Emacs version

26.2

Operating system

Windows 10

@bbatsov bbatsov added enhancement good first issue Friendly for first time contributors labels Apr 19, 2020
@bbatsov
Copy link
Member

bbatsov commented Apr 19, 2020

Yep, that'd be pretty simple to do.

@onetom
Copy link

onetom commented Jul 18, 2021

This mapping would solve this specific situation, I guess:

(define-key inf-clojure-mode-map (kbd "C-c C-z") #'other-window)

However, inf-clojure-switch-to-repl has some logic for jumping across frames too, based on the pop-up-frames custom variable, so this might not work if frames are involved too.

@bbatsov
Copy link
Member

bbatsov commented Apr 25, 2022

I think the simplest option would be to remember the current "location" somewhere in inf-clojure-switch-to-repl and then add a matching command that just jumps to that "saved location".

@bbatsov
Copy link
Member

bbatsov commented Apr 25, 2022

(or you can check for the most recently visited clojure-mode buffer as an alternative)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue Friendly for first time contributors
Projects
None yet
Development

No branches or pull requests

3 participants