[Top][All Lists]

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

bug#4219: 23.1; case insensitive + partial completions

From: Chong Yidong
Subject: bug#4219: 23.1; case insensitive + partial completions
Date: Fri, 11 Sep 2009 21:23:20 -0400

> Start with a default Emacs, and
>   (setq read-file-name-completion-ignore-case t)
>   (setq completion-styles '(partial-completion))
> Now go to a directory that has two files called
>   install-sh
> Hit `C-x C-f ins TAB' -- it will be completed to "insTALL".

Stefan, could you take a look at this?  I glanced through your partial
completion code, and it's clear where the problem arises.  In

  (completion-pcm--merge-completions all pattern)


  (all "TALL" "ins")

and so completion-pcm--pattern->string naively joins the result into
"insTALL".  However, I don't know how to fix this.  The default
completion style actually does the right thing, because it can just
replace the string wholesale, but I'm not sure if the pcm style can do
the same thing.

reply via email to

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