This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-11
Channels
- # adventofcode (52)
- # announcements (3)
- # aws (2)
- # babashka (36)
- # babashka-sci-dev (4)
- # beginners (69)
- # biff (45)
- # calva (9)
- # cider (3)
- # clara (8)
- # clj-kondo (24)
- # clojure (20)
- # clojure-dev (12)
- # clojure-europe (12)
- # clojurescript (2)
- # conjure (1)
- # emacs (17)
- # lsp (69)
- # malli (12)
- # off-topic (32)
- # polylith (2)
- # re-frame (4)
- # releases (2)
- # scittle (6)
- # shadow-cljs (21)
- # tools-deps (10)
- # vim (11)
- # xtdb (11)
I occasionally end up with a non-responsive emacs... 😳 When I do that and find that repeatedly pressing Ctrl-g does nothing, I go for the killall -USR2 emacs
, which usually breaks out, pops a debugger and lets me recover. The problem is, after I do that, emacs starts throwing up debugger windows as I'm working. For instance in this state if I do projectile find file, it pops up an ivy file finder, and if I change my mind and press Esc, up pops the debugger. This is annoying, and I haven't been able to figure out how to stop it except by restarting emacs, which I don't want to do.
I've tried all of these, but none of them fix the problem. Anyone have any idea what could try?
(setq debug-on-error nil)
(setq debug-on-event nil)
(setq debug-ignored-errors ())
(setq debug-on-message nil)
(setq debug-on-quit nil)
?
In clojure-mode
, can I fold an if "then" branch if it becomes to large? so I can see the "else" branch?
Have you tried hs-minor-mode
? if enabled, a command call hs-hide-block
should work
hs-show-block
would then reveal it
Why is this elisp expression evaluating to "it's hoho"
?
(cond ((equal 'hihi 'hihi) "it's hihi"
(equal 'hihi 'hoho) "it's hoho"))
(equal 'hihi 'hihi) ; => t
(equal 'hihi 'hoho) ; => nil
so, the above expr should evaluate to "it's hihi"
!Ah, stupid me. The correct syntax is
(cond ((equal 'hihi 'hihi) "hihi")
((equal 'hihi 'hoho) "hoho"))
In fact it should be
(cond
(equal 'hihi 'hihi) "hihi"
(equal 'hihi 'hoho) "why's it hoho?"
:else "we're in trouble")
Nope, the clauses should be separated in their own forms:
(cond
((equal 'hihi 'hihi) "hihi")
((equal 'hihi 'hoho) "why's it hoho?")
(:else "we're in trouble"))
Note the extra parens.The @U03KLA1A00K version is the Clojure syntax 😞 yours is emacs-lisp as you said, just keep adding parentheses until it works.
Syntax for cond
in Clojure and Elisp got mixed in my brain