GNU bug report logs - #24984
Emacs 25.1.1: Problems with file completion in Windows shell

Previous Next

Package: emacs;

Reported by: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>

Date: Tue, 22 Nov 2016 09:13:01 UTC

Severity: normal

Tags: notabug

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>
Cc: 24984 <at> debbugs.gnu.org
Subject: Re: bug#24984: Emacs 25.1.1: Problems with file completion in Windows
 shell
Date: Tue, 22 Nov 2016 17:49:19 +0200
> Date: Tue, 22 Nov 2016 10:12:16 +0100
> From: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>
> 
> I think this bug is new compared to Emacs 24.3:
> Shell completion on MS-Windows does not work correctly. For excample:
> ---
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
> 
> c:\Windows\system32>cd /Users/Ulrich Windl/
> cd /Users/Ulrich Windl/
> 
> c:\Users\Ulrich Windl>dir
> dir
>  Datenträger in Laufwerk C: ist Windows
>  Volumeseriennummer: 42BC-2012
> 
>  Verzeichnis von c:\Users\Ulrich Windl
> 
> 17.08.2016  14:10    <DIR>          .
> 17.08.2016  14:10    <DIR>          ..
> 04.08.2016  08:21    <DIR>          Application Data
> 15.03.2016  15:19    <DIR>          Contacts
> 17.08.2016  14:21    <DIR>          Desktop
> 18.10.2016  10:21    <DIR>          Documents
> 22.11.2016  09:49    <DIR>          Downloads
> 12.10.2016  10:13    <DIR>          Favorites
> 31.05.2016  12:16    <DIR>          Pictures
> 20.10.2016  08:23    <DIR>          Videos
>                5 Datei(en),          4.542 Bytes
>               20 Verzeichnis(se), 184.763.269.120 Bytes frei
> ---
> 
> When I try to complete "cd D", "Documents" is not in the list of possible
> matches. Instead I see things that are NOT part of the current directory (but
> of c:\Windows\system32), like this:
> Possible completions are:
> DRVSTORE/ 	Dism/ 	DriverStore/
> da-DK/ 	de-DE/ 	de/
> drivers/

I cannot reproduce this, after trying on 2 different machines, running
Windows 7 and XP.

However, the above example shows one potential user error which could
explain what you see: you don't enclose file names with embedded
spaces in quotes:

> c:\Windows\system32>cd /Users/Ulrich Windl/
> cd /Users/Ulrich Windl/

The first line should say

  c:\Windows\system32>cd "/Users/Ulrich Windl/"

or maybe even

  c:\Windows\system32>cd "\Users/Ulrich Windl\"

If you do that, does the problem go away?




This bug report was last modified 5 years and 252 days ago.

Previous Next


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