[slime-devel] Propose to new method for `slime-selector' to find "*slime-inspector*"

Helmut Eller heller at common-lisp.net
Wed Feb 2 10:01:38 UTC 2011


* MON KEY [2011-02-02 00:23] writes:

> Propose to new method for `slime-selector' to find "*slime-inspector*".
> Below and and as attached:
>
>
> (def-slime-selector-method ?i

i is already reserved for the inferior lisp buffer.
Maybe p for insPector?

>   "*slime-inspector* buffer."
>   (or (and (slime-connected-p)
>            (or
>             (and (slime-inspector-visible-p)
>                  (switch-to-buffer (slime-inspector-buffer) t)
>                  (or (and (= (point-min) (point-max))
>                           (progn
>                             (slime-inspector-pop)
>                             (and (null slime-inspector-mark-stack)
>                                  (slime-inspector-next)
>                                  t)
>                             (current-buffer)))
>                      (current-buffer)))
>             (and (get-buffer (slime-buffer-name :inspector))
>                  (switch-to-buffer-other-window (slime-buffer-name
> :inspector) t)
>                  (or (and (= (point-min) (point-max))
>                           (progn
>                             (slime-inspector-pop)
>                             (and (null slime-inspector-mark-stack)
>                                  (slime-inspector-next)
>                                  t)
>                             (current-buffer)))
>                      (current-buffer)))
>             (slime-inspector-buffer))))
>   (error "`slime-selector' wants *slime-inspector* buffer but not
> `slime-connected-p'"))

Why is

(def-slime-selector-method ?p
  "Select the inspector buffer."
  (slime-buffer-name :inspector))

not enough?

Helmut





More information about the slime-devel mailing list