stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] [STUMPWM] [PATCH] fuzzy autocompletion for input


From: Anonymous
Subject: Re: [STUMP] [STUMPWM] [PATCH] fuzzy autocompletion for input
Date: Fri, 01 Oct 2010 19:29:03 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix)

Evgeny <address@hidden> writes:

> Hello,
>
> Here's patch for slime-like fuzzy autocompletion for input. Completion
> type is specified in *input-completion-type* variable which can be
> either :prefix or :fuzzy. Old prefix completion type is left as
> default. I hope someone will find this useful.

Not sure why but it doesn't work without (in-package :stumpwm), e.g.

  Invalid *input-completion-type* (:PREFIX)

%%
diff --git a/input.lisp b/input.lisp
index 97d7aa6..3802c97 100644
--- a/input.lisp
+++ b/input.lisp
@@ -461,7 +461,7 @@ functions are passed this structure as their first 
argument."
                (fboundp completions)))
       (funcall completions str)
       (let* ((method-name (format nil "input-find-completions/~A" 
*input-completion-type*))
-            (method (find-symbol (string-upcase method-name))))
+            (method (find-symbol (string-upcase method-name) :stumpwm)))
        (if method 
            (funcall method str completions)
            (message "Invalid *input-completion-type* (:~A)" 
*input-completion-type*)))))
%%



reply via email to

[Prev in Thread] Current Thread [Next in Thread]