Fork me on GitHub
#emacs
<
2018-01-09
>
qqq03:01:37

I know about set-window-dedicated-p. It's not what . Iwant: I want a situation where a frame is attached to a wincow and does NOT displ.ay any other windows

qqq03:01:01

Even with set-window-dedicated-p, I get the situation taht the frame may decide to split and display two windows. I don't want that. I want this frame to display this one window -- and never display anything else.

qqq03:01:38

basically I want a command that says: this frame has this current layout with these windows/buffers; NEVER change at all; force all new windows/buffers to appears elsewhere

qqq07:01:35

https://www.gnu.org/software/emacs/manual/html_node/eintr/what_002dline.html is this for real? in emacs, getting "what line am I currently on" requires scanning through the entire buffer ?

vemv13:01:01

anyone able to open N files at the same time with helm?

vemv13:01:17

e.g. mark a few with C-SPC, try the "open file" action

vemv13:01:36

it just opens one file. seems a usual pitfall

vemv13:01:05

-- the 'persistent action' seems to do basically that. although it'd be more uniform if I could use a plain action

gfredericks20:01:54

I'm trying to debug an issue where shutdown hooks are not run when I do cider-restart; I'm having trouble even finding the code that kills the server. any tips?

bozhidar22:01:40

Are you looking for this or something else?

bozhidar22:01:42

(defun cider--close-connection-buffer (conn-buffer)
  "Close CONN-BUFFER, removing it from variable `cider-connections'.
Also close associated REPL and server buffers."
  (let ((buffer (get-buffer conn-buffer))
        (nrepl-messages-buffer (and nrepl-log-messages
                                    (nrepl-messages-buffer conn-buffer))))
    (setq cider-connections
          (delq buffer cider-connections))
    (when (buffer-live-p buffer)
      (with-current-buffer buffer
        (when spinner-current (spinner-stop))
        (when nrepl-tunnel-buffer
          (cider--close-buffer nrepl-tunnel-buffer)))
      ;; If this is the only (or last) REPL connected to its server, the
      ;; kill-process hook will kill the server.
      (cider--close-buffer buffer)
      (when nrepl-messages-buffer
        (kill-buffer nrepl-messages-buffer)))))

bozhidar22:01:14

Which shutdown hooks are you referring to?

gfredericks23:01:46

if I do cider-jack-in followed by cider-restart, my assumption is that the jvm running the nrepl server gets shutdown

gfredericks23:01:20

is the process managed by emacs, and so kill-buffer ends up killing the process?

gfredericks23:01:57

I can contrast this effect with what happens when I do lein trampoline repl :headless (probably also lein repl would be equivalent) followed by C-c, in which case the shutdown hooks do run