My 2007-10-03 attempt to get this patch applied got no further than RMS's request for someone to DTRT. It took several hours of my time to debug and test, and the bug still bites me every time I re-install, so PLEASE could someone apply it? Thanks.
------------------------------------------------------------
In the latest complete.el from CVS (v1.94), function "PC-do-completion" fails to correct the case of the input being completed when:
- "completion-ignore-case" is true and
- "read-file-name-completion-ignore-case" is true and
- all possible completions have the same case
Ordinary completion preserves input case only where the potential completions differ in case. If they agree then ordinary completion changes the input case to that of the prefix.
For example, evaluate:
(partial-completion-mode 0)
(setq completion-ignore-case t)
(completing-read "Input: " '(("Den".1)("Denis".2)) nil t "d")
Hitting TAB runs ordinary "minibuffer-complete" which completes "d" to "Den" (case corrected).
Enable partial completion:
(partial-completion-mode 1)
Re-evaluate the above completing-read.
Hitting TAB now runs "PC-complete" which completes "d" to "den" (fails to correct input case).
I've tested the attached patch thoroughly. Please contact me if you want any more background on this.
------------------------------------------------------------
ChangeLog entry:
2009-01-21 Denis Howe <
denis.howe@gmail.com>
* complete.el (PC-do-completion): Correct case when unambiguous.
------------------------------------------------------------
cvs diff -cw complete.el