[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] [STUMPWM] [PATCH] fuzzy autocompletion for input
From: |
Evgeny |
Subject: |
Re: [STUMP] [STUMPWM] [PATCH] fuzzy autocompletion for input |
Date: |
Sat, 2 Oct 2010 00:21:06 +0700 |
Also there were bugs in original patch, here is the fixed version, I
tested it with SBCL 1.0.40 and CLISP 2.48 and everything seems to be
working fine.
2010/10/1 Anonymous <address@hidden>:
> 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*)))))
> %%
>
input-fuzzy-completion.patch
Description: Text Data