From: Eric M. Ludlam <eric@si...> - 2013-05-17 11:59:55
On 05/17/2013 04:47 AM, John Smith wrote:
> Hi all,
> There was no reply to my previous email, so I send it again.
> I attach a patch that changes the behavior of 'semantic-ia-complete-symbol:
> when it's called with an all-lowercase prefix, it looks as well among
> mixed-case completion candidates - 'semantic-analyze-possible-completions
> provides them anyway, but 'semantic-ia-complete-symbol does not use them
> at this point.
> Here's an example:
> At this moment 'semantic-ia-complete-symbol will not complete "dof"
> to "DoFHandler": I would instead have to type "DoF" which is a pain.
> After the patch, 'semantic-ia-complete-symbol will complete "dof" to "DoF".
> After this it can be called again with current behavior.
Thanks for the patch.
I think you can use completion-ignore-case to do what you want, but I
haven't had time to give it a try. Perhaps that could make your patch
;; Use try completion to seek a common substring.
(let* ((completion-ignore-case t)
(tc (try-completion (or pre "") syms)))