This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-04
Channels
- # announcements (123)
- # asami (1)
- # babashka (50)
- # beginners (49)
- # biff (21)
- # calva (48)
- # cider (6)
- # clj-yaml (8)
- # cljsrn (2)
- # clojure (9)
- # clojure-conj (1)
- # clojure-indonesia (1)
- # clojure-losangeles (1)
- # clojure-uk (18)
- # clojurescript (21)
- # data-science (19)
- # datahike (13)
- # events (1)
- # fulcro (1)
- # honeysql (4)
- # hyperfiddle (40)
- # improve-getting-started (3)
- # inf-clojure (1)
- # malli (6)
- # off-topic (45)
- # releases (3)
- # rewrite-clj (14)
- # scittle (1)
- # shadow-cljs (57)
- # tools-deps (1)
- # vim (13)
- # xtdb (14)
In use-package
's :bind
I'm trying to do some custom stuff before eval'ing a defun. (This is a minimal repro without doing the extra stuff.)
:bind
(:map inf-clojure-minor-mode-map
("C-c C-c" .
(lambda () (interactive) (inf-clojure-eval-defun))))
But getting
error in process filter: string-prefix-p: Wrong type argument: symbolp, (lambda nil (interactive) (inf-clojure-eval-defun))
This seems to be due to the call here:
https://github.com/clojure-emacs/inf-clojure/blob/fb9b5ea55f9ef02be32660cc29df15023968fb78/inf-clojure.el#L712
Where symbol-name is called on the lambda expression. The debugger shows:
symbol-name((lambda nil (interactive "") (inf-clojure-eval-defun)))
Is this a bug/something worth supporting?
I added a symbolp
check for the this-command
and things seem to be working, but I'm not fully understanding yet what that condition check in the preoutput filter is doing and if there are things this will break