joaotavora / sly

Sylvester the Cat's Common Lisp IDE
1.26k stars 142 forks source link

Typo in Manual + Small Question #489

Open ashok-khanna opened 2 years ago

ashok-khanna commented 2 years ago

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))))
PuercoPop commented 2 years ago

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

ashok-khanna commented 2 years ago

Thanks for that!

joaotavora commented 2 years ago

@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.

aadcg commented 2 years ago

Partially addressed in #505.