Subject: bug#3250: 23.0.93; tab completion flakey with tramp when insert-default-directory is nil

From: Stefan Monnier <[email-masked]>
Date: Sun, 10 May 2009 23:30:50 -0400

> Okay, here's what I did:

> - open a file in a folder
> - C-x C-f
> - .. TAB to go to parent folder of the folder containing the file you opened
> - type 'so' and hit TAB
> - minibuffer now shows "../something/", *Completions* shows contents of
> something' folder
> - now delete all characters in the minibuffer with backspace
> - hit TAB, *Completions* still shows contents of 'something' folder
> - type first two characters of a name in *Completions*, no completion
> happens [1]
> - delete those two characters
> - type 'so' and hit TAB
> - minibuffer now shows "something/"
> - hitting TAB one or two more times and *Completions* once more shows the
> contents of 'something' folder
> - type first two characters of a name in *Completions*, no completion
> happens and current working directory in minibuffer seems very confused [1]

> [1] these bullet points feel like bugs to me...

Thank you.  This should be enough for me (or whoever else gets to it
first, but it looks like a bug in my new completion code) to find
the problem.

        Stefan