[slime-devel] Re: Automatically remove *Completions* buffer

asimon at math.bme.hu asimon at math.bme.hu
Fri Oct 31 20:48:53 UTC 2003

[Sorry for that ugly message: this is what happens when gnus refuses
to post and I think I'll try lynx :-(. Combined with cut and paste
it's a recipe for disaster. But I give it another try anyway.

By the way, if somebody knows how to make gnus behave and not tell me this:

Couldn't send message via news: 441 No valid newsgroups in "gmane.lisp.slime.devel"

I'm open to suggestions :-)]

> After doing symbol completion with M-TAB in *inferior-lisp*, the
> *Completions* buffer remains open if it had previously been
> activated. Is it possible to make *Completions* disappear as soon as a
> unique symbol is selected?

I agree with Paolo, this would be very nice, and of course not just in
*inferior-lisp*, but in source buffers, too. The following patch does
this, in a very crude way. It is definitely not fit for people using
their mice to chose a completion.

diff -a -u -r1.61 slime.el
--- slime.el    29 Oct 2003 23:41:55 -0000      1.61
+++ slime.el    31 Oct 2003 20:29:43 -0000
@@ -1815,8 +1815,10 @@
            (message "Making completion list...")
            (let ((list (all-completions prefix completions-alist nil)))
-             (slime-with-output-to-temp-buffer "*Completions*"
-           (display-completion-list list)))
+             (save-window-excursion
+               (slime-with-output-to-temp-buffer "*Completions*"
+                 (display-completion-list list))
+               (sit-for 30))) ;adjust to your tastes
            (message "Making completion list...done")))))

 (defun slime-completing-read-internal (string default-package flag)


More information about the slime-devel mailing list