Fork me on GitHub
#cider
<
2019-10-10
>
bozhidar11:10:35

@ag Why do you need this?

ag16:10:27

well, to be honest it’s not that often when you need something like that. I was writing tests for a few complex functions that involved things from multiple namespaces and I was getting confused where the things are coming from.

ag17:10:04

Also sorta related question. Didn’t we have something like “peek” where function definition could be previewed in a popup (without having to jump), similar how git-messenger:popup-message works? I’ve been looking for that, but can’t find it. I somehow thought something like that was already implemented

bozhidar17:10:44

That was deleted a long time ago, as after surveying users almost everyone said they preferred to just jump to the definition.

ag17:10:11

ah I see. Not that I need it, just thought that I was sure we had it, but couldn’t find it

mikerod20:10:24

When there are multiple repl buffers open & in a visible “window” of emacs in a project, eg. for a cider-jack-in-clj&cljs setup, I’ve noticed that cider-find-var often doesn’t work.

mikerod20:10:45

say I have 3 buffers in 3 windows, repl-clj, repl-cljs, source buffer for clj

mikerod20:10:03

cider-find-var will not resolve the var (appears to do nothing)

mikerod20:10:16

if I just delete-window on the repl-cljs, it then works

mikerod20:10:31

so it’s as if the repl buffer being up causes “session confusion” or something?

dpsutton21:10:18

It’s unfortunately based on the last visited repl so it doesn’t know about clj vs cljs repls. You don’t need to kill a buffer but just focus the one you want for a second

mikerod21:10:47

@dpsutton ah ok, I’ll try that out

mikerod21:10:03

still sort of annoying, but at least better than having to close the window etc

mikerod22:10:02

thanks though. That’s actually not something I immediately realized and it makes it nicer to work with just having that info

mikerod22:10:22

I feel enlightened

dpsutton22:10:58

(cl-defmethod sesman-more-relevant-p ((_system (eql CIDER)) session1 session2)
  (sesman-more-recent-p (cdr session1) (cdr session2)))

dpsutton22:10:02

is the code