GNU bug report logs - #5280
read-file-name return wrong dir if partial-completion-mode enabled

Previous Next

Package: emacs;

Reported by: Oleksandr Gavenko <gavenkoa <at> gmail.com>

Date: Tue, 6 Oct 2009 18:55:07 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Oleksandr Gavenko <gavenkoa <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#5280: read-file-name return wrong dir if
	partial-completion-mode enabled
Date: Mon, 28 Dec 2009 18:57:37 +0200
This happen with Emacs 22.3.1 from
http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-22.3-bin-i386.zip

With 23.1 http://ftp.gnu.org/pub/gnu/emacs/windows/ such error not
occured. On Emacs 21.4 function read-file-name not defined.

STEP #1.

  > cd test
  > mkdir dir-1xxx dir-1yyy .svn
  > edit bug.el  --- I put here:

(read-file-name "Enter file" default-directory default-directory t nil 
'file-directory-p)
(partial-completion-mode t)

  > runemacs --no-init-file --no-site-file --debug-init

STEP #2.
Next C-x C-f d:/tmp/test/bug.el RET,
execute read-file-name by C-x C-e, in prompt just type RET, got 
"d:/tmp/test/" - OK.

STEP #3.
execute (partial-completion-mode t)
and repeat executing (read-file-name  ...), got "d:/tmp/test/dir-1" - ERROR.

If do not create .svn dir (which in list completion-ignored-extensions)
on step #1 we got correct value on step #3.
Also correct work if remove ".svn" from completion-ignored-extensions
and partial-completion-mode enabled.

-- 
Best regards!


This bug report was last modified 15 years and 141 days ago.

Previous Next


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