[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PCM completion word boundaries
From: |
Stefan Monnier |
Subject: |
Re: PCM completion word boundaries |
Date: |
Sat, 13 Aug 2011 11:18:24 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> 2. (defun string->symbol ())
> 3. In an emacs-lisp-mode buffer, type string-symbol M-TAB
Right, because string->symbol does not match the "string*-symbol" glob.
> It says no match. I wonder if it should match in this case. For example
> minibuffer-bitset M-TAB completes to minibuffer--bitset.
But here "minibuffer--bitset" does match the "minibuffer*-bitset" glob.
I.e. the "-" you typed matches the second "-", not the first.
I.e. for string->symbol, you'd need to type "str>sym", at which point it
would correctly expand.
> The reason I am including > is that in Scheme there are tons of
> functions with -> in it. > is a bit slower to type and would be great if
> I can avoid it using completion.
That would make sense, yes, but it would require more changes. You may
want to start by looking at completion-pcm--string->pattern.
Stefan