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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5280 in the body.
You can then email your comments to 5280 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, svenjoac <at> gmx.de, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5284; Package emacs. (Wed, 09 Dec 2009 09:45:06 GMT) Full text and rfc822 format available.

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!


Message #4 received at 5280-done <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Oleksandr Gavenko <gavenkoa <at> gmail.com>
Cc: 5280-done <at> debbugs.gnu.org
Subject: Re: bug#5280: read-file-name return wrong dir if
	partial-completion-mode enabled
Date: Fri, 01 Jan 2010 16:41:09 -0500
> 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.

I'm afraid we're not planning to make any more releases of Emacs 22.x.
Since this is fixed in 23.1, I'll go ahead and close this bug.  Thanks
for reporting it.




bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 03 Feb 2010 12:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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