sly icon indicating copy to clipboard operation
sly copied to clipboard

Typo in Manual + Small Question

Open ashok-khanna opened this issue 2 years ago • 4 comments

Thanks for the great manual / package.

I noticed typo in bold:

"In this section, a technique to load Slynk faster on South Bank Common Lisp (SBCL) is presented. Similar setups should also work for other Lisp implementations."

Also suggest rewriting the following

"M-x sly-disconnect Disconnect all connections."

to

"M-x sly-disconnect Disconnect the connection supplied by the user at the prompt."

Or something better - it was a bit confusing because it doesn't disconnect all connections as far as I can tell.

Finally, is there a way to kill all SLY buffers in Emacs? I wrote the below, but it is a bit of a hack:

(defun kill-sly ()
  (interactive)
  (loop for buffer in (buffer-list)
        do (if (string-prefix-p "*sly-" (buffer-name buffer))
               (kill-buffer buffer))))

ashok-khanna avatar Jan 15 '22 05:01 ashok-khanna

Regarding your last question, you can get a list of buffers where sly-mode is enabled using

(cl-remove-if-not #'my/sly-buffer-p (buffer-list))

(defun my/sly-buffer-p (buf)
  (with-current-buffer buf
    (bound-and-true-p sly-mode)))

so something like

(loop for buf in (buffer-list)
  when (my/sly-buffer-p buf)
    do (kill-buffer buf))

should be what you are looking for

PuercoPop avatar Jan 15 '22 15:01 PuercoPop

Thanks for that!

ashok-khanna avatar Jan 16 '22 12:01 ashok-khanna

@ashok-khanna your corrections would be fine in a small PR. I'm sorry I don't have much time to maintain SLY right now.

joaotavora avatar Jan 17 '22 17:01 joaotavora

Partially addressed in #505.

aadcg avatar Mar 23 '22 18:03 aadcg