Subject: Once FFAP sniffs a URL, its taste buds no longer recognize filenames

From: 積丹尼 Dan Jacobson <[email-masked]>
Date: Mon, 11 Jan 2021 19:35:48 +0800

$ echo http://example.com > /tmp/z
$ emacs -nw -q /tmp/z
Now do M-x ffap
Now delete the URL that it is prompting us with.
Now enter ~/.em<TAB>
Tab doesn't complete .emacs!!

You see, it "still has its brain convinced we are entering URLs".

Even though it prompts "Find file or URL:"!

And we already cleaned the URL completely from the minibuffer.

 ESC x ;; execute-extended-command
 f                      ;; self-insert-command
 f                      ;; self-insert-command
 a                      ;; self-insert-command
 p                      ;; self-insert-command
 RET                    ;; minibuffer-complete-and-exit
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 DEL                    ;; delete-backward-char
 ~                      ;; self-insert-command
 /                      ;; self-insert-command
 .                      ;; self-insert-command
 e                      ;; self-insert-command
 m                      ;; self-insert-command
 TAB                    ;; self-insert-command
 TAB                    ;; self-insert-command
 TAB                    ;; self-insert-command
 TAB                    ;; self-insert-command
 C-g                    ;; abort-recursive-edit
 C-h l                  ;; view-lossage

True, I didn't try "file:///" (but shouldn't have to.)
emacs-version "27.1"