Re: slime-autodoc stops working after some time

Orm Finnendahl <[email protected]> Wed, 15 Aug 2018 15:25:34 +0200
Newsgroups gmane.lisp.slime.devel
Organization Hochschule fü r Musik und Darstellende Kunst Frankfurt, Frankfurt, Germany
Message-ID <20180815132534.GC26931@T460s-orm>
Hi Lu=C3=ADs,

 thanks a lot, your hint helped to solve the problem: It was related
to an open break buffer from yesterday. I was unaware that I hadn't
closed it.

In other words: In slime-autodoc the call to
(slime-background-activities-enabled-p) returned nil because
(slime-busy-p) returned t.

Sorry for the noise. It makes total sense but I simply wasn't aware of
the fact that autodoc isn't executed if break buffers are still
open. At least next time I know where to look...

--
Orm


Am Mittwoch, den 15. August 2018 um 13:06:46 Uhr (+0100) schrieb Lu=C3=ADs =
Oliveira:
> Hi Orm,
>=20
> The two key functions at play here are slime-autodoc
> (contrib/slime-autodoc.el) on the elisp side and swank:autodoc on the CL
> side (contrib/swank-arglists.lisp). For testing, use slime-autodoc-manual=
ly
> instead of slime-autodoc-space to avoid that ^M. When you reach the point
> where slime-autodoc is not working, evaluate slime-autodoc with stepping
> enabled (C-u C-M-x). If nothing fishy shows up there, the next place to
> look at would be the swank side, then slime-autodoc--async% (elisp) which
> is what handles the SWANK reply; you might want to step through that as
> well.
>=20
> Good luck; let us know if you find anything.
>=20
> Cheers,
> Lu=C3=ADs
>=20
> On Wed, Aug 15, 2018 at 10:38 AM Orm Finnendahl <
> [email protected]> wrote:
>=20
> > Hi,
> >
> >  after some time slime-autodoc stops working on my machine. I haven't
> > yet found out what triggers this. Disabling/Reenablinging
> > slime-autodoc-mode doesn't help. It works again after restarting emacs
> > and lisp.
> >
> > Here is the situation after it stops working:
> >
> > - Calling #'slime-arglist directly works: The symbol at point is
> >   suggested correctly and the arglist is properly displayed.
> >
> > - <C-h k SPC> displays:
> >
> >   SPC runs the command slime-autodoc-space (found in
> >   slime-autodoc-mode-map), which is an interactive Lisp function in
> >   =E2=80=98slime-autodoc.el=E2=80=99.
> >
> >   It is bound to SPC.
> >
> >   (slime-autodoc-space N)
> >
> >   Like =E2=80=98slime-space=E2=80=99 but nicer.
> >
> >   [back]
> >
> > - Running #'slime-autodoc-space manually results in a ^M displayed at
> >   point.
> >
> > This is on emacs 26.1, slime 2.21, sbcl 1.4.8, Arch Linux 64 bit.
> >
> > Can someone help or give me some hints how to debug this?
> >
> > --
> > Orm
> >
> >