GNU bug report logs - #227
partial-completion-mode and completion-ignore-case combine to make 'read-file-name return a subdirectory when user enters the parent

Previous Next

Package: emacs;

Reported by: Trey Jackson <tjackson <at> wv.mentorg.com>

Date: Mon, 12 May 2008 18:30:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 227-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Trey Jackson <tjackson <at> wv.mentorg.com>
Cc: 227-done <at> debbugs.gnu.org
Subject: Re: partial-completion-mode and completion-ignore-case combine to make 'read-file-name return a subdirectory when user enters the parent
Date: Sun, 07 Sep 2008 17:02:12 -0400
>   mkdir /scratch2/rfn-bug
>   touch /scratch2/rfn-bug/a
>   touch /scratch2/rfn-bug/b
>   mkdir /scratch2/rfn-bug/frog
>
> Run emacs, and then evaluate:
>
>    (setq read-file-name-completion-ignore-case t)
>    (require 'complete)
>    (partial-completion-mode t)
>    (read-file-name prompt dir dir 'must-match nil 'file-directory-p)
>
> When you enter "/scratch2/rfn-bug/", you'll get back
> "/scratch2/rfn-bug/frog"

I've checked in a fix into CVS.  Thanks for the bug report.




This bug report was last modified 16 years and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.