emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: case-insensitive partial-completion-mode issue]


From: Andreas Röhler
Subject: Re: address@hidden: case-insensitive partial-completion-mode issue]
Date: Fri, 7 Dec 2007 14:04:50 +0100
User-agent: KMail/1.9.5

Am Donnerstag, 6. Dezember 2007 22:43 schrieb Richard Stallman:
>     As `read-file-name-completion-ignore-case' seems not
>     honoured anyway by completion.el, maybe simply drop
>     that var and use `case-fold-search' instead?
>
> The standard minibuffer completion routines do obey
> `read-file-name-completion-ignore-case', don't they?


Basically, see below.

> We just need to fix complete.el to do so.
>

Hope so but don't know at all.

Thanks having gratuitously ignored my mistake with
complete/completion.el

After some more checks this morning the issue AFAIS now
mixes with "completion over directories"

Emacs -Q

GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of 2007-11-18 

~/tmp> touch Bar.txt
~/tmp> touch bar.txt

Directory up 

~/>

read-file-name-completion-ignore-case ==> t

C-x C-f ~/t/B TAB ==> ~/tmp/Bar.txt

but

C-x C-f ~/t/b TAB ==> ~/t*/b Ambiguous dir name

however

C-x C-f ~/te/b TAB ==> ~/tmp/bar.txt

;;;;;;;;;;;;

Now the example given by OP

/~> touch FILE.TXT
~/> mkdir DIRECTORY
~/> touch DIRECTORY/FILE.TXT

Partial-Completion mode enabled

(setq read-file-name-completion-ignore-case t)

C-x C-f ~/F ==> F

*Completions*
FILE.TXT                           Foo-Bar
...
firefox-installer/                 firefox/

;;;;;;;;;

OK

C-x C-f ~/f ==> f ;;;;;; as above, OK

C-x C-f ~/d/f ==> Error: if: Opening directory: datei oder Verzeichnis nicht 
gefunden, /MY-PATH/d/

C-x C-f  ~/D/f ==> Error: if: Opening directory: datei oder Verzeichnis nicht 
gefunden, /MY-PATH/D/

But 

C-x C-f  ~/D/F ==> ~/DIRECTORY/FILE.TXT

;;;;;;;;;

Evaluated your patch afterwards nonetheless: as
expected same behaviour.

No ideas how to fix this at the moment.

Andreas Röhler





reply via email to

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