[Top][All Lists]

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

Re: faster unicode character name completion

From: Stefan Monnier
Subject: Re: faster unicode character name completion
Date: Mon, 07 Dec 2009 21:29:48 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> I don't know.  The info says this:

>  -- Function: completion-table-dynamic function
>      This function is a convenient way to write a function that can act
>      as programmed completion function.  The argument FUNCTION should be
>      a function that takes one argument, a string, and returns an alist
>      of possible completions of it.  You can think of
>      `completion-table-dynamic' as a transducer between that interface
>      and the interface for programmed completion functions.

> I thought that FUNCTION should return an alist that contains
> ONLY valid completions.

No, it can (and often is) a superset.

> Ah, interesting approach.  But, I've just found that
> dotimes-with-progress-reporter of the original code didn't
> exclude the big unused range U+30000..U+DFFFF (about 75% of
> the range currently checked).  Just excluding that part in
> the original code achieves almost the same performance as
> your patch.   Attached is that simpler version.

Feel free to install that, then.


reply via email to

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