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

asimon at math.bme.hu asimon at math.bme.hu
Fri Oct 31 20:01:57 UTC 2003


>                                           Automatically remove *Completions* buffer
>
>   From: Paolo Amoroso <amoroso at mclink.it>
>   Reply to: Paolo Amoroso
>   Date: Sat, 25 Oct 2003 18:26:22 +0200
>   Organization: Paolo Amoroso - Milano, ITALY
>   Newsgroups:
>          gmane.lisp.slime.devel
>   Followup to: newsgroup
>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 10:36:55 -0000
@@ -1815,8 +1815,10 @@
           (t
            (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)


Andras 





More information about the slime-devel mailing list