This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-15
Channels
- # beginners (34)
- # boot (45)
- # cider (16)
- # cljs-dev (20)
- # cljsjs (1)
- # cljsrn (8)
- # clojure (207)
- # clojure-berlin (3)
- # clojure-dev (18)
- # clojure-greece (1)
- # clojure-ireland (1)
- # clojure-italy (9)
- # clojure-russia (20)
- # clojure-spec (27)
- # clojure-uk (19)
- # clojurescript (110)
- # code-reviews (2)
- # cursive (7)
- # data-science (2)
- # datomic (7)
- # devcards (1)
- # emacs (4)
- # graphql (1)
- # hoplon (2)
- # immutant (15)
- # jobs (5)
- # jobs-rus (1)
- # juxt (1)
- # luminus (7)
- # lumo (26)
- # microservices (3)
- # off-topic (27)
- # om (13)
- # onyx (11)
- # pedestal (7)
- # proton (4)
- # re-frame (24)
- # remote-jobs (1)
- # spacemacs (2)
- # specter (2)
- # unrepl (31)
- # untangled (7)
- # vim (14)
@kiemdoder what do you mean? like to just dismiss the buffer?
hi @dpsutton, sometimes a new window is created for the stack trace and when I kill the stack trace buffer I'm still left with the window
I noticed that when I evaluate some code in a clj file that causes a stack trace the stack trace is dismissed when I fix the code and evaluate it again. That made me think that maybe there is a cider function to dismiss the stack trace. I looked through the cider functions but could not find one yet.
the cider error buffer is a cider ancillary buffer. you can see how these things are created here:
(defun cider-make-popup-buffer (name &optional mode ancillary)
"Create a temporary buffer called NAME using major MODE (if specified).
If ANCILLARY is non-nil, the buffer is added to `cider-ancillary-buffers'
and automatically removed when killed."
(with-current-buffer (get-buffer-create name)
(kill-all-local-variables)
(setq buffer-read-only nil)
(erase-buffer)
(when mode
(funcall mode))
(cider-popup-buffer-mode 1)
(setq cider-popup-output-marker (point-marker))
(setq buffer-read-only t)
(when ancillary
(add-to-list 'cider-ancillary-buffers name)
(add-hook 'kill-buffer-hook
(lambda () (setq cider-ancillary-buffers (remove name cider-ancillary-buffers)))
nil 'local))
(current-buffer)))
I notice now that "q" is used elsewhere in emacs as well like dismissing a dired window for instance
kiemdoder: That's right, q
is bound to quit-window
in special-mode-map
, which is inherited by modes that derive from special-mode
.
See the Elisp manual for more: https://www.gnu.org/software/emacs/manual/html_node/elisp/Basic-Major-Modes.html
Thanks a lot for that reference @U2J7JRTDX. I'm getting a lot of valuable emacs information from people in this channel.
You can also ask questions on the Emacs StackExchange: https://emacs.stackexchange.com/ But be sure to spend some effort trying to figure it out yourself first 😉. It’s one of the more heavily moderated SEs.
Yeah, like less